如何理解配额的产出?

如何理解配额的产出?

在 Scientific 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/HelpHowToCheckQuotaLinuxblocks是已使用的磁盘空间,单位为千字节,但我发现我家使用的已经远远超过12千字节:

    $ du -sh ~
    4.1G    /afs/user/tim
    
  2. 网页上还显示了file文件的数量,但是我的主目录或当前目录中的文件数量远超 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% 

答案1

列出的配额适用于/dev/vdb您可以看到安装在 上的设备/tmp。因此,您只能在 下创建 800 万个文件或使用 126GB 的空间/tmp

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

例如:fs lq /afs/user/tim

相关内容