# su - userq Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001 $ ls -l total 6 -rw-r--r-- 1 userq other 124 Mar 18 09:25 local.cshrc -rw-r--r-- 1 userq other 607 Mar 18 09:25 local.login
-rw-r--r-- 1 userq other 582 Mar 18 09:25 local.profile $ cp /tmp/a1000k . $ cp /tmp/a1080k . quota_ufs: over hard disk limit (pid 1070, uid 1002, inum 371751, fs /) cp: /tmp/a1080k: Disc quota exceeded
列目录看看,第二个cp操作因超过硬限额而失败。 $ ls -l total 2022 -rw-r--r-- 1 userq other 1024000 Mar 18 10:35 a1000k -rw-r--r-- 1 userq other 124 Mar 18 09:25 local.cshrc -rw-r--r-- 1 userq other 607 Mar 18 09:25 local.login -rw-r--r-- 1 userq other 582 Mar 18 09:25 local.profile $ exit
下面用edquota把userq的硬限制改为2124后,再重复试验(别忘quotacheck!):
...... $ cp /tmp/a1080k . quota_ufs: Warning: over disk limit (pid 1151, uid 1002, inum 371751, fs /)
列目录看看,警告归警告,可是操作还是成功了。 $ ls -l total 4198 -rw-r--r-- 1 userq other 1024000 Mar 18 10:35 a1000k -rw-r--r-- 1 userq other 1105920 Mar 18 10:45 a1080k。 -rw-r--r-- 1 userq other 124 Mar 18 09:25 local.cshrc -rw-r--r-- 1 userq other 607 Mar 18 09:25 local.login -rw-r--r-- 1 userq other 582 Mar 18 09:25 local.profile $ exit
老大,我在执行 # edquota userq 的时候,出现了/etc/mnttab: no UFS filesystems with quotas file 这样的提示,该怎么解决啊!?
yong6 回复于:2003-05-22 15:51:07
add -o q
yong6 回复于:2003-05-22 16:01:34
The following /etc/vfstab example shows that the /export/home directory from the system pluto is mounted as an NFS file system on the local system. You can tell quotas are enabled by the rq entry under the mount options column..
#device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # pluto:/export/home - /export/home nfs - yes rq
nortell 回复于:2003-05-29 21:32:44
是在vfstab 中加入这一行“ pluto:/export/home - /export/home nfs - yes rq ” 吗? 我加了但作mount all 时保错! aaa1:root/etc >mount all mount: warning: line for "/export/home" in vfstab has too few entries mount: mount point cannot be determined aaa1:root/etc >