Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to "replace" zfs pool with different drives?

Featured Replies

  • 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...

 

  1. Unplug all of the old drives and leave the old pool alone (now with 8 missing drives).
  2. Plug in all the new drives and create a new pool.
  3. Point shares that were pointing to the old pool to the new pool.
  4. 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!

Solved by JorgeB

  • 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.

  • 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!

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.