我有一个两个磁盘zfs池,在移动到新PC后,它有一个错误:
NAME STATE READ WRITE CKSUM
your-pool2 DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
ata-ST340014AS_5MQ40HNH ONLINE 0 0 0
13723435395862585868 FAULTED 0 0 0 was /dev/sdb1
看看这个zdb输出,路径:'/ dev / sdb1'需要重命名,怎么做?感谢
children[0]:
type: 'disk'
id: 0
guid: 10396996927287780263
path: '/dev/disk/by-id/ata-ST340014AS_5MQ40HNH-part1'
whole_disk: 1
DTL: 69
create_txg: 4
children[1]:
type: 'disk'
id: 1
guid: 13723435395862585868
path: '/dev/sdb1'
whole_disk: 1
not_present: 1
DTL: 68
create_txg: 4
答案 0 :(得分:0)
当你有镜子时,你有两个选择之一:
zpool detach
旧磁盘,zpool attach
磁盘,但现在具有正确指定的磁盘ID。zpool replace
旧磁盘具有相同的磁盘,但现在由正确的磁盘ID指定。