查看配额状态:
mount
安装配额管理包:
apt install quota
修改/etc/fstab:
uuid=<uuid>
/dev/qinlv
/mnt/qinlv xfs
defaults,usrquota,grpquota
0 0
激活配额检测:(xfs 不用)
ext4 执行: quotacheck -cvug /mnt/qinlv
setquota -u qin 10240 20480 5 6 /mnt/qinlv
10240 软空间限制
20480 硬空间限制
5
6
硬文件数限制
测试:
touch /mnt/qinlv/qinfile{1..9}
dd if=/dev/zero of=/mnt/qinlv/qinfile1 bs=1M count=22
https://xpanx.com/
评论