Jump to content

Nested ZFS dataset not visible through Samba share


Recommended Posts

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
Link to comment

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

 

Link to comment

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
Link to comment
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.

Link to comment
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.

Link to comment

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
Link to comment
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.

Link to comment
  • 2 weeks later...

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...