I am testing ZFSonLinux and i have an experimental pool named usbcka
.
There is only testing data.
I am simulating HW failure to deterimine behaviour in this scenario.
I know this setup has no redundancy, that is accepted as a risk (decision not made by me).
EDIT: additional info: OS will be on redundant storage
root@carbon:~# zpool status -xv
pool: usbcka
state: UNAVAIL
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run 'zpool clear'.
see: http://zfsonlinux.org/msg/ZFS-8000-HC
scan: none requested
config:
NAME STATE READ WRITE CKSUM
usbcka UNAVAIL 0 0 0 insufficient replicas
usb1 ONLINE 0 0 0
usb2 FAULTED 0 0 0 too many errors
errors: List of errors unavailable (insufficient privileges)
The devices usb1
and usb2
are LUKS devices mounted with cryptsetup.
** As a test, i have intentionaly physicaly removed the underlying device for usb2
**
Suppose the faulted device was a HDD which was beyond repair, HW failure.
I tried
root@carbon:~# zpool destroy -f usbcka
cannot open 'usbcka': pool I/O is currently suspended
root@carbon:~# zpool set failmode=continue usbcka
cannot set property for 'usbcka': pool I/O is currently suspended
Also
zpool clear usbcka
does nothing,empty output
Also
zpool export usbcka
Hangs
How to destroy the pool without reboot?
I want to use the still working devices for creating a new pool
The reason why i don't want a reboot is that i am testing how ZFS fails when a device is faulted, my intention is to use ZFS in work on companys server. That server simply cannot be rebooted at my whim if one of 10 disks fails,and it has hot-swap trays.
I've searched for solutions, but all of them eventually end with a reboot solution.
root@carbon:~# zfs list usbcka
cannot open 'usbcka': pool I/O is currently suspended
root@carbon:~# zpool get all usbcka
NAME PROPERTY VALUE SOURCE
usbcka size 174G -
usbcka capacity 1% -
usbcka altroot - default
usbcka health UNAVAIL -
usbcka guid 1317589842010265379 default
usbcka version - default
usbcka bootfs - default
usbcka delegation on default
usbcka autoreplace off default
usbcka cachefile - default
usbcka failmode wait default
usbcka listsnapshots off default
usbcka autoexpand off default
usbcka dedupditto 0 default
usbcka dedupratio 1.00x -
usbcka free 170G -
usbcka allocated 3.26G -
usbcka readonly off -
usbcka ashift 13 local
usbcka comment - default
usbcka expandsize - -
usbcka freeing 0 default
usbcka fragmentation 1% -
usbcka leaked 0 default
usbcka feature@async_destroy enabled local
usbcka feature@empty_bpobj enabled local
usbcka feature@lz4_compress active local
usbcka feature@spacemap_histogram active local
usbcka feature@enabled_txg active local
usbcka feature@hole_birth active local
usbcka feature@extensible_dataset enabled local
usbcka feature@embedded_data active local
usbcka feature@bookmarks enabled local
usbcka feature@filesystem_limits enabled local
usbcka feature@large_blocks enabled local