Sun quota

Wouter Smaal Delft Univ. tnhrwou at duttnph.UUCP
Sat Feb 4 02:22:01 AEST 1989


We have a Sun4/280 (Sunos4.0) gateway file server, which services 11
Sun3 discless clients. I use quotation for one filesystem home/`server'. 
(/dev/xy0h             533461  240375  239739    50%    /home/duttnph) 
    
After booting our server, I noticed the following:
- The file system quota consistency checker (quotacheck) does'nt work. 
- quota is not turned on (quotaon).
 
>From the manual I read:
quotacheck  is  normally  run  at   boot   time   from   the 
     /etc/rc.local  file,  see rc(8), before enabling disk quotas 
     with quotaon(8). 
 
However, not in the /etc/rc.local file, but in the /etc/rc file I find  
the following about quota:
mount -at 4.2                       >/dev/console 2>&1 
                (echo -n 'checking quotas: ') >/dev/console 
quotacheck -a -p                    >/dev/console 2>&1    
                (echo 'done.')      >/dev/console    
quotaon -a 
 
Of course, on the file system root (/home/duttnph) there is a quotas
file edited with edquota.
 
Because the quota does'nt work for that particular file system, after
booting, I do manual on the server, via tty/pty:
- quotacheck -v /home/duttnph 
- quotaon -v /home/duttnph   
Then finally, the quota for the filesystem (home/`server') works. 
 
more /etc/mtab 
/dev/xy0a / 4.2 rw,nosuid 1 1 
/dev/xy0g /usr 4.2 rw 1 2   
/dev/xy0f /export/exec/sun3 4.2 rw,nosuid 1 7 
/dev/xy1e /export/swap 4.2 rw,nosuid 1 6    
/dev/xy1d /export/root 4.2 rw,nosuid 1 5 
/dev/xy0h /home/duttnph 4.2 rw,quota 1 4 <------ 
/dev/xy1b /home/duttnph/ph/images 4.2 rw 1 10  
/dev/xy0e /home/duttnph/ph/local 4.2 rw 1 9 
/dev/xy1a /home/duttnph/backup 4.2 rw 1 8 
/dev/xy0d /var 4.2 rw 1 3 
dutrun:/var/spool/news /var/spool/news nfs ro,soft 0 0 
dutrun:/usr/lib/news /usr/lib/news/dutrun nfs ro,soft 0 0 
 
Is there any body who knows why quotacheck and quotaon does'nt work
after the server is booted ???
 
------------------------------------------------------------------------

Wouter Smaal (System Manager)    | tnhrwou at duttnph.UUCP 
Simulation of Systems Group      | mcvax!hp4nl!dutrun!duttnph!tnhrwou 
Department of Applied Physics    | voice 31 - (0)15 - 781416  Fax 783251

            Delft University of Technology  The Netherlands    
------------------------------------------------------------------------



More information about the Comp.unix.wizards mailing list