You are not logged in.
Every time I upgrade the spl-linux, zfs-linux, zfs-utils-linux and linux packages, I have zpools that do not remount properly.
After upgrading the packages, I issue the command to export all zpools. I get a message that some zpools won't export because they are in use. After rebooting I'll have to force import those zpools manually.
So: How can I cleanly upgrade my zfs system?
Thanks for reading this. Any pointers are appreciated!
Last edited by Markismus (2016-09-28 21:56:00)
Offline
Not a Sysadmin issue, moving to NC...
Offline
@jasonwryan Sorry for that! Last time I didn't get response about ZFS in the newbie corner, so I though I'd had to try it elsewhere.
Offline
Why are you exporting the pools?
I just upgrade and reboot. If needs be you can also force import the pool from the kernel command line by adding “zfs_force=1”.
Offline
Because it reduces the number of zpools not mounted. Without an export, I end up manually importing all the zpools (after deleting directories made by bind mounts.)
Writing it like this, it seems that after upgrading the bind mounts and folders are created before the zpools are mounted, botching the mounting of said zpools. If I export the zpools beforehand, this doesn't happen.
Probably found it: I had some bind mounts without x-systemd.requires=zfs-mount.service. Will try to update without export!
Offline
I see. You have a more complex setup than me!
Hope it is the bind mount options. I often find I can look at something and be absolutely sure it is 100% correct, only to find when I go through it with, or describe it to, someone the error becomes apparent.
Offline
Well, it seems to work. I updated the packages, reloaded the modules with systemctl>everything still accessible, restarted the system>only deluge has now 325 errors.
But that's most probably deluge, because it also doesn't give a status update that the torrents are being checked. I really have to find the time to set up rtorrent properly. Another slight oversight, I had moved all torrents to a directory of their own.
EDIT: Now when you update the zfs-packages a comment is displayed telling you to enable some extra services. Enabled the services, fixed the bind commands: Everything works as expected.
Last edited by Markismus (2016-10-13 21:35:26)
Offline