[root@localhost zhongq]# xfs_quota -x -c 'report' /xfsdata
							
								User quota on /xfsdata (/dev/mapper/xfsgroup00-xfsdata)
							
								                               Blocks                    
							
								User ID          Used       Soft       Hard    Warn/Grace    
							
								---------- --------------------------------------------------
							
								root                0          0          0     00 [--------]
							
								 
							
								Group quota on /xfsdata (/dev/mapper/xfsgroup00-xfsdata)
							
								                               Blocks                    
							
								Group ID         Used       Soft       Hard    Warn/Grace    
							
								---------- --------------------------------------------------
							
								root                0          0          0     00 [--------]
							
								 
							
								[root@localhost zhongq]# xfs_quota -x -c 'limit bsoft=100M bhard=120M zhongq' /xfsdata
							
								[root@localhost zhongq]#xfs_quota -x -c 'report' /xfsdata
							
								User quota on /xfsdata (/dev/mapper/xfsgroup00-xfsdata)
							
								                               Blocks                    
							
								User ID          Used       Soft       Hard    Warn/Grace    
							
								---------- --------------------------------------------------
							
								root                0          0          0     00 [--------]
							
								zhongq              0     102400     122880     00 [--------]
							
								 
							
								Group quota on /xfsdata (/dev/mapper/xfsgroup00-xfsdata)
							
								                               Blocks                    
							
								Group ID         Used       Soft       Hard    Warn/Grace    
							
								---------- --------------------------------------------------
							
								root                0          0          0     00 [--------]
							
								 
							
								[root@localhost zhongq]# su zhongq
							
								[zhongq@localhost ~]$ dd if=/dev/zero of=/xfsdata/zq00 bs=1M count=100
							
								100+0 records in
							
								100+0 records out
							
								104857600 bytes (105 MB) copied, 28.9833 s, 3.6 MB/s
							
								[zhongq@localhost ~]$ dd if=/dev/zero of=/xfsdata/zq01 bs=1M count=100
							
								dd: error writing ‘/xfsdata/zq01’: Disk quota exceeded
							
								21+0 records in
							
								20+0 records out
							
								20971520 bytes (21 MB) copied, 4.18921 s, 5.0 MB/s
							
								 
							
								[zhongq@localhost ~]$ exit
							
								 
							
								[root@localhost zhongq]# xfs_quota
							
								xfs_quota> help
							
								df [-bir] [-hn] [-f file] -- show free and used counts for blocks and inodes
							
								help [command] -- help for one or all commands
							
								print -- list known mount points and projects
							
								quit -- exit the program
							
								quota [-bir] [-gpu] [-hnNv] [-f file] [id|name]... -- show usage and limits
							
								 
							
								Use 'help commandname' for extended help.
							
								xfs_quota> print
							
								Filesystem          Pathname
							
								/                   /dev/mapper/centos-root
							
								/boot               /dev/sda1
							
								/var/lib/docker     /dev/mapper/centos-root
							
								/xfsdata            /dev/mapper/xfsgroup00-xfsdata (uquota, gquota)
							
								xfs_quota> quota -u zhongq
							
								Disk quotas for User zhongq (1000)
							
								Filesystem                        Blocks      Quota      Limit  Warn/Time      Mounted on
							
								/dev/mapper/xfsgroup00-xfsdata    122880     102400     122880   00  [6 days]   /xfsdata