symcli commands

12
Technical Document for Storage Dude 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 symdev –sid xxxx list –noport –nobcv 3 List of presented devices to a particular FA. symcfg –sid xxxx –FA ALL –port list 4 View the fibre connectivity statuses of the RA’s and the RAGroups symcfg –sid xxxx –RA ALL –port list 5 View the HBA’s zoned into the FA symmask –sid xxxx list logins –dir xx –p x 6 Adding LUN Masking (assigning LUNs to host HBA’s) symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x add devs xxx,x 7 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” 8 Removing LUN Masking (unassigning LUNs from host HBA’s) symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x remove devs xx 9 List the LUN Masking DB by a Host’s wwn symmaskdb –sid xxxx list database –wwn 10000000cxxxxxxx 10 List the LUN Masking DB by an Alias symmaskdb –sid xxxx list database –awwn [NodeName]/[PortName] 11 List the wwn’s/alias’ for a particular LUN symmaskdb –sid xxxx list assignment –dev [SymDevName] 12 List a capacity report for an Alias (Host) symmaskdb -sid xxxx list capacity -host [NodeName] 13

Upload: rohit-mukherjee

Post on 22-Nov-2014

573 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Symcli Commands

Technical Document for Storage Dude

1 Display the properties and details of a particular volumesymdev –sid xxxx show [SymDevName]

2 List of available devices that are created but not assigned to the front end FA’ssymdev –sid xxxx list –noport –nobcv

3 List of presented devices to a particular FA.symcfg –sid xxxx –FA ALL –port list

4 View the fibre connectivity statuses of the RA’s and the RAGroupssymcfg –sid xxxx –RA ALL –port list

5 View the HBA’s zoned into the FAsymmask –sid xxxx list logins –dir xx –p x

6 Adding LUN Masking (assigning LUNs to host HBA’s)symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x add devs xxx,xxx,xxx

7 Aliasing/Renaming the Host HBA wwn’s in the LUN Masking Databasesymmask –sid xxxx –wwn 10000000cxxxxxxx rename [NodeName]/[PortName]symmask –sid 1200 –wwn 10000000c9408060 rename “kopeqdrac01/a1”

8 Removing LUN Masking (unassigning LUNs from host HBA’s)symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x remove devs xxx,xxx

9 List the LUN Masking DB by a Host’s wwnsymmaskdb –sid xxxx list database –wwn 10000000cxxxxxxx

10 List the LUN Masking DB by an Aliassymmaskdb –sid xxxx list database –awwn [NodeName]/[PortName]

11 List the wwn’s/alias’ for a particular LUNsymmaskdb –sid xxxx list assignment –dev [SymDevName]

12 List a capacity report for an Alias (Host)symmaskdb -sid xxxx list capacity -host [NodeName]

13

Page 2: Symcli Commands

Sr No.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Page 3: Symcli Commands

16

17

18

19

20

21

22

23

24

25

26

Page 4: Symcli Commands

27

28

29

30

31

32

33

34

35

36

37

38

39

40

Page 5: Symcli Commands

41

42

43

44

45

46

47

48

49

50

51

52

53

54

Page 6: Symcli Commands

55

56

57

58

59

60

61

62

63

Page 7: Symcli Commands

Technical Commands

Display the properties and details of a particular volumesymdev –sid xxxx show [SymDevName]

List of available devices that are created but not assigned to the front end FA’ssymdev –sid xxxx list –noport –nobcv

List of presented devices to a particular FA.symcfg –sid xxxx list –available –address –dir xx – p x

View the fibre connectivity statuses of the FA’ssymcfg –sid xxxx –FA ALL –port list

View the fibre connectivity statuses of the RA’s and the RAGroupssymcfg –sid xxxx –RA ALL –port list

View the HBA’s zoned into the FAsymmask –sid xxxx list logins –dir xx –p x

Adding LUN Masking (assigning LUNs to host HBA’s)symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x add devs xxx,xxx,xxx

Aliasing/Renaming the Host HBA wwn’s in the LUN Masking Databasesymmask –sid xxxx –wwn 10000000cxxxxxxx rename [NodeName]/[PortName]symmask –sid 1200 –wwn 10000000c9408060 rename “kopeqdrac01/a1”

Removing LUN Masking (unassigning LUNs from host HBA’s)symmask -sid xxxx -wwn 10000000cxxxxxxx -dir xx -p x remove devs xxx,xxx

symmask -sid xxxx refresh -noprompt

List the LUN Masking DB by FA portsymmaskdb –sid xxxx list database –dir xx –p x

List the LUN Masking DB by a Host’s wwnsymmaskdb –sid xxxx list database –wwn 10000000cxxxxxxx

List the LUN Masking DB by an Aliassymmaskdb –sid xxxx list database –awwn [NodeName]/[PortName]

List the wwn’s/alias’ for a particular LUNsymmaskdb –sid xxxx list assignment –dev [SymDevName]

List a capacity report for an Alias (Host)symmaskdb -sid xxxx list capacity -host [NodeName]

Refreshing the LUN Masking DB (This MUST be done every time a change is made)

Page 8: Symcli Commands

List all the Device Groups on that serversymdg list

List details and properities of a particular device groupsymdg show [device group]

Create a new device group for BCV ONLY relationshipssymdg -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) commandssymmir –g [device group] querysymmir –g [device group] establishsymmir –g [device group] split

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

Commands for splitting the SRDFsymrdf -g [device group] set mode syncsymrdf -g [device group] query (keep checking until all synchronized)symrdf -g [device group] splitsymrdf -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 DRsymrdf -g [device group] que (make sure mode is C.D)symrdf -g [device group] estsymrdf -g [device group] query (query until less than 1GB left to synchronize)symrdf -g [device group] set mode acp_wpsymrdf -g [device group] query (query until synchronized and make sure mode is C.W)

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

View the statistics of the RA adapterssymstat –sid xxxx –ra all –i x –c x

View the UNCONFIGURED space on the symm(DMX)symconfigure -sid xxxx list -freespace -units MB

This will check if you can run a symconfigure scriptsymconfigure –sid xxxx verify

Page 9: Symcli Commands

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

symconfigure –sid xxxx –v –f [command_file name and path] previewsymconfigure –sid xxxx –v –f [command_file name and path] preparesymconfigure –sid xxxx –v –f [command_file name and path] commit

To view if there are any symconfigure lockssymcfg -sid xxxx -lockn all list(symcfg -sid 1200 -lockn xx release)

To view if there are any devices that are lockedsymdev -sid xxxx -lock list(symdev -sid xxxx -lock xx release)

This will write disable a particular Symm device (LUN)symdev –sid xxxx write_disable [SymDevName]

This will read/write enable a particular Symm device (LUN)symdev –sid xxxx rw_enable [SymDevName]

To view all the RDF groupssymcfg -sid xxxx -rdfg all list

To view all the devices assigned to a particular RDF Groupsymrdf -sid 1200 -rdfg xx list

formmeta_[sid]_req[EMC request DB #].txtform meta from dev xxx config=striped, stripe_size=1920;add dev yyy:zzz to meta xxx;

dissolve_[sid]_req[EMC request DB #].txtdissolve meta dev xxx;

mapdev_[sid]_req[EMC request DB #].txtmap dev xxx to dir xx:0 target=0, lun=xxx;map dev xxx to dir xx:0 target=0, lun=xxx;

unmapdev_[sid]_req[EMC request DB #].txtunmap dev xxx from dir all:all;

SRDF_EST_[sid]_req[EMC request DB #].txtconvert dev xxx to RDF1+Mir, ra_group=x, remote_dev=xxx, invalidate=R2, start_copy=no;

convert-2-way_[sid]_req[EMC request DB #].txtconvert dev xxx to 2-way-mir;

The 3 steps needed for running symconfigure scripts (View Appendix for examples of the command files)

Page 10: Symcli Commands

dyn_con2_[sid]_req[EMC request DB #].txtset dev xxx attribute=dyn_rdf;

set dev xxx attribute=scsi3_persist_reserv;

Delete_dev_[sid]_req[EMC request DB #].txtdelete dev xxx;

setportflag_[sid]_req[EMC request DB #].txtset port xxx:x unique_wwn=enable;

Create_2-way_[sid]_req[EMC request DB #].txtcreate dev count=xx, size=17480, emulation=FBA, config=2-way-mir, disk_group=x;

Create_BCV_[sid]_req[EMC request DB #].txtcreate dev count=xx, size=17480, emulation=FBA, config=BCV, disk_group=x;

create dev count=xx, size=17480, emulation=FBA, config=RAID-5, disk_group=x;size=17480 = 8GB LUNsize=8740 = 4GB LUNsize=4369 = 2GB LUNsize=2186 = 1GB LUNsize=548 = 250MB LUN

List all RA groupsSymcfg –sid XXX list –rdfg all

Set RDF qos to 5symqos -g disk group set RDF pace 5

symqos -g disk group que

Force splitsymrdf -g xxx split -symforce force

Suspend Single Device in Groupsymrdf -g xxx suspend DEVXXX

see various info including hetergenous port settingssymmaskdb -sid xxx list database -v |moresymmaskdb -sid xxx -host xxx list capacity

Replace hbasymmask -sid xxx -wwn 10000000C937166D replace 10000000C959BA78

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

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

Check RDF qos                                           

Page 11: Symcli Commands

create pairsymrdf createpair -sid 01346 -file 5040pairing.txt -type rdf1 -rdfg 1 -establish

SYMAPI logs/var/symapi/log

Symstat commandssymstat -sid xxx -type PORT -dir xx -port x -i x -c xsymstat -REQUESTS -g xxx -RepType rdf -i x –c Xsymstat -g xxx –all -i 10 -c 3

See servers with EMC software talking to framesymcfg -sid xxx list –connections

see locks on gatekeeperssymcfg -semafores list

see device reservationssymdev -sid xxxxx -resv list

list logged eventssymevent -sid xxx list

list failed drivessymdisk -sid xxx -failed list

Solution enabler license which are kept in symapi_license.datLicense Key: 7FBE-9150-E0BC-9CCD SYMAPI Feature: BASE / SymmetrixLicense Key: A97E-6602-DABA-9E2A SYMAPI Feature: DevMasking / SymmetrixLicense Key: A936-39CD-A0FF-CDC5 SYMAPI Feature: ConfigChange / SymmetrixLicense Key: C7B7-B992-1954-4D99 SYMAPI Feature: DeltaMark / SymmetrixLicense Key: 3A61-6044-C190-0196 SYMAPI Feature: SERVER / SymmetrixLicense Key: 72B5-D1F4-1DB7-8649 SYMAPI Feature: TF-Clone / SymmetrixLicense Key: 8EC5-F23C-F234-F081 SYMAPI Feature: SRDF / SymmetrixLicense Key: BD6A-3EC5-A3CA-7B5B SYMAPI Feature: SymmMgmtConsole

Page 12: Symcli Commands

(View Appendix for examples of the command files)