question about why unix extensions = no is recommended when using samba + gpfs?
Hi all, I was wondering why here : https://www.mail-archive.com/gpfsug-discuss@gpfsug.org/msg00121.html ...and several other forums, wikis, etc it's recommended to use : unix extensions = no for samba setups with GPFS? This disables the ability for linux/unix samba clients to see the actual mode bits on files. Thanks, Sabuj
On Wed, 2014-03-12 at 19:07 -0500, Sabuj Pattanayek wrote:
Hi all,
I was wondering why here :
https://www.mail-archive.com/gpfsug-discuss@gpfsug.org/msg00121.html
...and several other forums, wikis, etc it's recommended to use :
unix extensions = no
for samba setups with GPFS? This disables the ability for linux/unix samba clients to see the actual mode bits on files.
Because it messes horribly with NFSv4 ACL's, and MacOSX clients in particular do "bad things" using Unix extensions that break group shares. Therefore unless you absolutely need it which most people don't then disabling it is a sensible choice to avoid wasting hours of your time trying to work out why everything is broken. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Hi, We tried the nfsv4 acl route and it didn't work out so well for us when files/directories would get promoted to nfsv4 acl's (but maybe I'll revisit it when I get a chance), I had unix extensions turned off at that time. We're using for our main template share : vfs objects = shadow_copy2 gpfs acl_xattr fileid gpfs:acl = no to pass acl's to acl_xattr and it seems to work ok and tivoli is able to backup the security.NTACL extended attribute and restore it without problems. It'll end up using posix ACLs assigning default acl's for the users/groups that are assigned to the files/dirs . All of it breaks umask and other things though, which isn't that big of a deal with samba's ability to force modes for particular shares. Regarding unix extensions, it seems there are problems either way (or perhaps were?), but the problems may be "more" severe if unix extensions are turned off? http://wiki.phys.ethz.ch/readme/mac_samba I'll need to do some more testing with the latest OSX in that case since it looks like many of these posts were written years ago. We are also running the latest stable samba 4.1.x from sernet. But it's good to know that unix extensions = no is not because of some requirement in GPFS. Thanks, Sabuj On Thu, Mar 13, 2014 at 5:09 AM, Jonathan Buzzard <jonathan@buzzard.me.uk>wrote:
On Wed, 2014-03-12 at 19:07 -0500, Sabuj Pattanayek wrote:
Hi all,
I was wondering why here :
https://www.mail-archive.com/gpfsug-discuss@gpfsug.org/msg00121.html
...and several other forums, wikis, etc it's recommended to use :
unix extensions = no
for samba setups with GPFS? This disables the ability for linux/unix samba clients to see the actual mode bits on files.
Because it messes horribly with NFSv4 ACL's, and MacOSX clients in particular do "bad things" using Unix extensions that break group shares. Therefore unless you absolutely need it which most people don't then disabling it is a sensible choice to avoid wasting hours of your time trying to work out why everything is broken.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Thu, 2014-03-13 at 07:45 -0500, Sabuj Pattanayek wrote:
Hi,
We tried the nfsv4 acl route and it didn't work out so well for us when files/directories would get promoted to nfsv4 acl's (but maybe I'll revisit it when I get a chance), I had unix extensions turned off at that time. We're using for our main template share :
vfs objects = shadow_copy2 gpfs acl_xattr fileid
gpfs:acl = no
That is an "unsual" way to run an Samba/GPFS file server so don't expect much help from anyone. The vast majority use GPFS in NFSv4 ACL only mode with the Samba GPFS VFS module doing all the mapping through to the NFSv4 ACLs to do all the rich permission.
to pass acl's to acl_xattr and it seems to work ok and tivoli is able to backup the security.NTACL extended attribute and restore it without problems. It'll end up using posix ACLs assigning default acl's for the users/groups that are assigned to the files/dirs . All of it breaks umask and other things though, which isn't that big of a deal with samba's ability to force modes for particular shares.
That is a "wacked out" setup if you ask me.
Regarding unix extensions, it seems there are problems either way (or perhaps were?), but the problems may be "more" severe if unix extensions are turned off?
Yeah changing Unix permissions on a SMB share does not work. Rather like a real Windows file server don't you think? Besides which on a group share with Unix extensions on the MacOS X client (or at least did) goes and changes the permission and ownership on the file and breaks a "group" share. That is one where a group of people have equal read/write access to a shared area. Working group shares are a million times more important that the odd power user being able to muck about with file permissions. Note this only effects MacOS because Linux has the tools to see and manipulate SMB ACL's properly.
I'll need to do some more testing with the latest OSX in that case since it looks like many of these posts were written years ago. We are also running the latest stable samba 4.1.x from sernet. But it's good to know that unix extensions = no is not because of some requirement in GPFS.
It also does not play well with case insensitive = yes in my experience. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
So I've been using the recommended gpfs:acl = yes mode for a while on windows/cifs/smb only shares and today came across a bug where Microsoft Office (2010, haven't tried other versions) on Windows 7/8 refuses to save or save as. It can clearly create tmp files (e.g. those ~$... files when it opens a file) and I can right click -> create a new file, edit files in notepad/wordpad, drag and drop files between explorer windows but whenever I try to save a doc/docx or xls/xlsx file it always throws the error dialog : There has been a network or file permission error. The network connection may be lost. (mapped drive:\folder\fileName.docx) ( OK ) ( Help ) Was this information helpful? If i switch to gpfs:acl = no and then use vfs_acl_xattr instead it works fine. MS Office on OSX does not have this problem It's similar to this issue : https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... Anyone have any ideas without having to use acl_xattr? Again I'm using sernet samba 4.1.6 and gpfs 3.5.0.11 . Thanks, Sabuj
Seems like the workaround for now is to set : gpfs:sharemodes = no https://bugzilla.samba.org/show_bug.cgi?id=6762 Could be a regression? Haven't tried 3.5.0.17 yet, but we will be upgrading to that soon. On Wed, Apr 2, 2014 at 4:05 PM, Sabuj Pattanayek <sabujp@gmail.com> wrote:
So I've been using the recommended gpfs:acl = yes mode for a while on windows/cifs/smb only shares and today came across a bug where Microsoft Office (2010, haven't tried other versions) on Windows 7/8 refuses to save or save as. It can clearly create tmp files (e.g. those ~$... files when it opens a file) and I can right click -> create a new file, edit files in notepad/wordpad, drag and drop files between explorer windows but whenever I try to save a doc/docx or xls/xlsx file it always throws the error dialog :
There has been a network or file permission error. The network connection may be lost. (mapped drive:\folder\fileName.docx)
( OK ) ( Help )
Was this information helpful?
If i switch to gpfs:acl = no and then use vfs_acl_xattr instead it works fine. MS Office on OSX does not have this problem
It's similar to this issue :
https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0...
Anyone have any ideas without having to use acl_xattr? Again I'm using sernet samba 4.1.6 and gpfs 3.5.0.11 .
Thanks, Sabuj
On 02/04/14 22:24, Sabuj Pattanayek wrote:
Seems like the workaround for now is to set :
gpfs:sharemodes = no
That is doggy ancient ticket, and fixed. # store DOS attributes in extended attributes (vfs_gpfs then stores them in the file system) ea support = yes store dos attributes = yes map readonly = no map archive = no map system = no map hidden = no Will most likely fix it for you. It is down to Office 2007 onwards trying to preserve ACL's on a save. So you should find a save as works, no ACL's to preserve but saving an existing file does not. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Yup, I had those settings set already, and neither save as or save worked. On Wed, Apr 2, 2014 at 4:36 PM, Jonathan Buzzard <jonathan@buzzard.me.uk>wrote:
On 02/04/14 22:24, Sabuj Pattanayek wrote:
Seems like the workaround for now is to set :
gpfs:sharemodes = no
That is doggy ancient ticket, and fixed.
# store DOS attributes in extended attributes (vfs_gpfs then stores them in the file system) ea support = yes store dos attributes = yes map readonly = no map archive = no map system = no map hidden = no
Will most likely fix it for you. It is down to Office 2007 onwards trying to preserve ACL's on a save. So you should find a save as works, no ACL's to preserve but saving an existing file does not.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 02/04/14 22:42, Sabuj Pattanayek wrote:
Yup, I had those settings set already, and neither save as or save worked.
You need to provide more information. Much more of your smb.conf, what OS, Samba, and GPFS, along with your GPFS config. Have you tested that the DOS attributes are correctly being stored in the GPFS file system? It explicitly does work. The issues are all around Office trying to preserve ACL's which the vast majority of software does not. Are you running with NFSv4 ACL's *ONLY* on GPFS? Using Posix or Posix and NFSv4 together is likely to lead to problems. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
On Wed, Apr 2, 2014 at 5:08 PM, Jonathan Buzzard <jonathan@buzzard.me.uk>wrote:
On 02/04/14 22:42, Sabuj Pattanayek wrote:
Yup, I had those settings set already, and neither save as or save worked.
You need to provide more information. Much more of your smb.conf, what OS, Samba, and GPFS, along with your GPFS config.
rhel 6.3, 2.6.32-279.31.1.el6.x86_64, sernet samba 4.1.6, ctdb 1.0.114.7-1, gpfs 3.5.0.11, gpfs config farther down : ### smb.conf ### [global] workgroup = DOMAIN netbios name = gpfs-smb-server password server = dc-1.ds.domain.edu dc-2.ds.domain.edu dc-3.ds.domain.edu realm = DS.DOMAIN.EDU security = ads encrypt passwords = yes allow trusted domains = No idmap config *:backend = tdb idmap config *:range = 4000000 - 5000000 idmap config DOMAIN : backend = rid idmap config DOMAIN : range = 5000001 - 9000000 template shell = /bin/bash template homedir = /home/%U winbind offline logon = false winbind trusted domains only = no winbind use default domain = yes # ldap handles users winbind enum users = no winbind enum groups = no winbind expand groups = 3 server string = SMB log file = /var/log/samba/log.%m max log size = 50 passdb backend = tdbsam clustering = yes unix extensions = yes include = /etc/samba/template_shares.conf include = /etc/samba/test_shares.conf ### template_shares.conf ### [template_nfs4] comment = GPFS Cluster on smb using %R protocol path = /dors/testfs writeable = yes vfs objects = shadow_copy2 gpfs fileid ea support = yes store dos attributes = yes access based share enum = yes map readonly = no map archive = no map system = no mangled names = no force unknown acl user = yes locking = yes notify:inotify = no shadow:snapdir = .snapshots shadow:localtime = yes shadow:format = %Y%m%d_%H:%M shadow:fixinodes = yes shadow:snapdirseverywhere = yes shadow:sort = desc # vfs_gpfs settings gpfs:acl = yes gpfs:winattr = yes gpfs:dfreequota = yes nfs4:mode = simple nfs4:chown = yes nfs4:acedup = merge ## needed to turn off sharemodes, msoffice on windows couldn't save # https://bugzilla.samba.org/show_bug.cgi?id=6762 gpfs:sharemodes = no gpfs:leases = yes posix locking = yes kernel oplocks = no kernel share modes = yes fileid:algorithm = fsname
Have you tested that the DOS attributes are correctly being stored in the GPFS file system?
No, but they're all set to no, including map hidden which was missing above but according to man smb.conf is by default set to no, so wouldn't these not be mapped/stored in GPFS anyways? What EA file would these be stored in if these were set to yes?
It explicitly does work. The issues are all around Office trying to preserve ACL's which the vast majority of software does not.
Understood, but again, with the setup above, I had to turn sharemodes off to get it to work. Setting it to no was mentioned in a comment in that samba bug by Volker, i.e. I just didn't think of that myself, so there must be some correlation.
Are you running with NFSv4 ACL's *ONLY* on GPFS? Using Posix or Posix and NFSv4 together is likely to lead to problems.
posix + nfs4, it can be problematic but we're working around it. # mmlsfs dors flag value description ------------------- ------------------------ ----------------------------------- -f 2048 Minimum fragment size in bytes (system pool) 32768 Minimum fragment size in bytes (other pools) -i 512 Inode size in bytes -I 32768 Indirect block size in bytes -m 1 Default number of metadata replicas -M 2 Maximum number of metadata replicas -r 1 Default number of data replicas -R 2 Maximum number of data replicas -j scatter Block allocation type -D nfs4 File locking semantics in effect -k all ACL semantics in effect -n 2000 Estimated number of nodes that will mount file system -B 65536 Block size (system pool) 1048576 Block size (other pools) -Q user;group;fileset Quotas enforced none Default quotas enabled --filesetdf Yes Fileset df enabled? -V 13.23 (3.5.0.7) File system version --create-time Thu Nov 7 11:29:46 2013 File system creation time -u Yes Support for large LUNs? -z No Is DMAPI enabled? -L 16777216 Logfile size -E Yes Exact mtime mount option -S No Suppress atime mount option -K whenpossible Strict replica allocation option --fastea Yes Fast external attributes enabled? --inode-limit 524288000 Maximum number of inodes -P system;capacity;fast Disk storage pools in file system -d 3T_7K_0;3T_7K_1;3T_7K_2;3T_7K_3;3T_7K_4;3T_7K_5;3T_7K_6;3T_7K_7;3T_7K_8;3T_7K_9;3T_7K_10;3T_7K_11;3T_7K_12;3T_7K_13;900GB_10K_0;900GB_10K_1;900GB_10K_2;900GB_10K_3; -d 900GB_10K_4;900GB_10K_5;900GB_10K_6;900GB_10K_7;900GB_10K_8;900GB_10K_9;900GB_10K_10;900GB_10K_11;900GB_10K_12;900GB_10K_13;900GB_10K_14;900GB_10K_15;900GB_10K_16; -d 900GB_10K_17;900GB_10K_18;900GB_10K_19;400GB_SSD_0;400GB_SSD_1;400GB_SSD_2;400GB_SSD_3;400GB_SSD_4 Disks in file system --perfileset-quota yes Per-fileset quota enforcement -A yes Automatic mount option -o none Additional mount options -T /dors Default mount point --mount-priority 0 Mount priority A funny thing I noticed was that if I set security settings through the security properties dialog in windows on a share with gpfs:acl = yes, it sets posix acl's and doesn't automatically promote the acl's to nfs4. The top level acl on a share directory has to be set to nfs4 before you set users loose on it and at least one acl (a user / group on that directory) has to have DirInherit:FileInherit otherwise files and directories beneath that directory don't get set with nfs4 acl's which then breaks things like Windows being able to discern the difference between full and modify privileges (since posix only provides rwx, samba doesn't seem to care about the 'c' acl provided by gpfs). Several other strange behaviors I noticed : * Turning inheritance off through the windows security -> advanced dialog doesn't work unless you delete (or add I guess, but didn't try adding an acl) some acl, either the group/user that you're trying to disable inheritance for (which then means you have to re-add that group with inheritance disabled) or some other group / user that you don't care about. For example to disable inheritance on a directory for a group, you'd add a dummy user/group acl to that directory, disable inheritance for the group/user you want to disable inheritance for, then delete that dummy group, otherwise clicking apply -> ok, backing out and then going back in doesn't change the inheritance settings in either the advanced security dialog or FileInherit, DirInherit, or Inherit acls in the output of mmgetacl. * robocopy y: z: /mir /COPY:DATSO throws "something is wrong with the device. Failed to set NTACL ... " error 31 errors if your'e trying to copy ACLs and data from some other share, but it still ends up copying the ACL's properly! The problem is that robocopy doesn't complete, it only descends one directory level at a time per robocopy run when it throws all these errors. So you have to keep running robocopy in a loop from a .bat script or manually keep running it until you think it's actually copied over all the ACL's. This doesn't happen with acl_xattr, but acl_xattr has other issues as well. * Does any of the auditing tab stuff work? Samba has auditing via log files, but this seems to be something that's stored in NTFS? * I haven't tried anything from the quota tab, can it actually set GPFS quotas somehow? I guess in windows you can set per directory quotas, the closest thing would be filesets linked to directories with user/group quotas within that fileset, but I don't think that tab is going to let you do that. Thanks, Sabuj
Forgot one, ### test_shares.conf ### [testfs] comment = GPFS Cluster on DORS using %R protocol path = /dors/testfs copy = template_nfs4 admin users = "DOMAIN\userImLoggingInWith" It doesn't matter if I login with an "admin user" or a regular user allowed by NFS4 (NTACLs) set via the security tab. The same problems happen with save/save as unless gpfs:sharemodes = no . On Wed, Apr 2, 2014 at 9:08 PM, Sabuj Pattanayek <sabujp@gmail.com> wrote:
On Wed, Apr 2, 2014 at 5:08 PM, Jonathan Buzzard <jonathan@buzzard.me.uk>wrote:
On 02/04/14 22:42, Sabuj Pattanayek wrote:
Yup, I had those settings set already, and neither save as or save worked.
You need to provide more information. Much more of your smb.conf, what OS, Samba, and GPFS, along with your GPFS config.
rhel 6.3, 2.6.32-279.31.1.el6.x86_64, sernet samba 4.1.6, ctdb 1.0.114.7-1, gpfs 3.5.0.11, gpfs config farther down :
### smb.conf ###
[global] workgroup = DOMAIN netbios name = gpfs-smb-server password server = dc-1.ds.domain.edu dc-2.ds.domain.edu dc-3.ds.domain.edu realm = DS.DOMAIN.EDU security = ads encrypt passwords = yes allow trusted domains = No idmap config *:backend = tdb idmap config *:range = 4000000 - 5000000 idmap config DOMAIN : backend = rid idmap config DOMAIN : range = 5000001 - 9000000 template shell = /bin/bash template homedir = /home/%U winbind offline logon = false winbind trusted domains only = no winbind use default domain = yes # ldap handles users winbind enum users = no winbind enum groups = no winbind expand groups = 3 server string = SMB log file = /var/log/samba/log.%m max log size = 50 passdb backend = tdbsam
clustering = yes unix extensions = yes
include = /etc/samba/template_shares.conf include = /etc/samba/test_shares.conf
### template_shares.conf ###
[template_nfs4] comment = GPFS Cluster on smb using %R protocol path = /dors/testfs writeable = yes vfs objects = shadow_copy2 gpfs fileid ea support = yes store dos attributes = yes access based share enum = yes map readonly = no map archive = no map system = no mangled names = no force unknown acl user = yes locking = yes notify:inotify = no shadow:snapdir = .snapshots shadow:localtime = yes shadow:format = %Y%m%d_%H:%M shadow:fixinodes = yes shadow:snapdirseverywhere = yes shadow:sort = desc # vfs_gpfs settings gpfs:acl = yes gpfs:winattr = yes gpfs:dfreequota = yes nfs4:mode = simple nfs4:chown = yes nfs4:acedup = merge ## needed to turn off sharemodes, msoffice on windows couldn't save # https://bugzilla.samba.org/show_bug.cgi?id=6762 gpfs:sharemodes = no gpfs:leases = yes posix locking = yes kernel oplocks = no kernel share modes = yes fileid:algorithm = fsname
Have you tested that the DOS attributes are correctly being stored in the GPFS file system?
No, but they're all set to no, including map hidden which was missing above but according to man smb.conf is by default set to no, so wouldn't these not be mapped/stored in GPFS anyways? What EA file would these be stored in if these were set to yes?
It explicitly does work. The issues are all around Office trying to preserve ACL's which the vast majority of software does not.
Understood, but again, with the setup above, I had to turn sharemodes off to get it to work. Setting it to no was mentioned in a comment in that samba bug by Volker, i.e. I just didn't think of that myself, so there must be some correlation.
Are you running with NFSv4 ACL's *ONLY* on GPFS? Using Posix or Posix and NFSv4 together is likely to lead to problems.
posix + nfs4, it can be problematic but we're working around it.
# mmlsfs dors flag value description ------------------- ------------------------ ----------------------------------- -f 2048 Minimum fragment size in bytes (system pool) 32768 Minimum fragment size in bytes (other pools) -i 512 Inode size in bytes -I 32768 Indirect block size in bytes -m 1 Default number of metadata replicas -M 2 Maximum number of metadata replicas -r 1 Default number of data replicas -R 2 Maximum number of data replicas -j scatter Block allocation type -D nfs4 File locking semantics in effect -k all ACL semantics in effect -n 2000 Estimated number of nodes that will mount file system -B 65536 Block size (system pool) 1048576 Block size (other pools) -Q user;group;fileset Quotas enforced none Default quotas enabled --filesetdf Yes Fileset df enabled? -V 13.23 (3.5.0.7) File system version --create-time Thu Nov 7 11:29:46 2013 File system creation time -u Yes Support for large LUNs? -z No Is DMAPI enabled? -L 16777216 Logfile size -E Yes Exact mtime mount option -S No Suppress atime mount option -K whenpossible Strict replica allocation option --fastea Yes Fast external attributes enabled? --inode-limit 524288000 Maximum number of inodes -P system;capacity;fast Disk storage pools in file system -d 3T_7K_0;3T_7K_1;3T_7K_2;3T_7K_3;3T_7K_4;3T_7K_5;3T_7K_6;3T_7K_7;3T_7K_8;3T_7K_9;3T_7K_10;3T_7K_11;3T_7K_12;3T_7K_13;900GB_10K_0;900GB_10K_1;900GB_10K_2;900GB_10K_3; -d 900GB_10K_4;900GB_10K_5;900GB_10K_6;900GB_10K_7;900GB_10K_8;900GB_10K_9;900GB_10K_10;900GB_10K_11;900GB_10K_12;900GB_10K_13;900GB_10K_14;900GB_10K_15;900GB_10K_16; -d 900GB_10K_17;900GB_10K_18;900GB_10K_19;400GB_SSD_0;400GB_SSD_1;400GB_SSD_2;400GB_SSD_3;400GB_SSD_4 Disks in file system --perfileset-quota yes Per-fileset quota enforcement -A yes Automatic mount option -o none Additional mount options -T /dors Default mount point --mount-priority 0 Mount priority
A funny thing I noticed was that if I set security settings through the security properties dialog in windows on a share with gpfs:acl = yes, it sets posix acl's and doesn't automatically promote the acl's to nfs4. The top level acl on a share directory has to be set to nfs4 before you set users loose on it and at least one acl (a user / group on that directory) has to have DirInherit:FileInherit otherwise files and directories beneath that directory don't get set with nfs4 acl's which then breaks things like Windows being able to discern the difference between full and modify privileges (since posix only provides rwx, samba doesn't seem to care about the 'c' acl provided by gpfs).
Several other strange behaviors I noticed :
* Turning inheritance off through the windows security -> advanced dialog doesn't work unless you delete (or add I guess, but didn't try adding an acl) some acl, either the group/user that you're trying to disable inheritance for (which then means you have to re-add that group with inheritance disabled) or some other group / user that you don't care about. For example to disable inheritance on a directory for a group, you'd add a dummy user/group acl to that directory, disable inheritance for the group/user you want to disable inheritance for, then delete that dummy group, otherwise clicking apply -> ok, backing out and then going back in doesn't change the inheritance settings in either the advanced security dialog or FileInherit, DirInherit, or Inherit acls in the output of mmgetacl.
* robocopy y: z: /mir /COPY:DATSO throws "something is wrong with the device. Failed to set NTACL ... " error 31 errors if your'e trying to copy ACLs and data from some other share, but it still ends up copying the ACL's properly! The problem is that robocopy doesn't complete, it only descends one directory level at a time per robocopy run when it throws all these errors. So you have to keep running robocopy in a loop from a .bat script or manually keep running it until you think it's actually copied over all the ACL's. This doesn't happen with acl_xattr, but acl_xattr has other issues as well.
* Does any of the auditing tab stuff work? Samba has auditing via log files, but this seems to be something that's stored in NTFS?
* I haven't tried anything from the quota tab, can it actually set GPFS quotas somehow? I guess in windows you can set per directory quotas, the closest thing would be filesets linked to directories with user/group quotas within that fileset, but I don't think that tab is going to let you do that.
Thanks, Sabuj
On 03/04/14 03:08, Sabuj Pattanayek wrote: [SNIP]
include = /etc/samba/template_shares.conf include = /etc/samba/test_shares.conf
That is stupid, you need to use registry share definitions with CTDB. Having them in files is bad bad bad.
### template_shares.conf ###
[template_nfs4] comment = GPFS Cluster on smb using %R protocol path = /dors/testfs writeable = yes vfs objects = shadow_copy2 gpfs fileid
Hum, might have changed in Samba 4.x but in Samba 3.5/3.6 you can only have one vfs objects line in the entire smb.conf file and I did not thing it was a per share option either. Well you can have more than one, but the later ones just override the previous ones.
ea support = yes store dos attributes = yes access based share enum = yes map readonly = no map archive = no map system = no mangled names = no force unknown acl user = yes locking = yes notify:inotify = no shadow:snapdir = .snapshots shadow:localtime = yes shadow:format = %Y%m%d_%H:%M shadow:fixinodes = yes shadow:snapdirseverywhere = yes shadow:sort = desc # vfs_gpfs settings gpfs:acl = yes gpfs:winattr = yes gpfs:dfreequota = yes nfs4:mode = simple nfs4:chown = yes nfs4:acedup = merge ## needed to turn off sharemodes, msoffice on windows couldn't save # https://bugzilla.samba.org/show_bug.cgi?id=6762 gpfs:sharemodes = no
I am not well versed with Samba 4.x but a quick check says that share modes = yes conflicts with SMB2 and durable handles. Given in Samba 4.1 max protocol is SMB2 by default ... I have not seen a definitive answer anywhere about whether SMB2 and CTDB can be used in combination and if so what versions of CTDB/Samba one should be using however.
gpfs:leases = yes posix locking = yes kernel oplocks = no kernel share modes = yes fileid:algorithm = fsname
Have you tested that the DOS attributes are correctly being stored in the GPFS file system?
No, but they're all set to no, including map hidden which was missing above but according to man smb.conf is by default set to no, so wouldn't these not be mapped/stored in GPFS anyways? What EA file would these be stored in if these were set to yes?
They are not stored in an extended attribute they are stored in the GPFS file system itself. The various settings that I listed are so that Samba tells the GPFS VFS module to store them in the extended attributes. Howeve the GPFS VFS module then goes and stores/retrieves them directly from the file system. It's all part of GPFS being able to run on Windows. There are genuine file creation times as well I suggest that you explicitly test and make sure it is working.
It explicitly does work. The issues are all around Office trying to preserve ACL's which the vast majority of software does not.
Understood, but again, with the setup above, I had to turn sharemodes off to get it to work. Setting it to no was mentioned in a comment in u that samba bug by Volker, i.e. I just didn't think of that myself, so there must be some correlation.
Are you running with NFSv4 ACL's *ONLY* on GPFS? Using Posix or Posix and NFSv4 together is likely to lead to problems.
posix + nfs4, it can be problematic but we're working around it.
Put simply no you are not working around it, it is the cause of your issues with Office. More precisely the issue with Office is down to how the mapping of NTFS ACLS to GPFS is working, because storing the NTFS ACLS in extended attributes works. I am telling you don't mix Posix and NFSv4 ACL's in GPFS it won't work. Whether you listen is up to you. I suggest you use a development/test GPFS cluster to verify it. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
include = /etc/samba/template_shares.conf
include = /etc/samba/test_shares.conf
That is stupid, you need to use registry share definitions with CTDB. Having them in files is bad bad bad.
Will look into it.
### template_shares.conf ###
[template_nfs4] comment = GPFS Cluster on smb using %R protocol path = /dors/testfs writeable = yes vfs objects = shadow_copy2 gpfs fileid
Hum, might have changed in Samba 4.x but in Samba 3.5/3.6 you can only have one vfs objects line in the entire smb.conf file and I did not thing it was a per share option either. Well you can have more than one, but the later ones just override the previous ones.
Yup, it's definitely per share in 4.1.x and the later ones probably do override the previous one if the same vfs functions are overloaded, but in the case above there's no overlap and shadow_copy2 and gpfs do work.
I am not well versed with Samba 4.x but a quick check says that share modes = yes conflicts with SMB2 and durable handles. Given in Samba 4.1 max protocol is SMB2 by default ...
I was able to do SMB2 (at least in terms of performance over SMBv1) with sharemodes = yes or sharemodes = no. Durable / persistent handles don't work in that active read/write I/O will not continue if smb/ctdb is disabled on one of the samba nodes. The client will not have to re-map/re-connect but any active I/O other than file deletions and perhaps metadata operations will continue unaffected.
I have not seen a definitive answer anywhere about whether SMB2 and CTDB can be used in combination and if so what versions of CTDB/Samba one should be using however.
I'm using ctdb 1.0.114 packaged by sernet along with sernet samba 4.1.6 . They said they would release re-packaged v2 rpm at some point. Again, SMB2 works in so far as I can tell with its much improved read/write performance over SMB1.
No, but they're all set to no, including map hidden which was missing above but according to man smb.conf is by default set to no, so wouldn't these not be mapped/stored in GPFS anyways? What EA file would these be stored in if these were set to yes?
They are not stored in an extended attribute they are stored in the GPFS file system itself. The various settings that I listed are so that Samba tells the GPFS VFS module to store them in the extended attributes. Howeve the GPFS VFS module then goes and stores/retrieves them directly from the file system. It's all part of GPFS being able to run on Windows. There are genuine file creation times as well
I suggest that you explicitly test and make sure it is working.
Yup, they're working, they're being stored wherever they're supposed to be stored in GPFS itself. I set a file to hidden and it disappeared from the explorer window. Went into a command prompt and ran dir/a and it appeared. Then ran mmlsattr -L on the file and it showed ARCHIVE HIDDEN in the Windows attributes section.
Put simply no you are not working around it, it is the cause of your issues with Office. More precisely the issue with Office is down to how the mapping of NTFS ACLS to GPFS is working, because storing the NTFS ACLS in extended attributes works. I am telling you don't mix Posix and NFSv4 ACL's in GPFS it won't work. Whether you listen is up to you.
It doesn't work if the ACL on the file is POSIX or has been promoted to NFS4. In any case, we have need for the ACLs support to be both POSIX and NFS4 where needed for the window shares and we can't/won't split up the filesystem.
I suggest you use a development/test GPFS cluster to verify it.
Yes, we're going to need a test/dev cluster for testing these for future upgrades, etc so I will try an FS that's pure nfs4 ACLs only and see if it behaves any differently.
I was able to do SMB2 (at least in terms of performance over SMBv1) with
sharemodes = yes or sharemodes = no. Durable / persistent handles don't work in that active read/write I/O will not continue if smb/ctdb is disabled on one of the samba nodes. The client will not have to re-map/re-connect but any active I/O other than file deletions and perhaps metadata operations will continue unaffected.
should be "any active I/O other than file deletions and perhaps metadata operations will be disrupted"
On 03/04/14 18:23, Sabuj Pattanayek wrote: [SNIP]
It doesn't work if the ACL on the file is POSIX or has been promoted to NFS4. In any case, we have need for the ACLs support to be both POSIX and NFS4 where needed for the window shares and we can't/won't split up the filesystem.
Client side Linux has support NFSv4 or more specifically NFSv4.1 for some time. The issue is the fact that the RichACL patches seem to have been stuck in limbo for years now. Not that I have tried it even in development, but there is an alternative to the Linux kernel NFS server which sucks anyway as visibility into what is going on is near none existent. It's the NFS-Ganesha server and according to the documentation it supports full NFSv4.1 and has GPFS support for a backend file system. https://github.com/nfs-ganesha/nfs-ganesha/wiki That could potentially remove your "requirement" for Posix ACL's. That is you could go full NFSv4 ACL's in GPFS and an area could be accessed either by NFSv4 or SMB without the ACL's in GPFS getting mucked up. It is however not clear if NFSv4 ACL's are supported yet. I note that the latest versions of CTDB have support for NFS-Ganesha.
I suggest you use a development/test GPFS cluster to verify it.
Yes, we're going to need a test/dev cluster for testing these for future upgrades, etc so I will try an FS that's pure nfs4 ACLs only and see if it behaves any differently.
I never cease to be amazed that people are doing large scale file servers with Linux/GPFS/Samba and don't have a test/dev cluster. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
It's the NFS-Ganesha server and according to the documentation it supports full NFSv4.1 and has GPFS support for a backend file system.
Yup, that could be a future possibility, but getting everyone who's using the system to move to non-posix ACLs (whom I have no control over) won't work. NFSv3 and POSIX + POSIX extended ACLs aren't going anywhere soon because of their simplicity and availability.
I never cease to be amazed that people are doing large scale file servers with Linux/GPFS/Samba and don't have a test/dev cluster.
We do, using it for testing hasn't been necessary since our production system was our test system since it wasn't being used in production, the samba part is still only being used very minimally and we've done as much testing as we could prior to letting a few users on who discovered some of these problems that we've worked around.
participants (2)
-
Jonathan Buzzard -
Sabuj Pattanayek
