
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