拾遗:『ext4 Quota』
生活随笔
收集整理的這篇文章主要介紹了
拾遗:『ext4 Quota』
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、關閉selinux
[root@6 home]# sestatus -v SELinux status: disabled 示例:臨時關閉 [root@6 home]# setenforce 0 示例:永久關閉 [root@6 home]# vi /etc/selinux/config SELINUX=disabled二、在/etc/fstab中添加usrquota、grpquota掛載參數
/dev/mapper/VolGroup-lv_home /home ext4 defaults,usrquota,grpquota 1 2三、使用quotacheck掃描創建配置文件
# quotacheck -avug四、使用edquota編輯配置文件
編輯指定用戶/組的配額 # edquota -u username/-g groupname 更改超額寬限期 # edquota -t五、開啟/關閉quota
全部開啟/關閉 # quotaon/quotaoff -avug 指定user/group關閉 # quotaon/quotaoff -u USERNAME/-g GROUPNAME六、查看配額報告/狀態
[root@6 home]# repquota -avugs *** Report for user quotas on device /dev/mapper/VolGroup-lv_home Block grace time: 7days; Inode grace time: 7daysBlock limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 20 0 0 2 0 0 test -- 16 0 0 4 0 0 Statistics: Total blocks: 7 Data blocks: 1 Entries: 2 Used average: 2.000000*** Report for group quotas on device /dev/mapper/VolGroup-lv_home Block grace time: 7days; Inode grace time: 7daysBlock limits File limits Group used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 20 0 0 2 0 0 test -- 16 0 0 4 0 0 Statistics: Total blocks: 7 Data blocks: 1 Entries: 2 Used average: 2.000000轉載于:https://www.cnblogs.com/hadex/archive/2012/09/06/5825145.html
總結
以上是生活随笔為你收集整理的拾遗:『ext4 Quota』的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: StateListDrawable和Sh
- 下一篇: (转)Git详解之三:Git分支