Extended attributes and ACLs with AFM-based "NFS migration"
Hello, I have a testbed cluster where I have setup AFM for an incremental NFS migration between 2 GPFS filesystems in the same cluster. This is with Spectrum Scale 4.1.1-5 on Linux (CentOS 7). The documentation states: "On a GPFS data source, AFM moves all user extended attributes and ACLs, and file sparseness is maintained." (SpectrumScale 4.1.1 Advanced Administration Guide, page 226) If I'm not mistaken, I have a GPFS data source (since I'm doing a migration from GPFS to GPFS). While file sparseness is mostly maintained, user extended attributes and ACLs in the source/home filesystem do not appear to be migrated to the target/cache filesystem (same goes for basic tests with ACLs): % getfattr /fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 getfattr: Removing leading '/' from absolute path names # file: fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 user.mfiles:sha2-256 % While on the target filesystem: % getfattr /fs2/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 % Am I missing something ? Is there another meaning to "user extended attributes" than OS level extended attributes (i.e. non-GPFS xattr) ? Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Hi, Can you check if AFM was enabled at home cluster using "mmafmconfig enable" command? What is the fileset mode are you using ? Regards, Venkat ------------------------------------------------------------------- Venkateswara R Puvvada/India/IBM@IBMIN vpuvvada@in.ibm.com From: Loic Tortay <tortay@cc.in2p3.fr> To: gpfsug-discuss@spectrumscale.org Date: 04/15/2016 09:35 PM Subject: [gpfsug-discuss] Extended attributes and ACLs with AFM-based "NFS migration" Sent by: gpfsug-discuss-bounces@spectrumscale.org Hello, I have a testbed cluster where I have setup AFM for an incremental NFS migration between 2 GPFS filesystems in the same cluster. This is with Spectrum Scale 4.1.1-5 on Linux (CentOS 7). The documentation states: "On a GPFS data source, AFM moves all user extended attributes and ACLs, and file sparseness is maintained." (SpectrumScale 4.1.1 Advanced Administration Guide, page 226) If I'm not mistaken, I have a GPFS data source (since I'm doing a migration from GPFS to GPFS). While file sparseness is mostly maintained, user extended attributes and ACLs in the source/home filesystem do not appear to be migrated to the target/cache filesystem (same goes for basic tests with ACLs): % getfattr /fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 getfattr: Removing leading '/' from absolute path names # file: fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 user.mfiles:sha2-256 % While on the target filesystem: % getfattr /fs2/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 % Am I missing something ? Is there another meaning to "user extended attributes" than OS level extended attributes (i.e. non-GPFS xattr) ? Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre | _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 16/04/2016 11:23, Venkateswara R Puvvada wrote:
Hi,
Can you check if AFM was enabled at home cluster using "mmafmconfig enable" command? What is the fileset mode are you using ?
Hello, AFM was enabled for the 2 home filesets/NFS exports with "mmafmconfig enable /fs1/zone1" & "mmafmconfig enable /fs1/zone2". The fileset mode is read-only for botch cache filesets. Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Regards, Venkat ------------------------------------------------------------------- Venkateswara R Puvvada/India/IBM@IBMIN vpuvvada@in.ibm.com
From: Loic Tortay <tortay@cc.in2p3.fr> To: gpfsug-discuss@spectrumscale.org Date: 04/15/2016 09:35 PM Subject: [gpfsug-discuss] Extended attributes and ACLs with AFM-based "NFS migration" Sent by: gpfsug-discuss-bounces@spectrumscale.org
Hello, I have a testbed cluster where I have setup AFM for an incremental NFS migration between 2 GPFS filesystems in the same cluster. This is with Spectrum Scale 4.1.1-5 on Linux (CentOS 7).
The documentation states: "On a GPFS data source, AFM moves all user extended attributes and ACLs, and file sparseness is maintained." (SpectrumScale 4.1.1 Advanced Administration Guide, page 226)
If I'm not mistaken, I have a GPFS data source (since I'm doing a migration from GPFS to GPFS).
While file sparseness is mostly maintained, user extended attributes and ACLs in the source/home filesystem do not appear to be migrated to the target/cache filesystem (same goes for basic tests with ACLs): % getfattr /fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 getfattr: Removing leading '/' from absolute path names # file: fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 user.mfiles:sha2-256 % While on the target filesystem: % getfattr /fs2/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 %
Am I missing something ? Is there another meaning to "user extended attributes" than OS level extended attributes (i.e. non-GPFS xattr) ?
Hi, AFM usually logs the following message at gateway node if it cannot open control file to read ACLs/EAs. AFM: Cannot find control file for file system <FS> fileset <Fileset> in the exported file system at home. ACLs and extended attributes will not be synchronized. Sparse files will have zeros written for holes. If the above message didn't not appear in logs and if AFM failed to bring ACLs, this may be a defect. Please open PMR with supporting traces to debug this issue further. Thanks. Regards, Venkat ------------------------------------------------------------------- Venkateswara R Puvvada/India/IBM@IBMIN vpuvvada@in.ibm.com From: Loic Tortay <tortay@cc.in2p3.fr> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 04/16/2016 03:10 PM Subject: Re: [gpfsug-discuss] Extended attributes and ACLs with AFM-based "NFS migration" Sent by: gpfsug-discuss-bounces@spectrumscale.org On 16/04/2016 11:23, Venkateswara R Puvvada wrote:
Hi,
Can you check if AFM was enabled at home cluster using "mmafmconfig enable" command? What is the fileset mode are you using ?
Hello, AFM was enabled for the 2 home filesets/NFS exports with "mmafmconfig enable /fs1/zone1" & "mmafmconfig enable /fs1/zone2". The fileset mode is read-only for botch cache filesets. Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Regards, Venkat ------------------------------------------------------------------- Venkateswara R Puvvada/India/IBM@IBMIN vpuvvada@in.ibm.com
From: Loic Tortay <tortay@cc.in2p3.fr> To: gpfsug-discuss@spectrumscale.org Date: 04/15/2016 09:35 PM Subject: [gpfsug-discuss] Extended attributes and ACLs with AFM-based "NFS migration" Sent by: gpfsug-discuss-bounces@spectrumscale.org
Hello, I have a testbed cluster where I have setup AFM for an incremental NFS migration between 2 GPFS filesystems in the same cluster. This is with Spectrum Scale 4.1.1-5 on Linux (CentOS 7).
The documentation states: "On a GPFS data source, AFM moves all user extended attributes and ACLs, and file sparseness is maintained." (SpectrumScale 4.1.1 Advanced Administration Guide, page 226)
If I'm not mistaken, I have a GPFS data source (since I'm doing a migration from GPFS to GPFS).
While file sparseness is mostly maintained, user extended attributes and ACLs in the source/home filesystem do not appear to be migrated to the target/cache filesystem (same goes for basic tests with ACLs): % getfattr /fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 getfattr: Removing leading '/' from absolute path names # file: fs1/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 user.mfiles:sha2-256 % While on the target filesystem: % getfattr /fs2/zone1/s04/1900/3e479a3eb2eb92d419f812ba1287e8c6269 %
Am I missing something ? Is there another meaning to "user extended attributes" than OS level extended attributes (i.e. non-GPFS xattr) ?
[attachment "smime.p7s" deleted by Venkateswara R Puvvada/India/IBM] _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 04/19/2016 08:01 AM, Venkateswara R Puvvada wrote:
Hi,
AFM usually logs the following message at gateway node if it cannot open control file to read ACLs/EAs.
AFM: Cannot find control file for file system <FS> fileset <Fileset> in the exported file system at home. ACLs and extended attributes will not be synchronized. Sparse files will have zeros written for holes.
If the above message didn't not appear in logs and if AFM failed to bring ACLs, this may be a defect. Please open PMR with supporting traces to debug this issue further. Thanks.
Hello, There is no such message on any node in the test cluster. I have opened a PMR (50962,650,706), the "gpfs.snap" output is on ecurep.ibm.com in "/toibm/linux/gpfs.snap.50962.650.706.tar". BTW, it would probably be useful if "gpfs.snap" avoided doing a "find /var/mmfs ..." on AFM gateway nodes (or used appropriate find options), since the NFS mountpoints for AFM are in "/var/mmfs/afm" and their content is scanned too. This can be quite time consuming, for instance our test setup has several million files in the home filesystem. The "offending" 'find' is the one at line 3014 in the version of gpfs.snap included with Spectrum Scale 4.1.1-5. Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Hi, There is an issue with gpfs.snap which scans AFM internal mounts. This is issue got fixed in later releases. To workaround this problem, 1. cp /usr/lpp/mmfs/bin/gpfs.snap /usr/lpp/mmfs/bin/gpfs.snap.orig 2. Change this line : ccrSnapExcludeListRaw=$($find /var/mmfs \ \( -name "proxy-server*" -o -name "keystone*" -o -name "openrc*" \) \ 2>/dev/null) to this: ccrSnapExcludeListRaw=$($find /var/mmfs -xdev \ \( -name "proxy-server*" -o -name "keystone*" -o -name "openrc*" \) \ 2>/dev/null) Regards, Venkat ------------------------------------------------------------------- Venkateswara R Puvvada/India/IBM@IBMIN vpuvvada@in.ibm.com +91-80-41777734 From: Loic Tortay <tortay@cc.in2p3.fr> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 04/19/2016 07:13 PM Subject: Re: [gpfsug-discuss] Extended attributes and ACLs with AFM-based "NFS migration" Sent by: gpfsug-discuss-bounces@spectrumscale.org On 04/19/2016 08:01 AM, Venkateswara R Puvvada wrote:
Hi,
AFM usually logs the following message at gateway node if it cannot open
control file to read ACLs/EAs.
AFM: Cannot find control file for file system <FS> fileset <Fileset> in the exported file system at home. ACLs and extended attributes will not be synchronized. Sparse files will have zeros written for holes.
If the above message didn't not appear in logs and if AFM failed to bring ACLs, this may be a defect. Please open PMR with supporting traces to debug this issue further. Thanks.
Hello, There is no such message on any node in the test cluster. I have opened a PMR (50962,650,706), the "gpfs.snap" output is on ecurep.ibm.com in "/toibm/linux/gpfs.snap.50962.650.706.tar". BTW, it would probably be useful if "gpfs.snap" avoided doing a "find /var/mmfs ..." on AFM gateway nodes (or used appropriate find options), since the NFS mountpoints for AFM are in "/var/mmfs/afm" and their content is scanned too. This can be quite time consuming, for instance our test setup has several million files in the home filesystem. The "offending" 'find' is the one at line 3014 in the version of gpfs.snap included with Spectrum Scale 4.1.1-5. Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre | _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (2)
-
Loic Tortay -
Venkateswara R Puvvada
