big difference between output of 'mmlsquota' and 'du'?
Hi, For a fileset with a quota on it, we have mmlsquota reporting 39TB utilization (out of 50TB quota), with 0 in_doubt. Running a 'du' on the same directory (where the fileset is junctioned) shows 21TB usage. I looked for sparse files (files that report different size via ls vs du). I looked at 'du --apparent-size ...' https://en.wikipedia.org/wiki/Sparse_file What else could it be? Is there some attribute I can scan for inside GPFS? Maybe where FILE_SIZE does not equal KB_ALLOCATED? https://www.ibm.com/support/knowledgecenter/STXKQY_4.2.0/com.ibm.spectrum.sc... [root@scg-gs0 ~]# du -sm --apparent-size /srv/gsfs0/projects/gbsc/* 3977 /srv/gsfs0/projects/gbsc/Backups 1 /srv/gsfs0/projects/gbsc/benchmark 13109 /srv/gsfs0/projects/gbsc/Billing 198719 /srv/gsfs0/projects/gbsc/Clinical 1 /srv/gsfs0/projects/gbsc/Clinical_Vendors 1206523 /srv/gsfs0/projects/gbsc/Data 1 /srv/gsfs0/projects/gbsc/iPoP 123165 /srv/gsfs0/projects/gbsc/Macrogen 58676 /srv/gsfs0/projects/gbsc/Misc 6625890 /srv/gsfs0/projects/gbsc/mva 1 /srv/gsfs0/projects/gbsc/Proj 17 /srv/gsfs0/projects/gbsc/Projects 3290502 /srv/gsfs0/projects/gbsc/Resources 1 /srv/gsfs0/projects/gbsc/SeqCenter 1 /srv/gsfs0/projects/gbsc/share 514041 /srv/gsfs0/projects/gbsc/SNAP_Scoring 1 /srv/gsfs0/projects/gbsc/TCGA_Variants 267873 /srv/gsfs0/projects/gbsc/tools 9597797 /srv/gsfs0/projects/gbsc/workspace (adds up to about 21TB) [root@scg-gs0 ~]# mmlsquota -j projects.gbsc --block-size=G gsfs0 Block Limits | File Limits Filesystem type GB quota limit in_doubt grace | files quota limit in_doubt grace Remarks gsfs0 FILESET 39889 51200 51200 0 none | 1663212 0 0 4 none [root@scg-gs0 ~]# mmlsfileset gsfs0 |grep gbsc projects.gbsc Linked /srv/gsfs0/projects/gbsc Regards, -- Alex Chekholko chekh@stanford.edu
I'd recommend running a mmcheckquota and then check mmlsquota again, -Bryan -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Alex Chekholko Sent: Monday, September 12, 2016 2:03 PM To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] big difference between output of 'mmlsquota' and 'du'? Hi, For a fileset with a quota on it, we have mmlsquota reporting 39TB utilization (out of 50TB quota), with 0 in_doubt. Running a 'du' on the same directory (where the fileset is junctioned) shows 21TB usage. I looked for sparse files (files that report different size via ls vs du). I looked at 'du --apparent-size ...' https://en.wikipedia.org/wiki/Sparse_file What else could it be? Is there some attribute I can scan for inside GPFS? Maybe where FILE_SIZE does not equal KB_ALLOCATED? https://www.ibm.com/support/knowledgecenter/STXKQY_4.2.0/com.ibm.spectrum.sc... [root@scg-gs0 ~]# du -sm --apparent-size /srv/gsfs0/projects/gbsc/* 3977 /srv/gsfs0/projects/gbsc/Backups 1 /srv/gsfs0/projects/gbsc/benchmark 13109 /srv/gsfs0/projects/gbsc/Billing 198719 /srv/gsfs0/projects/gbsc/Clinical 1 /srv/gsfs0/projects/gbsc/Clinical_Vendors 1206523 /srv/gsfs0/projects/gbsc/Data 1 /srv/gsfs0/projects/gbsc/iPoP 123165 /srv/gsfs0/projects/gbsc/Macrogen 58676 /srv/gsfs0/projects/gbsc/Misc 6625890 /srv/gsfs0/projects/gbsc/mva 1 /srv/gsfs0/projects/gbsc/Proj 17 /srv/gsfs0/projects/gbsc/Projects 3290502 /srv/gsfs0/projects/gbsc/Resources 1 /srv/gsfs0/projects/gbsc/SeqCenter 1 /srv/gsfs0/projects/gbsc/share 514041 /srv/gsfs0/projects/gbsc/SNAP_Scoring 1 /srv/gsfs0/projects/gbsc/TCGA_Variants 267873 /srv/gsfs0/projects/gbsc/tools 9597797 /srv/gsfs0/projects/gbsc/workspace (adds up to about 21TB) [root@scg-gs0 ~]# mmlsquota -j projects.gbsc --block-size=G gsfs0 Block Limits | File Limits Filesystem type GB quota limit in_doubt grace | files quota limit in_doubt grace Remarks gsfs0 FILESET 39889 51200 51200 0 none | 1663212 0 0 4 none [root@scg-gs0 ~]# mmlsfileset gsfs0 |grep gbsc projects.gbsc Linked /srv/gsfs0/projects/gbsc Regards, -- Alex Chekholko chekh@stanford.edu _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
Hi Alex, While the numbers don’t match exactly, they’re close enough to prompt me to ask if data replication is possibly set to two? Thanks… Kevin On Sep 12, 2016, at 2:03 PM, Alex Chekholko <chekh@stanford.edu<mailto:chekh@stanford.edu>> wrote: Hi, For a fileset with a quota on it, we have mmlsquota reporting 39TB utilization (out of 50TB quota), with 0 in_doubt. Running a 'du' on the same directory (where the fileset is junctioned) shows 21TB usage. I looked for sparse files (files that report different size via ls vs du). I looked at 'du --apparent-size ...' https://en.wikipedia.org/wiki/Sparse_file What else could it be? Is there some attribute I can scan for inside GPFS? Maybe where FILE_SIZE does not equal KB_ALLOCATED? https://www.ibm.com/support/knowledgecenter/STXKQY_4.2.0/com.ibm.spectrum.sc... [root@scg-gs0 ~]# du -sm --apparent-size /srv/gsfs0/projects/gbsc/* 3977 /srv/gsfs0/projects/gbsc/Backups 1 /srv/gsfs0/projects/gbsc/benchmark 13109 /srv/gsfs0/projects/gbsc/Billing 198719 /srv/gsfs0/projects/gbsc/Clinical 1 /srv/gsfs0/projects/gbsc/Clinical_Vendors 1206523 /srv/gsfs0/projects/gbsc/Data 1 /srv/gsfs0/projects/gbsc/iPoP 123165 /srv/gsfs0/projects/gbsc/Macrogen 58676 /srv/gsfs0/projects/gbsc/Misc 6625890 /srv/gsfs0/projects/gbsc/mva 1 /srv/gsfs0/projects/gbsc/Proj 17 /srv/gsfs0/projects/gbsc/Projects 3290502 /srv/gsfs0/projects/gbsc/Resources 1 /srv/gsfs0/projects/gbsc/SeqCenter 1 /srv/gsfs0/projects/gbsc/share 514041 /srv/gsfs0/projects/gbsc/SNAP_Scoring 1 /srv/gsfs0/projects/gbsc/TCGA_Variants 267873 /srv/gsfs0/projects/gbsc/tools 9597797 /srv/gsfs0/projects/gbsc/workspace (adds up to about 21TB) [root@scg-gs0 ~]# mmlsquota -j projects.gbsc --block-size=G gsfs0 Block Limits | File Limits Filesystem type GB quota limit in_doubt grace | files quota limit in_doubt grace Remarks gsfs0 FILESET 39889 51200 51200 0 none | 1663212 0 0 4 none [root@scg-gs0 ~]# mmlsfileset gsfs0 |grep gbsc projects.gbsc Linked /srv/gsfs0/projects/gbsc Regards, -- Alex Chekholko chekh@stanford.edu _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
My thoughts exactly. Richard From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Buterbaugh, Kevin L Sent: 12 September 2016 20:08 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] big difference between output of 'mmlsquota' and 'du'? Hi Alex, While the numbers don’t match exactly, they’re close enough to prompt me to ask if data replication is possibly set to two? Thanks… Kevin On Sep 12, 2016, at 2:03 PM, Alex Chekholko <chekh@stanford.edu<mailto:chekh@stanford.edu>> wrote: Hi, For a fileset with a quota on it, we have mmlsquota reporting 39TB utilization (out of 50TB quota), with 0 in_doubt. Running a 'du' on the same directory (where the fileset is junctioned) shows 21TB usage. I looked for sparse files (files that report different size via ls vs du). I looked at 'du --apparent-size ...' https://en.wikipedia.org/wiki/Sparse_file What else could it be? Is there some attribute I can scan for inside GPFS? Maybe where FILE_SIZE does not equal KB_ALLOCATED? https://www.ibm.com/support/knowledgecenter/STXKQY_4.2.0/com.ibm.spectrum.sc... [root@scg-gs0 ~]# du -sm --apparent-size /srv/gsfs0/projects/gbsc/* 3977 /srv/gsfs0/projects/gbsc/Backups 1 /srv/gsfs0/projects/gbsc/benchmark 13109 /srv/gsfs0/projects/gbsc/Billing 198719 /srv/gsfs0/projects/gbsc/Clinical 1 /srv/gsfs0/projects/gbsc/Clinical_Vendors 1206523 /srv/gsfs0/projects/gbsc/Data 1 /srv/gsfs0/projects/gbsc/iPoP 123165 /srv/gsfs0/projects/gbsc/Macrogen 58676 /srv/gsfs0/projects/gbsc/Misc 6625890 /srv/gsfs0/projects/gbsc/mva 1 /srv/gsfs0/projects/gbsc/Proj 17 /srv/gsfs0/projects/gbsc/Projects 3290502 /srv/gsfs0/projects/gbsc/Resources 1 /srv/gsfs0/projects/gbsc/SeqCenter 1 /srv/gsfs0/projects/gbsc/share 514041 /srv/gsfs0/projects/gbsc/SNAP_Scoring 1 /srv/gsfs0/projects/gbsc/TCGA_Variants 267873 /srv/gsfs0/projects/gbsc/tools 9597797 /srv/gsfs0/projects/gbsc/workspace (adds up to about 21TB) [root@scg-gs0 ~]# mmlsquota -j projects.gbsc --block-size=G gsfs0 Block Limits | File Limits Filesystem type GB quota limit in_doubt grace | files quota limit in_doubt grace Remarks gsfs0 FILESET 39889 51200 51200 0 none | 1663212 0 0 4 none [root@scg-gs0 ~]# mmlsfileset gsfs0 |grep gbsc projects.gbsc Linked /srv/gsfs0/projects/gbsc Regards, -- Alex Chekholko chekh@stanford.edu<mailto:chekh@stanford.edu> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
However replicated files should show up with ls as taking about double the space. I.e. "ls -lash" 49G -r-------- 1 root root 25G Sep 12 21:11 Somefile I know you've said you checked ls vs du for allocated space it might be worth a double check. Also check that you haven't got a load of snapshots, especially if you have high file churn which will create new blocks; although with your figures it'd have to be very high file churn. -- Lauz On 12 September 2016 21:26:51 BST, "Sobey, Richard A" <r.sobey@imperial.ac.uk> wrote:
My thoughts exactly.
Richard
From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Buterbaugh, Kevin L Sent: 12 September 2016 20:08 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] big difference between output of 'mmlsquota' and 'du'?
Hi Alex,
While the numbers don’t match exactly, they’re close enough to prompt me to ask if data replication is possibly set to two? Thanks…
Kevin
On Sep 12, 2016, at 2:03 PM, Alex Chekholko <chekh@stanford.edu<mailto:chekh@stanford.edu>> wrote:
Hi,
For a fileset with a quota on it, we have mmlsquota reporting 39TB utilization (out of 50TB quota), with 0 in_doubt.
Running a 'du' on the same directory (where the fileset is junctioned) shows 21TB usage.
I looked for sparse files (files that report different size via ls vs du). I looked at 'du --apparent-size ...'
https://en.wikipedia.org/wiki/Sparse_file
What else could it be?
Is there some attribute I can scan for inside GPFS? Maybe where FILE_SIZE does not equal KB_ALLOCATED? https://www.ibm.com/support/knowledgecenter/STXKQY_4.2.0/com.ibm.spectrum.sc...
[root@scg-gs0 ~]# du -sm --apparent-size /srv/gsfs0/projects/gbsc/* 3977 /srv/gsfs0/projects/gbsc/Backups 1 /srv/gsfs0/projects/gbsc/benchmark 13109 /srv/gsfs0/projects/gbsc/Billing 198719 /srv/gsfs0/projects/gbsc/Clinical 1 /srv/gsfs0/projects/gbsc/Clinical_Vendors 1206523 /srv/gsfs0/projects/gbsc/Data 1 /srv/gsfs0/projects/gbsc/iPoP 123165 /srv/gsfs0/projects/gbsc/Macrogen 58676 /srv/gsfs0/projects/gbsc/Misc 6625890 /srv/gsfs0/projects/gbsc/mva 1 /srv/gsfs0/projects/gbsc/Proj 17 /srv/gsfs0/projects/gbsc/Projects 3290502 /srv/gsfs0/projects/gbsc/Resources 1 /srv/gsfs0/projects/gbsc/SeqCenter 1 /srv/gsfs0/projects/gbsc/share 514041 /srv/gsfs0/projects/gbsc/SNAP_Scoring 1 /srv/gsfs0/projects/gbsc/TCGA_Variants 267873 /srv/gsfs0/projects/gbsc/tools 9597797 /srv/gsfs0/projects/gbsc/workspace
(adds up to about 21TB)
[root@scg-gs0 ~]# mmlsquota -j projects.gbsc --block-size=G gsfs0 Block Limits | File Limits Filesystem type GB quota limit in_doubt grace | files quota limit in_doubt grace Remarks gsfs0 FILESET 39889 51200 51200 0 none | 1663212 0 0 4 none
[root@scg-gs0 ~]# mmlsfileset gsfs0 |grep gbsc projects.gbsc Linked /srv/gsfs0/projects/gbsc
Regards, -- Alex Chekholko chekh@stanford.edu<mailto:chekh@stanford.edu>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
------------------------------------------------------------------------
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Maybe you have a huge file open, that's been unlinked and still growing? -jf
Thanks for all the responses. I will look through the filesystem clients for open file handles; we have definitely had deleted open log files of multi-TB size before. The filesystem has replication set to 1. We don't use snapshots. I'm running a 'mmrestripefs -r' (some files were ill-placed from aborted pool migrations) and then I will run an 'mmcheckquota'. On 9/12/16 2:37 PM, Jan-Frode Myklebust wrote:
Maybe you have a huge file open, that's been unlinked and still growing?
-jf
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Alex Chekholko chekh@stanford.edu
'du' tallies up 'blocks allocated', not file sizes. So it shouldn't matter whether any sparse files are present. GPFS doesn't charge quota for data in snapshots (whether it should is a separate question). The observed discrepancy has two plausible causes: 1) Inaccuracy in quota accounting (more likely) 2) Artefacts of data replication (less likely) Running mmcheckquota in this situation would be a good idea. yuri From: Alex Chekholko <chekh@stanford.edu> To: gpfsug-discuss@spectrumscale.org, Date: 09/12/2016 12:04 PM Subject: [gpfsug-discuss] big difference between output of 'mmlsquota' and 'du'? Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, For a fileset with a quota on it, we have mmlsquota reporting 39TB utilization (out of 50TB quota), with 0 in_doubt. Running a 'du' on the same directory (where the fileset is junctioned) shows 21TB usage. I looked for sparse files (files that report different size via ls vs du). I looked at 'du --apparent-size ...' https://en.wikipedia.org/wiki/Sparse_file What else could it be? Is there some attribute I can scan for inside GPFS? Maybe where FILE_SIZE does not equal KB_ALLOCATED? https://www.ibm.com/support/knowledgecenter/STXKQY_4.2.0/com.ibm.spectrum.sc... [root@scg-gs0 ~]# du -sm --apparent-size /srv/gsfs0/projects/gbsc/* 3977 /srv/gsfs0/projects/gbsc/Backups 1 /srv/gsfs0/projects/gbsc/benchmark 13109 /srv/gsfs0/projects/gbsc/Billing 198719 /srv/gsfs0/projects/gbsc/Clinical 1 /srv/gsfs0/projects/gbsc/Clinical_Vendors 1206523 /srv/gsfs0/projects/gbsc/Data 1 /srv/gsfs0/projects/gbsc/iPoP 123165 /srv/gsfs0/projects/gbsc/Macrogen 58676 /srv/gsfs0/projects/gbsc/Misc 6625890 /srv/gsfs0/projects/gbsc/mva 1 /srv/gsfs0/projects/gbsc/Proj 17 /srv/gsfs0/projects/gbsc/Projects 3290502 /srv/gsfs0/projects/gbsc/Resources 1 /srv/gsfs0/projects/gbsc/SeqCenter 1 /srv/gsfs0/projects/gbsc/share 514041 /srv/gsfs0/projects/gbsc/SNAP_Scoring 1 /srv/gsfs0/projects/gbsc/TCGA_Variants 267873 /srv/gsfs0/projects/gbsc/tools 9597797 /srv/gsfs0/projects/gbsc/workspace (adds up to about 21TB) [root@scg-gs0 ~]# mmlsquota -j projects.gbsc --block-size=G gsfs0 Block Limits | File Limits Filesystem type GB quota limit in_doubt grace | files quota limit in_doubt grace Remarks gsfs0 FILESET 39889 51200 51200 0 none | 1663212 0 0 4 none [root@scg-gs0 ~]# mmlsfileset gsfs0 |grep gbsc projects.gbsc Linked /srv/gsfs0/projects/gbsc Regards, -- Alex Chekholko chekh@stanford.edu _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (7)
-
Alex Chekholko -
Bryan Banister -
Buterbaugh, Kevin L -
Jan-Frode Myklebust -
Laurence Horrocks-Barlow -
Sobey, Richard A -
Yuri L Volobuev
