[gpfsug-discuss] gpfs userquota : can df represent the users space used
Walter Sklenka
Walter.Sklenka at EDV-Design.at
Tue Apr 9 13:40:49 BST 2024
Hello Jonathan!
Yes you are right: home is a fileset and filesetdf is set
So do I understand right: a df always shows a "device free" report ( independent from being a fileset or not)
Yes, I would be very interested in the utility 😊
Thank you very much ! Best wishes
Mit freundlichen Grüßen
Walter Sklenka
Technical Consultant
EDV-Design Informationstechnologie GmbH
Giefinggasse 6/1/2, A-1210 Wien
Tel: +43 1 29 22 165-31
Fax: +43 1 29 22 165-90
E-Mail: sklenka at edv-design.at
Internet: www.edv-design.at
-----Original Message-----
From: gpfsug-discuss <gpfsug-discuss-bounces at gpfsug.org> On Behalf Of Jonathan Buzzard
Sent: Dienstag, 9. April 2024 13:50
To: gpfsug-discuss at gpfsug.org
Subject: Re: [gpfsug-discuss] gpfs userquota : can df represent the users space used
On 09/04/2024 12:25, Walter Sklenka wrote:
> CAUTION: This email originated outside the University. Check before
> clicking links or attachments.
>
> Hi!
>
> A collegue/customer asked me theses days why on the quota enabled
> filesystem a “df .” in the home dir does not show his used and free
> space , representing the quotas
>
> I have to admit I never checked this before . On an other gpfs cluster
> he says it does
>
> When using mmlsquota as normal user this works
>
> xy at lxx:~$ /usr/lpp/mmfs/bin/mmlsquota --block-size auto
>
> Block Limits | File
> Limits
>
> Filesystem Fileset type blocks quota limit
> in_doubt grace | files quota limit in_doubt grace
> Remarks
>
> mulfs home USR 29.31G 4.785T 5T
> 0 none | 208821 0 0 0 none
>
> mulfs scratch USR 16K 0 0
> 0 none | 79 0 0 0 none
>
> My silly question is, should “df” do the same and if not what could be
> the reasons?
>
Sounds like the home directory might be a fileset and filesetdf might be set for the file system where df is reporting the home directory quota numbers for mmdf.
In general mmdf behaves like df so you get a "device free" report not a quota report.
I wrote a small utility that I call mmdiskusage that reports a users home directory quota if it exists. It also skips the in_doubt number because that confuses users. We have it called automatically when they log on, start a terminal etc.
Output looks like this
Block Limits | File Limits
Usage Quota Limit Grace | Files Quota Limit
Grace
55.7G 350G 1T n/a | 37109 1000000 2000000
n/a
I could post the source if people are interested. It's about 100 lines of clean C plus comments Apache license. It was a development of the mmdfree command I wrote back in the day for Samba.
JAB.
--
Jonathan A. Buzzard Tel: +44141-5483420
HPC System Administrator, ARCHIE-WeSt.
University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20240409/51581f78/attachment.htm>
More information about the gpfsug-discuss
mailing list