Summary: | [zfs] [panic] zpool scrub causes panic if geli vdevs detach on last close | ||
---|---|---|---|
Product: | Base System | Reporter: | Fabian Keil <fk> |
Component: | kern | Assignee: | freebsd-fs (Nobody) <fs> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Only Me | CC: | woodsb02 |
Priority: | Normal | ||
Version: | 7.0-CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Fabian Keil
2007-10-13 20:40:00 UTC
Responsible Changed From-To: pjd->freebsd-fs With pjd's permission, reassing ZFS-related PRs to freebsd-fs. Responsible Changed From-To: freebsd-bugs->pjd I'll take this one. This bug bit me today - it is quite unnerving to watch your zpool go offline due to unavailable devices, all from initiating a simply scrub! However, I can confirm that a reboot recovered the zpool successfully, and adding the following to /etc/rc.conf prevented it from happening again during the next zpool scrub: geli_autodetach="NO" Note: I rebooted once more after adding that to /etc/rc.conf and before initiating the next zpool scrub, just in case that configuration parameter is only read at boot time or the time the geli is attached. Not sure if that was required. I should add that I am running FreeBSD 10.1 amd64 with generic kernel/world. batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed. Is this still reproducible? There have been a number of fixes related to geom spoiling of partitions and labels. Looks like this is no longer an issue on more recent systems as ZFS now fails to import pools on geli devices that detach on last close: # geli attach -d /dev/md0 Enter passphrase: GEOM_ELI: Device md0.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: software # geli attach -d /dev/md1 Enter passphrase: GEOM_ELI: Device md1.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: software # zpool import pool: test id: 10011777910752807569 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: test ONLINE md0.eli ONLINE md1.eli ONLINE # zpool import test GEOM_ELI: Device md0.eli destroyed. GEOM_ELI: Detached md0.eli on last close. GEOM_ELI: Device md1.eli destroyed. GEOM_ELI: Detached md1.eli on last close. g_access(944): provider md0.eli has error 6 set g_access(944): provider md1.eli has error 6 set cannot import 'test': one or more devices is currently unavailable |