San Francisco

dave spink toolset


SYMMETRIX COMMANDS:

INFO SLV CONFIGS VCM DB
GROUPS RDF BCV CLONE
SNAP STATS DISKS OPTIMISE
EVENTS


INFO

/usr/symcli/bin/symlmf ;license management server
/usr/emc/API/symapi/config/symapi_licenses.dat ;license manager respository
/var/symapi/log ;symapi log file
vi /usr/emc/API/symapi/config/options ;example SYMAPI_ALLOW_RDF_SYMFORCE = TRUE
syminq hba -fibre ;see host HBAs
syminq -clariion ;see host clariion devices only
syminq -sym ;see host sym devices only
syminq -pdevfile ;see host sym devices nicely
syminq -v /dev/dsk/c3t50060482D5309446d0s2 ;see host device verbose, like VCM yes/no
sympd -sid $mysid list ;all devices visible by host, nice for "ctd" and powerpath
sympart -kb show c3t50060482D5309446d405s2 ;see partition information
symrdf -sid $mysid list pd ;see RDF devices visible to host
symcfg -sid $mysid -upatches ;see patches on sym




LOGICAL VOLUMES (SLV)

symdev -sid $mysid show $dev | egrep '(FA |WD| NR)' ;see status
symdev -sid $mysid list pd ;all devices visible by host, nice for powerpath
symdev -sid $mysid list -FA 9A -p 0 ;see devices mapped on FA
symdev -sid $mysid list -noport ;list devices not mapped to a port
symdev -sid $mysid list -DA all -space ;list space on each DA
symdev -sid $mysid list -R1 ;all R1 devices
symdev -sid $mysid list -dynamic ;see devices with dynamic RDF set
symdev -sid $mysid -celerra ready $dev -noprompt ;if nas devices mapped and not ready
symdev -sid $mysid ready $dev ;set device to ready
symdev -sid $mysid not_ready $dev ;set device to not ready
symdev -sid $mysid rw_enable $dev -sa 3a -p 0 -noprompt ;write enable device on fa/port
symdev -sid $mysid write_disable $dev -sa 3a -p 0 -noprompt ;write disable device on fa/port
symdev -sid $mysid -held | grep $dev ;see device holds for timefinder/snap
symdev -sid $mysid -unhold $dev -symforce ;normally device is unheld after timefinder stops
symdev -sid $mysid list -lock ;see device locks
symdev -sid $mysid -lock release ;release a device lock - use caution




CONFIGS

symcfg discover ;builds configuration database
symcfg -sid $mysid list -memory ;show memory used
symcfg -sid $mysid list ;see discovered sym(s)
symcfg -sid $mysid list -fa 08b -p 0 -addresses -available ;see next target id and LUN number
symcfg -sid $mysid list -rdfg ALL -rdfa ;see rdfg group settings like transmit idle
symcfg -sid $mysid -connections list ;see host to sym connectivity
symcfg -sid $mysid -applications list ;sym apps that have been run
symcfg -sid $mysid -dir all list ;list all directors - FA,DA,RA
symcfg -sid $mysid -FA all list ;see director port and wwpn
symcfg -sid $mysid -RA all list ;display -RA all list
symcfg -sid $mysid -DA all list ;see number of volumes per DA
symcfg -sid $mysid -lockn ALL list ;see active configuration locks
symcfg -sid $mysid -lockn 15 list -v ;see lock details
symcfg -sid $mysid -lockn 9 release ;release a configuration lock - use caution
symconfigure -sid $mysid query ;see status of configuration change session
symconfigure -sid $mysid verify ;check lock, may fail if DMX SP configuration server is hung
symconfigure -sid $mysid -f xx.txt preview ;check command file validity
symconfigure -sid $mysid -f xx.txt prepare ;verify the appropriateness of propose config change
symconfigure -sid $mysid -f xx.txt commit ;activates




VCM DB

symmask discover hba ;discover wwn and writes to login history table, if empty
symmask -sid $mysid refresh ;updates the FA's with changes to database
symmask -sid $mysid list logins ;see login history table
symmask -sid $mysid -wwn $mywwn rename UXGFPR02/HBA2 ;create a vcm aliases
symmask -sid $mysid -wwn $myold replace $mynew ;replace wwn
symmask -sid $mysid -wwn $mywwn -dir 10c -p 1 remove dev 1024,1025 ;unmask devices
symmask -sid $mysid -wwn $mywwn -dir 10c -p 1 add dev 1024,1025 ;mask devices
symmask -sid $mysid -wwn $mywwn delete -login ;remove entry from VCM and LHT
symmaskdb -sid $mysid -file vcmdb$mysid.backup backup ;backup VCM database
symmaskdb -sid $mysid list no_assignment -dir all ;to see mapped but not masked
symmaskdb -sid $mysid -wwn $mywwn list devs ;list devices mapped for this wwn
symmaskdb -sid $mysid -dev $mydev list assign ;see device FA assignment
symmaskdb -sid $mysid list capacity -host UXGFPR02 ;see capacity for host
symmaskdb -sid $mysid list database ;see VCM access
symmaskdb -sid $mysid list database -v -wwn $mywwn ;see lunoffset details
set port 04A:0 vcm_state=enable; ;create file to activate VCM on a FA, run symconfigure




GROUPS

symdg -type REGULAR create $mydg ;create disk group
symdg -type RDF1 create $mydg ;create RDF1 device group
symdg -type RDF2 create $mydg ;create RDF2 device group
symdg list ;list device groups
symdg show $mydg ;display verbose output of device group
symdg delete $mydg ;remove device group
symdg export $mydg -f dg.txt ;export device group
symdg import $mydg -f dg.txt ;import device group
symld -g $mydg -sid $mysid add dev 010 ;add sym device to device group
symld -g $mydg list ;list devices on disk group
symld -g $mydg remove DEV001 ;removes STD for device group
symld -g $mydg rename DEV001 DBVOL1 ;renames logical device names




RDF

symcfg -sid $mysid -ra all list ;list RDF directors, slot, type, status
symcfg -sid $mysid -rdfg all list ;list RDF groups, id, link recovery settings
symrdf -sid $mysid -rdfg $mygp list | grep -v "\- \-" ;list RDF group members; meta heads only
symrdf -sid $mysid ping ;test physical link
symrdf -sid $mysid list ;list all SRDF devices in Sym
symrdf -sid $mysid list pd ;see RDF devices visible to host
symrdf -sid $mysid createpair –file t.txt -rdfg $mygp -type rdf1 –invalidate r2 ;create relationship
symrdf -sid $mysid deletepair -file t.txt -rdfg $mygp ;remove relationship
symrdf -sid $mysid createpair -file t.txt -rdfg $mygp -type rdf1 -establish ;establish relationship
symrdf -sid $mysid -f t.txt -rdfg $mygp set mode async ;set mode on RA group to async
symrdf -sid $mysid -f t.txt -rdfg $mygp set mode acp_disk ;adaptive write copy pending mode
symrdf -sid $mysid -f t.txt -rdfg $mygp query ;also shows lag time
symrdf -sid $mysid -rdfg $mygp list | grep -v Consistent ;verify all devices in RA group
symrdf -sid $mysid -f t.txt -rdfg $mygp suspend ;suspend link, then turn on adaptive copy
symrdf -sid $mysid -f t.txt -rdfg $mygp resume ;resume link
symrdf -sid $mysid -f t.txt -rdfg $mygp enable ;ensures consistency, check usage




BCV

symbcv list pd ;list BCVs accessible by this host
symbcv list dev ;list all BCV devices on Sym
symbcv -g $mydg associate dev 050 ;associate BCV to device group
symbcv -g $mydg associate dev -range 051:057 ;associate BCV's in this range to device group
symbcv -g $mydg disassociate dev 050 ;disassociate BCV to device group
symmir -g $mydg attach DEV001 BCV dev 054 ;attach bcv to std
symmir -g $mydg -full est DEV001 bcv ld BCV001 ;establish via logical name
symmir -g $mydg -full est DEV001 bcv dev /dev/. ;establish via physical name
symmir -g $mydg -full est ;full establish
symmir -g $mydg est ;incremental works if previous full
symmir -g $mydg est -full -exact ;matches DEV001 to BCV001
symmir -g $mydg est -full -opt ;let sym determine best method
symmir -g $mydg query ;query status
symmir -g $mydg split ; split
symmir -g $mydg -full restore ;bcv to std, ensure server disk groups deported
symmir -g $mydg restore ;incremental




CLONE

symclone -sid $mysid -f $myfile query ;query current state
symclone -sid $mysid create -differential -precopy -f $myfile -nop ;create
symclone -sid $mysid verify -precopy -cycled -f $myfile -i 60 ;check create state
symclone -sid $mysid -consistent activate -f $myfile -i 60 -c 10 -nop ;activate (split)
symclone -sid $mysid verify -copied -f $myfile -i 60 ;verify
symclone -sid $mysid recreate -precopy -f $myfile -i 60 -c 10 -nop ;get changed tracks
symclone -sid $mysid verify -precopy -cycled -f $myfile -i 60 ;verify changed tracks copied
symclone -sid $mysid terminate -f $myfile -nop ;terminate




SNAP

symsnap -pools list ;list available pools
symsnap -sid $mysid show pool DEFAULT_POOL ;show pools
symsnap -g $mydg create -svp mypool DEV001 sym DEV 01E4 -nop ;create snap session
symsnap -g $mydg -pools query ;query status
symsnap -g $mydg activate DEV001 sym ld VDEV001 -nop ;activate session
symsnap list -savedevs -svp mypool ;check save pool
symsnap -g $mydg restore -nop ;start restore
symsnap -g $mydg terminate DEV001 sym ld VDEV001 -restored ;terminate restore session
symsnap -g $mydg terminate DEV001 sym ld VDEV001 ;terminate session




STATS

symstat -g $mygrp -i 10 -c 5 -type REQUEST ;stats for all devices in group
symstat -g $mygrp -i 10 -c 5 -type MEMIO ;display memory and IO stats
symstat -sid $mysid -dir ALL -i 10 -c 5 -type CACHE ;see cache stats
symstat -sid $mysid -disk 11B:C29 -i 10 -c 5 -type DISK ;see physical disk stats
symstat -sid $mysid -i 60 -c 5 -RA ALL ;stats about all RDF directors
symstat -sid $mysid -i 300 ;stats for all devices every 5 minutes
symstat -sid $mysid -ra all -i 10 -c 2 ;show sym stats for RA devices
symstat -sid $mysid -i 60 -c 5 -type PORT -dir ALL -port ALL ;see port stats
symstat -sid $mysid -type iscsi -i 5 -gige_dir -dir 14c ;see ge stats




DISKS

symdisk -sid $mysid list -da 15A ;see all physical disks on disk adaptor
symdisk -sid $mysid list -da 15A -interface C -tid C -hypers -v ;see hypers on da and port




OPTIMISE

symoptmz -sid $mysid release ;ask optimizer to give up lock - use caution
symoptmz -sid $mysid query ;optimizer query




EVENTS

symevent -sid $mysid list ;see list of events
symevent -sid $mysid monitor ;to report on all events every 10 seconds
symevent -sid $mysid monitor -i 600 -c 144 -warn ;watch for warning or more for 24 hours
symevent -sid $mysid -v -start 9:00 -end 17:00 ;to see events today
symaudit -sid 1384 list -v -start 10/01/2007 -end 01/02/2008 > txt.file;see Sym Audit