Please enter search query.
Search <product_name> all support & community content...
Article: 100020893
Last Published: 2022-02-17
Ratings: 0 0
Product(s): InfoScale & Storage Foundation
Problem
Unable to remove Powerpath when VERITAS VxVM is installed and configured.Error Message
# rpm -e EMCpower.LINUX-5.1.0-194Unable to remove devices from the PowerPath configuration
Please make sure no PowerPath devices are in use, and then retry
error: %preun(EMCpower.LINUX-5.1.0-194.x86_64) scriptlet failed, exit status 1
Solution
Remove all EMC devices from VxVM database.
Prior to running procedure below ensure no volumes being used by the emcpower devices are open.
Example,
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
emcpowera auto:cdsdisk - - online
emcpowerb auto:cdsdisk - - online
emcpowerc auto:cdsdisk - - online
emcpowerd auto:cdsdisk - - online
emcpowere auto:cdsdisk - - online
emcpowerf auto:cdsdisk - - online shared
emcpowerg auto:cdsdisk - - online shared
emcpowerh auto:cdsdisk - - online
emcpoweri auto:cdsdisk - - online
emcpowerj auto:cdsdisk - - online
emcpowerk auto:cdsdisk - - online
emcpowerl auto:cdsdisk - - online
emcpowerm auto:cdsdisk - - online
emcpowern auto:cdsdisk - - online
emcpowero auto:cdsdisk - - online
emcpowerp auto:cdsdisk - - online
emcpowerq auto:cdsdisk - - online
sdr auto:none - - online invalid
sds auto:none - - online invalid
1. You can use the following command to remove the devices from VxVM database.
example:
2. You can also script it as follows. The command will remove all devices with names emcpower from the VxVM database.
example output after running command above.
3. Once devices have been removed from VxVM database you canremove powerpath.
Prior to running procedure below ensure no volumes being used by the emcpower devices are open.
Example,
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
emcpowera auto:cdsdisk - - online
emcpowerb auto:cdsdisk - - online
emcpowerc auto:cdsdisk - - online
emcpowerd auto:cdsdisk - - online
emcpowere auto:cdsdisk - - online
emcpowerf auto:cdsdisk - - online shared
emcpowerg auto:cdsdisk - - online shared
emcpowerh auto:cdsdisk - - online
emcpoweri auto:cdsdisk - - online
emcpowerj auto:cdsdisk - - online
emcpowerk auto:cdsdisk - - online
emcpowerl auto:cdsdisk - - online
emcpowerm auto:cdsdisk - - online
emcpowern auto:cdsdisk - - online
emcpowero auto:cdsdisk - - online
emcpowerp auto:cdsdisk - - online
emcpowerq auto:cdsdisk - - online
sdr auto:none - - online invalid
sds auto:none - - online invalid
1. You can use the following command to remove the devices from VxVM database.
# vxdisk rm <DEVICE>
example:
# vxdisk rm emcpowera
2. You can also script it as follows. The command will remove all devices with names emcpower from the VxVM database.
# for i in `vxdisk list |grep emcpower |awk '{print $1}'`;do vxdisk rm $i;done
example output after running command above.
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
sdr auto:none - - onlineinvalid
sds auto:none - - onlineinvalid
3. Once devices have been removed from VxVM database you canremove powerpath.
rpm -e EMCpower.LINUX-5.1.0-194