hugh@slee01.srl.ford.com (Hugh Fader) (04/12/90)
I'm trying to set up disk quotas on a Sun Sparcstation I. I have encountered something I don't understand. TFM says that quotas are specified in 1K blocks so a quota of 1000 is 1 Mb of disk space. The output from the quota command doesn't agree with this. For example user smith has a 20 Mb disk quota on /home. The output from quota is. # quota -v smith Disk quotas for smith (uid 103): Filesystem usage quota limit timeleft files quota limit timeleft /home 6 20000 21000 0 0 0 What is the usage of 6 mean? If I do a du on smith's account I get: # du -s ~smith 12703 /home/smith Smith does own all the files in this account. Another account with about 12 Mb of use (obtained from du) shows 0 usage from the quota command. I don't understand. Can somebody out there educate me? Hugh Fader hugh@slee01.srl.ford.com
jms@tardis.tymnet.com (Joe Smith) (04/14/90)
In article <6631@brazos.Rice.edu> hugh@slee.srl.ford.com writes: >X-Sun-Spots-Digest: Volume 9, Issue 118, message 8 >Disk quotas for smith (uid 103): >Filesystem usage quota limit timeleft files quota limit timeleft >/home 6 20000 21000 0 0 0 > >Smith does own all the files in this account, about 12703 blocks. It means that only 6K bytes of files have been created by smith since the quota system was enabled. When you first gave smith a quota using edquota, he had 0 blocks used, since the quota daemon had not been informed of smith's current usage. You need to run /usr/etc/quotacheck after creating a quota for a user that did not have a quota when the system was last rebooted. Note that /etc/rc runs quotacheck. Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C41 | BIX: smithjoe | 12 PDP-10s still running! "POPJ P," San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga speaks for me."