![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to add new paths to $PATH | wrapster | SUN Solaris | 2 | 4 Weeks Ago 01:46 AM |
| Enabling a script to run in multiple paths | dowell | Shell Programming and Scripting | 5 | 03-03-2008 10:04 PM |
| create paths | alias47 | UNIX for Dummies Questions & Answers | 4 | 08-07-2007 06:14 AM |
| Paths update | phpote | UNIX for Dummies Questions & Answers | 5 | 07-25-2001 04:57 AM |
| paths | caiohn | UNIX for Dummies Questions & Answers | 1 | 01-17-2001 03:35 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
| Forum Sponsor | ||
|
|
|
|||
|
We've just completed a project using RedHat Ent Linux and an HP MSA1500 SAN.
Running the controllers in active/active mode we're using RedHats Device Mapper Multipath software to create multiple paths to our SAN. I suspect the CentOS will have similar capabilities and be able to use Redhat RPMs for DM/DMMP. Oh and the DM/DMMP technology is built on LVM so in a way you're still using LVM, I hope this helps you out a little. |
|
||||
|
Quote:
Code:
[root@localhost etc]# yum install device-mapper-multipath Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for device-mapper-multipath to pack into transaction set. device-mapper-multipath-0 100% |=========================| 9.5 kB 00:00 ---> Package device-mapper-multipath.i386 0:0.4.7-8.el5 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: device-mapper-multipath i386 0.4.7-8.el5 base 760 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 760 k Is this ok [y/N]: y Downloading Packages: (1/1): device-mapper-mult 100% |=========================| 760 kB 00:01 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: device-mapper-multipath ######################### [1/1] Installed: device-mapper-multipath.i386 0:0.4.7-8.el5 Complete! |
|
||||
|
Got it!
Here's what I've come up with from start to finish (OS install through finally setting up multipath using the RAID subsystem) and I will be testing it from the ground up today. I mistakenly installed the 32-bit version of CentOS during my testing phase, so I am starting over with 64-bit today. If I run into any snags, I'll probably post back here. This is the procedure:
1. Install CentOS 5 (64-bit) with Xen Kernel 2. Install 'screen' (My personal preference for detached terminal sessions. For those who don't know, think of screen as "VNC" for the command line in terms of coming back to a terminal that you detached from earlier.), 'gcc', 'kernel-xen-devel-2.6.18-8.el5' using 'yum': Code:
yum install screen
yum install gcc
yum install kernel-xen-devel-2.6.18-8.el5
4. Install Emulex HBAnyware support software (installs to /usr/sbin/hbanyware by default) using the install script in the tar distribution (it's huge at 200+ megs...) 5. (NOTE: This is not really necessary since RAID level "multipath" takes care of my issue nicely. I didn't know this when I posted so I'm making this note to let others know that step five can be skipped altogether if you don't need multipath at the LVM level.) Install multipath support software using 'yum' and then configure: Code:
yum install device-mapper-multipath Code:
# Blacklist all devices by default. Remove this to enable multipathing
# on the default devices.
#blacklist {
# devnode "*"
#}
defaults {
user_friendly_names yes
}
defaults {
udev_dir /dev
polling_interval 10
selector "round-robin 0"
path_grouping_policy failover
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
prio_callout /bin/true
path_checker readsector0
rr_min_io 100
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_name yes
}
Code:
'modprobe dm-multipath' (load the dm-multipath module)
'modprobe dm-round-robin' (load the dm-round-robin module)
'service multipathd start' (start the multipathd service)
'multipath -v3 -ll' (check the current multipath device info)
'chkconfig multipathd on' (set multipathd to start on boot)
Code:
'fdisk /dev/sda' (Create partition 1 and set it to type 'fd' then save and exit)
'sfdisk -d /dev/sda | sfdisk /dev/sdb'
'sfdisk -d /dev/sda | sfdisk /dev/sdc'
'sfdisk -d /dev/sda | sfdisk /dev/sdd'
Code:
dmsetup -C remove mpath0 Code:
'mdadm -C /dev/md0 --level=multipath --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1'
'mdadm --detail --scan > /etc/mdadm.conf' (saves the above configuration to /etc/mdadm.conf so the RAID will start automatically on boot)
Last edited by deckard : 08-14-2007 at 09:05 AM. |
||||
| Google UNIX.COM |