Zfs version: 1.9.3-0
MacOS version: High Sierra
HW: Mac Mini (late 2012)
Background: this all started as I was going to migrate my Plex setup from the Mac Mini (late 2012) to the new Mac Mini M2. For the "old Mini, the base system is on SSD and all of my storage is on an OWC TB3 8 drive ZFS pool named "zRaid1". This pool stores the different "media types" (each its own dataset) and also a separate dataset for the Plex configuration files (db's, metadata, etc) that are in "/Users/username/Library/Application Support/Plex Media Server". That data set is "zRaid1/Plex_Media_Server_App_Support" and I've set a mountpoint for it at "/Users/max/Library/Application Support/Plex Media Server". Everything worked fine (e.g., the mountpoint showed up where it should, and the Plex app worked just fine using the directory, snapshots were fine, etc).....until I exported the pool, and then re-imported it back on the same old Mini.
Issue: After export and then re-import, dataset mounted to the correct "subdirectory location", but it mounted using the "dataset name" instead of what was set in the mountpoint property.
Example / Events:
1. Dataset "zRaid1/Plex_Media_Server_App_Support" initially had the mountpoint property inherited from parent. So at creation it mounted to: "/Volumes/zRaid1/Plex_Media_Server_App_Support"
2. Issued: "zfs set mountpoint=/Users/max/Library/Application\ Support/Plex\ Media\ Server zRaid1/Plex_Media_Server_App_Support"
3. This worked as expected, with the unmount, rename, and mount occurring and the "Plex Media Server" directory showing up correctly as "/Users/max/Library/Application Support/Plex Media Server"
4. Everything worked for over a week with no issue, including the taking of nightly snapshots
5. Then issued a "zpool export zRaid1" and all of the datasets were unmounted the returned to command line with no errors.
6. Normal "Shut down" of the machine.
7. Normal power up the machine.
8. I thought I would have to "zpool import zRaid1", but ZFS just seemed to auto-import the pool at bootup. No big deal.
9. Then I ran a "zfs list" Again, all appeared "normal" and showed:
NAME USED AVAIL REFER MOUNTPOINT
zRaid1/Plex_Media_Server_App_Support 40.5G 19.3T 35.0G /Users/max/Library/Application\ Support/Plex Media Server
10. Then when I actually looked in the "Application Support" directory with Finder, instead of finding a "Plex Media Server" directory mounted, it showed the directory was name after the dataset "Plex_Media_Server_App_Support"
11. So what I actually have is:
"/Users/max/Library/Application\Plex_Media_Server_App_Support"
and NOT as the mountpoint was defined, and the expected behavior:
"/Users/max/Library/Application\Plex Media Server"
I have since tried to reset the mountpoint numerous times, back to default, then back to "/Users/max/Library/Application\ Support/Plex Media Server" to no avail. When mounted in "/Users/max/Library/Application\ Support/" directory, it always defaults to its dataset name of "Plex_Media_Server_App_Support"
Is this a known issue in prior versions that was reported (and fixed)? Or is there some other workaround?
As I'm now going to migrate to ZFS 2.1.6 on a new M2 Mac Mini, has this been remedied since?
(Note that I know I'm running an old version of ZFS, but I initially installed it w/Homebrew, and over time High Sierra became the latest MacOS upgrade I could perform, and then Homebrew left High Sierra behind, so then I got errors when trying to uninstall ZFS (so that I could upgrade to a new version). And Homebrew basically pukes all over my system now when I try to do anything with it as any package must be compiled from source, and latest versions have dependencies only available after High Sierra, etc., etc. Perhaps I've learned a lesson. Only installing ZFS as distributed on the openzfsonosx.org site.)
Thank you for any feedback on this.