emc symcli commands
TRANSCRIPT
Useful and common EMC Symm CLI Command list Page 1 of 27
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 Symmetrisymgate 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.
Useful and common EMC Symm CLI Command list Page 2 of 27
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 functionalitsymmask 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 operations.symqos Perform Quality of Service operations on Symmetrix Devicessymrdf 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 setupsymsnap 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 RelationalDatabasesymrslv Display detailed Logical to Physical mapping information about a logical object
stored on Symmetrix devices.symvg Display information about a Logical Volume Group (vg).
Useful and common EMC Symm CLI Command list Page 3 of 27
Most of the commands come in flavors of three as follows:
Reference Description Example pd Physical device name /dev/dsk/c3t4d5 dev Symmetrix device name 0FF ld Symmetrix logical device name DEV001
Once SYMCLI is installed the below table lists all common commands that can be used using the symcli command interface.
symmaskdb commands
init
create and initialises a device masking database. On completion, the database device cannot be written to by the operating system.
Note: This command only needs to be run once otherwise all SAN configuration is lost backup backups up the database to a specified file restore restore a database file remove removes the meta member devices
list database lists for each symmetrix fibre director which devices in a symmetrix system a WWN can access
symmaskdb -sid 516 list database -output XML
list devs (-wwn) lists all devices accessible to an HBA on a specified symmetrix system and all directors that access each device
list assignment (-dev) List the HBA assignments to devices list capacity (-host) Lists the capacity of devices assigned to a particlur host
symdev commands
listlist available devices
symdev list -inventory
Useful and common EMC Symm CLI Command list Page 4 of 27
-v list detailed information of a deviceshow <symdevname> display meta device information
sympd commands
listlists the symmetrix devices that are accessed through fibre channel and shows their controlling director, TID, LUN, device number and serial number. Also shows which device holds the device masking database (VCM).
list -vcm lists all the physical devices in the device masking database
symcfg commands list -v lists whether the symmetrix director has device masking turned on
list -address -fa -available all lists all fibre directors in a symmetrix system and which devices they can access
symcfg -sid xxx list -address -fa 4c -p 1 -available list -sa all lists all fibre directors (FA) in a symmetrix system
list -sa 15D -v
lists detailed information on a FA port
symcfg list -RA all -sid 516 -switched symcfg -dir all list –sid 516
-application list list applications using the symmetrix
symcfg list -applications -sid xxx
-connections list
list host connections to the array
symcfg list -connections symcfg list -connections -sorthost symcfg list -connections -capacity -sid 516
symmask commandsadd devs add a device to the list of devices that a WWN can access in the database remove devs remove a device from the list of devices that a WWN can access in the database
Useful and common EMC Symm CLI Command list Page 5 of 27
delete deletes all access rights for a WWN in the database replace allows one HBA to replace another set lockdown sets or clears the fibre channel ID lockdown set visibility sets or clears visibility for noncontiguous LUNS set lunoffset sets or clears a LUN base/offset skip for noncontiguous LUNS. set heterogeneous sets or clears heterogeneous host inform with distinctive attributes rename changes the AWWN for the specified WWN in the database and login history table
refresh
causes the symmetrix system to refresh its WWN related memory tables with the contents of the database
If you update the VCMDB you must run this command to see your changes
discover hba discovers the HBA on the host and assigns AWWN to the login history table entries for thoses WWNs that are not set
list logins Lists foreach fibre director which hosts and HBAs are logged into the symmetrix. (displays the login history table contents)
list hba lists WWNs of the fibre HBAs on this host.
symconfigure commands -sid <sid> -f <filename> verify verify that we have access to the symmetrix and we can make changes -sid <sid> -f <filename> preview confirm that the syntax is correct -sid <sid> -f <filename> prepare -sid <sid> -f <filename> commit commit the changes to the database
control and log files locations /symapi/db/symapi_db.bin default symapi database file /symapi/config/netcnfg lists the network services available from that host
Useful and common EMC Symm CLI Command list Page 6 of 27
/symapi/config/optionsthe options file contains behavior parameters that can be set to critically change default behavior of SYMCLI operations, SYMAPI calls and their control actions
/symapi/config/symavoid identifies devices to skip over when looking for devices /symapi/config/gkavoid identifies devices not chosen as gatekeepers /symapi/config/inqfile lists devices to be added to the symapi database /symapi/log/symapi-<date>.log logfile for symcli.symapi functions, calls, activities
Common commands
VCMDB
initialize the VCMDB
# symmaskdb -sid xxx init -f newinit.db
Note: This command only needs to be run once otherwise all SAN configuration is lost, also make sure the database is backed up regularly.
backup the VCMDB # symmaskdb -sid xxx -file <filename> backup restore the VCMDB # symmaskdb -sid xxx -file <filename> restore
refresh the database
# symmask -sid xxx refresh
Note: Remember any changes to the VCMDB have to be uploaded to the symmetrix memory, otherwise you will not see your changes.
list the database # symmaskdb -sid xxx list database list a specific device # symmaskdb -sid xxx -dev 0029 list assignment -v
FA Ports List currently configured FA port settings (this is used primary for HP systems)
# symcfg -sa <##|all> [-p <#>] list -v
List currently visable devices on a FA port # symcfg -sid xxx -FA 15C -address list
Useful and common EMC Symm CLI Command list Page 7 of 27
Disk Devices
list all devices within the array # symdev list # inq
list a specific device within the array # symmaskdb -sid xxx -dev 0029 list assignment -v
add access to the symmetrix devices
# symmask -sid xxx -wwn 5000020001f2 -dir 15c -p 0 add devs 087,088,089
dir = director portp = port number on the director port
Note: the devices are symmetrix devices ID's not LUN ID's. Also this is know as LUN masking.
remove access from the symmetrix devices # symmask -sid xxx -wwn 5000020001f2 remove devs 0029,002A list devices available assigned to a specific host # symmaskdb -sid xxx -host 5000020001f2 list capacitydisplay meta devices # symdev show <symdevname>
HBAregister the HBA with the VCMDB # symmask discover hba List HBAs in local host # symmask list hba -v List HBAs to FA port logins # symmask -sid xxx list logins
Build file contentsMeta devices files Form meta from dev 0004, config-striped stripe_size=1920;
add dev 0005 to meta 0004; add dev 0006 to meta 0004; add dev 0007 to meta 0004; add dev 0008 to meta 0004;
The run the following:
# symconfigure -sid xxx -f meta.txt preview# symconfigure -sid xxx -f meta.txt prepare
Useful and common EMC Symm CLI Command list Page 8 of 27
# symconfigure -sid xxx -f meta.txt commit
Mapping devices file (map devices to ports)
map dev 002e to dir 4c:1 target=0, lun=006;map dev 002e to dir 16C:0 target=0, lun=006; map dev 0042 to dir 4c:1 target=0, lun=007;map dev 0042 to dir 16C:0 target=0, lun=007;
The run the following:
# symconfigure -sid xxx -f mappings.txt preview# symconfigure -sid xxx -f mappings.txt prepare# symconfigure -sid xxx -f mappings.txt commit
HBAs information on system/usr/sbin/hbanyware/hbacmd listhbas/usr/sbin/hbanyware/hbacmd hbaattibute [wwn]
Good EMC symcli commands to know.
Sym db (vcm)location:/usr/emc/API/symapi/db
sym log location:/usr/emc/API/symapi/log
Useful and common EMC Symm CLI Command list Page 9 of 27
symcfg file layout and usage in clicat > 04009914.90096.symconf### Start of symconfigure ##### Update device config settingsset dev 0324 attribute=SCSI3_persist_reserv;set dev 0326 attribute=SCSI3_persist_reserv;set dev 0328 attribute=SCSI3_persist_reserv;set dev 032a attribute=SCSI3_persist_reserv;set dev 032c attribute=SCSI3_persist_reserv;set dev 032e attribute=SCSI3_persist_reserv;set dev 0330 attribute=SCSI3_persist_reserv;set dev 0332 attribute=SCSI3_persist_reserv;set dev 0334 attribute=SCSI3_persist_reserv;set dev 0336 attribute=SCSI3_persist_reserv;##make BCV deviceconvert dev 032e to 2-Way-BCV-Mir;convert dev 0330 to 2-Way-BCV-Mir;convert dev 0332 to 2-Way-BCV-Mir;convert dev 0334 to 2-Way-BCV-Mir;convert dev 0336 to 2-Way-BCV-Mir;## Update device config settings#### MAP## Standard Devicesmap dev 0324 to dir 7a:0, lun=07d;map dev 0324 to dir 10a:0, lun=07d;map dev 0326 to dir 7a:0, lun=07e;map dev 0326 to dir 10a:0, lun=07e;map dev 0328 to dir 7a:0, lun=07f;map dev 0328 to dir 10a:0, lun=07f;map dev 032a to dir 7a:0, lun=080;map dev 032a to dir 10a:0, lun=080;map dev 032c to dir 7a:0, lun=081;map dev 032c to dir 10a:0, lun=081;## Standard Devices## BCV Devicesmap dev 032e to dir 7a:0, lun=082;
Useful and common EMC Symm CLI Command list Page 10 of 27
map dev 032e to dir 10a:0, lun=082;map dev 0330 to dir 7a:0, lun=083;map dev 0330 to dir 10a:0, lun=083;map dev 0332 to dir 7a:0, lun=084;map dev 0332 to dir 10a:0, lun=084;map dev 0334 to dir 7a:0, lun=085;map dev 0334 to dir 10a:0, lun=085;map dev 0336 to dir 7a:0, lun=086;map dev 0336 to dir 10a:0, lun=086;## BCV Devices### End of symconfigure ###sudo symconfigure -sid 90096 -f 04009914.90096.symconf preview # commit to actually take effect
Backup vcmdb# Backup binary vcmdbsudo symmaskdb -noprompt -sid 90096 backup -file 90096_backup.bin# Backup text vcmdbsudo symmaskdb -sid 90096 database list > 90096_backup.txt
Mask devices to new Hostsudo symmask -sid 90096 -dir 7a -p 0 -wwn 10000000c9426c85 add devs 0324,0326,0328,032A,032C,032E,0330,0332,0334,0336 # pcs2s009hba0 10 Luns: 125-134sudo symmask -sid 90096 -dir 10a -p 0 -wwn 10000000c9426c84 add devs 0324,0326,0328,032A,032C,032E,0330,0332,0334,0336 # pcs2s009hba1 10 Luns: 125-134sudo symmask -sid 90096 refresh
Scan for all/associate symmetrix frame with gatekeepersymcfg discover
Useful and common EMC Symm CLI Command list Page 11 of 27
List devices down an FA
Useful and common EMC Symm CLI Command list Page 12 of 27
symcfg -sid [sym id] -FA [FA] -p [port] -address -available list# ./symcfg -sid 20322 -dir 9b -p 1 -address -available list |egrep "038D|038E|038F|0390|04EC|04ED|04EE|04EF|04F7|04F8|04F9|04FA|04FB|04FC|04FD|04FE" 038D /dev/rdsk/c5t13d61s2 0 0 03D 038E /dev/rdsk/c5t13d62s2 0 0 03E 038F /dev/rdsk/c5t13d63s2 0 0 03F 0390 /dev/rdsk/c5t13d64s2 0 0 040 04EC /dev/rdsk/c5t13d65s2 0 0 041 04ED /dev/rdsk/c5t13d66s2 0 0 042 04EE /dev/rdsk/c5t13d67s2 0 0 043 04EF /dev/rdsk/c5t13d68s2 0 0 044 04F7 /dev/rdsk/c5t13d69s2 0 0 045 04F8 /dev/rdsk/c5t13d70s2 0 0 046 04F9 /dev/rdsk/c5t13d71s2 0 0 047 04FA /dev/rdsk/c5t13d72s2 0 0 048 04FB /dev/rdsk/c5t13d73s2 0 0 049 04FC /dev/rdsk/c5t13d74s2 0 0 04A 04FD /dev/rdsk/c5t13d75s2 0 0 04B 04FE /dev/rdsk/c5t13d76s2 0 0 04C# ./symcfg -sid 20322 -dir 8b -p 1 -address -available list |egrep "038D|038E|038F|0390|04EC|04ED|04EE|04EF|04F7|04F8|04F9|04FA|04FB|04FC|04FD|04FE" 038D /dev/rdsk/c5t12d61s2 0 0 03D 038E /dev/rdsk/c5t12d62s2 0 0 03E 038F /dev/rdsk/c5t12d63s2 0 0 03F 0390 /dev/rdsk/c5t12d64s2 0 0 040 04EC /dev/rdsk/c5t12d65s2 0 0 041 04ED /dev/rdsk/c5t12d66s2 0 0 042 04EE /dev/rdsk/c5t12d67s2 0 0 043 04EF /dev/rdsk/c5t12d68s2 0 0 044 04F7 /dev/rdsk/c5t12d69s2 0 0 045 04F8 /dev/rdsk/c5t12d70s2 0 0 046 04F9 /dev/rdsk/c5t12d71s2 0 0 047 04FA /dev/rdsk/c5t12d72s2 0 0 048 04FB /dev/rdsk/c5t12d73s2 0 0 049 04FC /dev/rdsk/c5t12d74s2 0 0 04A 04FD /dev/rdsk/c5t12d75s2 0 0 04B 04FE /dev/rdsk/c5t12d76s2 0 0 04C
Useful and common EMC Symm CLI Command list Page 13 of 27
List Symmetrix Device groups# symdg list D E V I C E G R O U P S Number of Name Type Valid Symmetrix ID Devs GKs BCVs VDEVs abinitiop RDF2 Yes 000187790096 4 0 0 0 brksrvp RDF2 Yes 000187790096 4 0 0 0 nfs01p RDF2 Yes 000187790096 7 0 0 0 ssep01 RDF2 Yes 000187790096 12 0 0 0 ssep03 RDF2 Yes 000187790096 4 0 0 0 rto1p RDF2 Yes 000187790096 4 0 0 0 abinitiot REGULAR Yes 000187790096 0 0 4 0 brksrvt REGULAR Yes 000187790096 0 0 4 0 sset03 REGULAR Yes 000187790096 0 0 4 0 rto1t REGULAR Yes 000187790096 0 0 4 0 nfs01t REGULAR Yes 000187790096 0 0 7 0 sset01 REGULAR Yes 000187790096 0 0 14 0
Useful and common EMC Symm CLI Command list Page 14 of 27
Get info about symmetrix device group (symdg) including devices in the group.# symdg show archivepGroup Name: archivep Group Type : RDF2 Valid : Yes Symmetrix ID : 000187790096 Group Creation Time : Mon Aug 29 11:02:54 2005 Vendor ID : EMC Corp Application ID : SYMCLI Number of STD Devices in Group : 8 Number of Associated GK's : 0 Number of Locally-associated BCV's : 0 Number of Locally-associated VDEV's : 0 Number of Remotely-associated BCV's (STD RDF): 0 Number of Remotely-associated BCV's (BCV RDF): 0 Number of Remotely-assoc'd RBCV's (RBCV RDF) : 0 Standard (STD) Devices (8): { -------------------------------------------------------------------- Sym Cap LdevName PdevName Dev Att. Sts (MB) -------------------------------------------------------------------- DEV001 /dev/vx/rdmp/c3t4d101s2 0120 (M) RW 30469 DEV002 /dev/vx/rdmp/c3t4d102s2 0122 (M) RW 30469 DEV003 /dev/vx/rdmp/c3t4d103s2 0124 (M) RW 30469 DEV004 /dev/vx/rdmp/c3t4d104s2 0126 (M) RW 30469 DEV005 /dev/vx/rdmp/c3t4d105s2 0128 (M) RW 30469 DEV006 /dev/vx/rdmp/c3t4d106s2 012A (M) RW 30469 DEV007 /dev/vx/rdmp/c3t4d107s2 012C (M) RW 30469 DEV008 /dev/rdsk/c3t4d108s2 012E (M) RW 30469 } Device Group RDF Information { RDF Type : R2 RDF (RA) Group Number : 11 (0A) Remote Symmetrix ID : 000187721328
Useful and common EMC Symm CLI Command list Page 15 of 27
R2 Device Is Larger Than The R1 Device : False RDF Mode : Synchronous RDF Adaptive Copy : Disabled RDF Adaptive Copy Write Pending State : N/A RDF Adaptive Copy Skew (Tracks) : 65535 RDF Device Domino : Disabled RDF Link Configuration : Fibre RDF Link Domino : Disabled Prevent Automatic RDF Link Recovery : Disabled Prevent RAs Online Upon Power ON : Enabled Device RDF Status : Ready (RW) Device RA Status : Ready (RW) Device Link Status : Not Ready (NR) Device Suspend State : Offline Device Consistency State : Disabled RDF R2 Not Ready If Invalid : Disabled Device RDF State : Ready (RW) Remote Device RDF State : Ready (RW) RDF Pair State ( R1 <=\=> R2 ) : Split Number of R1 Invalid Tracks : 3395065 Number of R2 Invalid Tracks : 0 }
Create new symdgsymdg create [new symdg] -type [dg type]symdg create archivep -type RDF2
Show Symmetrix devices in a specific device groupsymdg -g <symdg> list
Show details about a specific symmetrix devicesymdev -sid <sym id> show <symdev>
List all visible symmetrix devicessympd list
Useful and common EMC Symm CLI Command list Page 16 of 27
Get info about specific symmetrix devices: "032E|0330|0332|0334|0336"sympd list | egrep "0324|0326|0328|032A|032C"/dev/rdsk/c3t0d125s2 0324 10A:0 02A:DA 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c3t0d126s2 0326 10A:0 16C:DA 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c3t0d127s2 0328 10A:0 02C:DA 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c3t0d128s2 032A 10A:0 02B:DB 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c3t0d129s2 032C 10A:0 16B:DB 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c4t1d125s2 0324 07A:0 02A:DA 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c4t1d126s2 0326 07A:0 16C:DA 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c4t1d127s2 0328 07A:0 02C:DA 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c4t1d128s2 032A 07A:0 02B:DB 2-Way Mir N/Grp'd (M) RW 30469/dev/rdsk/c4t1d129s2 032C 07A:0 16B:DB 2-Way Mir N/Grp'd (M) RW 30469sympd list | egrep "032E|0330|0332|0334|0336"/dev/rdsk/c3t0d130s2 032E 10A:0 02D:DB 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c3t0d131s2 0330 10A:0 16D:DB 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c3t0d132s2 0332 10A:0 16A:DC 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c3t0d133s2 0334 10A:0 02A:DC 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c3t0d134s2 0336 10A:0 16C:DC 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c4t1d130s2 032E 07A:0 02D:DB 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c4t1d131s2 0330 07A:0 16D:DB 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c4t1d132s2 0332 07A:0 16A:DC 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c4t1d133s2 0334 07A:0 02A:DC 2-Way BCV Mir N/Asst'd (M) RW 30469/dev/rdsk/c4t1d134s2 0336 07A:0 16C:DC 2-Way BCV Mir N/Asst'd (M) RW 30469
Useful and common EMC Symm CLI Command list Page 17 of 27
List access granted for a device.symmaskdb -sid [sym id] -dev [sym dev] list assignmentimg2s003n2 # ./symmaskdb -sid 0715 -dev 000E list assignmentSymmetrix ID : 000187720715Device Identifier Type Dir:P------ ---------------- ----- ----------------000E 10000000c9321ac1 FIBRE FA-7A:0 10000000c9311383 FIBRE FA-7A:0 10000000c9321c9d FIBRE FA-8A:0 10000000c9312f94 FIBRE FA-8A:0 10000000c93219f2 FIBRE FA-9A:0 10000000c93113f1 FIBRE FA-9A:0 10000000c9321a65 FIBRE FA-10A:0 10000000c9312458 FIBRE FA-10A:0 10000000c93122dd FIBRE FA-7B:0 10000000c92f2fe9 FIBRE FA-7B:0 10000000c9321a40 FIBRE FA-10B:0 10000000c9310bf8 FIBRE FA-10B:0
Useful and common EMC Symm CLI Command list Page 18 of 27
Set sym-dev state/modesymdev -sid <sid> ready <dev> symdev -sid 90096 ready 03CC symdev -sid 90096 -noprompt not_ready 03CEsymdev -sid 90096 -noprompt ready 03CE symdev -sid 90096 -noprompt ready 03D0 symdev -sid 90096 -noprompt ready 03D2 symdev -sid 90096 -noprompt ready 03D4 symdev -sid 90096 -noprompt ready 03D6 symdev -sid 90096 -noprompt ready 03D8 symdev -sid 90096 -noprompt ready 03DA symdev -sid 90096 -noprompt ready 03DC symdev -sid 90096 -noprompt ready 03DE symdev -sid 90096 -noprompt ready 03E0 symdev -sid 90096 -noprompt ready 0324 symdev -sid 90096 -noprompt ready 0326 symdev -sid 90096 -noprompt ready 0328 symdev -sid 90096 -noprompt ready 032A symdev -sid 90096 -noprompt ready 032C
Update keys for Symcli/Timefinder/symrdf# symlmf E M C S O L U T I O N S E N A B L E R SOLUTIONS ENABLER LICENSE MANAGEMENT FACILITYRegister License Key (y/[n]) ? yEnter License Key : <lic key>Register License Key (y/[n]) ? yEnter License Key : <lic key>Register License Key (y/[n]) ? n--------------------------------------------------------------------------------
Useful and common EMC Symm CLI Command list Page 19 of 27
Good EMC timefinder commands to know.
Control RDF linksymrdf -g [symdg] set mode=[async|sync]symrdf -g [symdg] [suspend|resume]
Control BCV statesymmir -g <device group> -full establish [ld dev] BCV ld [BCV dev]symmir -g <device group> split [dev]orcat > bcv_map.txt### Start BCV Mapfile ###0324 032e0326 03300328 0332032a 0334032c 0336### End BCV Mapfile ###sudo symmir -f bcv_map.txt -sid 90096 establish -full # Syncsudo symmir -f bcv_map.txt -sid 90096 query # Verify
Add Standard/R1/R2 devices to a symdgsymld -sid [sym id] -g [symdg] add dev [symdev]symld -sid 0096 -g archivep add dev 0120
Manipulate BCV devices.symbcv -sid [sym id] -g [symdg] add dev [symdev]symbcv -sid 0096 -g archivet add dev 01CE
Useful and common EMC Symm CLI Command list Page 20 of 27
sync/split BCVs 1 and 2symbcv -sid 0096 -g archived moveall archivepsymmir -g archivep establishsymmir -g archivep split -instantsymbcv -sid 0096 -g archivep moveall archivedsymbcv -sid 0096 -g archivet moveall archivepsymmir -g archivep establish -nopromptsymmir -g archivep split -instant -nopromptsymbcv -sid 0096 -g archivep moveall archivet
PowerPathControl Center Symmetrix Manager Clariion Manager SAN Manager Performance Manager - dynamicaly moves disk strips ISL: Inter Switch Links - full mesh
Terminology: Zoning: setting up a path (similar to vlans) Port - zones are mapped from port in to port out. - hard zoning WWN (world wide name) - MAC addresses are used - soft zoning - secure zoning Storage Area Network (SAN) LUN Masking - Used to restrict host's A LUNs from host B's LUNs LUN - represents a what the OS see's as a physical disk HYPER - section carved from symmetrix volume. META - LUN comprised of multiple Hypers META Head - the first sym device in the META that is presented to represent the LUN
Useful and common EMC Symm CLI Command list Page 21 of 27
FA - Fibre adaptor contains an WWN from the SAN director side.
-------- ----------------- ----------------- ----------------- ----------------- -------- | Prod |-------| SAN (fabric 1)|------| Storage Array | | Storage Array |-------| SAN (fabric 1)|------| DR | | Host | ----------------- | Symetrics | RDF LINK | Symetrics | ----------------- | Host | | | | |-------------\----------| ----------- | | | | | ----------------- | | | | R2 | | ----------------- | | | |-------| SAN (fabric 2)|------| | | | devices | |-------| SAN (fabric 2)|------| | -------- ----------------- ----------------- | ----------- | ----------------- -------- | | ECC | | ----------------- -------- - Java Console (heavy client, 512MB memory) | |-------| SAN (fabric 1)|------| QA | - Web console (cannot make changes) | ----------- | ----------------- | Host | - Oracle 9i database | | BCV | | | | - Agent storage | | devices | | ----------------- | | | ----------- |-------| SAN (fabric 2)|------| | Agents ----------------- ----------------- -------- ------ hosts (each different OS has it's own agent) db ( native is oracle ) DAN arrays
HBA/SYMCLI solaris recomendations/etc/system * For EMCset sd:sd_max_throttle=20set scsi_options=0x7f8set sd:sd_io_time=0x3c* End EMCset semsys:seminfo_semmni=600set semsys:seminfo_semmns=600set semsys:seminfo_semume=600set semsys:seminfo_semmnu=600set shmsys:shminfo_shmmax=524288set shmsys:shminfo_shmmni=600
Useful and common EMC Symm CLI Command list Page 22 of 27
sd_max_throttle – The sd_max_throttle variable sets the maximum number of commands that the SCSI sd driver will attempt to queue to a single HBA driver. The default value is 256. This variable must be set to a value less than or equal to the maximum queue depth of each LUN connected to each instance of the sd driver. If this is not done, then commands may be rejected because of a full queue condition and the sd driver instance that receives the queue full message will throttle down sd_max_throttle to 1. This obviously will result in degraded performance. The variable is set in the /etc/system file as follows:
set sd:sd_max_throttle=20
sd_io_time – The sd_io_time variable is command time out value. Setting this time out value to 120 seconds will prevent the host from issuing warning messages while non-disruptive operations are performed on the disk array. For example, in a EMC Symmettrix power path environment this variable can be set to 0x3C (60 seconds). As with the sd_max_throttle value, this is set in the /etc/system file. Using the EMC value in an example:
set sd:sd_io_time = 0x3C
scsi_options – The value scsi_options is a setting for SCSI options included as outlined in the bit meaning table above. Solaris 7 default SCSI settings are for the maximum Ultra Wide Speed. Since the /etc/system file can also affect other disks in the system, consider the effects of implementing the scsi_options=0x7F8 mask on the other disks. You might consider the bus level or device level setpoints as we discussed above rather than a system wide setting. An example entry in the /etc/system file would be:
set scsi_options=0x7F8
Veritas Volume Manager
Initialize disksvxdisksetup -i cXtYdZvxdisksetup -i c3t4d101
List Disk groups# vxdg list
List Disk info for all visible disks regardless of imported/deported disk group status# vxdisk -o alldgs list
Useful and common EMC Symm CLI Command list Page 23 of 27
Create vxdg# vxdg init {new vxdg} {dm name}=cXtYdZvxdg init archivep archivep01=c3t4d101s2 archivep02=c3t4d102s2 archivep03=c3t4d103s2 archivep04=c3t4d104s2 archivep05=c3t4d105s2 archivep06=c3t4d106s2 archivep07=c3t4d107s2
Useful and common EMC Symm CLI Command list Page 24 of 27
Remove DiskgroupRemove sentnlp from VCS. img2s001n1 # vxdisk -o alldgs list | grep sentnlpc2t0d186s2 sliced - (sentnlp1) onlinec2t0d187s2 sliced - (sentnlp1) onlinec2t0d188s2 sliced - (sentnlp1) onlinec2t0d189s2 sliced - (sentnlp1) onlinec2t0d190s2 sliced - (sentnlp1) onlinec2t0d191s2 sliced - (sentnlp2) onlinec2t0d192s2 sliced - (sentnlp2) onlinec2t0d193s2 sliced - (sentnlp2) onlinec2t0d194s2 sliced - (sentnlp2) onlinec2t0d203s2 sliced - (sentnlp2) onlinec2t0d204s2 sliced - (sentnlp3) onlinec2t0d205s2 sliced - (sentnlp3) onlinec2t0d206s2 sliced - (sentnlp3) onlinec2t0d207s2 sliced - (sentnlp3) onlinec2t0d240s2 sliced - (sentnlp4) onlinec2t6d191s2 sliced - (sentnlp5) onlinec2t6d192s2 sliced - (sentnlp5) onlinec2t6d193s2 sliced - (sentnlp5) onlinec2t6d194s2 sliced - (sentnlp5) online img2s001n1 # vxdg import sentnlp1img2s001n1 # vxdg import sentnlp2img2s001n1 # vxdg import sentnlp3img2s001n1 # vxdg import sentnlp4img2s001n1 # vxdg import sentnlp5 img2s001n1 # vxdg destroy sentnlp1img2s001n1 # vxdg destroy sentnlp2img2s001n1 # vxdg destroy sentnlp3img2s001n1 # vxdg destroy sentnlp4img2s001n1 # vxdg destroy sentnlp5 The above disks have been entered back into the global free pool.
Add more disks to existing vxdgvxdg -g rto1t adddisk pcsssvct01=c3t0d130s2 pcsssvct02=c3t0d131s2 pcsssvct03=c3t0d132s2 pcsssvct04=c3t0d133s2 pcsssvct05=c3t0d134s2
Useful and common EMC Symm CLI Command list Page 25 of 27
List volume info.# vxprint -ht# vxprint -htg [vxdg]# vxprint -ht -g [vxdg] # vxprint -ht -g rto1t | grep pcsssvctdm pcsssvct01 c3t0d130s2 sliced 2623 62394240 -dm pcsssvct02 c3t0d131s2 sliced 2623 62394240 -dm pcsssvct03 c3t0d132s2 sliced 2623 62394240 -dm pcsssvct04 c3t0d133s2 sliced 2623 62394240 -dm pcsssvct05 c3t0d134s2 sliced 2623 62394240 -v pcsssvctu01 - ENABLED ACTIVE 60928000 SELECT pcsssvctu01-01 fsgenpl pcsssvctu01-01 pcsssvctu01 ENABLED ACTIVE 60929280 STRIPE 2/128 RWsd pcsssvct01-01 pcsssvctu01-01 pcsssvct01 0 30464640 0/0 c3t0d130 ENAsd pcsssvct02-01 pcsssvctu01-01 pcsssvct02 0 30464640 1/0 c3t0d131 ENAv pcsssvctu02 - ENABLED ACTIVE 60928000 SELECT pcsssvctu02-01 fsgenpl pcsssvctu02-01 pcsssvctu02 ENABLED ACTIVE 60929280 STRIPE 2/128 RWsd pcsssvct03-01 pcsssvctu02-01 pcsssvct03 0 30464640 0/0 c3t0d132 ENAsd pcsssvct04-01 pcsssvctu02-01 pcsssvct04 0 30464640 1/0 c3t0d133 ENAv pcsssvctu03 - ENABLED ACTIVE 60928000 SELECT pcsssvctu03-01 fsgenpl pcsssvctu03-01 pcsssvctu03 ENABLED ACTIVE 60929280 STRIPE 2/128 RWsd pcsssvct01-02 pcsssvctu03-01 pcsssvct01 30464640 30464640 0/0 c3t0d130 ENAsd pcsssvct02-02 pcsssvctu03-01 pcsssvct02 30464640 30464640 1/0 c3t0d131 ENAv pcsssvctu04 - ENABLED ACTIVE 60928000 SELECT pcsssvctu04-01 fsgenpl pcsssvctu04-01 pcsssvctu04 ENABLED ACTIVE 60929280 STRIPE 2/128 RWsd pcsssvct03-02 pcsssvctu04-01 pcsssvct03 30464640 30464640 0/0 c3t0d132 ENAsd pcsssvct04-02 pcsssvctu04-01 pcsssvct04 30464640 30464640 1/0 c3t0d133 ENAv pcsssvctu05 - ENABLED ACTIVE 60928000 SELECT - fsgenpl pcsssvctu05-01 pcsssvctu05 ENABLED ACTIVE 60928320 CONCAT - RWsd pcsssvct05-01 pcsssvctu05-01 pcsssvct05 0 60928320 0 c3t0d134 ENA
Determine largest possible size for a volume# vxassist -g {vxdg} maxsize {attributes}# vxassist -g archivep maxsizeMaximum volume size: 499152896 (213261Mb)
Useful and common EMC Symm CLI Command list Page 26 of 27
Determine larges possible size for a volume with given disks# vxassist -g dhubt1 maxsize dhubp126 dhubp127 dhubp128 dhubp129 dhubp130 dhubp131 dhubp133 dhubp134Maximum volume size: 499152896 (243727Mb)
To determine how much a volume can expand# vxassist -g {vxdg} maxgrow {volume}
Create volume# vxassist -g {vxdg} make {volume name} {length} [attributes]# vxassist -g archivep make archivepu21 213261m layout=stripe
Create stiped volume that is 4 columns wide by 2 deep. (4x2)vxassist -g dhubt1 make u08 243727m layout=stripe ncol=4 dhubp126 dhubp127 dhubp128 dhubp129 dhubp130 dhubp131 dhubp133 dhubp134
DynamicMultipathing
Get all pathed HBAs(controllers)# vxdmpadm listctlr allimg2s001n1 # vxdmpadm listctlr allCTLR-NAME ENCLR-TYPE STATE ENCLR-NAME=====================================================c0 Disk ENABLED Diskc1 OTHER_DISKS ENABLED OTHER_DISKSc2 EMC ENABLED EMC1c3 EMC ENABLED EMC1c2 EMC ENABLED EMC2c3 EMC ENABLED EMC2
Get State of all devices down that path/controller# vxdmpadm getsubpaths ctlr=<controler>
Useful and common EMC Symm CLI Command list Page 27 of 27
Find disabled devices down that path/controllerimg2s001n1 # vxdmpadm getsubpaths ctlr=c2 | grep -i disabled | grep -v d0s2c2t0d174s2 DISABLED - c2t0d174s2 EMC EMC1c2t0d175s2 DISABLED - c2t0d175s2 EMC EMC1img2s001n1 # vxdmpadm getsubpaths ctlr=c3 | grep -i disabled | grep -v d0s2