-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of mountpoint or org.zol:mountpoint #27
Comments
I haven't investigated this extensively, but "it doesn't smell right". I also run arch on ZFS (except /boot) with the I get that you're trying something a bit different since you want to use a snapshot explicitly and In any event, since booting from a snapshot is not a supported feature of of ZOL it is definitely possible that a subtle oversight was made. This is something I would like to have handled cleanly as well so I will try to replicate your scenario on one of my machines when I get the chance. |
@guygma Any news on this? |
The colon means that it is a user property. Some daemons use user properties for adding metadata to ZFS datasets for their use. Interestingly, this entered the repository via the contrib directory, but it is not an official thing. If it were official, it would not have a colon. |
Just wanted to say that I'm still relying on this so I can boot a new root filesystem without affecting the old one. Just to be clear, I am booting datasets, not snapshots. I create a new dataset mounted to a temporary location so I can copy a roofts into it that was preapred elsewhere. I unmount (clearing the |
I've just been digging thru the Ubuntu I would be interested in seeing the zfs get output from some of your environments if possible please:
Thanks, and I can let you know how I go too, if that is interesting to you. |
In the most basic example (see my updated gist) there is only one dataset but in my actual "live" systems there are multiple - I create new ones when I install an upgraded rootfs and I keep a few old ones, so I may have 4 or 5 datasets. There are no child datasets beneath those roots. Here's an example of my laptop right now where there are 2 datasets:
and
I found problems if more than one dataset had In the simple example in the gist where there is only one dataset, it is ok to set |
I am using ArchLinux on a ZFS root file system, booting with systemd and
sd-zfs
(mkinitcpio-sd-zfs). I am experimenting with multiple root filesysem datasets, either cloned from snapshots or created from scratch. I am unsure how to specify their mount points because they are all the same (/
).The README here says
Setting the
mountpoint
property to the same value on multple datasets seems to cause more problems than it solves.I noticed that snapshot clones created by
sd-zfs
do not have themountpoint
property but they work fine. My own datasets don't.I've done tests and know that the initramfs won't mount the root filesystem without a defined mount point. So I dug further and found another property called
org.zol:mountpoint
which those snapshot clones do have. I tried setting that on my own datasets and it works.I've read over the source for
sd-zfs
and it sets this property when cloning and it uses it when mounting.So, is this some undocumented feature or is it the right way to do it - I don't know. Googling hasn't helped with this.
Booting a dataset either explicitly as
tank/ROOT/arch123
or withAUTO
and thebootfs
property works fine with thisorg.zol.mountpoint
. In fact, they work without settingmountpoint
at all. It also works on other distros as well as Arch.You can set it easily with
set org.zol.mountpount=/ tank/ROOT/arch123
and, unlike settingmountpoint
, it doesn't cause ZFS to try mounting (or unmounting) something you don't want or need (and avoids the associated error messages).SO it works nicely but isn't documented anywhere that I could find. So I ask, is it ok to do it this way, or is there a better way?
If this is the correct approach then perhaps the README could be updated to reflect this.
The text was updated successfully, but these errors were encountered: