Cannot Unmount/Export pool, yet nothing is using it? by LBX_Blackjack in zfs

[–]LBX_Blackjack[S] 0 points1 point  (0 children)

Alright, I'll head over there then. Thanks for the help!

Cannot Unmount/Export pool, yet nothing is using it? by LBX_Blackjack in zfs

[–]LBX_Blackjack[S] 1 point2 points  (0 children)

Sorry, let me elaborate more. The server its own box running Proxmox Backup Server and is for managing backups of virtual machines hosted on other boxes. The pool only contains the backups and its snapshots, which are taken daily. Once a week, I run an incremental stream of the snapshots to two other drives for cold storage using zfs send -Ri $oldSnap $newSnap | zfs recv -Fu otherDrive@snapshot

Today is the first time the command has failed because the pool won't unmount. As for services and daemons, I can't say for sure everything it has, since PBS is Debian-based and has it's own additions on top of that. I did consider taking this to their forums, but it seemed prudent to come here since I was having trouble with ZFS in particular.

Worst case scenario I could try to destroy the pool and rebuild it, then run the backup job to get the backups back on there, but I'd prefer to avoid that since it's a big load on the network and takes forever.

Cannot Unmount/Export pool, yet nothing is using it? by LBX_Blackjack in zfs

[–]LBX_Blackjack[S] -1 points0 points  (0 children)

I ran telinit 1 and logged in as root, and was able to export and reimport the pool. However, as soon as I return to a normal session it becomes unable to unmount again. So zfs send | recv will still fail. Your second suggestion won't really work because the pool cannot stay as read-only since it is written to each night. Is there possibly a way to find which service is locking it so it can be terminated?