useful celerra commands.docx

7
Useful Celerra / VNX File Commands NAS Specific Commands: nas_disk -list Lists the disk table nas_checkup Runs a system health check. nas_pool -size -all Lists available space on each defined storage pool nas_replicate -info –all | grep <fs> Info about each filesystem’s replication status, grep to view just one. nas_replicate -list A list of all current replications nas_server -list Lists all datamovers. 1=primary,4=standby,6=rdf (remote data facility) <watch> /nas/sbin/getreason Shows current status of each datamover. 5=up, 0=down or rebooting nas_fs Creates, deletes, extends, modifies, and lists filesystems. nas_config Control station configuration (requires root login) nas_version View current nas revision nas_ckpt_schedule Manage checkpoint schedule nas_storage -list List the attached backend storage systems (with ID’s) nas_storage -failback id=<x> Fail back failed over SP’s or disks nas_server -vdm <vdm_name> -setstate loaded Loads a VDM nas_server -vdm <vdm_name> -setstate mounted Unloads a VDM Several nas_<x> commands can be run with a database query for reporting purposes. View my blog post about it here: http://emcsan.wordpress.com/2013/07/01/using-the-database- query-option-on-celerra-vnx-file-commands/ Server specific commands: server_cpu server_<x> -r now Reboots a datamover server_ping <IP> ping any IP from the control station server_ifconfig server_2 –all View all configured interfaces server_route server_2 {-list,flush,add,delete} Routing table

Upload: kumar-pallav

Post on 23-Oct-2015

99 views

Category:

Documents


3 download

DESCRIPTION

Useful Celerra Commands.docx

TRANSCRIPT

Page 1: Useful Celerra Commands.docx

Useful Celerra / VNX File Commands

NAS Specific Commands:

nas_disk   -list    Lists the disk tablenas_checkup     Runs a system health check.nas_pool   -size -all    Lists available space on each defined storage poolnas_replicate  -info –all | grep <fs>  Info about each filesystem’s replication status, grep to view just one.nas_replicate  -list    A list of all current replicationsnas_server  -list     Lists all datamovers. 1=primary,4=standby,6=rdf (remote data facility)<watch> /nas/sbin/getreason   Shows current status of each datamover. 5=up, 0=down or rebootingnas_fs      Creates, deletes, extends, modifies, and lists filesystems.nas_config     Control station configuration (requires root login)nas_version     View current nas revisionnas_ckpt_schedule    Manage  checkpoint schedulenas_storage -list   List the attached backend storage systems (with ID’s)nas_storage -failback id=<x>    Fail back failed over SP’s or disksnas_server  -vdm <vdm_name> -setstate loaded      Loads a VDMnas_server  -vdm <vdm_name> -setstate mounted    Unloads a VDM

Several nas_<x> commands can be run with a database query for reporting purposes.  View my blog post about it here: http://emcsan.wordpress.com/2013/07/01/using-the-database-query-option-on-celerra-vnx-file-commands/Server specific commands:

server_cpu server_<x> -r now   Reboots a datamoverserver_ping <IP>    ping any IP from the control stationserver_ifconfig server_2 –all   View all configured interfacesserver_route server_2 {-list,flush,add,delete}   Routing table commandsserver_mount     Mount a filesystemserver_export     Export a filesystemserver_stats     Provides realtime stats for a datamover, many different options.server_sysconfig    Modifies hardware config of the data movers.server_devconfig    Configures devices on the data movers.server_sysstat     Shows current Memory, CPU, and thread utilizationserver_log server_2    Shows current logvi /nas/jserver/logs/system_log   Java System logvi /var/log/messages    System Messagesserver_ifconfig server_2 <interface_name> up  Bring up a specific interfaceserver_ifconfig server_2 <interface_name> down Take a specific interface downserver_date     Sets system time and NTP server settingsserver_date <server_X> timesvc start ntp <time_server_IP_address>  Starts NTP on a data

Page 2: Useful Celerra Commands.docx

moverserver_date <server_X> timesvc stats ntp    To view the status of NTP.server_date <server_X> timesvc update ntp    Forces an update of NTPserver_file     FTP equivalent commandserver_dns     Configure DNSserver_cifssupport    Support services for CIFS users

To create a single checkpoint:nas_ckpt_schedule -create <ckpt_fs_name> -filesystem <fs_name> -recurrence once

To create a Read/Write copy of a single checkpoint:fs_ckpt <ckpt_fs_name> -name <r/w_ckpt_fs_name> -Create -readonly n 

To export a Read/Write checkpoint copy to a CIFS Share:server_export [vdm] -P cifs -name [filesystem]_ckpt1 -option netbios=[cifserver] [filesystem]_ckpt1_writeable1

To view HBA Statistics:.server_config server_2 -v “printstats fcp reset”  Toggles the service on/off.server_config server_2 -v “printstats fcp full”     View the stats table (must wait a while for some stats to collect before viewing)

To Join/Unjoin a CIFS Server from the domain:server_cifs server_2 -Join compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINIDserver_cifs server_2 -Unjoin compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID

To view the current domain controllers visible on the data mover:.server_config server_2 -v “pdc dump”

To enable or disable a domain controller on the data mover:.server_config server_2 -v “pdc enable=<ip_address>”  Enable a domain controller.server_config server_2 -v “pdc disable=<ip_address>”  Disable a domain controller

To stop and start the CIFS service:server_setup server_2 -P cifs -o stop   Stop CIFS Serviceserver_setup server_2 -P cifs -o start  Start CIFS Service

To stop, start or check the status of the iSCSI service:server_iscsi server_2 -service -start     Start iSCSI serviceserver_iscsi server_2 -service -stop      Stop iSCSI serviceserver_iscsi server_2 -service -status  Check the status of the iSCSI service

To enable/disable NDMP Logging:Turn it on:.server_config  server_x  “logsys set  severity  NDMP=LOG_DBG2″

Page 3: Useful Celerra Commands.docx

.server_config  server_x  “logsys set  severity  PAX=LOG_DBG2″Turn it off:.server_config  server_x  “logsys  set severity  NDMP=LOG_ERR”.server_config  server_x  “logsys set severity   PAX=LOG_ERR”

For gathering performance statistics:server_netstat server_x -i               Interface statisticsserver_sysconfig server_x -v         Lists virtual devicesserver_sysconfig server_x -v -i vdevice_name  Informational stats on the virtual deviceserver_netstat server_x -s -a tcp  Retransmissionsserver_nfsstat server_x                    NFS SRTsserver_nfsstat server_x -zero        Reset NFS stats

Filesystem specific commands:

fs_ckpt      Manage Checkpointsfs_dhsm     Manage File Moverfs_group     Manage filesystem groups

Complete List of  “nas_”   Commands:

This is just for reference, you can easily pull up this list from a Celerra by typing nas_ and hitting the tab key.

nas_aclnas_ckpt_schedulenas_dbtablenas_emailusernas_inventorynas_poolnas_slicenas_tasknas_automountmapnas_cmdnas_devicegroupnas_eventnas_licensenas_quotasnas_statsnas_version nas_celnas_copynas_disknas_fsnas_logviewernas_replicatenas_storagenas_volume

Page 4: Useful Celerra Commands.docx

nas_checkupnas_csnas_diskmarknas_fscknas_messagenas_servernas_symmnas_xml

Complete list of  “server_”   Commands:

This is just for reference, you can easily pull up this list from a Celerra by typing server_ and hitting the tab key.

server_archiveserver_cifssupportserver_fileserver_logserver_nameserver_ping6server_sysconfigserver_vtluserver_arpserver_cpuserver_ftpserver_mgrserver_netstatserver_ripserver_sysstatserver_cdmsserver_dateserver_httpserver_mountserver_nfsserver_routeserver_tftpserver_ceppserver_dbmsserver_ifconfigserver_mountpointserver_nfsstatserver_securityserver_umountserver_certificateserver_devconfigserver_ipserver_mpfs

Page 5: Useful Celerra Commands.docx

server_nisserver_setupserver_uptimeserver_checkupserver_dfserver_iscsiserver_mpfsstatserver_paramserver_snmpdserver_usermapperserver_cifsserver_dnsserver_kerberosserver_mtserver_paxserver_standbyserver_versionserver_cifsstatserver_exportserver_ldapserver_muxconfigserver_pingserver_statsserver_viruschk

Complete list of  “fs_” Commands:

This is just for reference, you can easily pull up this list from a Celerra by typing fs_ and hitting the tab key.

fs_ckptfs_dedupefs_dhsmfs_groupfs_rdffs_timefinderAbout these ads