Useful and common EMC Symm CLI Command list

Page 1 of 27

SYMCLI BASE Commands
symapierr symaudit symbcv symcfg symchg symcli symdev symdg symdisk symdrv symevent symgate symhost syminq symlabel symld symlmf sympd symstat symreturn Used to translate SYMAPI error code numbers into SYMAPI error messages. List records from a symmetrix audit log file. Perform BCV support operations on Symmetrix BCV devices. 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. Monitor changes to Symmetrix devices or to logical objects stored on Symmetrix devices. Provides the version number and a brief description of the commands included in the Symmetrix Command Line Perform operations on a device given the device's Symmetrix name. Can also be used to view Symmetrix device locks. Perform operations on a device group (dg). Display information about the disks within a Symmetrix. List DRV devices on a Symmetrix. Monitor or inspect the history of events within a Symmetri Perform operations on a gatekeeper device. Display host configuration information and performance statistics. Issues a SCSI Inquiry command on one or all devices. Interface. Perform label support operations on a Symmetrix device. Perform operations on a device in a device group (dg). Registers SYMAPI license keys. Perform operations on a device given the device's physical name. Display statistics information about a Symmetrix, a Director, a device group, or a device. 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 symauth symcg symchksum symclone symconfigur e symconnect symmask symmaskdb symmir symoptmz symqos symrdf symreplicate symsnap symstar symrcopy

Page 2 of 27

Administer symmetrix user authorization information. Perform operations on an composite group (cg). Administer checksum checks when an Oracle database writes data files on Symmetrix devices. Perform Clone control operations on a device group or on a device within the device group. Perform modifications on the Symmetrix configuration. Setup or Modify Symmetrix Connection Security functionalit Setup or Modify Symmetrix Device Masking functionality. Backup, Restore, Initialize or Show the contents of the device masking database. Perform BCV control operations on a device group or on a device within the device group. Perform Symmetrix Optimizer control operations. Perform Quality of Service operations on Symmetrix Devices Perform RDF control operations on a device group or on a device within the device group. Perform automated, consistent replication of data given a pre- configured SRDF/Timefinder setup Perform Symmetrix Snap control operations on a device group or on devices in a device file. Perform SRDF STAR management operations. Perform Symmetrix Rcopy control operations on devices in a device file.

SYMCLI SRM(Mapping) Commands
symhostfs symioctl symlv sympart symrdb symrslv symvg Display information about a host File, Directory,or host File System. Send IO control commands to a specified application. Display information about a volume in Logical Volume Group (vg). Display partition information about a host device. Display information about a third- party RelationalDatabase Display detailed Logical to Physical mapping information about a logical object stored on Symmetrix devices. Display information about a Logical Volume Group (vg).

symmaskdb commands init backup restore remove list database list devs (-wwn) list assignment (-dev) list capacity (-host) symmaskdb -sid 516 list database -output XML lists all devices accessible to an HBA on a specified symmetrix system and all directors that access each device List the HBA assignments to devices Lists the capacity of devices assigned to a particlur host create and initialises a device masking database. Note: This command only needs to be run once otherwise all SAN configuration is lost backups up the database to a specified file restore a database file removes the meta member devices lists for each symmetrix fibre director which devices in a symmetrix system a WWN can access symdev commands list available devices list symdev list -inventory . On completion. the database device cannot be written to by the operating system.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.

TID. LUN. lists all the physical devices in the device masking database symcfg commands list -v list -address -fa -available all list -sa all list -sa 15D -v symcfg -sid xxx list -address -fa 4c -p 1 -available lists all fibre directors (FA) in a symmetrix system lists detailed information on a FA port symcfg list -RA all -sid 516 -switched symcfg -dir all list –sid 516 list applications using the symmetrix symcfg list -applications -sid xxx list host connections to the array -connections list symcfg list -connections symcfg list -connections -sorthost symcfg list -connections -capacity -sid 516 lists whether the symmetrix director has device masking turned on lists all fibre directors in a symmetrix system and which devices they can access -application list symmask commands add devs remove devs add a device to the list of devices that a WWN can access in the database remove a device from the list of devices that a WWN can access in the database .Useful and common EMC Symm CLI Command list -v list show <symdevname> detailed information of a device display meta device information Page 4 of 27 sympd commands list list -vcm lists the symmetrix devices that are accessed through fibre channel and shows their controlling director. Also shows which device holds the device masking database (VCM). device number and serial number.

(displays the login history table contents) lists WWNs of the fibre HBAs on this host.bin /symapi/config/netcnfg default symapi database file lists the network services available from that host .Useful and common EMC Symm CLI Command list delete replace set lockdown set visibility set lunoffset set heterogeneous rename refresh Page 5 of 27 deletes all access rights for a WWN in the database allows one HBA to replace another sets or clears the fibre channel ID lockdown sets or clears visibility for noncontiguous LUNS sets or clears a LUN base/offset skip for noncontiguous LUNS. discover hba list logins list hba symconfigure commands -sid <sid> -f <filename> verify -sid <sid> -f <filename> preview -sid <sid> -f <filename> prepare -sid <sid> -f <filename> commit verify that we have access to the symmetrix and we can make changes confirm that the syntax is correct commit the changes to the database control and log files locations /symapi/db/symapi_db. sets or clears heterogeneous host inform with distinctive attributes changes the AWWN for the specified WWN in the database and login history table 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 discovers the HBA on the host and assigns AWWN to the login history table entries for thoses WWNs that are not set Lists foreach fibre director which hosts and HBAs are logged into the symmetrix.

# symmaskdb -sid xxx list database # symmaskdb -sid xxx -dev 0029 list assignment -v backup the VCMDB restore the VCMDB refresh the database list the database list a specific device FA Ports List currently configured FA port settings (this is used # symcfg -sa <##|all> [-p <#>] list -v primary for HP systems) List currently visable devices on a FA port # symcfg -sid xxx -FA 15C -address list . otherwise you will not see your changes. SYMAPI calls and their control actions identifies devices to skip over when looking for devices identifies devices not chosen as gatekeepers lists devices to be added to the symapi database logfile for symcli. activities Common commands VCMDB # symmaskdb -sid xxx init -f newinit.db initialize the VCMDB Note: This command only needs to be run once otherwise all SAN configuration is lost. also make sure the database is backed up regularly.log Page 6 of 27 the options file contains behavior parameters that can be set to critically change default behavior of SYMCLI operations. # symmaskdb -sid xxx -file <filename> backup # symmaskdb -sid xxx -file <filename> restore # symmask -sid xxx refresh Note: Remember any changes to the VCMDB have to be uploaded to the symmetrix memory.Useful and common EMC Symm CLI Command list /symapi/config/options /symapi/config/symavoid /symapi/config/gkavoid /symapi/config/inqfile /symapi/log/symapi-<date>.symapi functions. calls.

Useful and common EMC Symm CLI Command list Page 7 of 27 Disk Devices list all devices within the array list a specific device within the array # symdev list # inq # symmaskdb -sid xxx -dev 0029 list assignment -v # symmask -sid xxx -wwn 5000020001f2 -dir 15c -p 0 add devs 087. The run the following: # symconfigure -sid xxx -f meta. config-striped stripe_size=1920. Also this is know as LUN masking. add dev 0006 to meta 0004.089 dir = director port p = port number on the director port Note: the devices are symmetrix devices ID's not LUN ID's.002A # symmaskdb -sid xxx -host 5000020001f2 list capacity # symdev show <symdevname> add access to the symmetrix devices remove access from the symmetrix devices list devices available assigned to a specific host display meta devices HBA register the HBA with the VCMDB List HBAs in local host List HBAs to FA port logins # symmask discover hba # symmask list hba -v # symmask -sid xxx list logins Build file contents Meta devices files Form meta from dev 0004.088. add dev 0008 to meta 0004. add dev 0007 to meta 0004.txt preview # symconfigure -sid xxx -f meta.txt prepare . # symmask -sid xxx -wwn 5000020001f2 remove devs 0029. add dev 0005 to meta 0004.

Mapping devices file (map devices to ports) The run the following: # symconfigure -sid xxx -f mappings. lun=007. map dev 0042 to dir 4c:1 target=0. lun=007.txt prepare # symconfigure -sid xxx -f mappings.Useful and common EMC Symm CLI Command list Page 8 of 27 # symconfigure -sid xxx -f meta. lun=006. lun=006. Sym db (vcm)location: /usr/emc/API/symapi/db sym log location: /usr/emc/API/symapi/log . map dev 002e to dir 16C:0 target=0.txt commit HBAs information on system /usr/sbin/hbanyware/hbacmd listhbas /usr/sbin/hbanyware/hbacmd hbaattibute [wwn] Good EMC symcli commands to know.txt commit map dev 002e to dir 4c:1 target=0. map dev 0042 to dir 16C:0 target=0.txt preview # symconfigure -sid xxx -f mappings.

## Update device config settings #### MAP ## Standard Devices map dev 0324 to dir 7a:0. lun=07d. map dev 032c to dir 10a:0.90096. map dev 0328 to dir 7a:0. set dev 032e attribute=SCSI3_persist_reserv. set dev 0336 attribute=SCSI3_persist_reserv. set dev 032a attribute=SCSI3_persist_reserv. convert dev 0336 to 2-Way-BCV-Mir. ##make BCV device convert dev 032e to 2-Way-BCV-Mir. convert dev 0332 to 2-Way-BCV-Mir. set dev 0328 attribute=SCSI3_persist_reserv. lun=07f. map dev 0328 to dir 10a:0. convert dev 0334 to 2-Way-BCV-Mir. lun=082. set dev 0334 attribute=SCSI3_persist_reserv. set dev 0332 attribute=SCSI3_persist_reserv.symconf ### Start of symconfigure ### ## Update device config settings set dev 0324 attribute=SCSI3_persist_reserv. lun=081. ## Standard Devices ## BCV Devices map dev 032e to dir 7a:0. convert dev 0330 to 2-Way-BCV-Mir. map dev 0324 to dir 10a:0. lun=07e. lun=080. map dev 032c to dir 7a:0. lun=07f. . map dev 0326 to dir 7a:0.Useful and common EMC Symm CLI Command list Page 9 of 27 symcfg file layout and usage in cli cat > 04009914. set dev 032c attribute=SCSI3_persist_reserv. map dev 0326 to dir 10a:0. lun=07d. map dev 032a to dir 10a:0. lun=07e. set dev 0330 attribute=SCSI3_persist_reserv. lun=081. set dev 0326 attribute=SCSI3_persist_reserv. map dev 032a to dir 7a:0. lun=080.

lun=083.txt Mask devices to new Host sudo symmask -sid 90096 -dir 7a -p 0 -wwn 10000000c9426c85 add devs 0324.0326.0332.032E. map dev 0330 to dir 7a:0.032A.032A. map dev 0332 to dir 7a:0.0332.0328.0336 # pcs2s009hba0 10 Luns: 125-134 sudo symmask -sid 90096 -dir 10a -p 0 -wwn 10000000c9426c84 add devs 0324.bin # Backup text vcmdb sudo symmaskdb -sid 90096 database list > 90096_backup. lun=084. lun=085.0336 # pcs2s009hba1 10 Luns: 125-134 sudo symmask -sid 90096 refresh Scan for all/associate symmetrix frame with gatekeeper symcfg discover .90096.0334. lun=086. lun=083. map dev 0334 to dir 7a:0.0334. lun=082. map dev 0336 to dir 10a:0. map dev 0336 to dir 7a:0.symconf preview # commit to actually take effect Backup vcmdb # Backup binary vcmdb sudo symmaskdb -noprompt -sid 90096 backup -file 90096_backup.Useful and common EMC Symm CLI Command list Page 10 of 27 map dev 032e to dir 10a:0. lun=085.0328. map dev 0332 to dir 10a:0.0330.032C. lun=084. map dev 0330 to dir 10a:0.032C.0326.032E.0330. ## BCV Devices ### End of symconfigure ### sudo symconfigure -sid 90096 -f 04009914. map dev 0334 to dir 10a:0. lun=086.

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 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 ./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 # .

Useful and common EMC Symm CLI Command list Page 13 of 27 List Symmetrix Device groups # symdg list D E V I C E Name abinitiop brksrvp nfs01p ssep01 ssep03 rto1p abinitiot brksrvt sset03 rto1t nfs01t sset01 Type RDF2 RDF2 RDF2 RDF2 RDF2 RDF2 REGULAR REGULAR REGULAR REGULAR REGULAR REGULAR Valid Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes G R O U P S Symmetrix ID 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 000187790096 Devs 4 4 7 12 4 4 0 0 0 0 0 0 Number of GKs BCVs VDEVs 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 4 0 0 4 0 0 4 0 0 7 0 0 14 0 .

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 . # symdg show archivep Group 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.Useful and common EMC Symm CLI Command list Page 14 of 27 Get info about symmetrix device group (symdg) including devices in the group.

Useful and common EMC Symm CLI Command list R2 Device Is Larger Than The R1 Device RDF Mode RDF Adaptive Copy RDF Adaptive Copy Write Pending State RDF Adaptive Copy Skew (Tracks) RDF Device Domino RDF Link Configuration RDF Link Domino Prevent Automatic RDF Link Recovery Prevent RAs Online Upon Power ON Device RDF Status Device RA Status Device Link Status Device Suspend State Device Consistency State RDF R2 Not Ready If Invalid Device RDF State Remote Device RDF State RDF Pair State ( R1 <=\=> R2 ) Number of R1 Invalid Tracks Number of R2 Invalid Tracks } : : : : : : : : : : : : : : : : : : : : : False Synchronous Disabled N/A 65535 Disabled Fibre Disabled Disabled Enabled Ready Ready Not Ready Offline Disabled Disabled Ready Ready Split 3395065 0 Page 15 of 27 (RW) (RW) (NR) (RW) (RW) Create new symdg symdg create [new symdg] -type [dg type] symdg create archivep -type RDF2 Show Symmetrix devices in a specific device group symdg -g <symdg> list Show details about a specific symmetrix device symdev -sid <sym id> show <symdev> List all visible symmetrix devices sympd 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 /dev/rdsk/c3t0d126s2 0326 10A:0 16C:DA 2-Way /dev/rdsk/c3t0d127s2 0328 10A:0 02C:DA 2-Way /dev/rdsk/c3t0d128s2 032A 10A:0 02B:DB 2-Way /dev/rdsk/c3t0d129s2 032C 10A:0 16B:DB 2-Way /dev/rdsk/c4t1d125s2 0324 07A:0 02A:DA 2-Way /dev/rdsk/c4t1d126s2 0326 07A:0 16C:DA 2-Way /dev/rdsk/c4t1d127s2 0328 07A:0 02C:DA 2-Way /dev/rdsk/c4t1d128s2 032A 07A:0 02B:DB 2-Way /dev/rdsk/c4t1d129s2 032C 07A:0 16B:DB 2-Way sympd list | egrep "032E|0330|0332|0334|0336" /dev/rdsk/c3t0d130s2 032E 10A:0 02D:DB 2-Way /dev/rdsk/c3t0d131s2 0330 10A:0 16D:DB 2-Way /dev/rdsk/c3t0d132s2 0332 10A:0 16A:DC 2-Way /dev/rdsk/c3t0d133s2 0334 10A:0 02A:DC 2-Way /dev/rdsk/c3t0d134s2 0336 10A:0 16C:DC 2-Way /dev/rdsk/c4t1d130s2 032E 07A:0 02D:DB 2-Way /dev/rdsk/c4t1d131s2 0330 07A:0 16D:DB 2-Way /dev/rdsk/c4t1d132s2 0332 07A:0 16A:DC 2-Way /dev/rdsk/c4t1d133s2 0334 07A:0 02A:DC 2-Way /dev/rdsk/c4t1d134s2 0336 07A:0 16C:DC 2-Way Mir Mir Mir Mir Mir Mir Mir Mir Mir Mir BCV BCV BCV BCV BCV BCV BCV BCV BCV BCV Mir Mir Mir Mir Mir Mir Mir Mir Mir Mir N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Grp'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd N/Asst'd (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) (M) RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW RW 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 30469 .

----.---------------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 17 of 27 List access granted for a device. symmaskdb -sid [sym id] -dev [sym dev] list assignment img2s003n2 # .---------------./symmaskdb -sid 0715 -dev 000E list assignment Symmetrix ID : 000187720715 Device Identifier Type Dir:P -----.

Useful and common EMC Symm CLI Command list Page 18 of 27 Set sym-dev state/mode symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev symdev -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid -sid <sid> 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 90096 ready <dev> ready 03CC -noprompt not_ready 03CE -noprompt ready 03CE -noprompt ready 03D0 -noprompt ready 03D2 -noprompt ready 03D4 -noprompt ready 03D6 -noprompt ready 03D8 -noprompt ready 03DA -noprompt ready 03DC -noprompt ready 03DE -noprompt ready 03E0 -noprompt ready 0324 -noprompt ready 0326 -noprompt ready 0328 -noprompt ready 032A -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 FACILITY Register License Key (y/[n]) ? y Enter License Key : <lic key> Register License Key (y/[n]) ? y Enter 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 link symrdf -g [symdg] set mode=[async|sync] symrdf -g [symdg] [suspend|resume] Control BCV state symmir -g <device group> -full establish [ld dev] BCV ld [BCV dev] symmir -g <device group> split [dev] or cat > bcv_map.txt ### Start BCV Mapfile ### 0324 032e 0326 0330 0328 0332 032a 0334 032c 0336 ### End BCV Mapfile ### sudo symmir -f bcv_map.txt -sid 90096 query # Verify Add Standard/R1/R2 devices to a symdg symld -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 .txt -sid 90096 establish -full # Sync sudo symmir -f bcv_map.

the first sym device in the META that is presented to represent the LUN .represents a what the OS see's as a physical disk HYPER .section carved from symmetrix volume.soft zoning .LUN comprised of multiple Hypers META Head .secure zoning Storage Area Network (SAN) LUN Masking .full mesh Terminology: Zoning: setting up a path (similar to vlans) Port .Used to restrict host's A LUNs from host B's LUNs LUN .hard zoning WWN (world wide name) .dynamicaly moves disk strips ISL: Inter Switch Links .zones are mapped from port in to port out. META .Useful and common EMC Symm CLI Command list Page 20 of 27 sync/split BCVs 1 and 2 symbcv symmir symmir symbcv symbcv symmir symmir symbcv -sid 0096 -g archived moveall archivep -g archivep establish -g archivep split -instant -sid 0096 -g archivep moveall archived -sid 0096 -g archivet moveall archivep -g archivep establish -noprompt -g archivep split -instant -noprompt -sid 0096 -g archivep moveall archivet PowerPath Control Center Symmetrix Manager Clariion Manager SAN Manager Performance Manager . .MAC addresses are used .

Page 21 of 27 ------------------------------------------------------------------------------| Prod |-------| SAN (fabric 1)|------| Storage Array | | Storage Array |-------| SAN (fabric 1)|------| DR | | Host | ----------------| Symetrics | RDF LINK | Symetrics | ----------------| Host | | | | |-------------\----------| ----------.Useful and common EMC Symm CLI Command list FA .Fibre adaptor contains an WWN from the SAN director side.| ----------------| Host | .|-------| 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 EMC set sd:sd_max_throttle=20 set scsi_options=0x7f8 set sd:sd_io_time=0x3c * End EMC set semsys:seminfo_semmni=600 set semsys:seminfo_semmns=600 set semsys:seminfo_semume=600 set semsys:seminfo_semmnu=600 set shmsys:shminfo_shmmax=524288 set shmsys:shminfo_shmmni=600 .Agent storage | | devices | | ----------------| | | ----------.Java Console (heavy client. 512MB memory) | |-------| SAN (fabric 1)|------| QA | .| -----------------------| | ECC | | -----------------------.Oracle 9i database | | BCV | | | | .| | | | | ----------------| | | | R2 | | ----------------| | | |-------| SAN (fabric 2)|------| | | | devices | |-------| SAN (fabric 2)|------| | ---------------------------------------| ----------.Web console (cannot make changes) | ----------.

For example. You might consider the bus level or device level setpoints as we discussed above rather than a system wide setting. 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. in a EMC Symmettrix power path environment this variable can be set to 0x3C (60 seconds). 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. Since the /etc/system file can also affect other disks in the system. this is set in the /etc/system file.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. Solaris 7 default SCSI settings are for the maximum Ultra Wide Speed. An example entry in the /etc/system file would be: set scsi_options=0x7F8 Veritas Volume Manager Initialize disks vxdisksetup -i cXtYdZ vxdisksetup -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 . 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. As with the sd_max_throttle value. If this is not done. 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. 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. consider the effects of implementing the scsi_options=0x7F8 mask on the other disks. This obviously will result in degraded performance. The default value is 256.

Useful and common EMC Symm CLI Command list Page 23 of 27 Create vxdg # vxdg init {new vxdg} {dm name}=cXtYdZ vxdg init archivep archivep01=c3t4d101s2 archivep02=c3t4d102s2 archivep03=c3t4d103s2 archivep04=c3t4d104s2 archivep05=c3t4d105s2 archivep06=c3t4d106s2 archivep07=c3t4d107s2 .

img2s001n1 # vxdisk -o alldgs list | grep sentnlp c2t0d186s2 sliced (sentnlp1) online c2t0d187s2 sliced (sentnlp1) online c2t0d188s2 sliced (sentnlp1) online c2t0d189s2 sliced (sentnlp1) online c2t0d190s2 sliced (sentnlp1) online c2t0d191s2 sliced (sentnlp2) online c2t0d192s2 sliced (sentnlp2) online c2t0d193s2 sliced (sentnlp2) online c2t0d194s2 sliced (sentnlp2) online c2t0d203s2 sliced (sentnlp2) online c2t0d204s2 sliced (sentnlp3) online c2t0d205s2 sliced (sentnlp3) online c2t0d206s2 sliced (sentnlp3) online c2t0d207s2 sliced (sentnlp3) online c2t0d240s2 sliced (sentnlp4) online c2t6d191s2 sliced (sentnlp5) online c2t6d192s2 sliced (sentnlp5) online c2t6d193s2 sliced (sentnlp5) online c2t6d194s2 sliced (sentnlp5) online img2s001n1 img2s001n1 img2s001n1 img2s001n1 img2s001n1 img2s001n1 img2s001n1 img2s001n1 img2s001n1 img2s001n1 # # # # # # # # # # vxdg vxdg vxdg vxdg vxdg vxdg vxdg vxdg vxdg vxdg import import import import import destroy destroy destroy destroy destroy sentnlp1 sentnlp2 sentnlp3 sentnlp4 sentnlp5 sentnlp1 sentnlp2 sentnlp3 sentnlp4 sentnlp5 The above disks have been entered back into the global free pool.Useful and common EMC Symm CLI Command list Page 24 of 27 Remove Diskgroup Remove sentnlp from VCS. Add more disks to existing vxdg vxdg -g rto1t adddisk pcsssvct01=c3t0d130s2 pcsssvct02=c3t0d131s2 pcsssvct03=c3t0d132s2 pcsssvct04=c3t0d133s2 pcsssvct05=c3t0d134s2 .

# vxprint -ht # vxprint -htg [vxdg] # vxprint -ht -g [vxdg] # vxprint -ht -g rto1t | grep pcsssvct dm 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 pl pcsssvctu01-01 pcsssvctu01 ENABLED ACTIVE 60929280 STRIPE sd pcsssvct01-01 pcsssvctu01-01 pcsssvct01 0 30464640 0/0 sd pcsssvct02-01 pcsssvctu01-01 pcsssvct02 0 30464640 1/0 v pcsssvctu02 ENABLED ACTIVE 60928000 SELECT pl pcsssvctu02-01 pcsssvctu02 ENABLED ACTIVE 60929280 STRIPE sd pcsssvct03-01 pcsssvctu02-01 pcsssvct03 0 30464640 0/0 sd pcsssvct04-01 pcsssvctu02-01 pcsssvct04 0 30464640 1/0 v pcsssvctu03 ENABLED ACTIVE 60928000 SELECT pl pcsssvctu03-01 pcsssvctu03 ENABLED ACTIVE 60929280 STRIPE sd pcsssvct01-02 pcsssvctu03-01 pcsssvct01 30464640 30464640 0/0 sd pcsssvct02-02 pcsssvctu03-01 pcsssvct02 30464640 30464640 1/0 v pcsssvctu04 ENABLED ACTIVE 60928000 SELECT pl pcsssvctu04-01 pcsssvctu04 ENABLED ACTIVE 60929280 STRIPE sd pcsssvct03-02 pcsssvctu04-01 pcsssvct03 30464640 30464640 0/0 sd pcsssvct04-02 pcsssvctu04-01 pcsssvct04 30464640 30464640 1/0 v pcsssvctu05 ENABLED ACTIVE 60928000 SELECT pl pcsssvctu05-01 pcsssvctu05 ENABLED ACTIVE 60928320 CONCAT sd pcsssvct05-01 pcsssvctu05-01 pcsssvct05 0 60928320 0 pcsssvctu01-01 2/128 RW c3t0d130 ENA c3t0d131 ENA pcsssvctu02-01 2/128 RW c3t0d132 ENA c3t0d133 ENA pcsssvctu03-01 2/128 RW c3t0d130 ENA c3t0d131 ENA pcsssvctu04-01 2/128 RW c3t0d132 ENA c3t0d133 ENA fsgen RW c3t0d134 ENA fsgen fsgen fsgen fsgen Determine largest possible size for a volume # vxassist -g {vxdg} maxsize {attributes} # vxassist -g archivep maxsize Maximum volume size: 499152896 (213261Mb) .Useful and common EMC Symm CLI Command list Page 25 of 27 List volume info.

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 dhubp134 Maximum 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 all img2s001n1 # vxdmpadm listctlr all CTLR-NAME ENCLR-TYPE STATE ENCLR-NAME ===================================================== c0 Disk ENABLED Disk c1 OTHER_DISKS ENABLED OTHER_DISKS c2 EMC ENABLED EMC1 c3 EMC ENABLED EMC1 c2 EMC ENABLED EMC2 c3 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/controller img2s001n1 # vxdmpadm getsubpaths ctlr=c2 | grep -i disabled | grep -v d0s2 c2t0d174s2 DISABLED c2t0d174s2 EMC EMC1 c2t0d175s2 DISABLED c2t0d175s2 EMC EMC1 img2s001n1 # vxdmpadm getsubpaths ctlr=c3 | grep -i disabled | grep -v d0s2 .

Sign up to vote on this title
UsefulNot useful