XFS Quotas: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://scriptthe.net/2014/08/06/setting-up-a-hard-quota-with-a-directory-on-xfs/ * https://docs.oracle.com/cd/E37670_01/E37355/html/ol_quoset_xfs.html * https:/...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=


* https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/xfsquota
* https://scriptthe.net/2014/08/06/setting-up-a-hard-quota-with-a-directory-on-xfs/
* https://scriptthe.net/2014/08/06/setting-up-a-hard-quota-with-a-directory-on-xfs/
* https://docs.oracle.com/cd/E37670_01/E37355/html/ol_quoset_xfs.html
* https://docs.oracle.com/cd/E37670_01/E37355/html/ol_quoset_xfs.html
* https://docs.oracle.com/cd/E37670_01/E37355/html/ol_prjquo_xfs.html
* https://docs.oracle.com/cd/E37670_01/E37355/html/ol_prjquo_xfs.html
* https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/xfsquota


=Internal=
=Internal=
Line 11: Line 11:


=Overview=
=Overview=
=Installation=
yum install xfsprogs
=Operations=
==Info==
===Verify the Type of Quota===
xfs_quota -xc 'print' /openshift.local.volumes
Filesystem          Pathname
/openshift.local.volumes /dev/vdc1 ('''gquota''')
===Verify the Type of Enforcement===
xfs_quota -xc 'state' /openshift.local.volumes
User quota state on /openshift.local.volumes (/dev/vdc1)
  Accounting: '''OFF'''
  Enforcement: '''OFF'''
  Inode: #0 (0 blocks, 0 extents)
Group quota state on /openshift.local.volumes (/dev/vdc1)
  Accounting: '''ON'''
  Enforcement: '''ON'''
  Inode: #67 (1 blocks, 1 extents)
Project quota state on /openshift.local.volumes (/dev/vdc1)
  Accounting: '''OFF'''
  Enforcement: '''OFF'''
  Inode: #67 (1 blocks, 1 extents)
Blocks grace time: [7 days]
Inodes grace time: [7 days]
Realtime Blocks grace time: [7 days]
===Report Quota===
xfs_quota -xc 'report -h' /openshift.local.volumes
Group quota on /openshift.local.volumes (/dev/vdc1)
                        Blocks
Group ID    Used  Soft  Hard Warn/Grace
---------- ---------------------------------
root          28K      0      0  00 [------]
#1000290000    20K  1.9G  1.9G  00 [------]
===Display the Usage of Mounted Volume===
xfs_quota -xc 'free -h' /openshift.local.volumes

Latest revision as of 00:13, 20 February 2018

External

Internal

Overview

Installation

yum install xfsprogs

Operations

Info

Verify the Type of Quota

xfs_quota -xc 'print' /openshift.local.volumes
Filesystem          Pathname
/openshift.local.volumes /dev/vdc1 (gquota)

Verify the Type of Enforcement

xfs_quota -xc 'state' /openshift.local.volumes
User quota state on /openshift.local.volumes (/dev/vdc1)
  Accounting: OFF
  Enforcement: OFF
  Inode: #0 (0 blocks, 0 extents)
Group quota state on /openshift.local.volumes (/dev/vdc1)
  Accounting: ON
  Enforcement: ON
  Inode: #67 (1 blocks, 1 extents)
Project quota state on /openshift.local.volumes (/dev/vdc1)
  Accounting: OFF
  Enforcement: OFF
  Inode: #67 (1 blocks, 1 extents)
Blocks grace time: [7 days]
Inodes grace time: [7 days]
Realtime Blocks grace time: [7 days]

Report Quota

xfs_quota -xc 'report -h' /openshift.local.volumes
Group quota on /openshift.local.volumes (/dev/vdc1)
                       Blocks
Group ID     Used   Soft   Hard Warn/Grace
---------- ---------------------------------
root          28K      0      0  00 [------]
#1000290000    20K   1.9G   1.9G  00 [------]

Display the Usage of Mounted Volume

xfs_quota -xc 'free -h' /openshift.local.volumes