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 drive without stopping the array?

Featured Replies

Hi everyone,

 

I am running Unraid on an HPE ML350 Gen10 and all my drives are hot-swappable.

Before Unraid officially supported ZFS, I used to replace the drive by simply unplugging the old drive and replacing it using the command line so my server would not have any downtime. It is crucial for me to NOT have any downtime because of all the services I am running on it and I believe ZFS was designed to avoid downtime. However, since ZFS was supported, I had to stop the array, replace the drive, assign the new drive and start the array to replace a drive. Now I need to upgrade all 8 drives in a cage and this becomes a serious problem.

 

May I know if I can still use the ZFS command to replace the drive without stopping the array? Will this mess up the drive assignment etc.?

 

Thanks

Solved by zxhaxdr

  • Community Expert

You can do that, assuming you do it correctly, but once you stop the array you will need to reimport the pool to sync it with the GUI.

  • 4 months later...
  • Author
  • Solution

It's been a while, and this is not addressed properly. Anyway, for anyone who runs into the same issue. You can replace the drive with

zpool replace you_tank_name /dev/sd* /dev/sd*

After resilvering, stop the array, unassign all drives from the pool, click the pool name, and delete the pool. Then add a new pool and assign all the drives back.

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.