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@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