You are not logged in.

#1 2016-09-28 19:34:52

Markismus
Member
Registered: 2015-08-09
Posts: 43

Exporting zfs pools before zfs package upgrade fails

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

#2 2016-09-28 19:39:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Exporting zfs pools before zfs package upgrade fails

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-09-29 06:44:33

Markismus
Member
Registered: 2015-08-09
Posts: 43

Re: Exporting zfs pools before zfs package upgrade fails

@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

#4 2016-09-29 13:51:14

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: Exporting zfs pools before zfs package upgrade fails

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

#5 2016-09-29 17:12:07

Markismus
Member
Registered: 2015-08-09
Posts: 43

Re: Exporting zfs pools before zfs package upgrade fails

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

#6 2016-09-29 17:49:56

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: Exporting zfs pools before zfs package upgrade fails

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

#7 2016-09-30 16:14:54

Markismus
Member
Registered: 2015-08-09
Posts: 43

Re: Exporting zfs pools before zfs package upgrade fails

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. sad 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. smile

Last edited by Markismus (2016-10-13 21:35:26)

Offline

Board footer

Powered by FluxBB