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.

HELP with ZFS Missing. wrong pool state

Featured Replies

My server was updated to OS7 Beta 2 and after a reboot my ZFS pool wouldn't load with an error "Wrong pool State".    I found a disk.old fild in my boot/config folder and I renamed it to disk.cfg and now it is saying that 12 of my disk are unmountable and it wants to format them.   I have 42TB's of data that I don't want to loose.   

 

I have attatched the Diagnostics would greatly appreciate some help please.

 

tower-diagnostics-20240826-0802.zip.crdownload

IMG_5122.png

Edited by Ndgame

Solved by JorgeB

  • Author

Also I am not the strongest in linux and code.   So if you suggest me to try something can you please give me some notes how to do it?

 

Thanks

  • Community Expert

 Post the output from

zpool import

 

  • Author
21 hours ago, JorgeB said:

 Post the output from

zpool import

 

 

Sorry been travelling and just now got a chance to get this for you.   Thank you for your help.

 

root@Tower:~# zpool import
   pool: media_pool
     id: 8629751917395333284
  state: ONLINE
status: One or more devices were being resilvered.
 action: The pool can be imported using its name or numeric identifier.
 config:

        media_pool       ONLINE
          raidz1-0       ONLINE
            sdp1         ONLINE
            sdq1         ONLINE
            sdr1         ONLINE
            sdk1         ONLINE
            sds1         ONLINE
          raidz1-1       ONLINE
            sdn1         ONLINE
            sdo1         ONLINE
            sdf1         ONLINE
            sdj1         ONLINE
            sdl1         ONLINE
          raidz1-2       ONLINE
            sdi1         ONLINE
            sdh1         ONLINE
            replacing-2  ONLINE
              sdd1       ONLINE
              sdm1       ONLINE
            sde1         ONLINE
            sdg1         ONLINE

   pool: cache
     id: 5497895395851579887
  state: ONLINE
status: Some supported features are not enabled on the pool.
        (Note that they may be intentionally disabled if the
        'compatibility' property is set.)
 action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
 config:

        cache       ONLINE
          sdb1      ONLINE
root@Tower:~# 

  • Author

something else that I have noticed is that drives with the 3 letters in the (...) example (SDS) aren't on the same drives.   Look at this screenshot.  the right side is a picture I took a few months ago when I switched this to ZFS and the left side is now.

 

 

image.thumb.png.344dfb6e41f7d4c32926004a14a0f12b.pngimage.thumb.png.2a2886187ddeb3022a7091381d7519a3.png

  • Community Expert
16 minutes ago, Ndgame said:

replacing-2  ONLINE
              sdd1       ONLINE
              sdm1       ONLINE

 

 

Since the pool is in the middle of a device replacement, I would recommend finishing that first, with the array stopped import the pool manually by typing:

 

zpool import media_pool

 

Then watch the replacement status with

 

zpool status

 

once the re-silvering is complete export the pool with

 

zpool export media_pool

 

and post once more the output from

 

zpool import

 

  • Author
5 minutes ago, JorgeB said:

 

 

Since the pool is in the middle of a device replacement, I would recommend finishing that first, with the array stopped import the pool manually by typing:

 

zpool import media_pool

 

Then watch the replacement status with

 

zpool status

 

once the re-silvering is complete export the pool with

 

zpool export media_pool

 

and post once more the output from

 

zpool import

 

The Pool won't mount and when I type that command in and hit enter it just goes to a secound line and is blank.  Nothing is happening.   when I try to start the pool in unraid I get the message that the "Wrong_pool_State" error.

 

 

  • Community Expert
1 hour ago, Ndgame said:

The Pool won't mount and when I type that command in and hit enter it just goes to a secound line and is blank. 

That is normal, it won't show mounted on the GUI, in fact and like mentioned, this should all be done with the array stopped, if you typed that commend post the output from:

 

zpool status

 

  • Author
2 hours ago, JorgeB said:

That is normal, it won't show mounted on the GUI, in fact and like mentioned, this should all be done with the array stopped, if you typed that commend post the output from:

 

zpool status

 

JorgeB,    

 

I must be a little confused.   I have been out of town for the past 2 weeks and I haven't installed any new drives.     When it crashed on me I used a old photo that I took of the pool and made sure the drives were in that order.     So I am not sure why it is in device replacement mode.

 

Just wanted to bring that up.

 

Edited by Ndgame

  • Community Expert
17 minutes ago, Ndgame said:

So I am not sure why it is in device replacement mode.

That must haven happened before the pool was last exported, but since it's the current state, you should let it finish.

 

3 hours ago, JorgeB said:

post the output from:

 

zpool status

To see how the resilver is progressing.

  • Author
1 hour ago, JorgeB said:

That must haven happened before the pool was last exported, but since it's the current state, you should let it finish.

 

To see how the resilver is progressing.

Here is the results after it completed.

 

 

root@Tower:~# zpool export media_pool
root@Tower:~# zpool import
   pool: media_pool
     id: 8629751917395333284
  state: ONLINE
status: Some supported features are not enabled on the pool.
        (Note that they may be intentionally disabled if the
        'compatibility' property is set.)
 action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
 config:

        media_pool       ONLINE
          raidz1-0       ONLINE
            sdp1         ONLINE
            sdq1         ONLINE
            sdr1         ONLINE
            sdk1         ONLINE
            sds1         ONLINE
          raidz1-1       ONLINE
            sdn1         ONLINE
            sdo1         ONLINE
            sdf1         ONLINE
            sdj1         ONLINE
            sdl1         ONLINE
          raidz1-2       ONLINE
            sdi1         ONLINE
            sdh1         ONLINE
            replacing-2  ONLINE
              sdd1       ONLINE
              sdm1       ONLINE
            sde1         ONLINE
            sdg1         ONLINE

   pool: cache
     id: 5497895395851579887
  state: ONLINE
status: Some supported features are not enabled on the pool.
        (Note that they may be intentionally disabled if the
        'compatibility' property is set.)
 action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
 config:

        cache       ONLINE
          sdb1      ONLINE
root@Tower:~# 

  • Author

It still comes up with the "wrong_state" error and I can't mount the pool.   

  • Community Expert
53 minutes ago, Ndgame said:

replacing-2  ONLINE
              sdd1       ONLINE
              sdm1       ONLINE

It's still replacing a device, type:

 

zpool import media_pool

 

wait 5 minutes, and post the output from

 

zpool status

 

  • Author
27 minutes ago, JorgeB said:

It's still replacing a device, type:

 

zpool import media_pool

 

wait 5 minutes, and post the output from

 

zpool status

 

Here a screen shot of the status 

IMG_4524.png

  • Community Expert

Resilver is starting but it's already showing a couple or CRC errors, wait an hour or so and post a new status.

  • Author
6 hours ago, JorgeB said:

Resilver is starting but it's already showing a couple or CRC errors, wait an hour or so and post a new status.

I have another drive I can exchange.   In looking at this which drive would I replace?   
 

 

 

IMG_4539.png

  • Community Expert

The new replacement disk appears to be failing:

 

197 Current_Pending_Sector  -O--C-   001   001   000    -    61944
198 Offline_Uncorrectable   ----C-   001   001   000    -    61944

 

Type this in the CLI:

 

zpool detach media_pool /dev/sdm1

 

Wait until you get the cursor back and then post a new 

zpool status

 

  • Author
2 hours ago, JorgeB said:

The new replacement disk appears to be failing:

 

197 Current_Pending_Sector  -O--C-   001   001   000    -    61944
198 Offline_Uncorrectable   ----C-   001   001   000    -    61944

 

Type this in the CLI:

 

zpool detach media_pool /dev/sdm1

 

Wait until you get the cursor back and then post a new 

zpool status

 

Here are the results.   I did reboot afterwards and tried starting the pool and I am still getting the same error.

 

zpool status
  pool: media_pool
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
        The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(7) for details.
  scan: resilvered 91.2G in 07:00:10 with 0 errors on Tue Aug 27 23:06:02 2024
config:

        NAME        STATE     READ WRITE CKSUM
        media_pool  ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdp1    ONLINE       0     0     0
            sdq1    ONLINE       0     0     0
            sdr1    ONLINE       0     0     0
            sdk1    ONLINE       0     0     0
            sds1    ONLINE       0     0     0
          raidz1-1  ONLINE       0     0     0
            sdn1    ONLINE       0     0     0
            sdo1    ONLINE       0     0     0
            sdf1    ONLINE       0     0     0
            sdj1    ONLINE       0     0     0
            sdl1    ONLINE       0     0     0
          raidz1-2  ONLINE       0     0     0
            sdi1    ONLINE       0     0     0
            sdh1    ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
            sdg1    ONLINE       0     0     0

errors: No known data errors
root@Tower:~# 

  • Author

if you look at this screen shot you will see that SDD1 is in unassigned devices.   

 

image.thumb.png.a2b6366356bf12261f86c47b8d36b8d6.png

  • Community Expert
  • Solution

Now that it's no longer trying to replace a device, you can re-import the pool, to do that:

 

-make sure the pool is exported:

zpool export media_pool

-unassign all devices from that pool

-start the array

-stop the array

-re-assign all devices from that pool (these:)

1 hour ago, Ndgame said:

media_pool  ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sdp1    ONLINE       0     0     0
            sdq1    ONLINE       0     0     0
            sdr1    ONLINE       0     0     0
            sdk1    ONLINE       0     0     0
            sds1    ONLINE       0     0     0
          raidz1-1  ONLINE       0     0     0
            sdn1    ONLINE       0     0     0
            sdo1    ONLINE       0     0     0
            sdf1    ONLINE       0     0     0
            sdj1    ONLINE       0     0     0
            sdl1    ONLINE       0     0     0
          raidz1-2  ONLINE       0     0     0
            sdi1    ONLINE       0     0     0
            sdh1    ONLINE       0     0     0
            sdd1    ONLINE       0     0     0
            sde1    ONLINE       0     0     0
            sdg1    ONLINE       0     0     0

Start array, it should import it, but if it doesn't post new diags

  • Author
11 minutes ago, JorgeB said:

Now that it's no longer trying to replace a device, you can re-import the pool, to do that:

 

-make sure the pool is exported:

zpool export media_pool

-unassign all devices from that pool

-start the array

-stop the array

-re-assign all devices from that pool (these:)

Start array, it should import it, but if it doesn't post new diags

I went through and selected No Device for each slot but when I go to start the array it is greyed out.   Do I need to go to tools and click new config and clear them?

 

image.thumb.png.a688daa341fb6caf8dcfa8045f5c95c0.png

  • Author
34 minutes ago, JorgeB said:

Now that it's no longer trying to replace a device, you can re-import the pool, to do that:

 

-make sure the pool is exported:

zpool export media_pool

-unassign all devices from that pool

-start the array

-stop the array

-re-assign all devices from that pool (these:)

Start array, it should import it, but if it doesn't post new diags

Ok I have all the devices from that pool unassigned, however when I scroll down and click start and I am still getting the message "Wrong Pool State" "media_pool - NO_Devices"

 

So it wont let me start the pool to stop it so that I can reassign the drives.

 

 

image.thumb.png.0fdf80735651ad7b231caf8e68abf6c0.png

tower-diagnostics-20240828-1043.zip.crdownload

  • Author
55 minutes ago, JorgeB said:

Now that it's no longer trying to replace a device, you can re-import the pool, to do that:

 

-make sure the pool is exported:

zpool export media_pool

-unassign all devices from that pool

-start the array

-stop the array

-re-assign all devices from that pool (these:)

Start array, it should import it, but if it doesn't post new diags

This resolved my problem.   I want to thank you for your help and support.   

 

I would like to ask if there is a zpool backup that I should be performing just incase this ever happens again?

 

 

Thanks!

  • Community Expert

You should always have backups of any important data.

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.