222
Celerra Network Server Command Reference Manual
The nas Commands
SEE ALSO Using Quotas on Celerra.
EXAMPLE #1 To turn quotas on for users and groups of a file system, type:
$ nas_quotas -on -both -fs ufs1
done
EXAMPLE #2 To open a vi session to edit file system quotas on ufs1 for the
specified user, 1000, type:
$ nas_quotas -edit -user -fs ufs1 1000
Userid : 1000
fs ufs1 blocks (soft = 2000, hard = 3000) inodes (soft = 0, hard = 0)
~
~
~
~
"/tmp/EdP.agGQuIz" 2L, 84C written
done
EXAMPLE #3 To change the block limit and inode limit for a file without opening
up a vi session, type:
$ nas_quotas -edit -user -fs ufs1 -block 7000:6000 -inode 700:600 2000
done
EXAMPLE #4 To view a report of user quotas for ufs1, type:
$ nas_quotas -report -user -fs ufs1
Report for user quotas on filesystem ufs1 mounted on /ufs1
+------------+---------------------------------+-------------------------------+
|User | Bytes Used (1K) | Files |
+------------+--------+-------+-------+--------+--------+------+------+--------+
| | Used | Soft | Hard |Timeleft| Used | Soft | Hard |Timeleft|
+------------+--------+-------+-------+--------+--------+------+------+--------+
|#1000 | 1328| 2000| 3000| | 54| 0| 0| |
|#2000 | 6992| 6000| 7000| 7.0days| 66| 600| 700| |
|#5000 | 141592| 0| 0| | 516| 0| 0| |
+------------+--------+-------+-------+--------+--------+------+------+--------+
done
EXAMPLE #5 To select user 300 as prototype user for ufs1, and assign other users
the same limits, type:
$ nas_quotas -group -edit -fs ufs1 -proto 300 301 302 303
done