Convert Powerpath to Multipath for Redhat Linux 5.x

Convert Linux PowerPath Servers to MPIO     
       (rhel.sh)# mount –t ext3 /dev/mapper
This document outlines the procedure for switching arootvg-lv00 /mnt/sysimage
SAN boot Linux server running RHEL 5.1 and above   (rhel.sh)# mount –t ext3 /dev/mapper
from EMC PowerPath to MPIO.mpath0p1 /mnt/sysimage/boot
    (rhel.sh)# mount –t proc none /mnt/sysimage
1. Copy the correct /etc/multipath.conf file to theproc
server   (rhel.sh)# mount /dev /mnt/sysimage/dev
    (rhel.sh)# mount /sys /mnt/sysimage/sys
            (lab1)# cp   /nfs/packages/ga 
mpio/RH5/multipath.conf.trpdefault1. Switch to the root directory
      /etc/multipath.conf 
       (rhel.sh)# chroot /mnt/sysimage
1. Boot into single user mode 
 1. Create dm table entries
            (lab1)# init S 
             (rhel.sh)# dmsetup mknodes
1. Remove the swap devicempath0
             (rhel.sh)# dmsetup mknodes
            (lab1)# swapoff /devmpath0p1
emcpowera3            (rhel.sh)# dmsetup mknodes
 mpath0p2
1. Edit the /etc/rc.sysint script and remove the            (rhel.sh)# dmsetup mknodes
following section, so PowerPath does not startmpath0p3
  
            ###BEGINPP 
      # Configure and initialize PowerPath.1. Edit the file /etc/sysconfig/mkinitrd/multipath and
      if [ -f /etc/init.d/PowerPath ]; thenchange the line to “MULTIPATH=yes”
      /etc/init.d/PowerPath start 
      fi1. Remount the /boot directory
      ###ENDPP 
             (rhel.sh)# umount /boot
1. Replace the lvm.conf file for PowerPath with the      (rhel.sh)# mount /dev/mapper/mpath0p1
defaultboot
  
            (lab1)# mv /etc/lvm1. Change the /boot/grub/device.map entry to point
lvm.conf.default /etc/lvm/lvm.confto the mpath boot device
  
1. Edit the fstab file, and comment out the line for            # this device map was generated
swapby anaconda
       (hd0)     /dev/mapper/mpath0
            #/dev/emcpowera3  
swap                    swap   1. Edit the fstab file to point to the mpath devices
defaults              0 0 
             /dev/rootvg/lv00       
1. Reboot the server                       ext3   
     defaults        1 1
      (lab1)# init 6            /dev/mapper/mpath0p1
 boot                   ext3   
1. When the server comes up, remove thedefaults        1 2
PowerPath package            tmpfs                  
 /dev/shm                tmpfs  
            (lab1)# rpm –qa|grep EMCdefaults        0 0
      (lab1)# rpm –erase            devpts                 
EMCpower.LINUX-5.1.x.x.x.xdev/pts                devpts 
 gid=5,mode=620  0 0
1. Boot from the rescue disk            sysfs                  
 sys                    sysfs  
1. Skip the load network devices and find installations.defaults        0 0
             proc                   
1. At the prompt, run the following commands/proc                   proc   
 defaults        0 0
            (rhel.sh)# mkdir /mnt/sysimage            /dev/mapper/mpath0p3
      (rhel.sh)# mkdir /mnt/sysimage/bootswap                    swap   
      (rhel.sh)# multipath –Fdefaults        0 0
      (rhel.sh)# multipath –v0            #
      (rhel.sh)# mulitipath –l            /dev/mapper
 uservg-lv01           /export/home   
1. You should see multipath devices nowext3      defaults 1 2
             /dev/mapper
1. Run the kpartx command to create the deviceuservg-lv02           /export/appl
tree entriespkgs          ext3      defaults 1 2
  
      (rhel.sh)# kpartx –a /dev/mapper1. Create a new ramdisk
mapth0 
             (rhel.sh)# mkinitrd –f /boot
1. Activate the volume groupsHP-initrd-2.6.18-53.1.6.el5.img 2.6.18-53.1.6.el5
  
            (rhel.sh)#  lvm vgscan –config1. Create the grub entry
‘devices{ filter = [   “a/mapper/”,”r 
.*/” ] }’            (rhel.sh)# grub-install /dev/mapper
1.       (rhel.sh)# lvm vgchange –aympath0
–config ‘devices{ filter = [    “a 
mapper/”,”r/.*/” ] }’1. Disconnect the rescue disk
  
1. Mount the devices1.