ADD 4 multipath LUNs into RHEL

Source: Internet
Author: User

1. SSH to Oracle-node1 and run the following commands:

# echo "---" >/sys/class/scsi_host/host3/scan
# echo "---" >/sys/class/scsi_host/host4/scan
# Service MULTIPATHD Reload
# MULTIPATH-LL

Look for output from the MULTIPATH-LL command similar to what is listed below:

mpath30 (360060e801038f270057f59f70000000e) dm-30 hitachi,df600f
Mpath31 (360060e801038f270057f59f70000000d) dm-31 hitachi,df600f
Mpath32 (360060e801038f270057f59f70000000e) dm-32 hitachi,df600f
Mpath33 (360060e801038f270057f59f70000000e) dm-33 hitachi,df600f

2. Make a backup copy of the existing/etc/multipath.conf file by running the following command listed below:

# Cp/etc/multipath.conf/etc/multipath.conf-backup

3. edit/etc/multipath.conf and create a device mapper alias for the following LUN as listed below:

Vol 0124 Dg3_1
Vol 0125 Dg3_2
Vol 0126 Dg3_3
Vol 0127 Dg3_4

Example Syntax:

multipath {
Wwid 360060e80104b3ab004f322b300000001
Alias Dg3_1
}
multipath {
Wwid 360060e80104b3ab004f322b300000001
Alias Dg3_2
}
multipath {
Wwid 360060e80104b3ab004f322b300000001
Alias Dg3_3
}
multipath {
Wwid 360060e80104b3ab004f322b300000001
Alias Dg3_4
}


Replace the WWID in the example syntax listed above with the correct WWID from the output of Multipath-ll obtained in Ste P 1.

4. Run the command ' service MULTIPATHD reload ' and verify the new devices appear in The/dev/mapper directory (Dg3_1, dg3_ 2, Dg3_3, Dg3_4)

# Service MULTIPATHD Reload
# Ls/dev/mapper

5. Label and partition the disk for ASM use

# Parted/dev/mapper/dg3_1
Mklabel Msdos
Mkpart pri
63
25g
Exit

Repeat Step 5 For/dev/mapper/dg3_2
Repeat Step 5 For/dev/mapper/dg3_3
Repeat Step 5 For/dev/mapper/dg3_4

6. We need to repeat step1-5 on Oracle-node2
7. If necessary, run the command
Partprobe/dev/mapper/dg3_1
Partprobe/dev/mapper/dg3_2
Partprobe/dev/mapper/dg3_3
Partprobe/dev/mapper/dg3_4

ADD 4 multipath LUNs into RHEL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.