beautypg.com

Using online quota check – HP StoreAll Storage User Manual

Page 23

background image

specifies a user or group name, or a directory tree that has already been assigned an identifier
name. The “C” format specifies a directory tree, where the path exists, but the identifier name for
the directory tree will not be created until the quotas are imported.

A,{type},{block_hardlimit},{block_soft-limit},{inode_hardlimit},{inode_softlimit},{id}
B,{type},{block_hardlimit},{block_soft-limit},{inode_hardlimit},{inode_softlimit},"{name}"
C,{type},{block_hardlimit},{block_soft-limit},{inode_hardlimit},{inode_softlimit},
"{name}","{path}"

The fields in each line are:

{type}

Either 0 for a user quota; 1 for a group quota; 2 for a directory tree quota.

{block_hardlimit}

The maximum number of 1K blocks allowed for the user, group, or directory tree. (1 MB =
1024 blocks).

{block_soft-limit}

The number of 1K blocks that, when reached, starts the countdown timer.

{inode_hardlimit}

The maximum number of files allowed for the user, group, or directory tree.

{inode_softlimit}

The number of files that, when reached, starts the countdown timer.

{id}

The UID for a user quota or the GID for a group quota.

{name}

A user name, group name, or directory tree identifier.

{path}

The full path to the directory tree. The path must already exist.

Using online quota check

You will need to rescan the quota usage for a user, group, or directory tree in the following cases:

You turned quotas off for a user, the user continued to store data in a file system, and you
now want to turn quotas back on for this user.

You are setting up quotas for the first time for a user who has previously stored data in a file
system.

You are using directory tree quotas and you have moved a subdirectory into another parent
directory outside of the directory that has the directory tree quota.

The ibrix_online_quotacheck command is used to rescan quota usage. The command must
be run from a file serving node that has the file system mounted.

To run a quota check on a file system, use the following command:

ibrix_online_quotacheck —M {quotamonitor_host} /mountpoint

For the –M option, it is best to specify the management console as the target host/IP address. This
allows the quota usage for a deleted user or group to be updated. You can specify pathnames in
place of /mountpoint if you want to target specific directories instead of an entire file system.

To use the –M option for a directory tree quota, include the -P option in the command:

ibrix_online_quotacheck —M {quotamonitor_host} –P /mountpoint

To run a quota check on a specific user having files only in the home directory, use the following
command:

ibrix_online_quotacheck –u —T userid home_dir

To run a quota check on a specific group, use the following command:

Using online quota check

23