USEFUL CLI EXAMPLES for emc VNX NAS
Information
List all filesystems on the NAS: nas_fs -list -all
Delete a filesystem: nas_fs -delete -force
View info for all filesystems on the NAS: nas_fs -info -all
View human friendly error message description: nas_message -info 2216
List inodes: server_df -inode (Data Mover name obtained on filesystem properties in unisphere. nas_fs -info -all doesn’t display it.
Create new filesystem
nas_fs -name NFS_Cyberfella_Dest -type uxfs -create size=20G pool=storage=SINGLE -thin no -option slice=y,nbpi=4096,mover=-mount_option mountmover=,mountpoint=/NFS_Cyberfella_Dest,mountmode=rw,accesspolicy=UNIX
Note: It’s best to delete filesystems via Unisphere GUI. Use CLI for troublesome deletes.
Export/Unexport Filesystem over NFS
server_export-P nfs -list -all
server _export-P nfs -unexport -perm