willglynn
Cadet
- Joined
- Nov 8, 2014
- Messages
- 7
Suppose I have a zpool with a RAID-Z2 vdev where drives da0-da5 are ONLINE and healthy. Now, suppose I want to replace da0. I know I can pull it out, install its replacement, and resilver – but what if I have extra drive bays? Can I install the replacement as da6, resilver, and then remove da0?
My research indicates that ZFS handles this properly with a simple zpool replace: Oracle docs say so (scroll to "zpool replace tank c1t3d0 c4t3d0"), and ServerFault agrees about ZFS on FreeBSD. On the other hand, I know that FreeNAS defaults to adding swap space on each drive, and zpool status shows gptid/… instead of da0, so I expect the solution isn't just zpool replace da0 da6.
So: is this possible in FreeNAS? If so, what is the procedure? Is there some reason I shouldn't do this?
My research indicates that ZFS handles this properly with a simple zpool replace: Oracle docs say so (scroll to "zpool replace tank c1t3d0 c4t3d0"), and ServerFault agrees about ZFS on FreeBSD. On the other hand, I know that FreeNAS defaults to adding swap space on each drive, and zpool status shows gptid/… instead of da0, so I expect the solution isn't just zpool replace da0 da6.
So: is this possible in FreeNAS? If so, what is the procedure? Is there some reason I shouldn't do this?