1 .TH LFS-SETQUOTA 1 2017-07-21 "Lustre" "Lustre Utilities"
3 lfs setquota \- set quota limits or grace time for users, groups or projects.
5 .B lfs setquota {\fB-u|--user|-g|--group|-p|--projid\fR} <\fIuname|uid|gname|gid|projid\fR>
6 [\fB--pool\fR <\fIpname\fR>]
7 [\fB--block-softlimit|-b\fR <\fIblock-softlimit\fR>[kMGTPE]]
8 [\fB--block-hardlimit|-B\fR <\fIblock-hardlimit\fR>[kMGTPE]]
9 [\fB--inode-softlimit|-i\fR <\fIinode-softlimit\fR>[kMGTPE]]
10 [\fB--inode-hardlimit|-I\fR <\fIinode-hardlimit\fR>[kMGTPE]] <\fIfilesystem\fR>
12 .B lfs setquota \fB-t\fR {\fB-u|-g|-p\fR}
13 [\fB--pool\fR <\fIpname\fR>]
14 [\fB--block-grace|-b\fR <\fIblock-grace\fR>]
15 [\fB--inode-grace|-i\fR <\fIinode-grace\fR>] <\fIfilesystem\fR>
17 .B lfs setquota {\fB-u|--user|-g|--group|-p|--projid\fR} <\fIuname|uid|gname|gid|projid\fR>
18 [\fB--default|-d\fR] <\fIfilesystem\fR>
20 .B lfs setquota {\fB-U|--default-usr|-G|--default-grp|-P|--default-prj\fR}
21 [\fB--block-softlimit|-b\fR <\fIblock-softlimit\fR>[kMGTPE]]
22 [\fB--block-hardlimit|-B\fR <\fIblock-hardlimit\fR>[kMGTPE]]
23 [\fB--inode-softlimit|-i\fR <\fIinode-softlimit\fR>[kMGTPE]]
24 [\fB--inode-hardlimit|-I\fR <\fIinode-hardlimit\fR>[kMGTPE]] <\fIfilesystem\fR>
28 .BR "lfs setquota " {\fB-u|-g|-p\fR}
30 Command sets the filesystem quotas for users, groups or projects respectively. \
31 Block limits unit is kilobyte (1024) by default and block limits are always \
32 kilobyte-grained (even if specified in bytes), block limits can be specified \
34 .BR k "," M "," G "," T "," P ", or " E \
35 suffixes which specify units of 2^10, 2^20, 2^30, 2^40, 2^50 and 2^60 \
38 .B -u|--user <\fIuname|uid\fR>
39 Set user quota for \fIuname\fR or \fIuid\fR.
41 .B -g|--group <\fIgname|gid\fR>
42 Set group quota for name \fIgname\fR or \fIgid\fR.
44 .B -p|--project <\fIprojid\fR>
45 Set project quota for \fIprojid\fR.
47 .B --pool <\fIpname\fR>
48 Set quota per OST pool \fIpname\fR.
51 Set user/group/project to use the default quota limits.
53 .B -b|--block-softlimit <\fIblock-softlimit\fR>
54 Specify block softlimit, zero means unlimited.
56 .B -B|--block-hardlimit <\fIblock-hardlimit\fR>
57 Specify block hardlimit, zero means unlimited. The block hardlimit should be \
58 greater than block softlimit when it's being specified.
60 .B -i|--inode-softlimit <\fIinode-softlimit\fR>
61 Specify inode softlimit, zero means unlimited.
63 .B -I|--inode-hardlimit <\fIinode-hardlimit\fR>
64 Specify inode hardlimit, zero means unlimited. The inode hardlimit should be \
65 greater than inode softlimit when it's being specified.
67 .BR "lfs setquota -t "
69 Command sets the filesystem quota grace time for users, groups, or projects. \
70 This is a global value that can take two forms: an amount of time or the word \
71 \'\fBnotify\fR'. Traditionally, this indicates the amount of time in seconds \
72 that the soft quota limit can be exceeded before users are prevented from \
73 creating new files or consuming more space. This is intended to allow users \
74 to exceed the quota limit for a short time to complete their work without \
75 having to grant each user a larger hard quota limit. The alternative value of \
76 \'\fBnotify\fR' informs users with an '\fB*\fR' in the quota output that they \
77 are nearing their hard quota limit but does not block new writes until the hard \
78 quota limit is reached. The soft quota state is reset once the user, group, \
79 or project reduces their space usage or file count below the soft quota limit. \
80 Grace time is specified in "XXwXXdXXhXXmXXs" format or as an integer seconds \
81 value. The maximum is 2^48 - 1 seconds.
84 Set quota grace times.
87 Set grace time for user.
90 Set grace time for group.
93 Set grace time for project.
95 .B -b|--block-grace 'notify'|<\fIblock-grace\fR>
96 Specify grace time for block quota.
98 .B -i|--inode-grace 'notify'|<\fIinode-grace\fR>
99 Specify grace time for inode quota.
101 .B --pool <\fIpname\fR>
102 Set grace time for user, group or project per OST pool \fIpname\fR.
104 .BR "lfs setquota " {\fB-U|--default-usr|-G|--default-grp|-P|--default-prj\fR}
106 Command sets the filesystem default limits for user,group,project quotas, \
107 if set, users/groups/projects without specific quota setting will use \
108 default quota limits automatically.
111 Set default user quota limit.
114 Set default group quota limit.
117 Set default project quota limit.
122 .B $ lfs setquota -u bob --block-softlimit 2G --block-hardlimit 1G /mnt/lustre
123 Set quotas of user `bob': 1GB block hardlimit and 2 GB block softlimit
125 .B $ lfs setquota -u bob -d /mnt/lustre
126 Set quotas of user `bob' to use default quota setting
128 .B $ lfs setquota -U --block-softlimit 1G --block-hardlimit 2G /mnt/lustre
129 Set system default user quota: 1 GB block softlimit and 2 GB block hardlimit
131 .B $ lfs setquota -t -u --block-grace 1000 --inode-grace 1w4d /mnt/lustre
132 Set grace times for user quotas: 1000 seconds for block quotas, 1 week and 4 \
133 days for inode quotas
135 .B $ lfs setquota -u ivan --pool flash_pool -B 1G /mnt/lustre
136 Set hard block limit 1G for user 'ivan' per pool 'flash_pool'
138 .B $ lfs setquota -t -u --block-grace 1000 --pool flash_pool /mnt/lustre
139 Set grace time 1000 seconds for block quotas per pool 'flash_pool'