Sometimes.. when i run some commands, I see that the command quits withe error: "Disk quota exceeded".
But when i check the disk utilization using "df -h" i have pretty much space left to use.
Whats the point of disk quota here.
Linux administrators can set quota.. a limit for each user on how much he can fill that File system.
The quota limitation if for two aspects:
But when i check the disk utilization using "df -h" i have pretty much space left to use.
Whats the point of disk quota here.
Linux administrators can set quota.. a limit for each user on how much he can fill that File system.
The quota limitation if for two aspects:
- Total space used by user.
- Total number of files created by user.
Lets take an example of user limits are 100GB and 10000 files.
Now for the first point, if user creates 11 files of 10 GB each, then his disk quota is exceeded.
for the second point, if user creates 12000 files of 10KB each, then total space is 120MB, but the limitation of file quota is exceeded, in this case also the disk quota is exceeded.
To get user quota on different disk storages: use this command
$> quota
$> quota
XXX.XXX.XXX.XXX:/local/------
243220716 17179869180 17179869180 803381 4294967295 4294967295
In this output, the total blocks used by the user are 243220716 and maximum blocks is 17179869180
The total number of files used by user are 803381 and maximum user can create is 17179869180
To get the number of blocks used by a folder use this command:
$> du -s <FOLDER>
Comments
Post a Comment