Professional Documents
Culture Documents
Useful SAN Storage Command and OS System Commands
Useful SAN Storage Command and OS System Commands
It take me for a Little While to compile the below SAN Storage commands and OS systems commands. I'd love to hear from my readers, so if you have anything to say, leave me your comments. Symdev Commands symdev List ~ List all devices on symm ~ List devices maped to that one FA ~ List all bcv or rdf1 volumes ~ List devices not mapped to any FE ports
symdev -sa -p List symdev List -bcv or -rdf1 symdev List -noport symdev List -clariion symdev show 0123 -v
Symcfg Commands symcfg discover symcfg List ~ discover the storage environment ~ List local and remote symmetrixes ~ List clariions
~ Lists whether the Symmetrix director has device masking turned on ~ Lists all fibre directors in a Symmetrix system ~ identify the address information for devices ~ sid 1924 ~ returns th e next available LUN address
symcfg List -dir all -address -sid 1924 symcfg List -dir all -address -available symcfg List -lockn all
Symconfigure Commands symconfigure -sid <sid> -f <filename> preview symconfigure -sid <sid> -f <filename> commit symconfigure -sid <sid> -f <filename> prepare ~ checks file to make sure it is ok to exe ~ makes the changes from file
Symmaskdb Commands symmaskdb List devs symmaskdb remove symmaskdb restore symmaskdb backup ~ Lists all devices accessible to an HBA on a specified Symmetrix system ~ removes the meta member devices ~ restores a database from a specified file ~ backs up a database to a specified file
symmaskdb init
~ deletes and creates a new VCMDB ~Lists deives already assigned ~Lists deives not yet assigned
Symmask Commands symmask add devs symmask remove devs symmask delete symmask replace symmask refresh symmask login ~ adds a device to the List of devices that a WWN can access in the database ~ removes a device from the List of devices that a WWN can access in the database
~ deletes all access rights for a WWN in the databa se ~ allows one HBA to replace another ~ refresh vcmdb to all FA ports ~ Lists for each Fibre director which hosts and HBAs are logged in to a Symmetrix system ~ Lists the WWN of the Fibre HBAs on this host
symmask -sid 381 -wwn 50060D000034F7F6 -dir 16C -p 1 set heterogeneous on HP_UX symmask -sid SymmID set lunoffset on offset base \ -awwn awwn -dir # -p # ~ offset high lun numbers
Other SYMCLI Commands symsan symdg symld symbcv symmir symclone symsnap symrdf groups symcg symrslv symstat device. symioctl ~ sends I/O control commands to application ~ Performs operations on a Symmetrix RDF composite group ~ Displays logical -to-physical mapping information about a logical object that is stored on a disk. ~ Displays statistics information about a Symmetrix, any or all directors, a device group, a disk, or a ~List ports and LUN WWNs seen from a specific Symmetrix director and port ~ creates/deletes/renames device groups ~ addes & removes devices to a deivce group ~ associates/disassociate BCV with device groups ~ performs (split/establish/restore) BCV mirror commands against device groups ~ performs (split/establish/restore/activate/terminate/recreate) ~ performs (restore/activate/terminate/recreate) ~ performs (split/establish/restore/failover/update/failback/suspend/resume) against RDF device
SYMCLI BASE Commands symapierr - Used to translate SYMAPI error code numbers into SYMAPI error messages. symaudit - List records from a symmetrix audit log file. symbcv - Perform BCV support operations on Symmetrix BCV devices. symcfg - Discover or display Symmetrix configuration information. Refresh the host's Symmetrix database file or remove Symmetrix info from the file. Can also be used to view or release a 'hanging' Symmetrix exclusive lock.
symchg - Monitor changes to Symmetrix devices or to logical objects stored on Symmetrix devices. symcli - Provides the version number and a brief description of the commands included in the Symmetrix Command Line symdev - Perform operations on a device given the device's Symmetrix name. Can also be used to view Symmetrix device locks. symdg - Perform operations on a device group (dg). symdisk - Display information about the disks within a Symmetrix. symdrv - List DRV devices on a Symmetrix. symevent - Monitor or inspect the history of events within a Symmetri symgate - Perform operations on a gatekeeper device. symhost - Display host configuration information and performance statistics. syminq - Issues a SCSI Inquiry command on one or all devices. Interface. symlabel - Perform label support operations on a Symmetrix device. symld - Perform operations on a device in a device group (dg). symlmf - Registers SYMAPI license keys. sympd - Perform operations on a device given the device's physical name. symstat - Display statistics information about a Symmetrix, a Director, a device group, or a device. symreturn - Used for supplying return codes in pre-action and post-action script files. SYMCLI CONTROL Commands symacl - Administer symmetrix access control information. symauth - Administer symmetrix user authorization information. symcg - Perform operations on an composite group (cg). symchksum - Administer checksum checks when an Oracle database writes data files on Symmetrix devices. symclone - Perform Clone control operations on a device group or on a device within the device group. symconfigure - Perform modifications on the Symmetrix configuration. symconnect - Setup or Modify Symmetrix Connection Security functionalit symmask - Setup or Modify Symmetrix Device Masking functionality. symmaskdb - Backup, Restore, Initialize or Show the contents of the device masking database. symmir - Perform BCV control operations on a device group or on a device within the device group. symoptmz - Perform Symmetrix Optimizer control operatio ns. symqos - Perform Quality of Service operations on Symmetrix Devices symrdf - Perform RDF control operations on a device group or on a device within the device group. symreplicate - Perform automated, consistent replication of data given a pre-configured SRDF/Timefinder setup. symsnap - Perform Symmetrix Snap control operations on a device group or on devices in a device file. symstar - Perform SRDF STAR management operations. symrcopy - Perform Symmetrix Rcopy control operations on devices in a device file. SYMCLI SRM(Mapping) Commands symhostfs - Display information about a host File, Directory, or host File System. symioctl - Send IO control commands to a specified application. symlv - Display information about a volume in Logical Volume Group (vg). sympart - Display partition information about a host device. symrdb - Display information about a third-party Relational Database.
symrslv - Display detailed Logical to Physical mapping information about a logical object stored on Symmetrix devices. symvg - Display information about a Logical Volume Group (vg).
navicli -h <SP IP> register ~registers host with Clariion and tests agent install navicli -h <SP IP> storagegroup navicli -h <SP IP> getrg -lunList navicli -h <SP IP> getdisk ~ List all info about existing groups ~ List all existing raid groups and LUNS
~ shows numbers of disks in storage array ~ show s the number of raid groups ~ Lists all the disks ~ displays storage groups
navicli -h <SP IP> getrg <rg id> navicli -h <SP IP> get lun <lun id>
~ creates a new storage group ~ assigns LUNs to storage group ~ assigns host to storage
navicli -h <SP IP> storagegroup -addhlu -gname <name> -hlu <#> -alu <#>
navicli -h <SP IP> storagegroup -connecthost -host <hname> -gname <gname> group
POWERPATH COMMANDS powermt powercf emcpreg emcpupgrade ~ manage powerpath environment ~ configure powerpath devices ~ manage powerpath license registration ~ convert powerpath configuration files
INQ INQ Inq -h Inq -hba Inq -btl Inq -show_vol Inq -winvol Inq -dev ## -page0 Inq -clariion ~ List options and syntax ~ List hba wwn ~ display Bus Target and Lun ~ display Symmetrix Volume Number. ~ show Windows filesystems ~ Raw unformatted data on a single device ~ display CLARiiON device information
MDS-SERIES (CISCO) COMMANDS MDS-SERIES Switch Commands ip address 191.168.123.222 255.255.255.0 View = show environment show flogi database show fcns database show vsan membership show interface brief ~ show running-config ~ shows status of all installed hardware components ~ shows database List of all FLOGI events ~ shows database List of all N -ports logged in ~ shows List of VSAN members ~ Lists the interfaces and status
MDS-SERIES Zoning Commands config terminal ~Enters configuration terminal ~ creates a zone ~ adds node to the zone above ~deletes member from zone
no member pwwn <colon separated wwn> zoneset name Zoneset1 vsan 4 member <zone name>
no zone name <zone name> vsan <vsan Id> ~ Deletes a zone zoneset activate name Zoneset1 vsan 4 zone copy active-zoneset full-Zoneset1 vsan 4 copy running-config start-up config vsan database ~ copy from source to startup configura tion
~ shows all zonesets that are active ~ shows all zones active in vsan ~ displays the active zoneset
B-SERIES (BROCADE) COMMANDS B-SERIES Switch Commands switchDisable ipAddrSet switchShow supportShow ~ offline ~set the IP address of a Brocade switch ~ display switch info ~ full detailed switch info
~ display port info ~ Name server contents ~ NS for full fabric ~ fabric information ~create a new Admin Domain. ~enforce the new Admin Domain configuration.
B-SERIES Zoning Commands aliCreate Alias, 20:00:00:e0:23:40:07:08 zoneCreate ZoneName, 20:00:00:e0:69:40:07:08; 50:06:04:64:b6:91:c1:1d cfgCreate Test_cfg, Zone1; Zone2 cfgSave ~ saves zoning information across reboots
cfgEnable Test_cfg zoneShow or cfgShow zoneAdd zoneRemove zoneDelete cfgAdd cfgRemove cfgDelete cfgClear ~ shows defined and effective zones and configurations
~ adds a member to a zone ~ removes a member from a zone ~ deletes a zone ~ adds a zone to a zone configuration ~ removes a zone from a zone configuration ~ deletes a zone from a zone configuration ~ clears all zoning information/ must disable the effective configuration
M-SERIES (McDATA) COMMANDS M-SERIES Switch Commands View= Config> ip Show> switch Show> switch Show > system Show> nameserver Show> loginServer Show> nameServer Show.Fabric> nodes Maint > system > setOnlineState ~ ~ config ip show (new IP and Subnet mask)
Config.Zoning> addWwnMem: <zoneName> <wwn> Config.Zoning> addZone ~ add a new zone to the working area ~ activation of changes
Config.Zoning> activateZoneset Config.Zoning> showactive Config.Zoning> clearZone Config.Zoning> deletezone Config.Zoning> showPending
~ shows actively connected running zoneset ~ clear WWNs i n a zone ~ remove zone from the running config ~ show pending zones
Veritas VM HOST COMMANDS Veritas VM Device Commands vxdisk List ~ List all disks under volume manager control and give there status. ~ add or bring a disk under volume manager control ~ Interactive front end to the vxdisk program
Veritas VM Filesystem commands vxdisk init ~ Initialize Physical Volume ~ Create Disk Group ~ Create Logical Volume ~ create file system
vxdg init mydg mydg-01=c1t11d0 vxassist -g mydg make myvol <size> mkfs -F vxfs /dev/vx/rdsk/mydg/myvol vxvol -g mydg stopall vxdg deport mydg vxdg import mydg vxvol -g mydg startall
~ stop a volume ~ deport disk group ~ import disk group ~ starting a imported volume
VMware ESX HOST COMMANDS VMware ESX Device Commands esxcfg-rescan <vmkernel adpter> ~scan for new disks
Windows HOST COMMANDS Windows 2003 server SP1 Device Commands SystemInfo Shutdown /r /f Netstat ~ Displays detailed configuration information about a computer and its operating system ~ forced reboot
~ Displays active TCP connections, ports on which the computer is Listening ~ launches a Remote desktop Connection ~ Connects a computer to a computer shared resource
~ compares two files and displays the differences ~ check and repair disk problems ~ Recover a damaged file from a defective disk. ~ if fcinfo is installed ,this will List the HBAs wwns
Windows 2003 server SP1 LVM Commands Diskpart rescan Diskpart List disk Diskpart select disk Diskpart detail disk MountVol ~ Locates new disks that may have been added to the computer ~ Displays a List of disks and information about them, ~ Selects the specified disk and shifts the focus to it. ~ Displays the properties of the selected disk and the volumes on that disk.
~ Creates, deletes, or Lists a volume mount point. ~ Assigns a drive letter or mount point to the volume with focus. ~ Extends the volume with focus into next contiguous unallocated space ~ Imports a foreign disk gro up into the local computer's disk group ~ Specifies the type of the file system (FAT, FAT32, or NTFS).
VI COMMANDS Cursor movements h l j k w b ~ left one character ~ right one character ~ down one line ~ up one line ~ right one word ~ back one word
x r y Y p
~ delete character cursor is on ~ replace one character ~ yank (copy into temporary buffer) ~ yank line cursor is on ~ paste below cursor line (deleted or copied text)
Saving and Exiting u ZZ :wq! ~ undo last editing command ~ save and exit (hold down shift and press "z" twice) ~ write and quit even if it is read -only
FTP COMMANDS open <IP address> close <IP address> bin hash mget mput ~ undo last editing command ~ save and exit (hold down shift and press "z" twice) ~set to transfer for binary and text files ~display progress during get ~mutiple get - download files in to current directory ~multiple pu - upload files from current directory
AIX/IBM HOST COMMANDS AIX Software Installation /usr/lpp lslpp -L all lslpp -f fileset instfix -i ~ Software Directory ~ List installed software ~ List all files ~ List installed patches
cp *.lpp /usr/sys/inst.images ~ copy lpp software to the install directory smit installp rmdev ~ Install a software package ~ Remove a device
AIX Device Commands lscfg ~ Lists all comfigured component s ~ system management utility ~ Lists all attributes (WWNs) for a device
smit or smitty
~ configures symmetrix devices ~ makes BCV visable to AIX to avoid locking during boot ~ To change INIT Link flags parameter ~ Fabric Event Error RECOVERY Policy
AIX NFS Commands exportfs exportfs -a ~Lists all exported filesystems ~Exports all fs's in /etc/exports file ~Un -exports a filesystem
~Configures and starts NFS services ~Stops and un -configures NFS services ~Creates an NFS export directory ~Creat es an NFS mount directory
mount hostname:/filesystem /mount-point ~Mount an NFS filesystem nfso -a ~Display NFS Options
~ configures a disk device masking sue it is available as a physical volume ~ Initialize Physical Volume
~ Disk Label ~ gr oups one or more physical devices into a volume group
mirrorvg ~Creates mirror volumes for all volumes in a volume group. extendvg myvg hdisk3 hdisk4 lsvg -l vgname ~ Extend Volume Goup
~ displays volumes, with a specified volume group ~ Make logical volume ~(2) makes a copy of lv should be followed up by syncvg command
crfs -v jfs -d mylv -m /myfs mount ~ mounts a filesystem ~ Deactivate Volume Group ~ Export Volume Group ~ Import Volume Group
HP/UX HOST COMMANDS HP/UX Software Installation sysdef ~ analyzes current running system ~ displays version and type of HP -UX ~ List installed patches ~ Register a depot package for install
HP/UX Device Commands insf -e ~ install special device files ~ scans system hardware
dd if=/dev/rdsk/c34t15d0 of=/dev/zero count=1~ makes HP register with a Clariion thru LUNZ device navicli -h <SP IP> register ~registers host with Clariion and tests agent install lsdev -C disk mknod ~ List device drivers in the system
/stand/system
HP SAN Commands fcmsutil /dev/fcd0 tdutil /dev/td0 ~ List HBA wwn ~ List HBA wwn
HP NFS Commands /etc/exports ~file controls which file systems are exported to remote hosts and specify options ~Exports directory to host example.emc.com (found in /etc/exports)
mount shadowman.emc.com:/misc/export /misc/local ~mount an NFS export from sha dowman.emc.com to the dir /misc/local
HP/UX Filesystem commands pvcreate /dev/rdsk/c1t0d2 pvdisplay ~ creates a physical volume within a LVM volume group
ls -l /dev/*/group ~List the minor number of each vg in 6th field (all not Listed are available) mkdir /dev/myvg ~Create directory entry in /dev for Volume Group mknod /dev/myvg/group c 64 0x010000 vgcreate -s 16 /dev/myvg /dev/dsk/c1t0d0 vgextend /dev/myvg /dev/dsk/c1t0d1 vgchange -a y myvg vgscan vgdisplay ~ Avtivate VG ~ Create a file for Volume Group ~ creates a LVM volume group ~ add disk to VG
~ scan physical volumes for LVM volume groups ~ displays info abou t LVM volume groups ~ creates LVM logical volumes ~ creates mirrored logical volumes
~ displays LVM logical volumes ~ Create file system ~ Mount file system
PROCEDURES zone hp server to symm symmask List hba -v ~to List your servers paths to the symm
symmask -wwn -dir -p add dev ~(use wwn, dir, p values from above command) run command for each hba to FA zone symmask -wwn -dir -p set heterogeneous on HP_UX symmask refresh ioscan -fnC disk insf -e symcfg dis sympd List ~use wwn from the (symmask List hba -v )
To get HPUX to register with Clariion if using NaviAgent Install NaviAgent Edit agent.config file
dd if=/dev/rdsk/c34t15d0 of=/dev/zero count=1~ makes HP register with a Clariion thru LUNZ device navicli -h <SP IP> register ~registers host with Clariion and tests agent install
# rmsf path ( The paths are showing NO_HW or not sensing). # ioscan -fnc disk (check) # insf -e # symcfg discover # powermt display ( check for any dead path) # powermt check (checks and corrects dead path). # powermt config # powermt save
Linux Device Commands modprobe -l *lpfc* modprobe -r `List Emulex modules ~ discover new disk
Linux FC SAN Commands more /proc/scsi/lpfc/X ~ wwn on RHEL3 ~ wwn on RHEL4 ~ wwn on RHEL5
Linux iSCSI Commands yum install iscsi-initiator-utils ~install iSCSI soft initiator ~install iSCSI soft initiator
Linux NFS Commands /etc/exports ~file controls which file systems are exported to remote hosts and specify options ~Exports directory to host example.emc.com (found in /etc/exports)
/exported/directory example.emc.com
exportfs -a ~command to read /etc/export and export filesystem mount shadowman.example.com:/misc/export /misc/local redhat-config-nfs ~RedHat NFS tool ~mount an NFS export
pvcreate /dev/emcpowerX
vgcreate VG_Name /dev/emcpowerX ~ creates a new volume group lvcreate --size 2000m --name LV_Name /dev/VG_Name ~creates 2000MB logical volume mkfs -t ext2 /dev/VG_Name/LV_Name ~ Make a file system on a logical volume ~ mount File system
~display filesystems ~ partition table manipulation ~ allows you to see the attributes of one or more physical volumes ~ scans all supported LVM block devices in the system for physical volumes ~display attributes of volume groups ~ allows you to add one or more initialized physical volumes ~ scan physical volumes for LVM volume groups
vgexport ~make volume groups unknown to the system vgimport ~make volume groups known to the system lvdisplay lvextend e2fsadm fsck ~display attributes of a logical volume ~ Extend logigal volume ~ resizing of a logical volume ~Command used to check and repair a Linux filesystem
SUN/SOLARIS HOST COMMANDS SOLARIS Software Installation ptree -a showrev -p prtconf pkginfo pkgadd pkgrm ~ prints system configurations ~ Lists install ed software packages ~ install software packages ~ removes installed software packages ~ Shows all running processes in a tree format ~ Displays currently installed Solaris patches
Solaris Device Commands cfgadm -a ~ List all ~ configure StorEdge Leadville driver.(Search f or new devices)
~ searches for devices and also cleans up old ~ searches for devices
~ print device specific information about disk devices ~ generates special devic e files ~ reboots system to discover configuration changes, and rebuild special files ~ system files ~ Lists of available target ids and luns ~ used for persistent binding on Emulex (qla22xx.conf for Qlogic) ~ system messages
Solaris iSCSI Commands iscsiadm add static-config iqn.1999-08.com.array:sn.01234567,192.168.1.3:3260 iscsiadm add discovery-address 192.168.1.13:3260 iscsiadm modify discovery --isns enable iscsiadm List target -vS Target: iqn.1986-03.com devfsadm -Cv -i iscsi ~map target
Solaris FC SAN Commands fcinfo hba-port ~ Lists information and WWNs ~ Lists the remote -port information
share -F nfs -d "Cartman dir" / share2 mount -F nfs cartman:/share2 /cartman share -F nfs -o ro=sun.ucs.indiana.edu,rw=teak.uwsg.indiana.edu /reports ~ export (share) /reports sun.ucs.indiana.edu, read,write to teak.uwsg.indiana.edu /etc/dfs/dfstab ~ file to edit to make a share permanent shareall -F nfs ~ command to excute that will read /etc/dfs/dfstab and share to the network read only to
SOLARIS Filesystem Commands *** Format and lable all devices before using zpool *** zpool create spoon c3t6d9 ~create & mounts storage pool named spoon and mounts it at /spoon (no slice #) zpool create spoon mirror emcpower3c emcpower4c zpool destroy -f spoon zfs create spoon/fs zpool List format sysdef prtvtoc metadevadm metainit metastat metaset newfs -v ~destroy a zpool ~creates ZFS file system spoon/fs, automatically mounted at /spoon/fs. ~List pools ~ Disk partitioning and maintenance program ~ Device Listing ~ Disk Label ~ Checks device ID configuration. ~ Configures volumes. ~ Displays the status of volumes or hot spare pools. ~ Administers disk sets. ~ makes a UFS filesystem on disk drive or partition within a diskdrive ~create a RAID1 storage pool mounted at /spoon
SOLUTIONS ENABLER COMMANDS Commands to see devices syminq ~ List all devides seen by host OS ~ List Clariion devices ~ List HBA
syminq -pdevfile ~List the location of devices sympd List ~ Lists the Symmetrix devices that the host OS can see ~ Lists all the physical device name in the device masking database ~ Lists the Symmetrix devices that the host OS can see