I am running zfs-linux on a Linux Mint (LMDE 6) machine for maintaining a RAID-Z2 storage.The home directory is its own dataset with mountpoint=/home
.
zpool/home cannot be unmounted by non-root user. sudo zfs unmount zpool/home
yields cannot unmount '/home': pool or dataset is busy
.
zfs-linux is installed from debian stable backports.The package manager (apt) lists new available version of zfs-linux.
zfs-dkms/stable-backports,stable-backports 2.3.1-1~bpo12+1 all [upgradable from: 2.2.7-1~bpo12+1]zfs-zed/stable-backports 2.3.1-1~bpo12+1 amd64 [upgradable from: 2.2.7-1~bpo12+1]zfsutils-linux/stable-backports 2.3.1-1~bpo12+1 amd64 [upgradable from: 2.2.7-1~bpo12+1]
I am not sure about the recommended way to upgrade the zfs-linux package. I was thinking about the following possible procedures:
procedure 1
- activate root account (deactivated by default in LMDE)
- log out of user and log in root user without desktop environment (shell through Ctrl + Alt + F1)
zpool export zpool
apt update && apt upgrade
(upgrade would be made with root user, not sure if this is valid/recommended)zpool import zpool
reboot
procedure 2
Simply sudo apt update && sudo apt upgrade
to install the new zfs-linux package.I am not sure if this would risk data loss, cause any other problems or would even be possible (because /home is busy).
Is one of the two procedures recommended for a particular reason? Are there other recommended procedures?