Increasing filesystem quotas on Linux

WOW! It was ages I didn't any quota management on Linux!!! But I needed to today, so a short review was needed.

First, as root I had to check what my quotas looked like:

# quota -u bronto ; echo $?
Disk quotas for user bronto (uid 1158): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/mapper/homes-home
                5089700* 5000000 7000000   6days     309       0       0        
1

Oh, man! Look that "*" and that return code of "1"! I really was over quota (by chance, that was the soft limit only). I needed to increase it, so I checked the man page and did some dry runs with quotatool. After a few attempts, this line looked fine:

# quotatool -n -b -u bronto -q +2000000 -l +2000000 /home

Running it again without the "-n" showed no error, and running the quota command again confirmed everything was now fine:

# quotatool -b -u bronto -q +2000000 -l +2000000 /home
# quota -u bronto
Disk quotas for user bronto (uid 1158): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/mapper/homes-home
                5089700  7000000 9000000             309       0       0        

Good, now I have some more space for my backups, and also a blog post to refer to when I'll have to increase it again in 10 years 😉

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.