520+0 records in
520+0 records out
#
鬼!竟然
有任何
错误发
生了!
545259520 bytes (545
MB) copied, 0.308407 s, 180 MB/s
[root@study ~]#
xfs_quota
-
x
-
c "report
-
pbh" /home
Project quota on /home (/dev/mapper/centos
-
home)
Blocks
Project ID Used Soft Hard Warn/Grace
----------
-------------------------------
--
myquotaproject
520M
450M 500M 00 [
-
none
-
]
#
真的有超
耶!只是因
disable
系,所以
制限制住就是了!
[root@study ~]#
xfs_quota
-
x
-
c "enable
-
up" /home
#
重新
启动
quota
限制
[root@study ~]#
dd if=/dev/zero of=/home/myquota/123.img bs=1M count=520
dd: error writing
'
/home/myquota/123.img
'
: No space left on device
#
始有限制!
就是
enable/disable
的相
关对应
功能喔!
暂时关闭
/
启动
用的!
#
完全
关闭
quota
的限制行
吧!同
取消
project
的功能
看看!
[root@study ~]#
xfs_quota
-
x
-
c "off
-
up" /home
[root@study ~]#
xfs_quota
-
x
-
c "enable
-
up" /home
XFS_QUOTAON:
Function not implemented
#
您瞧瞧!
法重新
启动
!因
完全的
关闭
quota
的功能!所以得要
umouont/mount
才行!
[root@study ~]#
umount /home; mount
-
a
#
这个时
候使用
report
以及
state
,管制限制的
容又重新回
了!好!
瞧瞧如何移除
project
[root@study ~]#
xfs_quota
-
x
-
c "off
-
up" /home
[root@study ~]#
xfs_quota
-
x
-
c "remove
-
p" /home
[root@study ~]#
umount /home; mount
-
a
[root@study ~]#
xfs_quota
-
x
-
c "report
-
phb" /home
Project quota on /home (/dev/mapper/centos
-
home)
Blocks
Project ID Used Soft Hard Warn/Grace
----------
---------------------------------
myquotaproject 500M
0 0
00 [
------
]
#
嘿嘿!全部
零!就是『移除』所有限制值的意思!
请注意上表中最后一个练习,那个
remove -p
是『移除所有的
project
控制列表』的意思!也就是说,
如果你有在
/home
设定多个
project
的限制,
那么
remove
会删的一个也不留喔!如果想要回复设
定值,那
...
只能一个一个重新设定回去了!没有好办法!
上面就是
XFS
文件系统的简易
quota
处理流程~那如果你是使用
EXT
家族呢?能不能使用
quota
呢?除了参考
上一版
的文件之外,鸟哥这里也列出相关的参考指令
/
配置文件案给你对照参考!
没学过的可以看看流程,有学过的可以对照了½!
^_^