是否有可能zpool status
报告两个物理上不同的驱动器的状态,同时为两个驱动器打印相同的名称?
具体来说,我有一个驱动器在列表sdq
中列为。但另一个驱动器列为。一个驱动器怎么能同时列为和?或者可能是两个驱动器具有相同的设备名称但不同的序列号?spares
FAULTED
sdq
ONLINE
raidz2-2
FAULTED
ONLINE
一个假设是,也许旧的、有故障的驱动器sdq
已经被物理删除(尽管仍然存在于 zfs 的数据结构中),而新插入的驱动器sdq
现在是处于在线状态?
相关地,我如何让 zfs 告诉我每个驱动器的序列号(或其他标识符)zpool status
?
的结果zpool status zfsstorage
:
pool: zfsstorage
state: DEGRADED
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-9P
scan: scrub repaired 896K in 38h15m with 0 errors on Mon May 11 14:39:46 2020
config:
NAME STATE READ WRITE CKSUM
zfsstorage DEGRADED 0 0 0
raidz2-0 ONLINE 0 0 0
sda ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
sde ONLINE 0 0 0
sdf ONLINE 0 0 0
raidz2-1 ONLINE 0 0 0
sdg ONLINE 0 0 0
sdh ONLINE 0 0 0
sdi ONLINE 0 0 0
sdj ONLINE 0 0 0
sdk ONLINE 0 0 0
sdl ONLINE 0 0 0
raidz2-2 ONLINE 0 0 0
sdm ONLINE 0 0 0
sdae ONLINE 0 0 0
sdo ONLINE 0 0 0
sdp ONLINE 0 0 0
sdq ONLINE 0 0 0
sdr ONLINE 0 0 0
raidz2-3 ONLINE 0 0 0
sds ONLINE 0 0 0
sdt ONLINE 0 0 0
sdu ONLINE 0 0 0
sdv ONLINE 0 0 0
sdw ONLINE 0 0 0
sdx ONLINE 0 0 0
raidz2-4 ONLINE 0 0 0
sdy ONLINE 0 0 0
sdz ONLINE 0 0 0
sdaa ONLINE 0 0 0
sdab ONLINE 0 0 0
sdac ONLINE 0 0 0
sdad ONLINE 0 0 0
raidz2-6 DEGRADED 0 0 0
sdak ONLINE 0 0 1
sdal ONLINE 0 0 4
sdam DEGRADED 0 0 21 too many errors
sdan ONLINE 0 0 4
sdao ONLINE 0 0 0
sdap ONLINE 0 0 0
logs
mirror-5 ONLINE 0 0 0
sdag ONLINE 0 0 0
sdah ONLINE 0 0 0
cache
sdai ONLINE 0 0 0
sdaj ONLINE 0 0 0
spares
sdaf AVAIL
sdq FAULTED corrupted data
这是 Debian 9.12 x86-64、zfs-dkms 0.6.5.9-5。
答案1
Debian 和 Ubuntu 用户经常遇到这种情况。似乎这些发行版在 SCSI 枚举和重启和升级过程中存在一致性问题。
您可以导出池并导入zpool import -d /dev/disk/by-id
并检查结果。