我有一台 Ubuntu 20.04 服务器,它运行带有 56TB 磁盘阵列的 ZFS。
我们有一个标记为“故障”的磁盘。在尝试解决此问题时,我们不小心拔出了错误的磁盘,但又将其放回原处。因此,我们有一个出现故障的磁盘以及另一个现在标记为“离线”的磁盘。这意味着我们现在已经达到了冗余的极限,因此需要快速解决这个问题。
我们运行了zpool replace backups /dev/sdh /dev/sdh
(尽管显然这应该是/dev/sdh1)。
当我当前运行时zpool status
,有时它表明重新镀银正在运行,其他时候擦洗正在运行 - 见下文。
现在已经运行了 4 天,“总计 54.8T”数字没有变化。 “正在进行中”日期似乎总是在命令运行后的一两分钟内。
这看起来有错吗?我应该继续等待,还是最好的办法是停止使用zpool scrub -s backups
或其他东西来停止磨砂?
# zpool status
pool: backups
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 in progress since Tue May 11 20:18:22 2021
3.03G scanned at 3.03G/s, 0B issued at 0B/s, 54.8T total
0B repaired, 0.00% done, no estimated completion time
config:
NAME STATE READ WRITE CKSUM
backups DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
sdi ONLINE 0 0 0
sdj ONLINE 0 0 0
sdk ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
11802105070547673345 FAULTED 0 0 0 was /dev/sde1
sde ONLINE 0 0 0
sdf ONLINE 0 0 0
sdg ONLINE 0 0 0
replacing-9 OFFLINE 0 0 0 all children offline
old OFFLINE 3 816 0
sdh OFFLINE 0 0 0
errors: No known data errors
# zpool status
pool: backups
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 in progress since Tue May 11 20:22:06 2021
78.9G scanned at 9.86G/s, 357K issued at 44.6K/s, 54.8T total
0B repaired, 0.00% done, no estimated completion time
config:
NAME STATE READ WRITE CKSUM
backups DEGRADED 0 0 0
raidz2-0 DEGRADED 0 0 0
sdi ONLINE 0 0 0
sdj ONLINE 0 0 0
sdk ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
11802105070547673345 FAULTED 0 0 0 was /dev/sde1
sde ONLINE 0 0 0
sdf ONLINE 0 0 0
sdg ONLINE 0 0 0
replacing-9 OFFLINE 0 0 0 all children offline
old OFFLINE 3 816 0
sdh OFFLINE 0 0 0
errors: No known data errors