Test on quota

阅读更多

# cd /export/home/ # >quotas # chmod 600 quotas # edquota oracle "/tmp/EdP.azHa4p1" 1 line, 72 characters fs /export/home blocks (soft = 0, hard = 0) inodes (soft = 10, hard = 10) "/tmp/EdP.azHa4p1" 1 line, 74 characters # quotacheck -va # quotaon /export/home # repquota -va # pwd /export/home # vi /etc/vfstab "/etc/vfstab" 14 lines, 528 characters #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # fd - /dev/fd fd - no - /proc - /proc proc - no - /dev/dsk/c0t0d0s1 - - swap - no - /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no - /dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /app/oracle ufs 2 yes - /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes rq /devices - /devices devfs - no - sharefs - /etc/dfs/sharetab sharefs - no - ctfs - /system/contract ctfs - no - objfs - /system/object objfs - no - swap - /tmp tmpfs - yes - ~ "/etc/vfstab" 14 lines, 533 characters # quotaon /export/home # repquota -va /dev/dsk/c0t0d0s7 (/export/home): Block limits File limits User used soft hard timeleft used soft hard timeleft oracle -- 0 0 0 0 10 10 # su - oracle $ dd if=/dev/zero of=/export/home/oracle/test.dd bs=1024 count=1024000 1024000+0 records in 1024000+0 records out $exit # repquota -va /dev/dsk/c0t0d0s7 (/export/home): Block limits File limits User used soft hard timeleft used soft hard timeleft oracle -- 1024512 0 0 1 10 10 # $ > 1 $ > 2 $ >3 $ >4 $ >5 $ >6 $ >7 $ >8 $ >9 quota_ufs: over file hard limit (pid 27297, uid 400, fs /export/home) ksh[2]: 9: cannot create # repquota -va /dev/dsk/c0t0d0s7 (/export/home): Block limits File limits User used soft hard timeleft used soft hard timeleft oracle -- 10245009 0 0 9 10 10

你可能感兴趣的:(Test on quota)