3 ms·
If you have space you can “zfs attach” the new drives to make mirror vdevs with the disks they’re replacing, and then “zfs detach” the old drives to break the m
by kogir 7y ago
If you have space you can “zfs attach” the new drives to make mirror vdevs with the disks they’re replacing, and then “zfs detach” the old drives to break the mirror when done.
This is preferable because you’re never exposed to any additional risk of data loss and can replace more disks at once than original pool redundancy would allow.
- rainbowzootsuit 7y agozpool replace poolname olddisk newdisk Keeps the olddisk online and utilizes it until newdisk has resilvered, then detaches it. It seems equivalent in safety to zpool attach poolname olddisk newdisk Wait for resilver... zpool detach poolname olddisk
- rincebrain 7y agoNot on a raidz vdev you can't. You can't make mirrors out of anything other than existing mirrors or single disk vdevs. (You _can_ run zpool replace on more disks than the pool redundancy has, assuming you don't need to disconnect the old disks to put the new ones in...running zpool replace on two disks in a four-disk raidz1 is perfectly legal, as long as the old disks are still there.)