Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
A.4. Enabling/Disabling Quota Enforcement
In GFS2 file systems, quota enforcement is disabled by default. To enable quota enforcement for a file system, mount the file system with the
mount -o quota=on
To mount a file system with quota enforcement disabled, mount the file system with the
quota=offoption specified. This is the default setting.
mount -o quota=off
- Specifies that quota enforcement is enabled or disabled when the file system is mounted.
- Specifies the block device where the GFS2 file system resides.
- Specifies the directory where the GFS2 file system should be mounted.
In this example, the GFS2 file system on
/dev/vg01/lvol0is mounted on the
/mygfs2directory with quota enforcement enabled.
mount -o quota=on /dev/vg01/lvol0 /mygfs2