deliverer Posted June 17, 2023 Share Posted June 17, 2023 (edited) 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 June 17, 2023 by deliverer Quote Link to comment
Solution SimonF Posted June 17, 2023 Solution Share Posted June 17, 2023 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. Quote Link to comment
itimpi Posted June 17, 2023 Share Posted June 17, 2023 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. Quote Link to comment
deliverer Posted June 17, 2023 Author Share Posted June 17, 2023 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? Quote Link to comment
itimpi Posted June 17, 2023 Share Posted June 17, 2023 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. Quote Link to comment
deliverer Posted June 17, 2023 Author Share Posted June 17, 2023 Understood. I should be good to go as it shows enabled on the shares now after I changed the global setting. Appreciate the help! Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 @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? Quote Link to comment
JorgeB Posted December 5, 2023 Share Posted December 5, 2023 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. Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 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? Quote Link to comment
JorgeB Posted December 5, 2023 Share Posted December 5, 2023 It shouldn't take that long, diagnostics will also show the info. Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 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. Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 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? Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 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 Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 Could also be the fact /mnt/user is being used? Here is a screen shot how /mnt/user points to /mnt/zfs_mirror/... Quote Link to comment
itimpi Posted December 5, 2023 Share Posted December 5, 2023 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. Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 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 Quote Link to comment
itimpi Posted December 5, 2023 Share Posted December 5, 2023 It might be worth trying something like ls -d /mnt/*/appdata to see what shows up. Quote Link to comment
deliverer Posted December 5, 2023 Author Share Posted December 5, 2023 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 Quote Link to comment
JorgeB Posted December 6, 2023 Share Posted December 6, 2023 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. Quote Link to comment
Recommended Posts
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.