-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Re-export if zfs-mount.service failed #15607
Comments
There is no Do you see the issue of disappearing nfs exports after a reboot? Does adding |
I can verify that nfs shares disapper after restarting the
|
@SilverBut @stfl could you open a PR with this proposed fix for review. |
Fixes: openzfs#15607 This forces zfs-share to restart with zfs-mount
Fixes: openzfs#15607 This forces zfs-share to restart with zfs-mount
Oh yes @stfl, it was And @behlendorf I saw #15652, and seems good. But actually I have a vague memory of the filesystems was actually correctly exported after mounted, really not sure. Also I met this unexported problem after a upgrade. I have to admit I did not read all release notes of recent OpenZFS releases. So I'm not sure if it has been broken since very early time, or it was something broke it in recent versions. |
Add: If anyone wants to reproduce it, try to make |
I can confirm, that rebooting is not fixed with PartOf as mentioned in our bug tracker at Proxmox: https://bugzilla.proxmox.com/show_bug.cgi?id=5101 |
In fact, fixing the systemd service would not have solved the issue. When running zfs mount -a directly, the nfs shares disappear and systemd cannot do anything about it.. I have now identified the different behavior between 2.1 and 2.2. |
When running zfs share -a resetting the exports.d/zfs.exports makes sense the get a clean state. Truncating was also called with zfs mount which would not populate the file again. Add test to verify shares persist after mount -a. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Stefan Lendl <[email protected]> Closes #15607 Closes #15660
When running zfs share -a resetting the exports.d/zfs.exports makes sense the get a clean state. Truncating was also called with zfs mount which would not populate the file again. Add test to verify shares persist after mount -a. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Stefan Lendl <[email protected]> Closes openzfs#15607 Closes openzfs#15660
When running zfs share -a resetting the exports.d/zfs.exports makes sense the get a clean state. Truncating was also called with zfs mount which would not populate the file again. Add test to verify shares persist after mount -a. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Stefan Lendl <[email protected]> Closes #15607 Closes #15660
When running zfs share -a resetting the exports.d/zfs.exports makes sense the get a clean state. Truncating was also called with zfs mount which would not populate the file again. Add test to verify shares persist after mount -a. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Stefan Lendl <[email protected]> Closes openzfs#15607 Closes openzfs#15660
When running zfs share -a resetting the exports.d/zfs.exports makes sense the get a clean state. Truncating was also called with zfs mount which would not populate the file again. Add test to verify shares persist after mount -a. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Stefan Lendl <[email protected]> Closes openzfs#15607 Closes openzfs#15660
Describe the feature would like to see added to OpenZFS
For systemd users,
zfs-mount.service
might fail temporarily, and could be restored manually bysystemctl restart zfs-mount
. However, the file systems exported byzfs-export.service
is not re-exported, causing newly mounted filesystems not exported, even if fields likesharenfs
is set.How will this feature improve OpenZFS?
Improve resiliency of exported filesystem if mount failed.
Additional context
Consider modify
zfs-share.service
:The text was updated successfully, but these errors were encountered: