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.

Nested ZFS dataset not visible through Samba share

Featured Replies

Hello, loving the ZFS addition to 6.12.0-rc5. I have a zpool called "mediapool" with several datasets:

 

mediapool/media
mediapool/media/movies
mediapool/media/tv

 

"media" is exported as the share in samba, but when I connect to this share, I see "movies" and "tv" but with their contents empty. I can get around this by removing the nested datasets "movies" and "tv" and creating them as simple folders, but I don't want to do that as I can specify different recordsizes for each folder to best match its contents.

 

Are there any flags I can add to smb-extra.conf to have Samba show the contents of these nested datasets? 

 

In the past when I've run straight linux exporting with the default smb.conf, I haven't had this problem before.

 

Edited by ensnare

  • Community Expert

With rc5 nested datasets should all be mounted, post the output of

 

zfs list 

and

zfs mount

 

  • Author

The child datasets appear to be mounted. They just do not appear through Samba

 

root@teracube:~# zfs list | grep mediapool
mediapool                           1001G   178T      295K  /mnt/mediapool
mediapool/media                      425G   178T     14.6G  /mnt/mediapool/media
mediapool/media/magazines            121M   178T      121M  /mnt/mediapool/media/magazines
mediapool/media/movies              51.3G   178T     51.3G  /mnt/mediapool/media/movies
mediapool/media/movies-4k            266G   178T      266G  /mnt/mediapool/media/movies-4k
mediapool/media/music               92.5G   178T     92.5G  /mnt/mediapool/media/music
mediapool/media/newspapers           414M   178T      414M  /mnt/mediapool/media/newspapers
mediapool/media/tv                   236K   178T      236K  /mnt/mediapool/media/tv

root@teracube:~# zfs mount | grep mediapool
mediapool                       /mnt/mediapool
mediapool/media                 /mnt/mediapool/media
mediapool/media/magazines       /mnt/mediapool/media/magazines
mediapool/media/newspapers      /mnt/mediapool/media/newspapers
mediapool/media/tv              /mnt/mediapool/media/tv
mediapool/media/movies-4k       /mnt/mediapool/media/movies-4k
mediapool/media/music           /mnt/mediapool/media/music
mediapool/media/movies          /mnt/mediapool/media/movies

 

  • Community Expert

I think I know what the problem is, unfortunately because you used grep cannot see it in that output, go to Shares and see if the media share is in exclusive mode, or post the diags.

  • Author

Ah - Yes it is in exclusive access. How can I turn that off?

 

I suppose I could add a secondary storage option on the main array? But what if I don't ever want files stored there

 

Additionally this affects mount points brought in through docker

Edited by ensnare

  • Community Expert
51 minutes ago, ensnare said:

Ah - Yes it is in exclusive access. How can I turn that off?

That is turned off automatically if files exist on both the primary and secondary storage locations.   However you probably do NOT want it turned off as the whole idea of exclusive mode is to give better performance for shares which are only on a given pool.

  • Author

Thanks for the fast reply. So is there a way to keep exclusive mode on, but also show the nested datasets? I guess I am unsure what to do here. 

Edited by ensnare

  • Community Expert
1 minute ago, ensnare said:

So is there a way to keep exclusive mode on, but also show the nested datasets?

Not at the moment, unclear yet if this is an easy fix, but for now you can have one or the other, note that with exclusive mode you can still access the nested datasets using the disk share, like before, it's that's a possibility for your use case.

  • Author

Thank you. Can you share more about the performance penalty for using exclusive vs. non-exclusive mode? Are there any other trade-offs?

 

I suppose as a workaround I could export the share via smb-extras.conf and turn off sharing via Unraid UI?

Edited by ensnare

  • Community Expert
45 minutes ago, ensnare said:

Are there any other trade-offs?

Basically it's just the performance difference, it can be more noticeable or not, in part depending on the hardware used.

 

46 minutes ago, ensnare said:

I suppose as a workaround I could export the share via smb-extras.conf and turn off sharing via Unraid UI?

That should work, or like mentioned by using the disk share instead.

  • 2 weeks later...
  • Community Expert

This is fixed with rc6, you can now have exclusive access with nested datasets.

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.