This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

snapshots & Windows previous versions

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
danzi
Starter
Starter
Posts: 66
Joined: 11 Nov 2012 23:24
Location: Budapest
Status: Offline

snapshots & Windows previous versions

Post by danzi »

Hi Nas4free Gurus,

Trying to get .zfs folder contained snapshots to show as Previous Versions in Windows - right click - properties.

I set up the zfs dataset with
Pool_02/text02 snapdir visible local

I do have a few snapshots, created 3 automated ones to be done a few hours apart during the day. They are in the .zfs folder.

When checking the mapped drive from the windows box I can see the share and the files. Can't see the .zfs folder though. The previous versions tab of the properties window thinks a bit - then says there are no previous versions.

Has anyone managed to get it set up? The client is a Win 10 patched to the latest.


Testparm shows the samba share as follows:
[asd]
comment = asd
guest ok = Yes
hide dot files = No
inherit acls = Yes
inherit permissions = Yes
path = /mnt/Pool_02/text02
read only = No
veto files = /.zfs/
vfs objects = shadow_copy2 zfsacl recycle
shadow:localtime = yes
shadow:sort = desc
shadow:snapdirseverywhere = yes
shadow:snapdir = .zfs/snapshot
shadow:format = auto-%Y%m%d-%H%M%S
recycle:subdir_mode = 0700
recycle:directory_mode = 0777
recycle:touch = yes
recycle:versions = yes
recycle:keeptree = yes
recycle:repository = .recycle/%U
nfs4:chown = yes
nfs4:acedup = merge
nfs4:mode = special
----------------------------------------------
Dell T130 - 32Gb ECC - ESXi 6.7
VM Full Instal - 11.2.0.4 - Omnius (revision 6005)
HP/LSI 9121-4i SAS2008 Pass Through mode
2 x 2Tb ZFS mirror
1 x 3Tb UFS
----------------------------------------------

danzi
Starter
Starter
Posts: 66
Joined: 11 Nov 2012 23:24
Location: Budapest
Status: Offline

Re: snapshots & Windows previous versions

Post by danzi »

acl had to be turned off for now. resolved :-)
----------------------------------------------
Dell T130 - 32Gb ECC - ESXi 6.7
VM Full Instal - 11.2.0.4 - Omnius (revision 6005)
HP/LSI 9121-4i SAS2008 Pass Through mode
2 x 2Tb ZFS mirror
1 x 3Tb UFS
----------------------------------------------

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: snapshots & Windows previous versions

Post by tony1 »

I believe it's a samba bug and will be fixed upstream.
you may actually want acl's?
you could try
/bin/ln -sF /mnt/tank/test/.zfs/snapshot/* /mnt/tank/test/.new.zfs/ in System > Advanced > Cron
that should work on windows? in does on linux clients.

Post Reply

Return to “ZFS (only!)”