I’m going to start replacing some of the drives in my raid z1 array from SMR to CMR (Now I know…). What’s the best/easiest/less risky way to do this currently? I have no sata ports left, and I don’t want to do raid z1 extensions, I already rebuilt it from scratch due to issues with expansion.
Can I just power off, swap the disk, and it will do a raid rebuild automatically?
Yes, offline → remove disk → insert new disk → discover disk → replace
You may need to do a disk wipe after inserting the new disk if there is anything on the new disk. It doesn’t hurt and doesn’t take a lot of time to wipe so kind of habit for me now.
I have this kind of usb3 enclosures. But then should I still put the disk offline first? Or power off, move the disk to usb, power on and it will find it?
You can have the new CMR in the USB adapter and choose it to “replace” one of the SMRs still plugged in. (Find the SMR to be replaced and choose the “Replace” option.)
I would assume (hope) that TrueNAS will properly create a ZFS member partition, leave a 2GB buffer, and use the PARTUUID.
This will allow you to then power off the server, physically remove the “replaced” SMR, and swap it for the CMR drive in the free SATA port. When you power on again, TrueNAS should (hopefully) be able to bring the pool online, using the PARTUUIDs.
This. ZFS tracks drives by UUID and does not care how they are attached. (Well, it does matter to some extent, but temporary redundancy through a flaky link is better than no redundancy.)
So, first disk replaced. I went the easiest way: put the disk offline, power off, remove the disk physically, put the new one in the same slot, power on, then “Replace” disk, resilver ran overnight with no issue.