代碼: 選擇全部
root@pveh:~# zpool status
pool: pvehzpool
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub repaired 0B in 2h14m with 0 errors on Sun Feb 11 02:38:12 2018
config:
NAME STATE READ WRITE CKSUM
pvehzpool DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
wwn-0x50014ee6b04a3b69 ONLINE 0 0 0
7798210659245819828 UNAVAIL 0 0 0 was /dev/sdb1
wwn-0x50014ee25ae88a3a ONLINE 0 0 0
wwn-0x50014ee20dea354b ONLINE 0 0 0
errors: No known data errors
zpool offline pvehzpool 7798210659245819828
root@pveh:~# ls /dev/disk/by-id/ata-WDC_WD20E*
ata-WDC_WD20EARS-00MVWB0_WD-WCAZA4761616
ata-WDC_WD20EARS-00MVWB0_WD-WCAZA4761616-part1
ata-WDC_WD20EARS-00MVWB0_WD-WCAZA4761616-part9
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1KVEY2F
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1KVEY2F-part1
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1KVEY2F-part9
ata-WDC_WD20EZRX-00D8PB0_WD-WMC4N0K2KNC8
ata-WDC_WD20EZRX-00D8PB0_WD-WMC4N0K2KNC8-part1
ata-WDC_WD20EZRX-00D8PB0_WD-WMC4N0K2KNC8-part9
[b][u]ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M2AHF5PA[/u][/b]
zpool replace pvehzpool 7798210659245819828 /dev/disk/by-id/ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M2AHF5PA
root@pveh:~# zpool status
pool: pvehzpool
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Tue Mar 13 20:11:33 2018
39.2M scanned out of 506G at 2.61M/s, 55h2m to go
9.48M resilvered, 0.01% done
config:
NAME STATE READ WRITE CKSUM
pvehzpool DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
wwn-0x50014ee6b04a3b69 ONLINE 0 0 0
replacing-1 DEGRADED 0 0 0
7798210659245819828 OFFLINE 0 0 0 was /dev/sdb1
ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M2AHF5PA ONLINE 0 0 0 (resilvering)
wwn-0x50014ee25ae88a3a ONLINE 0 0 0
wwn-0x50014ee20dea354b ONLINE 0 0 0
errors: No known data errors