Hi,
I run FreeNAS 9.2.1.3 on my home storage server. To store all my family stuff, I have two 4TB disks in an encrypted mirror volume. For one of these disks, SMART began to report some errors and I have bought a new one with similar specs. Because the old disk is still working, I don't want to throw it now and keep it in the volume. Thus, my plan is to add the new disk to my encrypted mirror volume to get three mirrored disks ready for the annouced death of the old disk.
This plan sounds quite simple to me and I was surprised to see that it could not be as straigthforward as it seems... The GUI of FreeNAS does not provide a way to add a third disk to a mirror volume :-/ After looking around, I discover that I am not alone: in this thread, Chase tried to reach similar goal but cyberjock let him know that some tweaks have to be done.
I think that I understand what to do and I would appreciate to know if I am right:
Is my plan correct? In particular for encryption, is it the right way? Will I have to regenerate my keys?
I am careful because not comfortable enough with encrypted ZFS volume to be sure to avoid data loss. Thanks for any advice!
I run FreeNAS 9.2.1.3 on my home storage server. To store all my family stuff, I have two 4TB disks in an encrypted mirror volume. For one of these disks, SMART began to report some errors and I have bought a new one with similar specs. Because the old disk is still working, I don't want to throw it now and keep it in the volume. Thus, my plan is to add the new disk to my encrypted mirror volume to get three mirrored disks ready for the annouced death of the old disk.
This plan sounds quite simple to me and I was surprised to see that it could not be as straigthforward as it seems... The GUI of FreeNAS does not provide a way to add a third disk to a mirror volume :-/ After looking around, I discover that I am not alone: in this thread, Chase tried to reach similar goal but cyberjock let him know that some tweaks have to be done.
I think that I understand what to do and I would appreciate to know if I am right:
- Add swap and data partitions to the new disk with gpart add to look like the two other disks in the mirror,
- Get the rawuuid of the data partition with gpart list,
- Attach the GPTID of the new data partition to the GPTID of one of the old data partitions with zpool attach to preserve encryption,
- Wait for complete resilvering process.
Is my plan correct? In particular for encryption, is it the right way? Will I have to regenerate my keys?
I am careful because not comfortable enough with encrypted ZFS volume to be sure to avoid data loss. Thanks for any advice!