I need to replace disk for a pve zfs root installed system.
Previously it was:
And I had to replace first disk. And now it is:
sdb hold data.
And I want to create mirror and sync data from sdb to current mirror. What are the steps? Do I need to import old pool ?
Previously it was:
Code:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda2 ONLINE 0 0 0
sdb ONLINE 0 0 0
And I had to replace first disk. And now it is:
Code:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
sda2 ONLINE 0 0 0
sdb hold data.
Code:
pool: rpool-12312656247996879599
id: 12312656247996879599
state: DEGRADED
status: One or more devices contains corrupted data.
action: The pool can be imported despite missing or damaged devices. The
fault tolerance of the pool may be compromised if imported.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
config:
rpool-12312656247996879599 DEGRADED
mirror-0 DEGRADED
sda2 FAULTED corrupted data
sdb ONLINE
And I want to create mirror and sync data from sdb to current mirror. What are the steps? Do I need to import old pool ?