Tuesday 16 August 2011

support filesystem quotas


mount -o quota=on BlockDevice MountPoint

example
mount -o quota=on /dev/vg01/lvol0 /mygfs2

Setting Quotas, Hard Limit
gfs2_quota limit -u User -l Size -f MountPoint
gfs2_quota limit -g Group -l Size -f MountPoint

Setting Quotas, Warn Limit
gfs2_quota warn -u User -l Size -f MountPoint
gfs2_quota warn -g Group -l Size -f MountPoint

Synchronizing Quota Information
gfs2_quota sync -f MountPoint

This example synchronizes the quota information from the node it is run on to file system /mygfs2.
gfs2_quota sync -f /mygfs2
This example changes the default time period between regular quota-file updates to one hour (3600 seconds) for file system /mygfs2 on a single node.
gfs2_tool settune /mygfs2 quota_quantum 3600


No comments:

Post a Comment