1.) Contact the SAN administrator and make sure s/he knows how to present LUNs for Linux dm-multipath (may require different options at the SAN side than PowerPath; have him/her check the appropriate documentation from the SAN manufacturer)
2.) Unmount the data disks, shutdown any raw databases, and deactivate the VGs (vgchange -a n ).
umount /test
vgchange -a n testvg
3.) Remove and un-install PowerPath
Before you remove PowerPath, ensure the following:
Steps
● Ensure that no PowerPath devices are in use. Unmount all file systems from pseudo devices and ensure that none of the
logical volumes on volumes groups from pseudo devices are in use.
● Run the lsof command and ensure that none of the storage devices that are managed by the PowerPath are listed. If the
lsof command lists the processes along with opened PowerPath managed storage devices, then close such applications/
processes and ensure that PowerPath managed storage devices are not in use.
● Manually remove references to PowerPath pseudo devices from system configuration files. For example, /etc/fstab.
● If the LVM filter had previously been updated to PowerPath recommended filter when PowerPath was initially installed
and configured, restore the filter back to the default configuration. Pseudo devices are not available after PowerPath is
uninstalled.
rpm -qa | grep EMCpower.LINUX
rpm -ev EMCPower.LINUX-_
NOTE: In rare instances, if the PowerPath uninstall program displays a message saying that it could not unload the
emcp module, run the lsmod | grep emcp command to determine if any PowerPath modules are loaded on the host.
If so, restart the host after the uninstallation completes to unload the modules.
4.) Configure device-mapper-multipath and make the appropriate changes to the LVM configuration: with PowerPath, your LVM should be configured to use only PowerPath devices/prefer them over anything else. Now LVM should be configured to use dm-multipath devices instead.
Yes, filtering and/or the “preferred_names" setting in lvm.conf, if your Linux distribution has it.
# By default we accept every block device:
filter = [ “a/.*/" ]
#filter = [ “a|/dev/mapper/mpath.*|", “r|.*|" ]
5.) Run “multipath -v2″ to initialize the multipath configuration, then make sure the multipathd daemon is running and configured to start at boot time.
multipath -v2
pvscan (is this reqd?)
6.) Run “vgscan". It should automatically figure out that your VGs are now accessible through dm-multipath devices. Verify with commands like “pvs", “vgs". Make sure LVM uses dm-multipath devices, not /dev/sd* devices.
vgscan -vvvv
7.) Activate your VGs again (vgchange -a y). Mount filesystems; etc.
vgchange -a y testvg
mount /dev/testvg/testvol /test
8.) Remember to re-create your initrd, to remove the last traces of PowerPath & to include your new LVM and dm-multipath configurations. You might want to reboot to make sure the system can boot without issues.
mv /boot/initrd-2.6.18-194.17.1.el5.img /boot/initrd-2.6.18-194.17.1.el5.img.old
mkinitrd -v /boot/initrd-2.6.18-194.17.1.el5.img 2.6.18-194.17.1.el5