Problem:

When tyring to remove all EMC disks, I have been able to remove all the hdisk associated with the hdispower device but I was not able to remove the hdiskpower device itself. I tried to remove it with some odmdelete but it  the device comes back as soon as I do a cfgmgr and I cannot use it anymore nor delete it.
When I tried a rmdev -dl hdiskpower I get :
Method error (/etc/methods/ucfgpowerdisk):

Solution:

The fix is to uninstall/reinstall Powerpath, but you won’t be able to until you remove the hdiskpower devices with this procedure:

  1. # odmdelete -q name=hdiskpowerX -o CuDv

    (for every hdiskpower device)

  2. # odmdelete -q name=hdiskpowerX -o CuAt

    (for every hdiskpower device)

  3. # odmdelete -q name=powerpath0 -o CuDv

  4. # odmdelete -q name=powerpath0 -o CuAt

  5. # rm /dev/powerpath0

  6. You must remove the modified files installed by powerpath and then reboot the server. You will then be able to uninstall powerpath after the reboot via the “installp -u EMCpower” command. The files to be removed are as follows:

    (Do not be concerned if some of the removals do not work as PowerPath may not be fully configured properly).

    rm ./etc/PowerPathExtensions
    rm ./etc/emcp_registration
    rm ./usr/lib/boot/protoext/disk.proto.ext.scsi.pseudo.power
    rm ./usr/lib/drivers/pnext
    rm ./usr/lib/drivers/powerdd
    rm ./usr/lib/drivers/powerdiskdd
    rm ./usr/lib/libpn.a
    rm ./usr/lib/methods/cfgpower
    rm ./usr/lib/methods/cfgpowerdisk
    rm ./usr/lib/methods/chgpowerdisk
    rm ./usr/lib/methods/power.cat
    rm ./usr/lib/methods/ucfgpower
    rm ./usr/lib/methods/ucfgpowerdisk
    rm ./usr/lib/nls/msg/en_US/power.cat
    rm ./usr/sbin/powercf
    rm ./usr/sbin/powerprotect
    rm ./usr/sbin/pprootdev
    rm ./usr/lib/drivers/cgext
    rm ./usr/lib/drivers/mpcext
    rm ./usr/lib/libcg.so
    rm ./usr/lib/libcong.so
    rm ./usr/lib/libemcp_mp_rtl.so
    rm ./usr/lib/drivers/mpext
    rm ./usr/lib/libmp.a
    rm ./usr/sbin/emcpreg
    rm ./usr/sbin/powermt
    rm ./usr/share/man/man1/emcpreg.1
    rm ./usr/share/man/man1/powermt.1
    rm ./usr/share/man/man1/powerprotect.1
    
  7. Re-install Powerpath.