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.

ZFS Pool issue after upgrade to 7.1.1

Featured Replies

I did an upgrade from Unraid 7.0.1 to 7.1.1. Before the upgrade, everything worked fine for weeks. The upgrade went without any problems, after rebooting the server I ran the array and found that one ZFS pool was broken: "Unmountable: wrong or no filesystem".

 

obraz.thumb.png.46352d3efa4f5d14431a8502d96f31ae.png

 

I run from shell:

 

obraz.png.2b7a6a6b3d1e23c3085c41705e2bfdfa.png

 

But it didn't help anything. What should I do?  

On this pool I have the configuration of all the applications (appdata), the whole server now is dead, I can't run anything. 😞

Please help.

 

 

------------ after some time

 

After execute import the pool:

obraz.png.f13b90f778560ceb04e199657438ea08.png

 

But in IU the pool is still unmountable:

 

obraz.thumb.png.20ec62c51a9d60cf506ec1370474b957.png

 

mordor-diagnostics-20250510-1232.zip

Edited by jaclas

  • Community Expert

There's an issue with one of the partitions, post the output from:

 

wipefs /dev/nvme1n1p1

and

fdisk -l /dev/nvme1n1

 

Note that the wipefs command as written won't wipe anything.

  • Author

@JorgeB 

 

root@mordor:~# wipefs /dev/nvme1n1p1
DEVICE    OFFSET       TYPE       UUID                 LABEL
nvme1n1p1 0x4000       zfs_member 11242959326477942528 ssdraid
nvme1n1p1 0x44000      zfs_member 11242959326477942528 ssdraid
nvme1n1p1 0xe8e0c04000 zfs_member 11242959326477942528 ssdraid
nvme1n1p1 0xe8e0c44000 zfs_member 11242959326477942528 ssdraid

root@mordor:~# fdisk -l /dev/nvme1n1
Disk /dev/nvme1n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 980 PRO 1TB                  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot Start        End    Sectors   Size Id Type
/dev/nvme1n1p1       2048 1953525167 1953523120 931.5G 83 Linux

 

Edited by jaclas

  • Community Expert

That looks normal, the easiest solution for now, and since the pool is a mirror, would be to reimport the pool degraded, then wipe the other device and add it back to recreate the mirror, if you want to do that, see below, other option is to downgrade to 7.0.1 for now.

 

Stop the array and offline the device with the "bad partition" by typing 

echo 1 > /sys/block/nvme1n1/device/device/remove

 

Wait a couple of seconds and refresh the GUI, that device should now be missing, start the array with the remaining pool device and it should import the pool degraded

 

If all looks normal, disable array auto-start if enabled, reboot to bring the old device back, check that it's still nvme1n1, since device IDs can change with a reboot, if it changed, adjust the command, then wipe it with:

blkdiscard -f /dev/nvme1n1

 

Now add assign it back to the pool, start array to begin resilver, that should do it.

 

 

  • Author

@JorgeB

Thank you for your advice, I will look into it in a while and follow these instructions.


But I have a question in connection with this:
- why did this situation arise at all, and why doesn't Unraid solve this on its own? When migrating from 6 to 7 there was no such problem. Is this a bug of Unraid and the next version will fix it?

 

 

--- after a few minutes

 

After remove drive (by echo) the device disapear but the array can't be run without it:

 

obraz.png.2045be760e6410e57aab87997506ab4a.png

Edited by jaclas

  • Community Expert
20 minutes ago, jaclas said:

why did this situation arise at all, and why doesn't Unraid solve this on its own? When migrating from 6 to 7 there was no such problem. Is this a bug of Unraid and the next version will fix it?

There's a change in 7.1 on how it detects partitions, but the problem is not Unraid, the partition is not showing all the details as it should with lsblk, and this is a Linux utility, not Unraid, what LT may be able to do is to try and ignore that for partitions that are not working as they should.

 

22 minutes ago, jaclas said:

After remove drive (by echo) the device disapear but the array can't be run without it:

Check

image.png

 

  • Author
1 hour ago, JorgeB said:

That looks normal, the easiest solution for now, and since the pool is a mirror, would be to reimport the pool degraded, then wipe the other device and add it back to recreate the mirror, if you want to do that, see below, other option is to downgrade to 7.0.1 for now.

 

Stop the array and offline the device with the "bad partition" by typing 

echo 1 > /sys/block/nvme1n1/device/device/remove

 

Wait a couple of seconds and refresh the GUI, that device should now be missing, start the array with the remaining pool device and it should import the pool degraded

 

 

 

After start Array the pool is not degraded, it's look ok, but has only one disk now:

 

obraz.thumb.png.3b08df4b8378bb2603dfc79ea6c2aea1.png

 

Is this a good symptom?

 

-- after some time

 

It's getting worse... strange things are happening. Suddenly the disk is too small!

 

obraz.png.2133650b938b4d9ab4bd0a0fc3ad5621.png

 

How is this possible? The two drives had been stacked in an array for many months.

 

obraz.png.756f644559f460ebf4584f677b368763.png

Edited by jaclas

  • Community Expert

Sorry, I missed one device was smaller than the other, they were both showing as 1TB on the screenshot, my suggestion would be to create a new zfs single pool with the smaller device, copy everything from the other pool to that one, then remove the larger pool and that add device to the smaller one to create a mirror.

 

 

 

 

  • Author
1 hour ago, JorgeB said:

Sorry, I missed one device was smaller than the other, they were both showing as 1TB on the screenshot, my suggestion would be to create a new zfs single pool with the smaller device, copy everything from the other pool to that one, then remove the larger pool and that add device to the smaller one to create a mirror.

 

A little uncool 😕


Ok, but I have to get out of it. I have an idea and you tell me if it makes sense or what to improve.
I will create a second pool of ssdraid2 on this second disk, which is now unused. I will recreate the dataset and directory structure on it, copy the data from the first pool. Then I will delete the ssdraid pool, clean this disk and then try to add it to the ssdraid2 pool (extending the pool to the mirror).
Does this make sense? What should I pay attention to?

  • Community Expert
17 hours ago, jaclas said:

Does this make sense?

That should do it, if you are using datasets/snaphots for all shares, you can also use zfs replication to easily transfer everything, including any snapshots

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.