Set up multipath environment testing with iSCSI protocol on VMware Virtual Machine multipath (4)

Source: Internet
Author: User

Installation and ConfigurationDm-multipathInstallation RunDmSoftware

# yum Install Device-mapper-multipath  

#/etc/init.d/multipathdrestart

Ok

stopping Multipathddaemon: [OK]

Starting Multipathddaemon: [OK]

MULTIPATHD Once the service is started, it will pass SCSI ID automatically find multiple paths for the same device, and install the default settings to aggregate them for use.

# MULTIPATH-LL

MPATHB (1IET 00010001) dm-3 lb,lb_iscsi # ' 1IET 00010001 'represents remote device information(centos6.5of theDM multipath 0.4.9use it asSCSI ID) dm-3 lbindicates vendorLB_ISCSIProduct Information  This allows for a single point of failure

size=5.0g features= ' 0 ' hwhandler= ' 0 ' WP=RW

|-+-policy= ' round-robin 0 ' prio=1 status=active #status =active the link used by default

| '-3:0:0:1 SDB 8:16 Activeready Running

'-+-policy= ' round-robin 0 ' prio=1 status=enabled #status =enabled valid link, but not active link , Alternate Link

'-4:0:0:1 SDD 8:48 active ready Running

ConfigurationMultipath

2.1 Modify File/etc/multipath.conf

By default, the/etc directory does not have configuration file multipath.conf. It needs to be copied from the/usr/share/doc/directory.

#cp/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf/etc/     

can With man multipath.conf command or view file/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf. annotated Span style= "font-size:12px;font-family: ' italics _gb2312 '; Letter-spacing:0;background: #FFFFFF;" > Understand the interpretation of configuration options.

In this case, by adding the following configuration lines to the file, we have a SCSI ID of "1IET 00010001" device is set up Round-robin load Balancing Mode (default is Active-standby mode)

multipaths {

multipath {

Wwid "1IET 00010001"

Alias Yellow

Path_grouping_policy Multibus

Path_selector "Round-robin 0"

failback Manual

Rr_weight Priorities

No_path_retry 5

}

2.2 Restart MULTIPATHD services for changes to take effect

#/etc/init.d/multipathdrestart

#/etc/init.d/iscsirestart # actual combat discovery must do this step, otherwise there is a problem, cause unknown origin

ValidationMultpathConfiguration

# MULTIPATH-LL

Yellow (1IET 00010001) dm-2 LB,LB_ISCSI

size=10g features= ' 1queue_if_no_path ' hwhandler= ' 0 ' WP=RW

'-+-policy= ' round-robin 0 ' prio=1 status=active

|-6:0:0:1 SDC 8:32 active ready Running # Here you can see that the devices are Active Status

'-5:0:0:1 SDB 8:16 active ready Running # Here you can see that the devices are Active Status

analog NIC failure, verifyingMultipathof theFailoverfunction

# Ifdown Eth2 # wait a few seconds after execution to let DM confirm that the IP Path Down off

Device State:3 (Disconnected)

# MULTIPATH-LL

Mar 17:12:21 |/etc/multipath.conf line, invalid Keyword:path_checker

Yellow (1IET 00010001) dm-2 LB,LB_ISCSI

size=10g features= ' 1queue_if_no_path ' hwhandler= ' 0 ' WP=RW

'-+-policy= ' round-robin 0 ' prio=1status=active

|-7:0:0:1 SDD 8:48 active faulty running

'-8:0:0:1 SDC 8:32 Active ready Running

# ifup Eth2

Active Connection state:activated

Active Connection PATH:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/3

# MULTIPATH-LL

Mar 17:15:43 |/etc/multipath.conf line, invalid Keyword:path_checker

Yellow (1IET 00010001) dm-2 LB,LB_ISCSI

size=10g features= ' 1queue_if_no_path ' hwhandler= ' 0 ' WP=RW

'-+-policy= ' round-robin 0 ' prio=1 status=active

|-7:0:0:1 SDD 8:48 failed ready running

'-8:0:0:1 SDC 8:32 Active ready Running

# Sleep # wait - seconds

# Multipath–ll # path Recovery at this time

Mar 17:17:05 |/etc/multipath.conf line, invalid Keyword:path_checker

Yellow (1IET 00010001) dm-2 LB,LB_ISCSI

size=10g features= ' 1 queue_if_no_path ' hwhandler= ' 0 ' WP=RW

'-+-policy= ' round-robin 0 ' prio=1 status=active

|-7:0:0:1 SDD 8:48 active ready Running

'-8:0:0:1 SDC 8:32 Active readyrunning


Set up multipath environment testing with iSCSI protocol on VMware Virtual Machine multipath (4)

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.