ZFS替换故障磁盘
再次故障
#zfs list
no datasets available#zpool scrub rpool
cannot open 'rpool': no such p[root@testtfs-1-1 /var/log]
#zpool import -a
[root@testtfs-1-1 /var/log]
#zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 7.25T 161G 7.09T - 0% 2% 1.00x DEGRADED -#zpool status -v rpool
pool: rpool
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 0 in 0h19m with 0 errors on Tue Jul 18 12:15:21 2017
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
8555117260269250814 UNAVAIL 0 0 0 was /dev/sdb1
HGST_HUS724020ALA640_PN2134P6HJEZMP1 ONLINE 0 0 0
HGST_HUS724020ALA640_PN2134P6HKPSKP1 ONLINE 0 0 0
HGST_HUS724020ALA640_PN2134P6HLLU0X1 ONLINE 0 0 0
errors: No known data errors参考
Last updated