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 Dataset In Limbo?

Featured Replies

I have a ZFS dataset that seems to have gone into limbo i.e all the files are not reachable.  Looking at the GUI it appears to have 3.6GB still sat in it but I cannot see the files, destroy the dataset, rename it or unmount it.  I'd like to get all the files back if possible:

 

image.thumb.png.9709171ef7824806dfd6789b5f0027f2.png

 

Trying to see the files in the GUI:

 

image.png.0882eefe9e42f0267637cff3bac95a67.png

 

Or from CLI:

image.thumb.png.4ed797e85831a7f4f6eb6c78fc4274e7.png

 

GUI Destroy (with force) yields:

image.png.42588efc7da8f77833a6d828b25dd828.png

 

GUI Rename:

image.png.6c3efb7c3ae367323261b8bfdd8fd678.png

 

 

zfs list

image.thumb.png.d46ed3452177aee95de8d048551810d9.png

 

Also tried disabling Docker service and running above - it didn't help.

 

disk2 was recently scrubbed and has no errors.

 

I'm now running Unraid v7 but issue was also there in v6

 

Diags attached

 

Any help to get the files back would be appreciated.

 

Thanks

 

ding-a-ling-diagnostics-20250111-1228.zip

Edited by late4473
Typo

Solved by late4473

  • Community Expert

Unraid doesn't create nested datasets, how was that created?

  • Author

Via the Gui (ZFS Master)

  • Community Expert

Post the output from:

zfs mount

and

zfs get all disk2/media/photo-other

 

  • Community Expert

Not seeing anything out of the ordinary, see if you can replicate that dataset to another one on the same disk, or a different zfs disk or pool, with zfs send/receive

zfs snapshot disk2/media/photo-other@now

zfs send -R disk2/media/photo-other@now | zfs receive pool_name/destination/dataset/name

 

  • Author

It replicated fine!  All 3.6GB.  And I CAN see the files!  Great news - thank you.

 

image.thumb.png.f57646145e4686f035c42ddfe168e69c.png

 

But how do I now delete the original Dataset on disk 2?

 

I have set the immutable flag in the past on the photo-other folder - but as far as I can see this is clear on Disk 2.  Does this give a clue?

 

image.png.1d2cfaa346e70d44f87bd04e71c0b6db.png

 

  • Author

Another clue perhaps - destroy cmd from CLI.  This was after manually creating a normal folder /mnt/disk2/media/photo-other so that 'something' existed.

 

image.png.34fac6ea6c76b74c17fc7390f237fdcf.png

Edited by late4473
Background

  • Community Expert

Try this:

 

zfs set -o canmount=off disk2/media/photo-other  

 

Then reboot and try zpool destroy again

  • Author

Didn't like the -o

 

image.png.5f0f4bbe50b6d442f42c9e8b06ab3107.png

 

And without:

 

image.png.d1c56266b5e90c3007afeac292e394ee.png

 

  • Community Expert

Sorry, typo, does the dataset still show up under zfs list?

  • Author

NP

 

Yes it does:

 

image.thumb.png.6ba7306805a9e0efc468f72fa178d550.png

  • Community Expert

I'm afraid that I don't have any other ideas, if replication got the data back, just ignore that dataset, or backup and re-format the complete disk.

  • Author

Thanks for your help.

 

I'm convinced I've set something 'immutable' - I just cannot find what.

 

I hope no more datasets go this way!

  • Author
  • Solution

To close on this - it WAS to do with an immutable flag...it was just hidden

 

I ended up copying all the data out of my media share and I was left with 2 shares that still had 'operation not permitted' when I tried to destroy them:

 

media/Movie

media/photo-other

 

'media' was an encrypted datashare whereas the nested 'media/photo-other' was not (just saying)

 

I 'unlocked' media via the GUI and this gave a failure message and still showed the open padlock...but magically this enabled me to see the files in photo-other and:

image.png.060c39d53f43268d1693703d2d283b8e.png

 

So the 'masked' files were immutable preventing actions noted in the OP.  So I cleared the flags, deleted the files, then destroyed the datasets.

 

The take away message: take care with encrypted dataset where you (accidentally or otherwise) create files and folders whilst it is locked!

 

I just glad this wasn't a bug where ZFS had let me down.  I'd written my files whilst the dataset was locked, so after my weekly reboot and the dataset was unlocked (via a script on array startup) all my files appeared to disappear - and because I had made them immutable (ransomware protection) the dataset couldn't be destroyed!  Confusing but explainable.

 

Cheers all.

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.