AIX Removing EMC.Symmetrix.fcp.rte
id : d55nzavyaa
category : computer
blog : unix
created : 01/30/12 - 13:05:46
  • If rootvg is on a physical device owned by EMC Symmetrix FCP MPIO VRAID you'll not be able to uninstall EMC.Symmetrix.fcp.rte.
  • The only solution is to cheat on the ODM
  • Find physical volume used by rootvg :
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            511         351         102..20..25..102..102

  • Check physical volume type. It shoud be EMC Symmetrix FCP MPIO VRAID :
# lsdev -Cc disk | grep hdisk1
hdisk1  Available 14-T1-01 EMC Symmetrix FCP MPIO VRAID

  • Extract ODM entry on CuDv for this physical volume :
# odmget -q "name=hdisk1 and PdDvLn= disk/fcp/SYMM_VRAID" CuDv > /tmp/hdisk1.txt
# cat /tmp/hdisk1.txt
CuDv:
        name = "hdisk1"
        status = 1
        chgstatus = 2
        ddins = "scsidisk"
        location = "14-T1-01"
        parent = "fscsi0"
        connwhere = "2"
        PdDvLn = "disk/fcp/SYMM_VRAID"

  • Save CuDv just in case of emergency :
# cp /etc/objrepos/CuDv /etc/objrepos/CuDv.save

  • Cheat on ODM by modifying hdisk1 entry. After this trick hdisk1 should be known as an MPIO device. Change PdDvLn to disk/fcp/mpioosdisk :
# vi /tmp/hdisk1.txt
CuDv:
        name = "hdisk1"
        status = 1
        chgstatus = 2
        ddins = "scsidisk"
        location = "14-T1-01"
        parent = "fscsi0"
        connwhere = "2"
        PdDvLn = "disk/fcp/mpioosdisk"

  • Delete hdisk1 ODM entry :
# odmdelete -q "name=hdisk1 and PdDvLn= disk/fcp/SYMM_VRAID" -o CuDv

  • Add new MPIO entry for hdisk1 :
# odmadd   /tmp/hdisk1.txt

  • Check hdisk1 is know as MPIO disk :
# lsdev -CC disk | grep hdisk1
hdisk1 Available 14-T1-01 MPIO Other FC SCSI Disk Drive

  • EMC.Symmetrix.fcp.rte can now be deleted :
# installp -ug EMC.Symmetrix.fcp.rte
# installp -ug EMC.Symmetrix.aix.rte

  • Reboot after this trick :
# shutdown -Fr