du --apparent-size and quota
Hi, I experience some strangeness that I fail to understand completely. I have a fileset that got copied (rsynced) from one cluster to another. The reported size (mmrepquota) of the source filesystem is 800G (and due to data and metadata replication being set to 2 this effectively means 400G). After syncing the data to the destination the size there is ~457GB. $ mmrepquota -j srcfilesys | grep fileset srcfileset FILESET 800 800 800 0 none | 863 0 0 0 none $ mmrepquota -j dstfilesys | grep fileset fileset root FILESET 457 400 400 0 none | 853 0 0 0 none (note: on the destination filesystem we have set ignoreReplicationOnStatfs yes IgnoreReplicaSpaceOnStat yes ignoreReplicationForQuota yes so there's no need to to divisions ) (note2: the destination hat 10 files less. These where small leftover .nfs* files: $ du --block-size 1 /srcfilesys/fileset/.nfs* 1024 /srvfilesys/fileset//.nfs0000000000f8a57800000505 1024 /srvfilesys/fileset//.nfs0000000002808f4d000000cb 1024 /srvfilesys/fileset//.nfs0000000002af44db00005509 1024 /srvfilesys/fileset//.nfs00000000034eb9270000072a 1024 /srvfilesys/fileset//.nfs0000000003a9b48300002974 1024 /srvfilesys/fileset//.nfs0000000003d10f990000028a $ du --apparent-size --block-size 1 /srcfilesys/fileset/.nfs* 524 /srvfilesys/fileset//.nfs0000000000f8a57800000505 524 /srvfilesys/fileset//.nfs0000000002808f4d000000cb 524 /srvfilesys/fileset//.nfs0000000002af44db00005509 524 /srvfilesys/fileset//.nfs00000000034eb9270000072a 524 /srvfilesys/fileset//.nfs0000000003a9b48300002974 524 /srvfilesys/fileset//.nfs0000000003d10f990000028a ) While trying to understand what's going on here I found this on the source file system (which is valid for all files, with different number of course): $ du --block-size 1 /srcfilesys/fileset/filename 65536 /srcfilesys/fileset/filename $ du --apparent-size --block-size 1 /srcfilesys/fileset/filename 3994 /srcfilesys/fileset/filename $ stat /srcfilesys/fileset/filename File: ‘/srcfilesys/fileset/filename’ Size: 3994 Blocks: 128 IO Block: 1048576 regular file Device: 2ah/42d Inode: 23266095 Links: 1 Access: (0660/-rw-rw----) Uid: (73018/ cpunnoo) Gid: (50070/ dc-rti) Context: system_u:object_r:unlabeled_t:s0 Access: 2021-05-12 20:10:13.814459305 +0200 Modify: 2020-07-16 11:08:41.631006000 +0200 Change: 2020-07-16 11:08:41.630896177 +0200 Birth: - If I sum up the disk usage of the first du I end up with 799.986G in total which matches the mmrepquota output. If I add up the disk usage of the second du I end up at 456.569G _which matches the mmrepquota output on the destination system_. So on the source filesystem the quota seems to add up the apparent size while on the destination filesystem the quota value is the sum of the du without --apparent-size. Running the dus on the destination filesystem reports other numbers: $ du --block-size 1 /dstfilesys/fileset/filename 8192 /dstfilesys/fileset/filename $ du --apparent-size --block-size 1 /dstfilesys/fileset/filename 3994 /dstfilesys/fileset/filename $ stat /dstfilesys/fileset/filename File: /dstfilesys/fileset/filename Size: 3994 Blocks: 16 IO Block: 4194304 regular file Device: 3dh/61d Inode: 2166358719 Links: 1 Access: (0660/-rw-rw----) Uid: (73018/ cpunnoo) Gid: (50070/ dc-rti) Access: 2021-05-29 07:52:56.069440382 +0200 Modify: 2020-07-16 11:08:41.631006000 +0200 Change: 2021-05-12 20:10:13.970443145 +0200 Birth: - Summing them up shows almost identical numbers for both dus: 467528 467527 which I really do not get at all... So is there an explanation of how mmrepquota and du and du --apparent-size are related? Uli PS: Some more details: The source filesystem is RHEL7 with gpfs.base 5.0.5-5: flag value description ------------------- ------------------------ ----------------------------------- -f 32768 Minimum fragment (subblock) size in bytes -i 4096 Inode size in bytes -I 32768 Indirect block size in bytes -m 2 Default number of metadata replicas -M 2 Maximum number of metadata replicas -r 2 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 32 Estimated number of nodes that will mount file system -B 1048576 Block size -Q user;group;fileset Quotas accounting enabled user;group;fileset Quotas enforced none Default quotas enabled --perfileset-quota No Per-fileset quota enforcement --filesetdf Yes Fileset df enabled? -V 16.00 (4.2.2.0) Current file system version 14.10 (4.1.0.4) Original file system version --create-time Tue Feb 3 11:46:10 2015 File system creation time -z No Is DMAPI enabled? -L 4194304 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? --encryption No Encryption enabled? --inode-limit 179217920 Maximum number of inodes in all inode spaces --log-replicas 0 Number of log replicas --is4KAligned Yes is4KAligned? --rapid-repair No rapidRepair enabled? --write-cache-threshold 0 HAWC Threshold (max 65536) --subblocks-per-full-block 32 Number of subblocks per full block -P system Disk storage pools in file system --file-audit-log No File Audit Logging enabled? --maintenance-mode No Maintenance Mode enabled? -d NSDDCS1N01;NSDDCS1N02;NSDDCS1N03;NSDDCS1N04;NSDDCS1N05;NSDDCS1N06;NSDDCS1N07;NSDDCS1N08;NSDDCS1N09;NSDDCS1N10;NSDDCS1N11;NSDDCS1N12;NSDNECE54001N01;NSDNECE54001N02; -d NSDNECE54001N03;NSDNECE54001N04;NSDNECE54001N05;NSDNECE54001N06;NSDNECE54001N07;NSDNECE54001N08;NSDNECE54001N09;NSDNECE54001N10;NSDNECE54001N11;NSDNECE54001N12;DESC1 Disks in file system -A yes Automatic mount option -o none Additional mount options -T /srcfilesys Default mount point --mount-priority 0 Mount priority The destination cluster is RHEL8 with gpfs.base-5.1.0-3.x86_64: flag value description ------------------- ------------------------ ----------------------------------- -f 8192 Minimum fragment (subblock) size in bytes -i 4096 Inode size in bytes -I 32768 Indirect block size in bytes -m 2 Default number of metadata replicas -M 2 Maximum number of metadata replicas -r 2 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 32 Estimated number of nodes that will mount file system -B 4194304 Block size -Q user;group;fileset Quotas accounting enabled none Quotas enforced none Default quotas enabled --perfileset-quota yes Per-fileset quota enforcement --filesetdf yes Fileset df enabled? -V 23.00 (5.0.5.0) File system version --create-time Tue May 11 16:51:27 2021 File system creation time -z no Is DMAPI enabled? -L 33554432 Logfile size -E yes Exact mtime mount option -S relatime Suppress atime mount option -K whenpossible Strict replica allocation option --fastea yes Fast external attributes enabled? --encryption no Encryption enabled? --inode-limit 105259008 Maximum number of inodes in all inode spaces --log-replicas 0 Number of log replicas --is4KAligned yes is4KAligned? --rapid-repair yes rapidRepair enabled? --write-cache-threshold 0 HAWC Threshold (max 65536) --subblocks-per-full-block 512 Number of subblocks per full block -P system Disk storage pools in file system --file-audit-log no File Audit Logging enabled? --maintenance-mode no Maintenance Mode enabled? -d RG001VS021;RG002VS021;RG001VS022;RG002VS022 Disks in file system -A yes Automatic mount option -o none Additional mount options -T /dstfilesys Default mount point --mount-priority 0 Mount priority -- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
On 6/1/21 4:26 PM, Ulrich Sibiller wrote: [...]
)
While trying to understand what's going on here I found this on the source file system (which is valid for all files, with different number of course):
$ du --block-size 1 /srcfilesys/fileset/filename 65536 /srcfilesys/fileset/filename
$ du --apparent-size --block-size 1 /srcfilesys/fileset/filename 3994 /srcfilesys/fileset/filename
$ stat /srcfilesys/fileset/filename File: ‘/srcfilesys/fileset/filename’ Size: 3994 Blocks: 128 IO Block: 1048576 regular file Device: 2ah/42d Inode: 23266095 Links: 1 Access: (0660/-rw-rw----) Uid: (73018/ cpunnoo) Gid: (50070/ dc-rti) Context: system_u:object_r:unlabeled_t:s0 Access: 2021-05-12 20:10:13.814459305 +0200 Modify: 2020-07-16 11:08:41.631006000 +0200 Change: 2020-07-16 11:08:41.630896177 +0200 Birth: -
Hello, This looks like the sub-block overhead. If I'm not mistaken even with SS5 created filesystems, 1 MiB FS block size implies 32 kiB sub blocks (32 sub-blocks). The sub-block is the minimum disk allocation for files (if the file content is too large to be kept in the inode, when that is supported on the specific GPFS filesystem). The "Blocks" value displayed by "stat" is in 512 bytes unit, so 128*512 = 65536 (which is consistent with "du"): two 32 kiB sub-blocks due to data replication. The "--apparent-size" option to "du" uses the user visible size not the actual disk usage (per the man page), so 3994 is also consistent w/ "stat" output. AFAIK, GPFS space quotas count the sub-blocks not the apparent sizes, so again this would be consistent with the overhead. Beside the overhead, hard-links in the source FS (which, if I'm not mistaken, are not handled by "rsync" unless you specify "-H") and in some cases spare files can also explain the differences. Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Hi,
If I'm not mistaken even with SS5 created filesystems, 1 MiB FS block size implies 32 kiB sub blocks (32 sub-blocks).
Just to add: The /srcfilesys seemed to have been created with GPFS version 4.x which supports only 32 sub-blocks per block. -T /srcfilesys Default mount point -V 16.00 (4.2.2.0) Current file system version 14.10 (4.1.0.4) Original file system version --create-time Tue Feb 3 11:46:10 2015 File system creation time -B 1048576 Block size -f 32768 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 32 Number of subblocks per full block The /dstfilesys was created with GPFS version 5.x which support greater than 32 subblocks per block. /dstfilesys does have 512 subblocks-per-full-block with 8KiB subblock size since file-system blocksize is 4MiB. -T /dstfilesys Default mount point -V 23.00 (5.0.5.0) File system version --create-time Tue May 11 16:51:27 2021 File system creation time -B 4194304 Block size -f 8192 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 512 Number of subblocks per full block Hope this helps, -Kums -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Loic Tortay Sent: Tuesday, June 1, 2021 10:57 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>; Ulrich Sibiller <u.sibiller@science-computing.de>; gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] du --apparent-size and quota On 6/1/21 4:26 PM, Ulrich Sibiller wrote: [...]
)
While trying to understand what's going on here I found this on the source file system (which is valid for all files, with different number of course):
$ du --block-size 1 /srcfilesys/fileset/filename 65536 /srcfilesys/fileset/filename
$ du --apparent-size --block-size 1 /srcfilesys/fileset/filename 3994 /srcfilesys/fileset/filename
$ stat /srcfilesys/fileset/filename File: ‘/srcfilesys/fileset/filename’ Size: 3994 Blocks: 128 IO Block: 1048576 regular file Device: 2ah/42d Inode: 23266095 Links: 1 Access: (0660/-rw-rw----) Uid: (73018/ cpunnoo) Gid: (50070/ dc-rti) Context: system_u:object_r:unlabeled_t:s0 Access: 2021-05-12 20:10:13.814459305 +0200 Modify: 2020-07-16 11:08:41.631006000 +0200 Change: 2020-07-16 11:08:41.630896177 +0200 Birth: -
Hello, This looks like the sub-block overhead. If I'm not mistaken even with SS5 created filesystems, 1 MiB FS block size implies 32 kiB sub blocks (32 sub-blocks). The sub-block is the minimum disk allocation for files (if the file content is too large to be kept in the inode, when that is supported on the specific GPFS filesystem). The "Blocks" value displayed by "stat" is in 512 bytes unit, so 128*512 = 65536 (which is consistent with "du"): two 32 kiB sub-blocks due to data replication. The "--apparent-size" option to "du" uses the user visible size not the actual disk usage (per the man page), so 3994 is also consistent w/ "stat" output. AFAIK, GPFS space quotas count the sub-blocks not the apparent sizes, so again this would be consistent with the overhead. Beside the overhead, hard-links in the source FS (which, if I'm not mistaken, are not handled by "rsync" unless you specify "-H") and in some cases spare files can also explain the differences. 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 6/1/21 6:08 PM, Kumaran Rajaram wrote:
If I'm not mistaken even with SS5 created filesystems, 1 MiB FS block size implies 32 kiB sub blocks (32 sub-blocks).
Just to add: The /srcfilesys seemed to have been created with GPFS version 4.x which supports only 32 sub-blocks per block.
-T /srcfilesys Default mount point -V 16.00 (4.2.2.0) Current file system version 14.10 (4.1.0.4) Original file system version --create-time Tue Feb 3 11:46:10 2015 File system creation time -B 1048576 Block size -f 32768 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 32 Number of subblocks per full block
The /dstfilesys was created with GPFS version 5.x which support greater than 32 subblocks per block. /dstfilesys does have 512 subblocks-per-full-block with 8KiB subblock size since file-system blocksize is 4MiB.
-T /dstfilesys Default mount point -V 23.00 (5.0.5.0) File system version --create-time Tue May 11 16:51:27 2021 File system creation time -B 4194304 Block size -f 8192 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 512 Number of subblocks per full block
Well, from the higher flexibility in terms of the number of subblocks I'd expect a lower disk usage instead of a higher one. Is this a wrong assumption? From 400G to 457G it's a ~13% increase!
Beside the overhead, hard-links in the source FS (which, if I'm not mistaken, are not handled by "rsync" unless you specify "-H") and in some cases spare files can also explain the differences.
My rsync is using -AHS, so this should not be relevant here. Uli -- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
On 02/06/2021 11:16, Ulrich Sibiller wrote: [SNIP]
My rsync is using -AHS, so this should not be relevant here.
I wonder have you done more than one rsync? If so are you using --delete? If not and the source fileset has changed then you will be accumulating files at the destination and it would explain the larger size. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
On 6/2/21 1:09 PM, Jonathan Buzzard wrote:
My rsync is using -AHS, so this should not be relevant here.
I wonder have you done more than one rsync? If so are you using --delete?
If not and the source fileset has changed then you will be accumulating files at the destination and it would explain the larger size.
Yes, of course I have been using -delete (and -delete-excluded) ;-) Uli -- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
Do you have sparse files on the first filesystem? Since the second filesystem has a larger blocksize than the first one, the copied file may not be sparse on the second filesystem. I think gpfs only supports holes that line up will a full filesystem block. --Mike Dugan -- Michael J. Dugan Manager of Systems Programming and Administration Research Computing Services | IS&T | Boston University 617-358-0030 dugan@bu.edu http://www.bu.edu/tech ________________________________ From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Ulrich Sibiller <u.sibiller@science-computing.de> Sent: Wednesday, June 2, 2021 7:44 AM To: gpfsug-discuss@spectrumscale.org <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] du --apparent-size and quota On 6/2/21 1:09 PM, Jonathan Buzzard wrote:
My rsync is using -AHS, so this should not be relevant here.
I wonder have you done more than one rsync? If so are you using --delete?
If not and the source fileset has changed then you will be accumulating files at the destination and it would explain the larger size.
Yes, of course I have been using -delete (and -delete-excluded) ;-) Uli -- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi, The data and metadata replications are 2 on both source and destination filesystems, so from: $ mmrepquota -j srcfilesys | grep fileset srcfileset FILESET 800 800 800 0 none | 863 0 0 0 none $ mmrepquota -j dstfilesys | grep fileset fileset root FILESET 457 400 400 0 none | 853 0 0 0 none the quota data should be changed from 800G to 457G (or 400G to 228.5G), after "rsync -AHS". Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0.... If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: Ulrich Sibiller <u.sibiller@science-computing.de> To: Kumaran Rajaram <krajaram@geocomputing.net>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>, "gpfsug-discuss@gpfsug.org" <gpfsug-discuss@gpfsug.org> Date: 06/02/2021 06:16 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] du --apparent-size and quota Sent by: gpfsug-discuss-bounces@spectrumscale.org On 6/1/21 6:08 PM, Kumaran Rajaram wrote:
If I'm not mistaken even with SS5 created filesystems, 1 MiB FS block size implies 32 kiB sub blocks (32 sub-blocks).
Just to add: The /srcfilesys seemed to have been created with GPFS version 4.x which supports only 32 sub-blocks per block.
-T /srcfilesys Default mount point -V 16.00 (4.2.2.0) Current file system version 14.10 (4.1.0.4) Original file system version --create-time Tue Feb 3 11:46:10 2015 File system creation time -B 1048576 Block size -f 32768 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 32 Number of subblocks per full block
The /dstfilesys was created with GPFS version 5.x which support greater than 32 subblocks per block. /dstfilesys does have 512 subblocks-per-full-block with 8KiB subblock size since file-system blocksize is 4MiB.
-T /dstfilesys Default mount point -V 23.00 (5.0.5.0) File system version --create-time Tue May 11 16:51:27 2021 File system creation time -B 4194304 Block size -f 8192 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 512 Number of subblocks per full block
Well, from the higher flexibility in terms of the number of subblocks I'd expect a lower disk usage instead of a higher one. Is this a wrong assumption? From 400G to 457G it's a ~13% increase!
Beside the overhead, hard-links in the source FS (which, if I'm not mistaken, are not handled by "rsync" unless you specify "-H") and in some cases spare files can also explain the differences.
My rsync is using -AHS, so this should not be relevant here. Uli -- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi, mmrepquota reports without the --block-size parameter the size in units of 1KiB, so (if no ill-advised copy-paste editing confuses us) we are not talking about 400GiB but 400KiB. With just 863 files (from the inode part of the repquota output) and therefore 0.5KiB/file on average that could be explained by the sub-block size(although many files should vanish in the inodes). If it's 400GiB in 863 files with 500MiB/File the subblock overhead would not matter at all!
From: "IBM Spectrum Scale" <scale@us.ibm.com> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org> Cc: gpfsug-discuss-bounces@spectrumscale.org, gpfsug-discuss@gpfsug.org Sent: Wednesday, 2 June, 2021 16:12:52 Subject: Re: [gpfsug-discuss] du --apparent-size and quota
Hi, The data and metadata replications are 2 on both source and destination filesystems, so from:
$ mmrepquota -j srcfilesys | grep fileset srcfileset FILESET 800 800 800 0 none | 863 0 0 0 none
$ mmrepquota -j dstfilesys | grep fileset fileset root FILESET 457 400 400 0 none | 853 0 0 0 none
the quota data should be changed from 800G to 457G (or 400G to 228.5G), after "rsync -AHS".
Regards, The Spectrum Scale (GPFS) team
------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at [ https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... | https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... ] .
If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries.
The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.
Ulrich Sibiller ---06/02/2021 06:16:22 PM---On 6/1/21 6:08 PM, Kumaran Rajaram wrote: >>> If I'm not mistaken even with SS5 created filesystems,
From: Ulrich Sibiller <u.sibiller@science-computing.de> To: Kumaran Rajaram <krajaram@geocomputing.net>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>, "gpfsug-discuss@gpfsug.org" <gpfsug-discuss@gpfsug.org> Date: 06/02/2021 06:16 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] du --apparent-size and quota Sent by: gpfsug-discuss-bounces@spectrumscale.org
On 6/1/21 6:08 PM, Kumaran Rajaram wrote:
If I'm not mistaken even with SS5 created filesystems, 1 MiB FS block size implies 32 kiB sub blocks (32 sub-blocks).
Just to add: The /srcfilesys seemed to have been created with GPFS version 4.x which supports only 32 sub-blocks per block.
-T /srcfilesys Default mount point -V 16.00 (4.2.2.0) Current file system version 14.10 (4.1.0.4) Original file system version --create-time Tue Feb 3 11:46:10 2015 File system creation time -B 1048576 Block size -f 32768 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 32 Number of subblocks per full block
The /dstfilesys was created with GPFS version 5.x which support greater than 32 subblocks per block. /dstfilesys does have 512 subblocks-per-full-block with 8KiB subblock size since file-system blocksize is 4MiB.
-T /dstfilesys Default mount point -V 23.00 (5.0.5.0) File system version --create-time Tue May 11 16:51:27 2021 File system creation time -B 4194304 Block size -f 8192 Minimum fragment (subblock) size in bytes --subblocks-per-full-block 512 Number of subblocks per full block
Well, from the higher flexibility in terms of the number of subblocks I'd expect a lower disk usage instead of a higher one. Is this a wrong assumption? From 400G to 457G it's a ~13% increase!
Beside the overhead, hard-links in the source FS (which, if I'm not mistaken, are not handled by "rsync" unless you specify "-H") and in some cases spare files can also explain the differences.
My rsync is using -AHS, so this should not be relevant here.
Uli
-- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org [ http://gpfsug.org/mailman/listinfo/gpfsug-discuss | http://gpfsug.org/mailman/listinfo/gpfsug-discuss ]
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 6/2/21 4:12 PM, IBM Spectrum Scale wrote:
The data and metadata replications are 2 on both source and destination filesystems, so from:
$ mmrepquota -j srcfilesys | grep fileset srcfileset FILESET 800 800 800 0 none | 863 0 0 0 none
$ mmrepquota -j dstfilesys | grep fileset fileset root FILESET 457 400 400 0 none | 853 0 0 0 none
the quota data should be changed from 800G to 457G (or 400G to 228.5G), after "rsync -AHS".
Why? Did you notice that on the dstfilesys we have ignoreReplicationOnStatfs yes IgnoreReplicaSpaceOnStat yes ignoreReplicationForQuota yes while the srcfilesys has ignoreReplicaSpaceOnStat 0 ignoreReplicationForQuota 0 ignoreReplicationOnStatfs 0 ? Changing the quota limit to 457 on the dstfilesys will surely help for the user but I still would like to understand why that happens? Losing > 10% of space when migrating to a newer filesystem is not something you'd expect. dstfilesys is ~6PB, so this means we lose more than 600TB, which is a serious issue I'd like to understand in detail (and maybe take countermeasures).
Do you have sparse files on the first filesystem? Since the second filesystem has a larger blocksize than the first one, the copied file may not be sparse on the second filesystem. I think gpfs only supports holes that line up will a full filesystem block.
Maybe that's an issue, but I a) use rsync -S so I guess the sparse files will be handled in the most compatible way b) have no idea how to check this reliably
mmrepquota reports without the --block-size parameter the size in units of 1KiB, so (if no ill-advised copy-paste editing confuses us) we are not talking about 400GiB but 400KiB. With just 863 files (from the inode part of the repquota output) and therefore 0.5KiB/file on average that could be explained by the sub-block size(although many files should vanish in the inodes). If it's 400GiB in 863 files with 500MiB/File the subblock overhead would not matter at all!
Upps, you are right in assuming a copy-and-paste accident, I had called mmrepquota with --block-size G. So the values we are talking about are really GiB, not KiB. Uli -- Science + Computing AG Vorstandsvorsitzender/Chairman of the board of management: Dr. Martin Matzke Vorstand/Board of Management: Matthias Schempp, Sabine Hohenstein Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Aufsichtsrat/Supervisory Board: Martin Wibbe, Ursula Morgenstern Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196
participants (7)
-
Dugan, Michael J -
Hannappel, Juergen -
IBM Spectrum Scale -
Jonathan Buzzard -
Kumaran Rajaram -
Loic Tortay -
Ulrich Sibiller
