ensnare Posted May 3, 2023 Share Posted May 3, 2023 (edited) 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 May 3, 2023 by ensnare Quote Link to comment
JorgeB Posted May 3, 2023 Share Posted May 3, 2023 With rc5 nested datasets should all be mounted, post the output of zfs list and zfs mount Quote Link to comment
ensnare Posted May 3, 2023 Author Share Posted May 3, 2023 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 Quote Link to comment
JorgeB Posted May 4, 2023 Share Posted May 4, 2023 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. Quote Link to comment
ensnare Posted May 4, 2023 Author Share Posted May 4, 2023 (edited) 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 May 4, 2023 by ensnare Quote Link to comment
itimpi Posted May 4, 2023 Share Posted May 4, 2023 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. Quote Link to comment
ensnare Posted May 4, 2023 Author Share Posted May 4, 2023 (edited) 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 May 4, 2023 by ensnare Quote Link to comment
JorgeB Posted May 4, 2023 Share Posted May 4, 2023 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. Quote Link to comment
ensnare Posted May 4, 2023 Author Share Posted May 4, 2023 (edited) 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 May 4, 2023 by ensnare Quote Link to comment
JorgeB Posted May 4, 2023 Share Posted May 4, 2023 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. Quote Link to comment
JorgeB Posted May 18, 2023 Share Posted May 18, 2023 This is fixed with rc6, you can now have exclusive access with nested datasets. 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.