User Tools

Site Tools


storage:emc_cmd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
storage:emc_cmd [2021/03/16 21:05]
manu created
storage:emc_cmd [2021/03/23 18:56] (current)
manu
Line 46: Line 46:
 </​cli>​ </​cli>​
  
 +Powermt ​
  
 +Remove paths and dead disks
 +<cli>
 +powermt check [force]
 +</​cli>​
  
 +List all paths
 +<cli>
 +powermt display dev=all
 +</​cli>​
 +
 +Check state of disk (error: unable to open device), check if disk in RW, else not accessible
 +<cli>
 +symcfg discover
 +symcfg list
 +sympd list | grep 011E
 +</​cli>​
 +
 +
 +===== EMC multipathing licensing =====
 +
 +List Powerpath license:
 +  emcpreg -list
 +  emcpreg -add xxx-yyy-vvvv-hhhh
 +  ​
 +Showing mode as unlicensed
 +<cli prompt='#'>​
 +[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
 +</​cli>​
 +
 +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.
 +<cli prompt='#'>​
 +[root@mynode1 ~]# powermt check_registration
 +Key ****-****-****-****-****-****
 +Product: PowerPath
 +Capabilities:​ All
 +Expired: Oct, 2012
 +</​cli>​
 +
 +We registered the new key to get rid of the error.
 +<cli prompt='#'>​
 +[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.
 +</​cli>​
 +
 +After the successful registration we were able to see the new key along with old one in below command output.
 +<cli prompt='#'>​
 +[root@mynode1 ~]# powermt check_registration
 +
 +Key ****-****-****-****-****-****
 +Product: PowerPath
 +Capabilities:​ All
 +Expired: Oct, 2012
 +
 +Key ****-****-****-****-****-****
 +Product: PowerPath
 +Capabilities:​ All
 +</​cli>​
 +
 +We removed the old key from the previous output.
 +<cli prompt='#'>​
 +[root@mynode1 ~]# emcpreg -remove ****-****-****-****-****-****
 +
 +After the above operation only one key was showing in output which is the newly and desired one.
 +<cli prompt='#'>​
 +[root@mynode1 ~]# powermt check_registration
 +Key ****-****-****-****-****-****
 +Product: PowerPath
 +Capabilities:​ All
 +</​cli>​
 +
 +All the paths are showing in active status after that 🙂
 +<cli prompt='#'>​
 +[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
 +</​cli>​
storage/emc_cmd.1615925129.txt.gz · Last modified: 2021/03/16 21:05 by manu