Mount
從故障設備解除安裝“SUSPENDED”zfs 池
我在託管在單個 USB 設備上的 LUKS 設備上執行 zfs。設備出現故障(可能是電纜/連接不良,因為磁碟在另一台機器上讀取正常)。
但是我如何 –force GNU/Linux 忘記設備?
$ zpool status pool: freenetpool state: SUSPENDED 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: scrub repaired 0B in 0 days 05:09:40 with 0 errors on Sun May 10 05:37:46 2020 config: NAME STATE READ WRITE CKSUM freenetpool DEGRADED 0 0 0 freenet DEGRADED 3 344 0 too many errors errors: 5263 data errors, use '-v' for a list $ sudo zpool export freenetpool umount: /freenet: target is busy. cannot unmount '/freenet': umount failed $ lsof /freenet | field 2 | grep -v PID | uniq | xargs kill -9 $ sudo umount -l /freenet/ (OK) $ sudo zpool export freenetpool cannot export 'freenetpool': pool I/O is currently suspended $ sudo zpool clear freenetpool cannot clear errors for freenetpool: I/O error $ sudo zpool clear -F freenetpool cannot clear errors for freenetpool: I/O error $ sudo zpool clear -FX freenetpool cannot clear errors for freenetpool: I/O error $ sudo zpool clear -nFX freenetpool (OK) $ sudo zfs unmount /freenet cannot unmount '/freenet': not a mountpoint $ sudo zpool destroy -f freenetpool cannot open 'freenetpool': pool I/O is currently suspended $ zpool detach freenetpool freenet cannot detach freenet: pool I/O is currently suspended $ zpool remove freenetpool freenet cannot remove freenet: pool I/O is currently suspended $ zpool remove freenetpool /dev/mapper/freenet cannot remove /dev/mapper/freenet: pool I/O is currently suspended $ zpool set cachefile=/etc/zfs/zpool.cache freenetpool cannot set property for 'freenetpool': pool I/O is currently suspended
我可以重新啟動機器,但我真的很想知道一種避免重新啟動的方法。
一旦池被暫停,就無法解除暫停。您將不得不重新啟動機器。