MultiPath On Linux
MultiPath On Linux
11
Set up the system for boot over SRP. When the system can boot over SRP, proceed with the steps below
to get the system boot over PowerPath.
Step 2
Install PowerPath on the system. Follow the usual EMC PowerPath installation procedure to install
PowerPath. Refer to the PowerPath installation document for instructions.
pm -ivh EMCpower.LINUX-4.5.1-022.rhel.x86_64.rpm
/etc/init.d/PowerPath start
emcpreg -install (register powerpath)
Step 3
After PowerPath is installed properly and started, enter the fdisk -l command. You should see output
similar to the example below. In this case, only one LUN is assigned to this host, and the LUN is
partitioned accordingly.
[root@sw-n4300-1 ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
11-1
Chapter 11
PowerPath is now up and running. The emcpowera* shows the PowerPath pseudo devices.
Step 2
Copy the initrd file from the /boot to the new bootdisk directory.
-cp -p /boot/initrd-2.6.9-34.ELsmp.img bootdisk/
Step 3
Step 4
Copy the initrd directory structure and all the associated files into the same bootdisk directory, as follows
-cpio -i -I initrd-2.6.9-34.ELsmp
Step 5
Verify that the bootdisk directory now contains the following files and directories, in addition to
initrd-2.6.9-34.ELsmp.img and initrd-2.6.9-34.ELsmp files.
bin dev etc init lib loopfs proc sbin sys sysroot
Step 6
Delete the initrd-2.6.9-34.ELsmp.img and initrd-2.6.9-34.ELsmp files from the bootdisk directory.
Step 7
Create two more directories in the bootdisk directory and call them lib64 and usr.
Step 8
Verify that the following files and directories are in the bootdisk directory:
bin dev etc init lib lib64 loopfs proc sbin sys sysroot usr
Copy the PowerPath objects and configuration files into the new bootdisk directory. Some Linux objects
also need to be copied.
11-2
OL-12603-01
Chapter 11
Note that it is not required to copy the IB module since it should already be in the /lib directory in
the original initrd file.
The /lib64 directory is required since it is a x86_64 system. You will copy all the required library
files to either the /lib or /lib64 directory.
Use the ldd command to obtain the required library, as shown in this example:
[root@host-1 bin]# ldd /bin/mkdir
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003977b00000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000003976800000)
/lib64/ld-linux-x86-64.so.2 (0x0000003976600000)
[root@host-1 bin]# ldd /sbin/powermt
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/libc.so.6 (0x00adf000)
/lib/ld-linux.so.2 (0x00ac6000)
Table 11-1
Notes
Copy
To
Bootdisk Directory
/bin/ash
---->
/sbin/ash
/bin/gawk
---->
/sbin/gawk
/bin/mkdir
---->
/sbin/mkdir
/sbin/powermt
---->
/sbin/powermt
/sbin/rmmod
---->
/sbin/rmmod
/bin/mount
---->
/sbin/mount
/bin/umount
---->
/sbin/umount
/bin/cat
---->
/sbin/cat
/bin/mknod
---->
/sbin/mknod
/sbin/pivot_root
---->
/sbin/pivot_root
/bin/sleep
---->
/sbin/sleep
/etc/emc
---->
/etc/emc
/etc/emcp_devicesDB.dat
---->
/etc/emcp_devicesDB.dat
/etc/emcp_devicesDB.idx
---->
/etc/emcp_devicesDB.idx
/etc/emcp_registration
---->
/etc/emcp_registration
/etc/opt/emcpower
---->
/etc/opt/emcpower
/etc/fstab
---->
/etc/fstab
/lib/modules/2.6.9-34.ELsmp/extr
a/emc*.ko
---->
/etc/lib
/usr/lib/libemcp_core.so
---->
/lib/libemcp_core.so
/usr/lib/libemcp_lam.so
---->
/lib/libemcp_lam.so
/usr/lib/libemcp_lic_rtl.so
---->
/lib/libemcp_lic_rtl.so
/usr/lib/libemcp_mp_rtl.so
---->
/lib/libemcp_mp_rtl.so
/etc/opt/emcpower/powercf and
/etc/opt/emcpower/emcpmgr object.
These objects are used in the init file.
11-3
Chapter 11
Modifying Files
Table 11-1
Notes
Copy
To
Bootdisk Directory
/usr/lib/libemcpmp.so
---->
/lib/libemcpmp.so
/usr/lib/libemcp.so
---->
/lib/libemcp.so
/lib/ld-linux.so.2
---->
/lib/ld-linux.so.2
/lib/tls/libm.so.6
---->
/lib/libm.so.6
/lib/tls/libc.so.6
---->
/lib/libc.so.6
/lib64/libdl.so.2
---->
/lib64/libdl.so.2
/lib64/tls/libm.so.6
---->
/lib64/tls/libm.so.6
/lib64/tls/libc.so.6
---->
/lib64/tls/libc.so.6
/lib64/ld-linux-x86-64.so.2
---->
/lib64/ld-linux-x86-64.so.2
/lib64/libselinux.so.1
---->
/lib64/libselinux.so.1
/lib64/tls/librt.so.1
---->
/lib64/tls/librt.so.1
/lib64/tls/libpthread.so.0
---->
/lib64/tls/libpthread.so.0
/lib/libpn.so
---->
/lib/libpn.so
/usr/sbin/chroot
---->
/usr/sbin/chroot
Modifying Files
To modify the /etc/fstab file, which you previously copied, follow these steps:
Step 1
Step 2
11-4
OL-12603-01
Chapter 11
11-5
Chapter 11
Archive the bootdisk directory now that all the required files are copied into it.
In this example the archive file is put at /root/
a.
b.
c.
11-6
OL-12603-01
Chapter 11
gzip -9 initrd-2.6.9-34.ELsmp
d.
Step 2
Change the bootloader append for the root parameter of the kernel to the appropriate PowerPath pseudo
device.
In this example the PowerPath pseaudo device was root=/dev/emcpowera3
Step 3
Reboot the server. It will boot the root filesystem on a PowerPath device instead of a sd device.
11-7
Chapter 11
11-8
OL-12603-01