I want to add up the quotas I've assigned on a particular partition and see if the total is bigger than the disk. It's possible to do this (awkwardly) using repquota or quota. Is there no more accurate/elegant way? I can't be the first person to worry that more quota has been issued than the disk can supply. mahalo and Happy New Year, Dave -- Q: Why should this email be 5 sentences or less? A: http://five.sentenc.es
Jorge Fábregas
2010-Dec-31 16:42 UTC
[CentOS] OT how to prevent oversubscription of a disk
On Thursday, December 30, 2010 09:53:25 pm Dave wrote:> I want to add up the quotas I've assigned on a particular partition > and see if the total is bigger than the disk. It's possible to do this > (awkwardly) using repquota or quota. Is there no more accurate/elegant > way?I don't think so. I haven't seen any switch on any of the usual commands (repquota etc) to get this. I guess you'll have to do some scripting to add up the "used" values in order to compare them with your partition size. If you find/create the elegant way, please share... Happy New Year! Jorge