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.

[6.12.6] Trouble replacing drive in zpool

Featured Replies

I have a zpool named store which is configured as follows:
image.png.e7f1ed50af67de8a73e9fb197c050ad5.png

 

One of my  drives has begun to fail for awhile now and I've finally gotten around to getting a replacement. It's the same make/model/capacity as the other drives in this pool.

 

I have done the following:

  • zfs offline store sde1
  • shutdown unraid server
  • swap out for the new drive
  • start the server
  • In GUI partitioned the new drive and added it to the pool

 

Now I am stuck because the pool shows the drive as offline, and when I attempt to do "zpool replace store sde1" I get an error message "internal error: out of memory".

 

"free -m" shows that I have over 60G of memory available so that shouldn't be an issue.

 

I'm at a loss on how to recover this pool back to a non-degraded state.

 

Edit: I have made some progress

 

I stopped the array, removed the disk, and started again.

Then I was able to do "zpool replace store sde1" successfully.

It is now in the process of resilver which will take some time. I will update if I run into any further issues.

 

unraid-diagnostics-20240214-1721.zip

Edited by JustMatt
Additional details for some progress made

Solved by JorgeB

  • JustMatt changed the title to [6.12.6] Trouble replacing drive in zpool (Edit: maybe fixed)
  • Community Expert

Note that you need to have the pool devices assigned in the same order as the zpool status output, and according to the diags they are not, or trying to replace a device using the GUI may fail, once the resilver finishes recommend re-importing the pool with the devices correctly sorted.

  • JustMatt changed the title to [6.12.6] Trouble replacing drive in zpool (Edit: not fixed)
  • Author
14 hours ago, JorgeB said:

Note that you need to have the pool devices assigned in the same order as the zpool status output, and according to the diags they are not, or trying to replace a device using the GUI may fail, once the resilver finishes recommend re-importing the pool with the devices correctly sorted.

The silvering just finished successfully, and I did "zpool import -d /dev/disk/by-id store" which seemed to work without any issues. "zpool status" now shows everything as being Online so it looks like it's functional.

 

Now I'm having trouble selecting the replacement drive in the GUI. It detects it as an expansion so when I try to start the Array I get an Invalid Expansion error. Do you have any suggestions on how I might resolve this issue?

 

image.png.ca7288d4aba13f845361d58d459a29db.png

image.png.fd4dfdfcc646b1c8e4161ffe9ee78fee.png

unraid-diagnostics-20240215-1548.zip

Edited by JustMatt
Attached new diagnostics

  • Community Expert
  • Solution

Export the pool first if it's online, unassign all pool devices, start the array to reset the pool config, stop the array, reassign all pool devices in the same order as the zpool status shows, leave the filesystem set to auto, start the array and pool should import, if it doesn't post new diags.

  • JustMatt changed the title to [6.12.6] Trouble replacing drive in zpool

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.