| Convert Linux PowerPath Servers to MPIO | | | | |
| | | | | (rhel.sh)# mount –t ext3 /dev/mapper |
| This document outlines the procedure for switching a | | | | rootvg-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 the | | | | proc |
| server | | | | (rhel.sh)# mount /dev /mnt/sysimage/dev |
| | | | | (rhel.sh)# mount /sys /mnt/sysimage/sys |
| (lab1)# cp /nfs/packages/ga | | | | |
| mpio/RH5/multipath.conf.trpdefault | | | | 1. 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 device | | | | mpath0 |
| | | | | (rhel.sh)# dmsetup mknodes |
| (lab1)# swapoff /dev | | | | mpath0p1 |
| 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 start | | | | mpath0p3 |
| | | | | |
| ###BEGINPP | | | | |
| # Configure and initialize PowerPath. | | | | 1. Edit the file /etc/sysconfig/mkinitrd/multipath and |
| if [ -f /etc/init.d/PowerPath ]; then | | | | change the line to “MULTIPATH=yes” |
| /etc/init.d/PowerPath start | | | | |
| fi | | | | 1. 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 |
| default | | | | boot |
| | | | | |
| (lab1)# mv /etc/lvm | | | | 1. Change the /boot/grub/device.map entry to point |
| lvm.conf.default /etc/lvm/lvm.conf | | | | to the mpath boot device |
| | | | | |
| 1. Edit the fstab file, and comment out the line for | | | | # this device map was generated |
| swap | | | | by 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 the | | | | defaults 1 2 |
| PowerPath package | | | | tmpfs |
| | | | | /dev/shm tmpfs |
| (lab1)# rpm –qa|grep EMC | | | | defaults 0 0 |
| (lab1)# rpm –erase | | | | devpts |
| EMCpower.LINUX-5.1.x.x.x.x | | | | dev/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/boot | | | | swap swap |
| (rhel.sh)# multipath –F | | | | defaults 0 0 |
| (rhel.sh)# multipath –v0 | | | | # |
| (rhel.sh)# mulitipath –l | | | | /dev/mapper |
| | | | | uservg-lv01 /export/home |
| 1. You should see multipath devices now | | | | ext3 defaults 1 2 |
| | | | | /dev/mapper |
| 1. Run the kpartx command to create the device | | | | uservg-lv02 /export/appl |
| tree entries | | | | pkgs ext3 defaults 1 2 |
| | | | | |
| (rhel.sh)# kpartx –a /dev/mapper | | | | 1. Create a new ramdisk |
| mapth0 | | | | |
| | | | | (rhel.sh)# mkinitrd –f /boot |
| 1. Activate the volume groups | | | | HP-initrd-2.6.18-53.1.6.el5.img 2.6.18-53.1.6.el5 |
| | | | | |
| (rhel.sh)# lvm vgscan –config | | | | 1. Create the grub entry |
| ‘devices{ filter = [ “a/mapper/”,”r | | | | |
| .*/” ] }’ | | | | (rhel.sh)# grub-install /dev/mapper |
| 1. (rhel.sh)# lvm vgchange –ay | | | | mpath0 |
| –config ‘devices{ filter = [ “a | | | | |
| mapper/”,”r/.*/” ] }’ | | | | 1. Disconnect the rescue disk |
| | | | | |
| 1. Mount the devices | | | | 1. |