如何理解配额的输出?

在科学的Linux服务器上(实际上是一个集群的一个节点),我运行

$ quota -vs Disk quotas for user tim (uid 12345): Filesystem blocks quota limit grace files quota limit grace /dev/vdb 12 126G 126G 3 8389k 8389k 
  1. 根据https://www.isg.inf.ethz.ch/HelpHowToCheckQuotaLinux , blocks是使用千字节的磁盘空间,但我发现我的家已经使用了超过12千字节:

     $ du -sh ~ 4.1G /afs/user/tim 
  2. 该网页还表示, filefile的数量,但我有我的家或当前目录多于3个文件。

那么我怎么理解quota输出的含义呢?

mount输出:

 $ mount /dev/vda1 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/vda2 on /var type ext4 (rw) /dev/vda5 on /var/lib/cvmfs type ext4 (rw,noatime,nodiratime) /dev/vdb on /tmp type ext3 (rw,_netdev,usrquota) sssd on /var/lib/sss/db type tmpfs (rw,size=300M,mode=0700,rootcontext="system_u:object_r:sssd_var_lib_t:s0") none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) AFS on /afs type afs (rw) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) cvmfs2 on /cvmfs/xxx.xxx.xxx type fuse (ro,nosuid,nodev,allow_other,default_permissions) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) cvmfs2 on /cvmfs/xxx.xxx.xxx type fuse (ro,nosuid,nodev,allow_other,default_permissions) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/work/xxx type fuse (rw,nosuid,nodev,user=xxx) [email protected]:/xxx/xxx/xxx on /afs/user/xxx type fuse.sshfs (rw,nosuid,nodev,user=xxx) [email protected]:/Volumes/RAID/Data/xxx on /afs/user/xxx/xxx type fuse.sshfs (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) xxx.xxx.xxx on /afs/user/xxx type fuse (rw,nosuid,nodev,user=xxx) cvmfs2 on /cvmfs/xxx.xxx.xxx type fuse (ro,nosuid,nodev,allow_other,default_permissions) cvmfs2 on /cvmfs/xxx.xxx.xxx type fuse (ro,nosuid,nodev,allow_other,default_permissions) cvmfs2 on /cvmfs/xxx.xxx.xxx type fuse (ro,nosuid,nodev,allow_other,default_permissions) cvmfs2 on /cvmfs/xxx.xxx.xxx type fuse (ro,nosuid,nodev,allow_other,default_permissions) 

fs lq输出

 $ fs lq /afs/user/tim Volume Name Quota Used %Used Partition user.tim 10485760 4266340 41% 0% 

列出的配额适用于/dev/vdb设备,您可以看到它已挂载在/tmp 。 所以,你只能在/tmp下创build800万个文件或者使用126GB空间。

要查看您的AFS配额,对于您的networking文件系统,您需要运行fs lq <directory>

例如: fs lq /afs/user/tim