You are on page 1of 11

These are some consolidated commands used for administration of EMC

Symmetrix.

1. Display the properties and details of a particular volume


symdev –sid xxxx show [SymDevName]

2. List of available devices that are created but not assigned to the front end FA’s
symdev –sid xxxx list –noport –nobcv –multiport (which will give u the maped to
which fa port)

3. List of presented devices to a particular FA.


symcfg –sid xxxx list –available –address –dir xx – p x

4. View the fibre connectivity statuses of the FA’s


symcfg –sid xxxx –FA ALL –port list

5. View the fibre connectivity statuses of the RA’s and the RAGroups
symcfg –sid xxxx –RA ALL –port list

6. View the HBA’s zoned into the FA


symmask –sid xxxx list logins –dir xx –p x

7. Adding LUN Masking (assigning LUNs to host HBA’s)


symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x add devs xxx,xxx,xxx

8. Aliasing/Renaming the Host HBA wwn’s in the LUN Masking Database


symmask –sid xxxx –wwn 10000000cxxxxxxx rename [NodeName]/[PortName]
symmask –sid 1200 –wwn 10000000c9408060 rename “kopeqdrac01/a1”

9. Removing LUN Masking (unassigning LUNs from host HBA’s)


symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x remove devs xxx,xxx

10. Refreshing the LUN Masking DB (This MUST be done every time a change is
made)
symmask -sid xxxx refresh -noprompt

11. List the LUN Masking DB by FA port


symmaskdb –sid xxxx list database –dir xx –p x

12 .List the LUN Masking DB by a Host’s wwn


symmaskdb –sid xxxx list database –wwn 10000000cxxxxxxx

13. List the LUN Masking DB by an Alias


symmaskdb –sid xxxx list database –awwn [NodeName]/[PortName]
14. List the wwn’s/alias’ for a particular LUN
symmaskdb –sid xxxx list assignment –dev [SymDevName]

15. List a capacity report for an Alias (Host)


symmaskdb -sid xxxx list capacity -host [NodeName]

16. List all the Device Groups on that server


symdg list

17 .List details and properities of a particular device group


symdg show [device group]

18 .Create a new device group for BCV ONLY relationships


Symdg -type REGULAR create [new dg name]
symld –g [device group] –sid xxxx add dev [SymDevName]
symbcv –g [device group] –sid xxxx add dev [SymDevName]

symmir (BCV) commands


symmir –g [device group] query
symmir –g [device group] establish
symmir –g [device group] split

19. Create a new device group from the RDF1 (Source) location
symdg -type RDF1 create [new dg name]
symld –g [device group] –sid xxxx add dev [SymDevName]

Commands for splitting the SRDF


symrdf -g [device group] set mode sync
symrdf -g [device group] query (keep checking until all synchronized)
symrdf -g [device group] split
symrdf -g [device group] query (make sure split)
symrdf -g [device group] set mode acp_disk

Putting SRDF back in place not saving any changes made in DR


symrdf -g [device group] que (make sure mode is C.D)
symrdf -g [device group] est
symrdf -g [device group] query (query until less than 1GB left to synchronize)
symrdf -g [device group] set mode acp_wp
symrdf -g [device group] query (query until synchronized and make sure mode
is C.W)

20. Create a new device group from the RDF2 (Target) location
symdg -type RDF2 create [new dg name]
symld –g [device group] –sid xxxx add dev [SymDevName]

21. View the statistics of the RA adapters


symstat –sid xxxx –ra all –i x –c x
22. View the UNCONFIGURED space on the symm(DMX)
symconfigure -sid xxxx list -freespace -units MB

23. This will check if you can run a symconfigure script


symconfigure –sid xxxx verify

24. This will check to see if there are any symconfigure scripts currently running
symconfigure –sid xxxx query

The 3 steps needed for running symconfigure scripts.


symconfigure –sid xxxx –v –f [command_file name and path] preview
symconfigure –sid xxxx –v –f [command_file name and path] prepare
symconfigure –sid xxxx –v –f [command_file name and path] commit

25. To view if there are any symconfigure locks


symcfg -sid xxxx -lockn all list
(symcfg -sid 814 -lockn xx –force release)

26. To view if there are any devices that are locked


symdev -sid xxxx -lock list
(symdev -sid xxxx –lock xx release)

27. This will write disable a particular Symm device (LUN)


symdev –sid xxxx write_disable [SymDevName]

28. This will read/write enable a particular Symm device (LUN)


symdev –sid xxxx rw_enable [SymDevName]

29. To view all the RDF groups


symcfg -sid xxxx -rdfg all list

30. To view all the devices assigned to a particular RDF Group


symrdf -sid 1200 -rdfg xx list

31. form meta_[sid]_req[EMC request DB #].txt


form meta from dev xxx config=striped, stripe_size=1920;
add dev yyy:zzz to meta xxx;

32.dissolve_[sid]_req[EMC request DB #].txt


dissolve meta dev xxx;

remove dev SymDevName[:SymDevName] from meta SymDevName;  to remove from 
the meta device

33. mapdev_[sid]_req[EMC request DB #].txt


map dev xxx to dir xx:0 target=0, lun=xxx;
map dev xxx to dir xx:0 target=0, lun=xxx;

34. unmapdev_[sid]_req[EMC request DB #].txt


unmap dev xxx from dir all:all;

35.SRDF_EST_[sid]_req[EMC request DB #].txt


convert dev xxx to RDF1+Mir, ra_group=x, remote_dev=xxx, invalidate=R2,
start_copy=no;

36.convert-2-way_[sid]_req[EMC request DB #].txt


convert dev xxx to 2-way-mir;

37. dyn_con2_[sid]_req[EMC request DB #].txt


set dev xxx attribute=dyn_rdf; and
set dev xxx attribute=NO dyn_rdf;
To remove rdf attribute relationship

38. set-dev-scsi3_[sid]_req[EMC request DB #].txt (Used for Oracle RAC)


set dev xxx attribute=scsi3_persist_reserv;
set dev xxx attribute = NO SCSI3_PERSIST_RESERV; to release scsi3 reservation

39. Delete_dev_[sid]_req[EMC request DB #].txt


delete dev xxx;

40. setportflag_[sid]_req[EMC request DB #].txt


set port xxx:x unique_wwn=enable;

41. Create_2-way_[sid]_req[EMC request DB #].txt


create dev count=xx, size=17480, emulation=FBA, config=2-way-mir,
disk_group=x;

42. Create_BCV_[sid]_req[EMC request DB #].txt


create dev count=xx, size=17480, emulation=FBA, config=BCV, disk_group=x;

43. Create_R5_[sid]_req[EMC request DB #].txt (Used in the DR site)

create dev count=xx, size=17480, emulation=FBA, config=RAID-5, disk_group=x;


size=17480 = 8GB LUN
size=8740 = 4GB LUN
size=4369 = 2GB LUN
size=2186 = 1GB LUN
size=548 = 250MB LUN

44. List all RA groups


Symcfg –sid XXX list –rdfg all
45. Set RDF qos to 5
symqos -g disk group set RDF pace 5

46. Check RDF qos


symqos -g disk group que

47. Force split


symrdf -g xxx split -symforce force

48. Suspend Single Device in Group


symrdf -g xxx suspend DEVXXX

49. see various info including hetergenous port settings


symmaskdb -sid xxx list database -v |more
symmaskdb -sid xxx -host xxx list capacity

50. Replace hba


symmask -sid xxx -wwn 10000000C937166D replace 10000000C959BA78

51. create pair


symrdf createpair -sid 01346 -file 5040pairing.txt -type rdf1 -rdfg 1 -establish
-noprompt
SYMAPI logs
/var/symapi/log

52. Symstat commands


symstat -sid xxx -type PORT -dir xx -port x -i x -c x
symstat -REQUESTS -g xxx -RepType rdf -i x –c X
symstat -g xxx –all -i 10 -c 3

53. See servers with EMC software talking to frame


symcfg -sid xxx list –connections

54. see locks on gatekeepers


symcfg -semafores list

55. see locks on array devices


symdev -sid xxx -lock list

56.remove locks on array devices


symdev -sid xxx -lock 9 release -force -nop

57.see device reservations


symdev -sid xxxxx -resv list

58. list logged events


symevent -sid xxx list

59. list failed drives


symdisk -sid xxx -failed list

60. create 1.5gb drive on enguinity 5572 onwords follow like below

create dev count=1, size=18414 cyl, emulation=FBA, config=RAID-5,


data_member_count=7, mvs_ssid=0, disk_group=0;

here 1 cylinder =0.9375mb and data_memeber_count=3(3+1)or7(7+1) depends on data


disks and mvs_ssid=0 always

delete dev 10a3, raidset=false;

61. Convert std device to bcv device use following the cmd

convert dev 030:03A to 2-way-bcv-mir;


or
convert dev device ID to BCV+R-5
or
convert dev 002 to deviceConfig bcv

62. convert megabytes to cylinders

Number of cylinders of the specified devices; a positive integer. A cylinder for


FBA emulation is 960 512-byte blocks. To convert a device size in blocks to
cylinders:
cylinders = blocks/960
To convert a size in megabytes to cylinders:
cylinders = megabytes * 1048576 / (512 * 960)

symdisk -sid 2808 list -by_diskgroup |more for diskgroup info

63. symmask database updates with the server name appears


symmask –sid 2808 discover
symmask -sid 2811 -wwn 50060b00002ce810 rename tvoldst/50060b00002ce810
symmask -sid 2808 refresh

# symcfg –rdfg all –sid <SYM> list

Create RDF Group on Local Storage Sub System which will be automatically
updated to Remote Storage Sub System.

List the RA directors of the Local storage sub system as well as Remote.
Sun1# symcfg list -ra all
Sun1# symrdf –sid 277 addgrp -rdfg 1 -label sun1rdf -dir 16c,1c remote_sid 694
remote_rdfg 1 remote_dir 16c,1c

64. Dynamically created SRDF pairs can be deleted by using the symrdf deletepair
command. This command cancels the dynamic SRDF pairing by removing the
pairing information from the Symmetrix array.
Note: You must suspend the RDF links using the symrdf suspend command before
performing the symrdf deletepair command.
For example:
symrdf -file devicefile suspend -sid 55 -rdfg 2
symrdf deletepair -file devicefile -sid 55 -rdfg 2
Here the RDF link has been suspended for the devices listed in the device file and that
reside on source Symmetrix 000125600055. The -rdfg 2 is the RDF group number by
which the pairs communicate.
After execution of the symrdf deletepair command, the dynamic SRDF pairs have
been canceled, the pairing information has been removed from the Symmetrix array
and SYMAPI database, and the devices have been changed to non-RDF devices
(except when an RDF concurrent pair exists).
Note: The symrdf deletepair operation will be rejected if any of the following apply:

65. symrdf half_deletepair -sid xxx -file devicefile -rdfg xx when the link is partioned
state and more over in the file first column will be R2 and then R1

66. rdf pairing creation with the ra ports

symrdf –sid 277 addgrp -rdfg 1 -label sun1rdf -dir 16c,1c remote_sid 694
remote_rdfg 1 remote_dir 16c,1c
67. symmir -f [filename] -sid 1900 cancel to remove the bcv relationship with
production devices
68.Spcifically write disable the device to a particular FA

Symdev write_disable –sa 3a:0

69.how to find the device name from the syminq output


In the output first 2 digits are equivalent to last 2 digits of the symm and third digit we
can ignore 4 th to 8 digits represents to the actual sym device id
Vmax provisioning

70. How to install symcli license you have to run the cmd
/”Program Files”/EMC/SYMCLI/bin/symlmf license file resides on /c:\program
files\emc\symapi\config\symapi_licenses.dat
/var/symapi/config/symapi_kicenses.dat is the file
Adding file location is /opt/emc/SYMCLI/V6.4.2/symlmf is the file
Basic deamons are running on symcli is storapid/storevntd/storrdfd/storwatchd

71. How to check the symcli version


#symcli or symcli –V

To check the exact path for symcli


/opt/emc/symcli/v6.4.2/bin/symcfg

set port 01D:1 dyn_rdf=enable;

72.How to check the device


degraded

Symdev list –service_state


degraded

Step 1. Create Initiator group by using your host wwn's.

symaccess -sid 034 create -name xxxx -type initiator -wwn 10000000c974aa75

symaccess -sid 034 -name xxxx -type initiator add -wwn 10000000c974a6c7

Step 2. Create Port Group.

symaccess -sid 034 create -name yyyy -type port -dirport 9e:0,11e:0.

Step 3. Creation of Storage group.

symaccess -sid 034 create -name zzzz -type storage

symaccess -sid 034 -name zzzz -type storage add devs 2597:2604

Step 4. Creat of PMR.

symaccess -sid 034 create view -name AAAA -ig xxxx -pg yyyy -sg zzzz

(xxxx, yyyy,zzzz, AAAA you can define your own naming conversion).

Step 5. From host side configure the luns.

symmask -sid 2139 set hba_flags on C,D,SC3,SPC2 -enable -wwn 50014380029d67fa -dir 7b -p
0 ( for lunix)

flag Setting for hpux at hba level


***************************
Originator Port wwn : 50060b00008617fe
Type : Fibre
User-generated Name : woodside/hba0
Visibility : No
FCID Lockdown : No
Lun Offset : No
Heterogeneous Host : No
Port Flag Overrides : Yes
Enabled : Common_Serial_Number(C)
Volume_Set_Addressing(V)
SCSI_3(SC3)
SPC2_Protocol_Version(SPC2)
Disabled : N/A
Dynamic Addressing : N/A
Authentication State : N/A
Devices : 0459:045B 045F 0465 047A:047B 047E

symmask -sid 780 set hba_flags on C,D,SC3,SPC2 -enable -wwn 50060b00008617fe -dir
10 -p 1
symmask -sid 780 -wwn 50060b00008617fe -dir 10a -p 1 set heterogeneous on
symmask -sid <sym no.> -wwn <hba port wwn> -dir <FA> -p <port> set heterogeneous
HPUX

set port16C:1 volume_set_addressing=enabled;


set port2C:1 volume_set_addressing=enabled; for fa to be used for hpux
first need to offline the fa port and symcfg –sid 277 offline –dir 1c –p 0 Set port 1c:0
VCM_STATE = enable;

after this we have to use available lun id from 0 to 7 only

set device 0000 attribute =vcmdb; to change the device has a vcm device

log cross checking in the unix is


tail -100 /var/symapi/log/symapi-20101101.log

To remove the wwpn entry from the masking database


symmask -sid 4857 delete -wwn 10000000c93ad051

symdev -sid xyz list -da all –space to check the symmetrix overall space

How to split the srdf relation when it is in consistent and in that only 2devices needs to
be done we have to disable the consistency first then we have to split them

Personality swap is basically for DR/loadbalencing/datacenter movement

How can we use grep in brocade and what is the similar cmd in mds
How to find a particular port in brocade (nodefind) and mds
show fcs database | include fc1/1

Fcip in srdf implementation

How to check wich is the principal switch in mds and brocade

How to install powerpath license

How to add symcli license (symlmf)

What are the channels in MDS?

What is vsan logic in brocade?

Port channeling in MDS? Means trunking

How can we connect to standby supervisor in mds and brocade directors?

emcpreg ~ manage powerpath license registration

symdev list -service_state degrade

How to check the switch model in brocade.

Config download is a disruptive process ? yes

What is composite group?

How will you check the director issues?

How do we create the fs in solaris

If there is a intermediate devices drop over from the server?


Need to set the flags

How do we migrate data from tier 2 to tier 1 using clone?

Why we use –diff option in symclone?

How do we use the ctd number for the file system mounts?

cylinders = megabytes * 1048576 / (512 * 960)


https://localhost:8443/sem/ for smc access

You might also like