Celerra
$ nas_server -list id type acl slot groupID state name 1 1 0 2 0 server_2 2 4 0 3 0 server_3
server_export: Exports file systems, and manages access on the specified Data Mover(s) for NFS and CIFS clients
$ server_export server_2 -o anon=0 /dir1 $ server_export server_2 -i -o server_export server_2 -o anon=0 /tools/site/tools/kickstart /tools
Note: -i (ignore) over writes the previous options and comments
$ server_export server_2 export "/dir1" anon=0 export "/tools" rw=allhosts root=server1:server2 access=allhosts
To extend a filesystem
nas_fs -xtend tools size=50G pool=clarata_archive
Quota
To edit the default user and group quota for a filesystem
$ nas_quotas -edit -config -fs home1
The system opens an edit session as shown in the Output table that follows. Edit it as required.
File System Quota Parameters:
fs "home1"
Block Grace: (1.0 weeks)
Inode Grace: (1.0 weeks)
* Default Quota Limits:
User: block (soft = 13670400, hard = 15728640) inodes (soft = 0, hard= 0)
Group: block (soft = 0, hard = 0) inodes (soft = 0, hard= 0)
Deny disk space to users exceeding quotas: (yes)
* Generate Events when:
Quota check starts: (no)
Quota check ends: (no)
soft quota crossed: (no)
hard quota crossed: (yes)
To edit a quota for user id 500 for file system fs1 (The bellow command will open a vi screen. Edit it as per requirement)
$ nas_quotas -edit -user -fs fs1 500 Userid : 501 fs "fs1" blocks (soft = 29360128, hard = 31457280) inodes (soft = 0, hard = 0)
To view the quota usage of user ID 501 for file system /home
$ nas_quotas -report -user -fs home2 501 Report for user quotas on filesystem home2 mounted on /home +------------+-----------------------------------+-------------------------------+ |User | Bytes Used (1K) | Files | +------------+--------+--------+--------+--------+--------+------+------+--------+ | | Used | Soft | Hard |Timeleft| Used | Soft | Hard |Timeleft| +------------+--------+--------+--------+--------+--------+------+------+--------+ |#501 | 3960316|29360128|31457280| | 188| 0| 0| | +------------+--------+--------+--------+--------+--------+------+------+--------+
To list quota usage for all users
$ nas_quotas -report -user -fs home all