Professional Documents
Culture Documents
Step 1 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
PowerPath is now up and running. The emcpowera* shows the PowerPath pseudo devices.
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
Step 1 Copy the PowerPath objects and configuration files into the new bootdisk directory. Some Linux objects
also need to be copied.
Table 11-1 Copy the PowerPath Objects and Configuration Files to the Directory
Table 11-1 Copy the PowerPath Objects and Configuration Files to the Directory
Modifying Files
To modify the /etc/fstab file, which you previously copied, follow these steps:
rm -f /dev/emcpower
mmaj=`cat /sys/class/misc/emcpower/dev | gawk -F : '{print $1}'`
mmin=`cat /sys/class/misc/emcpower/dev | gawk -F : '{print $2}'`
mknod /dev/emcpower c $mmaj $mmin
sleep 2
sleep 7
sleep 2
umount /sys
echo “Mounting root filesystem”
mount -o defaults --ro -t ext3 /dev/root /sysroot
mount -t tmpfs --bind /dev /sysroot/dev
umount /proc
cd /sysroot
echo “Switching to the new root”
pivot_root . initrd
exec chroot . /sbin/init <dev/console >dev/console 2>&1
Step 1 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. cd to the bootdisk directory.
b. Locate and copy the file.
find . | cpio -v -c -o > /root/initrd-2.6.9-34.ELsmp
gzip -9 initrd-2.6.9-34.ELsmp