23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Description<br />

The llapi_quotactl() command manipulates disk quotas on a <strong>Lustre</strong> filesystem mnt.<br />

qc_cmd indicates a command to be applied to UID qc_id or GID qc_id.<br />

Option<br />

Description<br />

LUSTRE_Q_QUOTAON<br />

Turns on quotas for a <strong>Lustre</strong> filesystem. qc_type is USRQUOTA, GRPQUOTA or<br />

UGQUOTA (both user and group quota). The quota files must exist. They are<br />

normally created with the llapi_quotacheck(3) call. This call is restricted to the<br />

super user privilege.<br />

LUSTRE_Q_QUOTAOFF<br />

Turns off quotas for a <strong>Lustre</strong> filesystem. qc_type is USRQUOTA, GRPQUOTA or<br />

UGQUOTA (both user and group quota). This call is restricted to the super user<br />

privilege.<br />

LUSTRE_Q_GETQUOTA<br />

Gets disk quota limits and current usage for user or group qc_id. qc_type is<br />

USRQUOTA or GRPQUOTA. UUID may be filled with OBD UUID string to query<br />

quota information from a specific node. dqb_valid may be set nonzero to query<br />

information only from MDS. If UUID is an empty string and dqb_valid is zero then<br />

clusterwide limits and usage are returned. On return, obd_dqblk contains the<br />

requested information (block limits unit is kilobyte). Quotas must be turned on<br />

before using this command.<br />

LUSTRE_Q_SETQUOTA<br />

Sets disk quota limits for user or group qc_id. qc_type is USRQUOTA or<br />

GRPQUOTA. dqb_valid mus be set to QIF_ILIMITS, QIF_BLIMITS or<br />

QIF_LIMITS (both inode limits and block limits) dependent on updating limits.<br />

obd_dqblk must be filled with limits values (as set in dqb_valid, block limits unit is<br />

kilobyte). Quotas must be turned on before using this command.<br />

LUSTRE_Q_GETINFO<br />

Gets information about quotas. qc_type is either USRQUOTA or GRPQUOTA. On<br />

return, dqi_igrace is inode grace time (in seconds), dqi_bgrace is block grace time<br />

(in seconds), dqi_flags is not used by the current <strong>Lustre</strong> version.<br />

LUSTRE_Q_SETINFO<br />

Sets quota information (like grace times). qc_type is either USRQUOTA or<br />

GRPQUOTA. dqi_igrace is inode grace time (in seconds), dqi_bgrace is block grace<br />

time (in seconds), dqi_flags is not used by the current <strong>Lustre</strong> version and must be<br />

zeroed.<br />

Chapter 30 Setting <strong>Lustre</strong> Properties (man3) 30-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!