단일 USB 장치에서 호스팅되는 LUKS 장치에서 zfs를 실행하고 있습니다. 장치에 결함이 있습니다(다른 시스템에서는 디스크가 잘 읽혀지므로 케이블/연결이 불량할 수 있음).
하지만 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
머신을 재부팅할 수 있지만 재부팅을 방지하는 방법을 알고 싶습니다.
답변1
풀이 일시중단되면 일시중단을 해제할 수 없습니다. 컴퓨터를 다시 시작해야 합니다.