224
Celerra Network Server Command Reference Manual
The nas Commands
EXAMPLE #8 To open a vi session and edit the quotas for a file system, type:
$ nas_quotas -edit -config -fs ufs1
File System Quota Parameters:
fs "ufs1"
Block Grace: (1.0 weeks)
Inode Grace: (1.0 weeks)
* Default Quota Limits:
User: block (soft = 5000, hard = 8000) inodes (soft = 100, hard= 200)
Group: block (soft = 6000, hard = 9000) inodes (soft = 200, hard= 400)
Deny disk space to users exceeding quotas: (yes)
* Generate Events when:
Quota check starts: (no)
Quota check ends: (no)
soft quota crossed: (yes)
hard quota crossed: (yes)
~
~
~
"/tmp/EdP.a4slhyg" 13L, 499C written
done
EXAMPLE #9 To view the quota configuration for the file system, ufs1, type:
$ nas_quotas -report -config -fs ufs1
+------------------------------------------------------------------------------+
| Quota parameters for filesystem ufs1 mounted on /ufs1:
+------------------------------------------------------------------------------+
| Quota Policy: blocks
| User Quota: ON
| Group Quota: ON
| Block grace period: (1.0 weeks)
| Inode grace period: (1.0 weeks)
| Default USER quota limits:
| Block Soft: ( 5000), Block Hard: ( 8000)
| Inode Soft: ( 100), Inode Hard: ( 200)
| Default GROUP quota limits:
| Block Soft: ( 6000), Block Hard: ( 9000)
| Inode Soft: ( 200), Inode Hard: ( 400)
| Deny Disk Space to users exceeding quotas: YES
| Log an event when ...
| Block hard limit reached/exceeded: YES
| Block soft limit (warning level) crossed: YES
| Quota check starts: NO
| Quota Check ends: NO
+------------------------------------------------------------------------------+
done
EXAMPLE #10 To turn tree quotas on for ufs1, type:
$ nas_quotas -on -tree -fs ufs1 -path /tree1 -comment 'Tree #1'
done