226
Celerra Network Server Command Reference Manual
The nas Commands
EXAMPLE #17 To turn tree quotas off, type:
$ nas_quotas -tree -off -fs ufs1 -path /tree1
done
EXAMPLE #18 To turn quotas on for users and groups on tree quota, /tree3, of a file
system, ufs1, type:
$ nas_quotas -on -both -fs ufs1 -path /tree3
done
EXAMPLE #19 To open a vi session to edit file system quotas on quota tree, /tree3, on
ufs1 for the specified user, 1000, type:
$ nas_quotas -edit -user -fs ufs1 -path /tree3 1000
Userid : 1000
fs ufs1 tree "/tree3" blocks (soft = 4000, hard = 6000)
inodes (soft = 30, hard = 50)
~
~
~
~
"/tmp/EdP.aMdtIQR" 2L, 100C written
done
EXAMPLE #20 To change the block limit and inode limit on quota tree, /tree3, on
ufs1 for the specified user, 1000, without opening up a vi session,
type:
$ nas_quotas -edit -user -fs ufs1 -path /tree3 -block 6000:4000 -inode 300:200 1000
done
EXAMPLE #21 To view a report of user quotas on tree quota, /tree3, for ufs1, type:
$ nas_quotas -report -user -fs ufs1 -path /tree3
Report for user quotas on quota tree /tree3 on filesystem ufs1 mounted on /ufs1
+------------+---------------------------------+-------------------------------+
|User | Bytes Used (1K) | Files |
+------------+--------+-------+-------+--------+--------+------+------+--------+
| | Used | Soft | Hard |Timeleft| Used | Soft | Hard |Timeleft|
+------------+--------+-------+-------+--------+--------+------+------+--------+
|#1000 | 2992| 4000| 6000| | 34| 200| 300| |
|#32768 | 9824| 0| 0| | 28| 0| 0| |
+------------+--------+-------+-------+--------+--------+------+------+--------+
done