creating a bootable ZFS image

Fabian Keil freebsd-listen at fabiankeil.de
Wed Oct 31 22:42:59 UTC 2012


John Nielsen <lists at jnielsen.net> wrote:

> What I am doing instead is creating the pool with -o failmode=continue,
> installing, unmounting everything, then forcibly detaching the md
> device. This gives me an image I can use, and it boots and runs fine.
> Unfortunately, that leaves me with a defunct pool on the build host
> until I reboot it. Anything I try to do to the pool (destroy, offline,
> export, etc) returns "cannot open 'zfsroot': pool I/O is currently
> suspended." (With the default failmode=wait, it's even worse since any
> command that tries to touch the pool never returns.) The pool state is
> "UNAVAIL" and the device state is "REMOVED". Once the build host is
> rebooted the device state changes to UNAVAIL and zpool destroy works as
> expected.

Did you try "zpool clear [-F] $pool" after reattaching the md?

It often works for me in situations where other zpool subcommands
just hang like you described above.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20121031/d0c69cd4/attachment.sig>


More information about the freebsd-fs mailing list