码迷,mamicode.com
首页 > 其他好文 > 详细

Add 4 multipath LUNs into RHEL

时间:2015-06-09 13:19:09      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

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 step 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

标签:

原文地址:http://www.cnblogs.com/oskb/p/4563000.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!