Skip to main content

IBM SAN Multipath installation on Red Hat Enterprise Linux 5.X

This section describes the steps for installing Red Hat Enterprise Linux 5.2 on a multipath device.


1.Determine which multipath device your machine boots from. To do this, note down the LUN (Logical Unit) number of the bootable device that is made available by your Fibre Channel Adapter card during firmware boot.

In the test environment, the firmware displays the boot disk, showing lun number 0.

 
 
 
 
 
 
 
 
 
 
 
 
 
2.Start the installation by providing the keyword mpath in the kernel command line. In the test environment, linux mpath vnc was used.


The Partitioning screen displays a list of multipath devices as mapper/mpath*.

3. Determine the multipath device that corresponds to the bootable device for the host being installed. Go back to the console window if using VNC, or start an alternate console. In the test environment, the System x® is hooked up to an RSA. In the remote control console, we pressed Ctrl-Alt-F2 for an alternate console.

From the output, we found the device that corresponds to the bootable LUN.

In the test environment, System x is connected to an RSA. In the console, we ran the command:

multipath -ll
grep -E ':
mpath'The following output was displayed:




From the output of the command as shown above, dm-6, the fourth multipath device listed, corresponds to LUN 0. First, look for the numbers in x:x:x:x format. The devices with x:x:x:0 are the devices correspond to LUN 0. In this case, dm-6, with the two multipaths 0:0:0:0 and 0:0:1:0, is the bootable multipath device of the host. mapper/mpath4, which corresponds to dm-6, is then the bootable multipath device for installation.




4. Continue the install by going back to your VNC session, or switching back to the console window if installing through text mode. In the test environment, we pressed Ctrl-Alt-F1 in the remote control console.

5.Select the appropriate multipath device for installation. In the test environment, mapper/mpath4 is the only device checked.




 
 
 
 
 
 
 
 
 
 
 

6. Select Review and modify partitioning layout and then press Next.

7. Boot loader might not selected by default to install into the bootable multipath device. In the test environment, the boot loader defaulted to /dev/mapper/mpath0, as shown in the following screen. Note the first line of the screen:

The GRUB boot loader will be installed on /dev/mapper/mpath0.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

8. If the installer did not select the correct multipath bootable device, change where the boot loader is installed by selecting Configure advanced boot loader options and press Next.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Repeat this step until the bootable mulitpath device is on top of the list.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

11. Press OK.

12. The bootable device is now selected for boot loader install. As in the test environment, note that /dev/mapper/mpath4 is selected.
 
13.Continue and complete the installation.


Note: If you are a different IBM® supported multipath storage, additional steps are needed to finish the installation. See Additional multipath configuration information for IBM storage for more details.

14. Reboot the system.

15.Verify that the firmware boot sequence is properly configured to boot from the correct multipath device.

In the test environment, we pressed F1 in the BIOS screen (where the IBM eServer logo appears) to go to Configuration/Setup menu. Choose Start Options and then Startup Sequence Options. Change the option to have Hard Disk 0 as the first startup device to boot from the multipath device (mpath4).



16. Follow these steps to verify the installation was successful:

a.Run df and cat /proc/swaps to verify that the correct partitions are in a multipath device. In the test environment, the following partitions are displayed: root, /boot, and swap as /dev/mapper/mpath4p3, /dev/mapper/mpath4p1, and /dev/mapper/mpath4p2 respectively. These partitions are installed correctly to use the Device Mapper (DM) Multipath feature of Linux®.
 
 
 
 
 
 
 
 
 
 
 
 
 
 

b.Run multipath -ll to verify that the specific multipath device has as many paths as were configured. In the test environment, two paths are displayed, verifying that all the paths are properly configured.

c.If installed on LVM, run dmsetup ls and demsetup table to verify that the LVM volumes are created as linear devices on top of the chosen multipath device.
 

Comments

Popular posts from this blog

Typical Oracle RAC configurations

All configurations are based on the following building blocks: Hardware Server nodes Storage Networking Software Operating system Cluster software Oracle RAC (application) Application architecture Oracle9i RAC on RAW devices is based on a shared disk architecture. Figure 2-1 shows a two-node cluster. The lower solid line is the primary Oracle interconnect, the middle dashed line is the secondary Oracle interconnect. For high availability, both these networks should be defined in the HACMP as "private". HACMP/ESCRM provides Oracle9i RAC with the infrastructure for concurrent access to disks. Although HACMP provides concurrent access and a disk locking mechanism, this mechanism is not used. Oracle, instead, provides its own locking mechanism for concurrent data access, integrity, and consistency. Volume groups are varied on all the nodes, thus ensuring short failover time. This type of concurrent access can only be provided for RAW ...

ipsec tunnel pfSense and Centos

pfSense 1.2.3 -------- external ip: 1.1.1.1 internal ip: 172.20.1.20 internal network: 172.20.1.0/24 Centos 5.5 -------- external ip: 2.2.2.2 internal ip: 172.20.2.1 internal network: 172.20.2.0/24 pfSense config from a reset. Firewall rule to allow all ipsec communication (all protocols). pfSense ipsec config -------------------- Mode: Tunnel Interface: WAN (I'm not sure this should be WAN, but changing it to LAN makes no difference) Local subnet: 172.20.1.0/24 Remote subnet: 172.20.2.0/24 Remote gateway: 2.2.2.2 Phase 1 Negotiation mode: agressive My identifier: My IP adress Encryption algorithm: 3DES Hash algorithm: SHA1 DH key group: 2 Authentication method: Pre-shared key Pre-Shared Key: secret Phase 2 Protocol: ESP Encryption algorithms: Rijndael (AES) Hash algorithms: SHA1 PFS key group: 2   Centos ipsec config ------------------- /etc/sysconfig/network-scripts/ifcfg-ipsec0 TYPE=IPSEC ...

VIM Faster Navigation

Sometimes even the simplest of tasks like navigating through a single file can be optimized. Vim offers several methods of navigation within a file, which can adapt to the contents of the file and how it is organized. Some of these methods are obvious, while others are more complex. Mostly, the files we are editing are well structured. If our files are text, then this structure can be in the form of paragraphs, sentences, and words, or at other times code with functions, blocks, and code lines. Vim supports jumping around the file, according to the structure in the file, and has key bindings that make it easy to go to the exact place in the file where you want to go. Moving within a text file You are working on a normal text file and in the middle of a sentence you realize that you have forgotten to make the first letter in the paragraphs uppercase. You could of course, use the arrow-keys or the h/j/k/l navigation keys to move to the beginning of the paragraph to cor...