this post was submitted on 22 Aug 2024
19 points (95.2% liked)
Selfhosted
60024 readers
777 users here now
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam.
-
Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.
-
Don't duplicate the full text of your blog or git here. Just post the link for folks to click.
-
Submission headline should match the article title.
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The trick for this one is
mount -t zfs -o zfsutil internal /mnt/some/pathAssuming the root dataset is mountable. If you have a
-o canmount=offon the dataset it will refuse to mount.If it's
-o mountpoint=legacythen you don't need-o zfsutil, but still need to provide both the source and destination paths. Otherwise you'll get the fstab error because mount can't figure out what to mount or where to mount it.Thank you so much, where did you find this bit of information? I have been trying to solve this problem for the past week or so, but my google foo failed me on this one. Was about to give up on this one.
I learned it accidentally trying to get root on an encrypted dataset working with systemd init without sd-zfs. This turns out to be how the
zfsutility works internally to signal the driver "hey it's okay, I'm a ZFS utility the user isn't using mount directly", and how you deal with mounting your root dataset to the temporary/sysrootwhile having its mountpoint set to/while in initramfs before pivoting root.Obviously, don't use that other than recovering your data, if you want to use this array you should figure out the mountpoints properly so ZFS does it automatically. It shouldn't break anything but it's gross, either set
mointpoint=legacyand use fstab or set its mountpoint in ZFS and usezfs mount.