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.

Exclusive Access - 6.12 - ZFS

Featured Replies

I installed Unraid 6.12 here is an exclusive access option for shares.  Previously I was on a 6.12RC version and the option was there as well but I didn't enable at the time my share was created.  Since I'm completely on ZFS I would like to take advantage of this capability, but it's greyed out on the share.  Is there a way I can enable this without losing my data?  Has anyone ran into this yet?

 

Lastly, I only have a primary ZFS storage defined for the share, no secondary storage.

Edited by deliverer

Solved by SimonF

  • Community Expert
  • Solution
7 minutes ago, deliverer said:

I installed Unraid 6.12 here is an exclusive access option for shares.  Previously I was on a 6.12RC version and the option was there as well but I didn't enable at the time my share was created.  Since I'm completely on ZFS I would like to take advantage of this capability, but it's greyed out on the share.  Is there a way I can enable this without losing my data?  Has anyone ran into this yet?

 

Lastly, I only have a primary ZFS storage defined for the share, no secondary storage.

Likely array would need to be stopped to change as global setting.

  • Community Expert
13 minutes ago, deliverer said:

Is there a way I can enable this without losing my data? 

Enabling this will not affect data.  As was mentioned it first needs to be enabled at the global level before you can activate it for individual shares.  Even then it will only work if the share really DOES only have file on the pool.

  • Author

Found it, thank you.  What do you mean @itimpi?  I thought there were a lot of performance benefits with ZFS based on the release notes if you are only using ZFS as the primary storage with no secondary storage?  

  • Community Expert
12 minutes ago, deliverer said:

I thought there were a lot of performance benefits with ZFS based on the release notes if you are only using ZFS as the primary storage with no secondary storage?

That is true (and you also get performance benefits for other pool types) due to by-passing the Fuse overheads of supporting User Shares.  However if by any chance you have a top level folder with the same name as the share on any other pool or array drive then the Exclusive mode will not be available.

  • Author

Understood.  I should be good to go as it shows enabled on the shares now after I changed the global setting.  Appreciate the help!  

  • 5 months later...
  • Author

@itimpithings have been going good with my configuration, but all of a sudden one of my shares is no longer in exclusive mode.  How would I find the directory? that is causing the issue?  From above, there can't be a directory with the same name correct?

  • Community Expert

Go to shares, click on that share, them "compute" to see where the share exists, it can only exist in that pool for exclusive access to work.

  • Author
46 minutes ago, JorgeB said:

Go to shares, click on that share, them "compute" to see where the share exists, it can only exist in that pool for exclusive access to work.

Been computing for a while now and says please wait.  Any other ideas on how to get the info?

  • Community Expert

It shouldn't take that long, diagnostics will also show the info.

  • Author
43 minutes ago, JorgeB said:

It shouldn't take that long, diagnostics will also show the info.

I'll go the diag route.  been running without completion since you posted to run that compute.

  • Author
1 hour ago, JorgeB said:

It shouldn't take that long, diagnostics will also show the info.

what should I look for in the diag download?

  • Author

Let me ask this question.  I turned snapshots on.  Say my mount is the following.

 

/mnt/zfs_mirror/appdata/AppA

 

if the snapshot is stored here, would this break exclusive mode?

 

/mnt/zfs_mirror/appdata/.zfs/snapshot/023-10-16-050000/AppA

  • Author

Could also be the fact /mnt/user is being used?  Here is a screen shot how /mnt/user points to /mnt/zfs_mirror/...

 

screenshot.jpg.b32e20afdfdc101dc938c5bc45e07c52.jpg

  • Community Expert
55 minutes ago, deliverer said:

Could also be the fact /mnt/user is being used?  Here is a screen shot how /mnt/user points to /mnt/zfs_mirror/

 

It is not /mnt/user that points to the pool, but folders within /mnt/user that correspond to exclusive shares.  This is expected behaviour.

 

  • Author
4 minutes ago, itimpi said:

 

It is not /mnt/user that points to the pool, but folders within /mnt/user that correspond to exclusive shares.  This is expected behaviour.

 

The share where exclusive mode is not working is "appdata". No secondary storage is set

 

I did a search and don't see any other folders with that name; just the one.  Driving me crazy as I can't figure it out.

 

 

root@MEDIA01:/mnt# find / -name appdata*
/usr/local/emhttp/plugins/appdata.backup
/usr/share/bash-completion/completions/appdata-validate
find: ‘/sys/kernel/slab’: Input/output error
find: ‘/proc/25721’: No such file or directory
/mnt/user/appdata
find: failed to read

  • Community Expert

It might be worth trying something like

ls -d /mnt/*/appdata

to see what shows up.

 

  • Author
3 minutes ago, itimpi said:

It might be worth trying something like

ls -d /mnt/*/appdata

to see what shows up.

 

root@MEDIA01:/boot/config/modprobe.d# ls -d /mnt/*/appdata
/mnt/user/appdata/  /mnt/zfs_media/appdata/  /mnt/zfs_mirror/appdata/

 

there it is.  sorry I know this is basic linux stuff but sometimes I struggle even though I've been playing with linux for years.

/mnt/zfs_media/appdata/ <---That is the culprit

 

  • Community Expert
10 hours ago, deliverer said:

/mnt/zfs_media/appdata/ <---That is the culprit

Correct, the same share can only exist in one pool for exclusive access to work.

  • 1 year later...
  • Author

it's happened again, but don't know why this time. When I run the command above, I only see 2 directories listed but they are the same files. Any additional thoughts on what to try? Does enabling NFS security settings cause exclusive mode to turn off?

root@MEDIA01:/mnt/user/appdata# ls -d /mnt/*/appdata

/mnt/user/appdata/ /mnt/zfs_mirror/appdata/

  • Author

actually I think it's related to exporting over NFS based on some additional reading. Ugh, how big of impact is this to a full ZFS implementation?

  • Community Expert
6 hours ago, deliverer said:

Does enabling NFS security settings cause exclusive mode to turn off?

Yes.

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.