You are on page 1of 3

i am going to list couple of emc commands, that could be usefull in servers conn

ected to EMC Symmetrix.


Removing dead paths:
When dead disk is found while running 'powermt display dev=all', and offcourse a
fter confirmin no issues from SAN,run the below commands to fix.
# powermt restore -->To delete any dead paths, and to reconfigure them again:
# powermt reset # powermt config
Or you could run:
# powermt check
Removing disk reservation lock:
Sometimes disk resevation is set on the EMC disks hdiskpower during system crash
, or when system failovers. Disk reserves couldbe released by
/usr/lpp/EMC/Symmetrix/bin/emcpowerreset fcs0 hdiskpower121
Also recently i have seen issues in few Aix 5.x and 6.1 versions, ECC agents hol
ding disks. Sometimes when no gatekeeper device are assigned and sym tends to us
e them as Gatekeeping device. All these results in PV missing seen in Volume gro
ups. In these cases stop ECC agents. Kill all the process that are accessing the
disks.(fuser /dev/hdiskpower). Issue should have fixed after that.
Installing Regisration key for powerpath:
#powermt check_registration
There are no license keys now registered.
#powermt version
EMC powermt for PowerPath (c) Version 5.1 SP 1 (build 13)
#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): BOPZ-MB4K-7FBM-Q6OL-MU96-YDRR
1 key(s) successfully added.
Key successfully installed.
Key (Enter if done):
1 key(s) successfully registered.
#powermt check_registration
Key BOPZ-MB4K-7FBM-Q6OL-MU96-YDRR
Product: PowerPath
Capabilities: All
#powermt config
#powermt display dev=all
Performing ODM Cleanup:
1. Before making any changes, collect host logs to document the current configur
ation. At a minimum, save the following:

inq, lsdev -Cc disk, lsdev -Cc adapter, lspv, and lsvg
2. Shutdown the application(s), unmount the file system(s), and varyoff all volu
me groups except for rootvg
Do not export the volume groups
varyoffvg
Check with.....lsvg -o (confirm that only rootvg is varied on)
If No PowerPath, Skip all steps with power names
3. For CLARiiON configuration, if Navisphere Agent is running, stop it
/etc/rc.agent stop
4. Remove paths from Powerpath configuration
powermt remove hba=all
5. Delete all hdiskpower devices
lsdev -Cc disk -Fname | grep power | xargs -n1 rmdev -dl
6. Remove the PowerPath driver instance
rmdev -dl powerpath0
7. Delete all hdisk devices
- for Symmetrix devices, use this command:
lsdev -CtSYMM* -Fname | xargs -n1 rmdev -dl
- for CLARiiON devices, use this command:
lsdev -CtCLAR* -Fname | xargs -n1 rmdev -dl
8. Confirm with lsdev -Cc disk that there are no EMC hdisks or hdiskpowers
9. Remove all Fiber driver instances
rmdev -Rdl fscsiX ---> X being driver instance number i.e. 0,1,2, etc.
10. Verify through lsdev -Cc driver that there are no more fiber driver instance
s (fscsi)
11. Change the adapter instances in Defined state
rmdev -l fcsX ---> X being adapter instance number i.e. 0,1,2, etc.
12. Create the hdisk entries for all EMC devices
emc_cfgmgr or cfgmgr -vl fcsx ---> x being each adapter instance which was rebui
lt
Skip this part if no PowerPath.
13. Configure all EMC devices into PowerPath

powermt config
14. Check the system to see if it now displays correctly
powermt display
powermt display dev=all
lsdev -Cc disk

You might also like