February 25, 20251 yr Community Expert I have a zfs pool consisting of 8x 2TB Fanxiang SSDs that keep getting reallocated sector errors and failing. To replace all of the drives, I have purchased 8 new Crucial MX500s. Originally, I was going to exchange and resilver each drive one-by-one. However, I discovered that the drives differ in capacity slightly (2.05TB vs 2TB) when trying to do the first swap. Every night, I make sure the pool is backed up to the main array via a cron job. There are several pool-only shares. I do not have enough SATA ports to connect all 16 SDDs (8 old and 8 new) at once and just let the mover do its thing. Given these constraints, what is the best process to swap out the old drives with the new ones while maintaining my shares? I was thinking I would... Unplug all of the old drives and leave the old pool alone (now with 8 missing drives). Plug in all the new drives and create a new pool. Point shares that were pointing to the old pool to the new pool. Use rsync to move the backup up pool data on the array to the new pool. My hesitation is about step 3. What happens when you change a share that is pointing to an offline pool to an online pool? Thanks in advance for any guidance on how to accomplish this drive swap!
February 26, 20251 yr Community Expert If you had the possibility to connect both pools together, even if the second one was on a different server, you could use zfs replication to clone the current pool, but if that's not possibly what you describe will work. 10 hours ago, marionza said: What happens when you change a share that is pointing to an offline pool to an online pool? This is not a problem as long as you don't try to write to that share before it's corrected, if system shares are involved, make sure you disable the docker and VM services first.
February 26, 20251 yr Author Community Expert 14 hours ago, JorgeB said: This is not a problem as long as you don't try to write to that share before it's corrected When you say "before it's corrected," do you mean before I use rsync to move the data backed up to the array back onto the share, which is now pointing to the new pool with new drives? Thank you!
February 27, 20251 yr Community Expert Solution Yes, make sure that shares are corrected before writing any data to them.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.