
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 1 days 01:42:29 with 0 errors on Mon May 10 02:06:30 2021
config:
NAME STATE READ WRITE CKSUM
enc6 DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
ata-WDC_WD80EDAZ-11TA3A0_VGJXHDEK ONLINE 0 0 0
ata-WDC_WD80EFAX-68LHPN0_7SGJDASC ONLINE 0 0 0
ata-WDC_WD80EMAZ-00WJTA0_2SG3LEKJ ONLINE 0 0 0
9081516251822742376 UNAVAIL 0 0 0 was /dev/sda1
做了一些研究並
##/dev/sdb ata-WDC_WD80EDAZ-11TA3A0_VGJXHDEK ONLINE 0 0 0
##/dev/sdd ata-WDC_WD80EFAX-68LHPN0_7SGJDASC ONLINE 0 0 0
##/dev/sdh ata-WDC_WD80EMAZ-00WJTA0_2SG3LEKJ ONLINE 0 0 0
##/dev/sde 9081516251822742376 UNAVAIL 0 0 0 was /dev/sda1
嘗試重新添加忘記的驅動器
sudo zpool add enc6 /dev/sde
invalid vdev specification
the following errors must be manually repaired:
/dev/sde1 is part of active pool 'enc6'
嘗試發出替換
zpool replace enc6 9081516251822742376 /dev/sde1
invalid vdev specificationuse '-f' to override the following errors:/dev/sde1 is part of active pool 'enc6'
更新,嘗試了@cas的回答和評論中的一些建議:
ls -lF /dev/disk/by-id | grep sde1$
lrwxrwxrwx 1 root root 10 May 24 12:52 ata-WDC_WD80EMAZ-00WJTA0_7HJW7G1F-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 May 24 12:52 wwn-0x5000cca257e89101-part1 -> ../../sde1
嘗試zpool replace
使用 -f
sudo zpool replace enc6 -f 9081516251822742376 /dev/disk/by-id/ata-WDC_WD80EMAZ-00WJTA0_7HJW7G1F
invalid vdev specification
the following errors must be manually repaired:
/dev/disk/by-id/ata-WDC_WD80EMAZ-00WJTA0_7HJW7G1F-part1
答案1
首先,如果可以的話,備份enc6
池 - 例如,將zfs send
其備份到另一個池上的資料集。
如果目前未使用該池(即沒有開啟的檔案),請嘗試:
zpool export enc6
zpool import -d /dev/disk/by-id/ enc6
否則,請嘗試-f
錯誤訊息中建議的選項,但使用符號/dev/disk/by-id
連結而不是/dev/sde1
.
首先,運行ls -lF /dev/disk/by-id | grep sde1$
以識別符號連結。然後:
zpool replace -f enc6 9081516251822742376 /dev/disk/by-id/XXXXXXXXXXXXX