February 15, 20242 yr I have a zpool named store which is configured as follows: 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 February 16, 20242 yr by JustMatt Additional details for some progress made
February 15, 20242 yr 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.
February 15, 20242 yr 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? unraid-diagnostics-20240215-1548.zip Edited February 15, 20242 yr by JustMatt Attached new diagnostics
February 16, 20242 yr 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.
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.