[root@study ~]#
xfs_quota
-
x
-
c "print"
Filesystem Pathname
/ /dev/mapper/centos
-
root
/srv/myproject /dev/vda4
/boot
/dev/vda2
/home /dev/mapper/centos
-
home (
uquota, gquota
)
#
所以
里就有
示支持
范例二:列出目前
/home
这个
支持
quota
载点
文件系
使用情
[root@study ~]#
xfs_quota
-
x
-
c "df
-
h" /home
Filesystem Size Used Avail Use% Pathname
/dev/mapper/centos
-
home
5.0G 67.0M 4.9G 1% /home
#
如上所示,其
跟原本的
df
差不多啦!只是
更正确就是了。
范例三:列出目前
/home
的所有用
quota
限制值
[root@study ~]#
xfs_quota
-
x
-
c "report
-
ubih" /home
User quota on /home (/dev/mapper/centos
-
home)
Blocks
Inodes
User ID
Used Soft Hard Warn/Grace
Used Soft Hard Warn/Grace
----------
---------------------------------
---------------------------------
root 4K 0 0 00 [
------
] 4 0 0 00 [
------
]
dm
tsai 34.0M 0 0 00 [
------
] 432 0 0 00 [
------
]
.....(
省略
).....
myquota1 12K 0 0 00 [
------
] 7 0 0 00 [
------
]
myquota2 12K 0 0 00 [
------
] 7 0 0 00 [
------
]
myqu
ota3 12K 0 0 00 [
------
] 7 0 0 00 [
------
]
myquota4 12K 0 0 00 [
------
] 7 0 0 00 [
------
]
myquota5 12K 0 0 00 [
------
] 7 0 0 00 [
------
]
#
所以列出了所有用
的目前的
文件
使用情
,并且列出
定值。注意,最上面的
Block
#
代表
这个
block
容量限制,而
inode
文件
量限制喔。另外,
soft/hard
0
,代表
限制
范例四:列出目前支持的
quota
文件系
是否有起
quota
功能?
[root@study ~]#
xfs_quota
-
x
-
c "state"
User quota state on /home (/dev/mapper/centos
-
home)
Accounting: ON
#
算功能
Enforcement: ON
#
实际
quota
管制的功能
Inode: #1568 (4 blocks, 4 extents)
#
上面四行
明的是有激活
user
的限制能力
Group quota state on /home (/dev/mapper/centos
-
home)
Accounting: ON
Enforcement: ON
Inode: #1569 (5 blocks, 5 extents)
#
上面四行
明的是有激活
group
的限制能力
Project quota state on /home (/dev/mapper/centos
-
home)
Accounting: OFF
Enforcement: OFF