Skip to content
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

One way to export rpool before final reboot (over ssh) #405

Open
bill-mcgonigle opened this issue Mar 22, 2023 · 1 comment
Open

One way to export rpool before final reboot (over ssh) #405

bill-mcgonigle opened this issue Mar 22, 2023 · 1 comment
Assignees

Comments

@bill-mcgonigle
Copy link

@rlaager, I have the following issue with the Debian Bullseye Root on ZFS HOWTO:

Would this be better than forcing a reboot with an un-exported pool?

grep rpool /proc/*/mounts | cut -f 3 -d / | xargs kill -HUP
systemctl restart systemd-logind systemd-udevd

The console goes away but over ssh I can still export and reboot.

These were the problem children holding mounts:

/usr/libexec/bluetooth/bluetoothd
/usr/sbin/connmand-n
/lib/systemd/systemd-logind
/usr/sbin/ModemManager
/usr/libexec/upowerd
/usr/libexec/colord
/lib/systemd/systemd-udevd
/usr/sbin/haveged--Foreground--verbose=1

on an lxqt 11.6.0 live iso.

It's wild that 'zfs mount' shows absolutely nothing but these processes have mounts according to the kernel.

Maybe relevant to the folks at #353 and #270 .

@rlaager rlaager self-assigned this Apr 2, 2023
@rlaager
Copy link
Member

rlaager commented Apr 3, 2023

At $DAYJOB, my colleague just tested this approach. It didn't work for him. After those commands, he still had these running:

root        2550  0.0  0.0 418108 19596 ?        Ssl  Apr02   0:02 /usr/sbin/NetworkManager --no-daemon
root        2554  0.0  0.0  82800  3880 ?        Ssl  Apr02   0:00 /usr/sbin/irqbalance --foreground
ubuntu    141059  0.1  0.0  76120 11848 ?        Ss   00:08   0:00 /snap/snapd-desktop-integration/49/usr/bin/snapd-desktop-integration
ubuntu    141129  0.0  0.0 310360 21904 ?        Sl   00:08   0:00 /snap/snapd-desktop-integration/49/usr/bin/snapd-desktop-integration

Even after killing those and verifying there was nothing else in a grep rpool /proc/*/mounts, zpool export -a still said cannot export 'rpool': pool is busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants