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.

[SOLVED] Failed ZFS Drive Replacement; Zpool Will Not Start

Featured Replies

I had a drive fail in my zpool.  The drive was still under warranty so it was sent back for replacement.  I put the new drive in and Unraid attempted a resilver and failed (locked up the server and all I could do is hard reboot).  Now, Unraid will start, but will not start the zfs pool.  When attempting to start, all I received is a pop-up with Wrong Pool State zfspool - invalid config (zfspool is the name of my pool).  Looking at syslog, it appears that zfs cannot find the replacement drive.

 

Nov 28 21:34:27 Tower emhttpd: import 37 cache device: no device

 

Dropping down to terminal, doing an initial zpool status check yields "no pools available".  If I import the pool and then run the status, I get

        NAME                        STATE     READ WRITE CKSUM
        zfspool                     DEGRADED     0     0     0
          raidz1-0                  DEGRADED     0     0     0
            sdc1                    ONLINE       0     0     0
            sdm1                    ONLINE       0     0     0
            sdb1                    ONLINE       0     0     0
            sde1                    ONLINE       0     0     0
            sdh1                    ONLINE       0     0     0
            sdd1                    ONLINE       0     0     0
            sdn1                    ONLINE       0     0     0
            replacing-7             DEGRADED     0     0    66
              17991041654255577759  UNAVAIL      0     0     0  was /dev/sdi1/old
              4345501486732808471   FAULTED      0     0     0  was /dev/sdi1
              sdi1                  ONLINE       0     0     0

 

I cannot remove the new drive from using the drop-down on the Main tab as that yields the same error as before.  Is this fixable?  If I've borked the pool, is there a way to temporarily access the data?  The data is backed up, but I think there is one directory that hasn't been backed up recently.  I've attached my diagnostics file.  Any help or directions you can point me in would be greatly appreciated.

 

tower-diagnostics-20231128-2147.zip

Solved by JorgeB

  • Community Expert

Is the resilver progressing? Post the full output of zpool status.

  • Author

Here is the output of the import and status.

 

root@Tower:~# zpool import zfspool
root@Tower:~# zpool status -v
  pool: zfspool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Tue Nov 28 21:26:51 2023
        687G scanned at 14.6G/s, 252M issued at 5.35M/s, 17.3T total
        0B resilvered, 0.00% done, no estimated completion time
config:

        NAME                        STATE     READ WRITE CKSUM
        zfspool                     DEGRADED     0     0     0
          raidz1-0                  DEGRADED     0     0     0
            sdc1                    ONLINE       0     0     0
            sdm1                    ONLINE       0     0     0
            sdb1                    ONLINE       0     0     0
            sde1                    ONLINE       0     0     0
            sdh1                    ONLINE       0     0     0
            sdd1                    ONLINE       0     0     0
            sdn1                    ONLINE       0     0     0
            replacing-7             DEGRADED     0     0     0
              17991041654255577759  UNAVAIL      0     0     0  was /dev/sdi1/old
              4345501486732808471   FAULTED      0     0     0  was /dev/sdi1
              sdi1                  ONLINE       0     0     0

errors: No known data errors

 

  • Community Expert

The resilver is not progressing, try rebooting, re-import the pool and post new status after 5 minutes.

 

 

  • Author

I rebooted, imported the pool and the resilvering started.  After 8-hours or so later, the process completed with no errors.  Unfortunately, I'm still unable to start the array.  I'm still getting Wrong Pool State zfspool - invalid config when attempting to start the array.  Forcing the pool import and then status is listed below.  I am able to access the zfspool directly from the terminal and was able to back up the one folder I needed (hooray).

 

root@Tower:~# zpool status
  pool: zfspool
 state: ONLINE
  scan: resilvered 2.05T in 19:04:57 with 0 errors on Wed Nov 29 16:31:48 2023
config:

        NAME        STATE     READ WRITE CKSUM
        zfspool     ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdc1    ONLINE       0     0     0
            sdm1    ONLINE       0     0     0
            sdb1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
            sdh1    ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sdn1    ONLINE       0     0     0
            sdi1    ONLINE       0     0     0

errors: No known data errors

 

  • Community Expert
  • Solution

Export the pool first (zpool export zfspool), then stop array, unassign all pool devices, start array, this will reset the pool config, stop array, re-assign all pool devices, start array, pool should now import, if it doesn't post new diags.

  • Author

This corrected the issue.  Thank you very much for the help.

  • Community Expert

One thing I forgot to mention, make sure the pool devices are assigned in the same order as the zpool status output or there could be issues if you try replacing a device in the future, if they are not you can repeat the pool reset and re-import procedure as above.

  • Author

Already done.  Screenshots are a wonderful thing.😄

  • Dlraven changed the title to [SOLVED] Failed ZFS Drive Replacement; Zpool Will Not Start

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.