====== EMC symcli/Powerpath cmd ======
First install symcli
List storage ID
symcfg list
Backup / export symcli config
symdg -sid 1234 exportall -f mydgfile.txt
Restore symcli config
symdg -sid 1234 importall -f mydgfile.txt
Location of symcli logs, config and DB
* /var/symapi
List DG
symdg list
List detail of single DG
symdg show DGNAME
Export a single Disk Group, replace by import to restore
symdg -sid 1234 export DGNAME -f myfile.txt
Delete a DG
symdg delete DGNAME [-force]
List disks from a DG
symdg show DGNAME | egrep "DEV0|TGT0"
Powermt
Remove paths and dead disks
powermt check [force]
List all paths
powermt display dev=all
Check state of disk (error: unable to open device), check if disk in RW, else not accessible
symcfg discover
symcfg list
sympd list | grep 011E
===== EMC multipathing licensing =====
List Powerpath license:
emcpreg -list
emcpreg -add xxx-yyy-vvvv-hhhh
Showing mode as unlicensed
[root@mynode1 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=**************** [my_mynode1]
Logical device ID=600601601C22280016002FBEE3C1E111 [LUN 207]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B Array failover mode: 4
==============================================================================
————— Host ————— – Stor – — I/O Path — — Stats —
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
4 qla2xxx sdb SP A1 unlic alive 0 0
4 qla2xxx sdc SP B0 unlic alive 0 0
3 qla2xxx sdd SP A0 active alive 0 0
3 qla2xxx sde SP B1 active alive 0 0
Issued below command to check the registration status and found that it is in expired status. Before reboot it was working fine only after reboot we encounter the issue.
[root@mynode1 ~]# powermt check_registration
Key ****-****-****-****-****-****
Product: PowerPath
Capabilities: All
Expired: Oct, 2012
We registered the new key to get rid of the error.
[root@mynode1 ~]# emcpreg -install
=========== EMC PowerPath Registration ===========
Do you have a new registration key or keys to enter?[n] y
Enter the registration keys(s) for your product(s),
one per line, pressing Enter after each key.
After typing all keys, press Enter again.
Key (Enter if done): ****-****-****-****-****-****
1 key(s) successfully added.
Key successfully installed.
Key (Enter if done):
1 key(s) successfully registered.
After the successful registration we were able to see the new key along with old one in below command output.
[root@mynode1 ~]# powermt check_registration
Key ****-****-****-****-****-****
Product: PowerPath
Capabilities: All
Expired: Oct, 2012
Key ****-****-****-****-****-****
Product: PowerPath
Capabilities: All
We removed the old key from the previous output.
[root@mynode1 ~]# emcpreg -remove ****-****-****-****-****-****
After the above operation only one key was showing in output which is the newly and desired one.
[root@mynode1 ~]# powermt check_registration
Key ****-****-****-****-****-****
Product: PowerPath
Capabilities: All
All the paths are showing in active status after that 🙂
[root@mynode1 ~]# powermt display dev=all
Pseudo name=emcpowera
CLARiiON ID=**************** [my_mynode1]
Logical device ID=600601601C22280016002FBEE3C1E111 [LUN 207]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B Array failover mode: 4
==============================================================================
————— Host ————— – Stor – — I/O Path — — Stats —
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
4 qla2xxx sdb SP A1 active alive 0 0
4 qla2xxx sdc SP B0 active alive 0 0
3 qla2xxx sdd SP A0 active alive 0 0
3 qla2xxx sde SP B1 active alive 0 0