I've been troubleshooting some storage issues (user unable to upload new files) and ran into something weird. The du command and the quota command show a big difference in the amount of storage being consumed by the user.
If I run "quota -v -h guest" it shows this user has consumed 20GB of storage:
Notice the "usage" field says 20GB. However, when I run "du -ch /home/guest" it's showing
The latter number, 48GB, is correct, based on what I'm seeing when I use the "df" command, it's showing about 50GB of space used by their partition.
So I'm wondering why quota is 30GB short. I ran quotacheck today and it still says 20GB of space is used.
More to the point, if quotacheck isn't setting the right usage amount, then how do I update the quota information to have it show correctly that the user is consuming 48GB of space, not 20GB?
I had wondered if the user somehow had 28GB of files in their home directory that were not theirs, but I checked and all the files in their home directory are owned by their user, UID 1003.
So how can a user have 48GB of files they own in their directory, but only be using 20GB of space, according to the quota command?
If I run "quota -v -h guest" it shows this user has consumed 20GB of storage:
Code:
Disk quotas for user guest (uid 1003):
Filesystem usage quota limit grace files quota limit grace
/home/guest 20G 20G 21G 5030 5500 6000
Notice the "usage" field says 20GB. However, when I run "du -ch /home/guest" it's showing
Code:
48G total
The latter number, 48GB, is correct, based on what I'm seeing when I use the "df" command, it's showing about 50GB of space used by their partition.
So I'm wondering why quota is 30GB short. I ran quotacheck today and it still says 20GB of space is used.
More to the point, if quotacheck isn't setting the right usage amount, then how do I update the quota information to have it show correctly that the user is consuming 48GB of space, not 20GB?
I had wondered if the user somehow had 28GB of files in their home directory that were not theirs, but I checked and all the files in their home directory are owned by their user, UID 1003.
So how can a user have 48GB of files they own in their directory, but only be using 20GB of space, according to the quota command?