Hello, I'm new to this list, as well as GPFS. We have new (installed over the last 6 weeks) GPFS cluster that we are currently trying to get into service. The NSDs are running on Red Hat (6 NSDs), the storage is DCS3700 directly attached via SAS. We are running GPFS 3.5.0.12. Some of the data that will be placed on this cluster will be existing data coming from other sources, one of which is our NAS (Isilon, supporting both NFS and CIFS). We have tried a few different ways of copying the data. First we tried to rsync directly between an NSD and one of the Isilon nodes. Unfortunately, it appears the rsync doesn't work with the ACL format used on the Isilon. We have also tried using various methods of copying data via CIFS, but we continue to have no luck getting ACLs to copy. We know that, for instance, copying data via CIFS into the Isilon using robocopy will preserve the ACLs, and we were hoping that would work for getting data onto GPFS as well. However, the ACLs are being stripped and replaced with whatever ACL is present on GPFS. Does anyone have experience doing something like that who can give me some pointers on what my configuration should look like? I assume there are samba and/or GPFS parameters that need to be tweaked in order to make this work, especially since this functionality would have to be present in SONAS.
Hi, and welcome, Jonathan. Which combination of -A and -X rsync options did you use? Pete On 2 October 2013 21:44, Fosburgh,Jonathan <jfosburg@mdanderson.org> wrote:
Hello, I'm new to this list, as well as GPFS.
We have new (installed over the last 6 weeks) GPFS cluster that we are currently trying to get into service. The NSDs are running on Red Hat (6 NSDs), the storage is DCS3700 directly attached via SAS. We are running GPFS 3.5.0.12.
Some of the data that will be placed on this cluster will be existing data coming from other sources, one of which is our NAS (Isilon, supporting both NFS and CIFS). We have tried a few different ways of copying the data. First we tried to rsync directly between an NSD and one of the Isilon nodes. Unfortunately, it appears the rsync doesn't work with the ACL format used on the Isilon. We have also tried using various methods of copying data via CIFS, but we continue to have no luck getting ACLs to copy. We know that, for instance, copying data via CIFS into the Isilon using robocopy will preserve the ACLs, and we were hoping that would work for getting data onto GPFS as well. However, the ACLs are being stripped and replaced with whatever ACL is present on GPFS. Does anyone have experience doing something like that who can give me some pointers on what my configuration should look like? I assume there are samba and/or GPFS parameters that need to be tweaked in order to make this work, especially since this functionality would have to be present in SONAS.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Pete Smith DevOp/System Administrator Realise Studio 12/13 Poland Street, London W1F 8QB T. +44 (0)20 7165 9644 realisestudio.com
Hi Jonathan, Might be a bit of a long shot this - but for copying NFSv4 ACLs between GPFS filesystems using rsync, I had to patch rsync with some code released by IBM at some point. We've got that patched rsync hosted on the gpfsug github: https://github.com/gpfsug/gpfsug-tools/tree/master/bin/rsync Since you're not doing gpfs -> gpfs, it might be no use - but you never know! Oh - and, of course, make sure your GPFS filesystem is configured to support NFSv4 ACLs. Here's our smb.conf settings related to GPFS, ACLs and other bits and bobs: vfs objects = shadow_copy2, fileid, gpfs clustering = yes fileid:mapping = fsname gpfs:sharemodes = No gpfs:getrealfilename = no nfs4: mode = simple nfs4: chown = yes nfs4: acedup = merge force unknown acl user = yes acl group control = no map acl inherit = yes inherit acls = no dos filemode = no map readonly = no map hidden = no map archive = no map readonly = no ea support = yes store dos attributes = yes gpfs:winattr = yes max protocol = SMB2 shadow:fixinodes = yes shadow:snapdir = .snapshots shadow:basedir = /exports/nas use sendfile = yes wide links = no unix extensions = no Hope that helps, Orlando -- Orlando On 03/10/13 09:09, Pete Smith wrote:
Hi, and welcome, Jonathan.
Which combination of -A and -X rsync options did you use?
Pete
On 2 October 2013 21:44, Fosburgh,Jonathan <jfosburg@mdanderson.org> wrote:
Hello, I'm new to this list, as well as GPFS.
We have new (installed over the last 6 weeks) GPFS cluster that we are currently trying to get into service. The NSDs are running on Red Hat (6 NSDs), the storage is DCS3700 directly attached via SAS. We are running GPFS 3.5.0.12.
Some of the data that will be placed on this cluster will be existing data coming from other sources, one of which is our NAS (Isilon, supporting both NFS and CIFS). We have tried a few different ways of copying the data. First we tried to rsync directly between an NSD and one of the Isilon nodes. Unfortunately, it appears the rsync doesn't work with the ACL format used on the Isilon. We have also tried using various methods of copying data via CIFS, but we continue to have no luck getting ACLs to copy. We know that, for instance, copying data via CIFS into the Isilon using robocopy will preserve the ACLs, and we were hoping that would work for getting data onto GPFS as well. However, the ACLs are being stripped and replaced with whatever ACL is present on GPFS. Does anyone have experience doing something like that who can give me some pointers on what my configuration should look like? I assume there are samba and/or GPFS parameters that need to be tweaked in order to make this work, especially since this functionality would have to be present in SONAS.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 skype: orlando.richards The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
On Wed, 2013-10-02 at 20:44 +0000, Fosburgh,Jonathan wrote:
Hello, I'm new to this list, as well as GPFS.
We have new (installed over the last 6 weeks) GPFS cluster that we are currently trying to get into service. The NSDs are running on Red Hat (6 NSDs), the storage is DCS3700 directly attached via SAS. We are running GPFS 3.5.0.12.
Some of the data that will be placed on this cluster will be existing data coming from other sources, one of which is our NAS (Isilon, supporting both NFS and CIFS). We have tried a few different ways of copying the data. First we tried to rsync directly between an NSD and one of the Isilon nodes. Unfortunately, it appears the rsync doesn't work with the ACL format used on the Isilon. We have also tried using various methods of copying data via CIFS, but we continue to have no luck getting ACLs to copy. We know that, for instance, copying data via CIFS into the Isilon using robocopy will preserve the ACLs, and we were hoping that would work for getting data onto GPFS as well. However, the ACLs are being stripped and replaced with whatever ACL is present on GPFS. Does anyone have experience doing something like that who can give me some pointers on what my configuration should look like? I assume there are samba and/or GPFS parameters that need to be tweaked in order to make this work, especially since this functionality would have to be present in SONAS.
I guess the first thing to do is confirm that you have functioning CIFS's ACL's in your Samba GPFS file server. Specifically you would need to have NFSv4 ACL's enabled in the file system and the gpfs VFS module loaded in Samba. Note having mixed ACL modes did not work very well for me, so best to turn off Posix ACL's and only do NFSv4 ACL's. These are the samba options I use in combination with GPFS to make the server as windows like as possible. # general options vfs objects = fileid gpfs unix extensions = no mangled names = no case sensitive = no # 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 # the ctdb clustering and GPFS stuff clustering = yes ctdbd socket = /tmp/ctdb.socket fileid : algorithm = fsname gpfs : sharemodes = yes gpfs : winattr = yes force unknown acl user = yes nfs4 : mode = special nfs4 : chown = no nfs4 : acedup = merge The best way to make sure it is working is point a Windows client at the file server and manipulate the ACL's by hand. Note that if you are going for that full make my Samba/GPFS file server look as close as possible to a pucker MS Windows server, you might want to consider setting the following GPFS options cifsBypassShareLocksOnRename cifsBypassTraversalChecking allowWriteWithDeleteChild All fairly self explanatory, and make GPFS follow Windows schematics more closely, though they are "undocumented". There are a couple of other options as allowSambaCaseInsensitiveLookup and syncSambaMetadataOps but I have not determined exactly what they do... There is also there is an undocumented option for ACL's on mmchfs mmchfs test -k samba Even shows up in the output of mmlsfs. Not entirely sure what samba ACL's are mind you... Note that IBM have alluded at various times that there these "magic" options exist and are used in SONAS etc. Anyway getting back to ACL's robocopy will move them over, but in my experience copying from a Windows file server the results where not what I wanted. I ended up with extra ACL's for administrators and bizzare file ownership issues. Some of that might be because the files had originally been on a Netware file server which died, and where hastily moved to a Windows server. I gave up in the end and manually unpicked what the ACL's where doing for the migration to the GPFS file server. However I only had 20GB of data... You should also find that xcopy will move them over as well. A possible alternative if you have access to an AIX box would be to NFSv4 mount the Isilon on the AIX box and mount GPFS as well and just use cp. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
On 10/3/13 4:23 AM, "Jonathan Buzzard" <jonathan@buzzard.me.uk> wrote:
I guess the first thing to do is confirm that you have functioning CIFS's ACL's in your Samba GPFS file server. Specifically you would need to have NFSv4 ACL's enabled in the file system and the gpfs VFS module loaded in Samba. Note having mixed ACL modes did not work very well for me, so best to turn off Posix ACL's and only do NFSv4 ACL's.
Thank you for the response. We have been able to make some headway on this, but I am still bumping up on some issues. It looks as if, when an NFSv4 ACL is already present on the parent directory tree, copying acls via robocopy works. However, if there is a posix ACL present, then the ACLs are still not copied correctly. I was interested in setting the ACL mode to nfs4 only (currently set to all), however, I have some reservations about this. The NFS server is Red Hat, and I need to be able to server version 3 and version 4, plus we will have native GPFS clients and the CIFS clients. What are the ramifications, in this setup, of changing the ACL type? What would happen to any existing ACLs?
On 09/10/13 18:31, Fosburgh,Jonathan wrote:
On 10/3/13 4:23 AM, "Jonathan Buzzard" <jonathan@buzzard.me.uk> wrote:
I guess the first thing to do is confirm that you have functioning CIFS's ACL's in your Samba GPFS file server. Specifically you would need to have NFSv4 ACL's enabled in the file system and the gpfs VFS module loaded in Samba. Note having mixed ACL modes did not work very well for me, so best to turn off Posix ACL's and only do NFSv4 ACL's.
Thank you for the response. We have been able to make some headway on this, but I am still bumping up on some issues. It looks as if, when an NFSv4 ACL is already present on the parent directory tree, copying acls via robocopy works. However, if there is a posix ACL present, then the ACLs are still not copied correctly. I was interested in setting the ACL mode to nfs4 only (currently set to all), however, I have some reservations about this.
Like I said in my experience having both Posix and NFSv4 ACL's active at the same time did not work properly as you have found out. You have to pick one and stick with it. Clearly if you have an existing system with both ACL types on then you have problems.
The NFS server is Red Hat, and I need to be able to server version 3 and version 4, plus we will have native GPFS clients and the CIFS clients. What are the ramifications, in this setup, of changing the ACL type? What would happen to any existing ACLs?
My guess is the Posix ACL's either get lost or are "converted" into NFSv4 ACL's. I would try this out on your "development/test" GPFS setup first and work out a strategy for moving forward. The biggest problem is that the IBM provided tools for manipulating the GPFS ACL's from within Linux are awful. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
On 03/10/13 10:23, Jonathan Buzzard wrote:
There are a couple of other options as allowSambaCaseInsensitiveLookup and syncSambaMetadataOps but I have not determined exactly what they do...
Hi JAB - I think I've figured out what syncSambaMetadataOps does - I think it's a performance optimsation for the vfs_syncops module. With syncSambaMetadataOps set, you can then set: syncops:onmeta = no I found this in: http://sambaxp.org/fileadmin/user_upload/SambaXP2011-DATA/day2track1/SambaXP... under "metadata synchronization performance" (slides 21 & 22) referred to as the mysterious "new (internal) GPFS parameter" Of course, since it's undocumented this is purely guesswork on my part - would be good to get confirmation from IBM on this. Also - I'd love to get the output of "testparm -v" and "mmfsadm dump config" from an IBM SONAS cluster node to see what the best practise GPFS + samba settings are. Any chance of that from an IBMer? Cheers, Orlando -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
On Wed, 2013-12-04 at 11:37 +0000, Orlando Richards wrote:
On 03/10/13 10:23, Jonathan Buzzard wrote:
There are a couple of other options as allowSambaCaseInsensitiveLookup and syncSambaMetadataOps but I have not determined exactly what they do...
Hi JAB - I think I've figured out what syncSambaMetadataOps does - I think it's a performance optimsation for the vfs_syncops module. With syncSambaMetadataOps set, you can then set: syncops:onmeta = no
I found this in: http://sambaxp.org/fileadmin/user_upload/SambaXP2011-DATA/day2track1/SambaXP...
under "metadata synchronization performance" (slides 21 & 22) referred to as the mysterious "new (internal) GPFS parameter"
Of course, since it's undocumented this is purely guesswork on my part - would be good to get confirmation from IBM on this.
That's a really good catch, and the only one of the magic levers I had no real idea what it was doing. The allowSambaCaseInsensitiveLookup is easy, it is basically getting the file system to do the matching when you have "case sensitive = no" in your smb.conf, rather than Samba trying lots of combinations. What I don't have a handle on is what the performance benefit for setting it is. I am working up on doing testing on what the samba ACL's do. My hypothesis is that it makes the NFSv4 ACL's follow NTFS schematics. This should be relatively easy to test.
Also - I'd love to get the output of "testparm -v" and "mmfsadm dump config" from an IBM SONAS cluster node to see what the best practise GPFS + samba settings are. Any chance of that from an IBMer?
I don't think that will work. Try flipping some of the magic levers on a test cluster and you will see what I mean. Basically they don't show up in the output of mmfsadm dump :-( JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
participants (4)
-
Fosburgh,Jonathan -
Jonathan Buzzard -
Orlando Richards -
Pete Smith
