操作系统:RHEL6.4 - 64位
编辑/etc/fstab 开启/software 磁盘配额
[root@rhel64 ~]# vi /etc/fstab
[root@rhel64 ~]# mount
[root@rhel64 ~]# mount -o remount /software
[root@rhel64 ~]# mount
[root@rhel64 ~]# quotacheck -cum /software
![]()
[root@rhel64 ~]# ll /software/
[root@rhel64 ~]# quotaon /software
[root@rhel64 ~]# edquota tom

block单位是K
[root@rhel64 ~]# chmod a+w /software/

[tom@rhel64 software]$ mkdir tomdir
[tom@rhel64 software]$ touch tomfile
[tom@rhel64 software]$ quota
[root@rhel64 ~]# repquota -a
[tom@rhel64 software]$ dd if=/dev/zero of=/software/tomfile2 bs=1M count=110
[tom@rhel64 software]$ ls -lh
[tom@rhel64 software]$ quota
[tom@rhel64 software]$ rm -rf tom*
[tom@rhel64 software]$ quota
[tom@rhel64 software]$ mkdir tomdir{1,2,3,4}-{1,2,3,4,5}-{1,2,3,4,5}
[tom@rhel64 software]$ quota
[tom@rhel64 software]$ mkdir tomdir
[root@rhel64 ~]# quotaoff /software
修改/etc/fstab 删除usrquota
[root@rhel64 ~]# vi /etc/fstab
[root@rhel64 ~]# mount -o remount /software/
[root@rhel64 ~]# mount

吕星昊
2016.1.1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29475508/viewspace-1969404/ ,如需转载,请注明出处,否则将追究法律责任。