Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Trying to configure failover in multipath.conf

Posted on 2013-01-10
5
Medium Priority
?
486 Views
Last Modified: 2013-01-15
Hello,

I am trying to configure multipathing to our storage with a failover policy. At the minute it looks like it's set to round robin, which is not what we want at the moment.

If I do a multipath-ll command I seem to have two active paths. Please see below

mpath0 (36000eb335cd762ff00000000000005c4) dm-2 IBM,iSCSIDisk
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]

 \_ 1:0:0:0 sda 8:0   [active][ready]
 \_ 2:0:0:0 sdh 8:112 [active][ready]

I would expect one to be [active][ready] and the other to be [active][standby] ??

My multipath.conf file is configured as follows

devices {
        device {
                vendor                           "IBM"
                product                          "iSCSIDisk"
                path_grouping_policy      failover
                getuid_callout                "/sbin/scsi_id -g -u -s /block/%n"
                path_checker                  readsector0
                path_selector                "round robin 0"
                hardware_handler         "0"
                failback                          immediate
                rr_weight                       priorities
                no_path_retry                queue
        }

Am I missing something?
0
Comment
Question by:vmdude
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 80

Accepted Solution

by:
arnold earned 2000 total points
ID: 38763978
Your selector option is round robin.
Of you want it to be ins failback mode, that is the setup you need to create.

Are you encountering issue with round robin? Round robin may increase the available throughput.
0
 
LVL 6

Author Comment

by:vmdude
ID: 38764049
Many thanks for the reply. No issue with round robin, we have very good throughput,  but really want the failover. I'll give your suggestion a go and update here shortly
0
 
LVL 6

Author Comment

by:vmdude
ID: 38764085
Thanks, however, I'm not sure what selector would help me make one path active and one path standby/passive. As far as I can see there are only 3 types of path selector:


round-robin 0: Loop through every path in the path group, sending the same amount of I/O to each.

queue-length 0: Send the next bunch of I/O down the path with the least number of outstanding I/O requests.

service-time 0: Send the next bunch of I/O down the path with the shortest estimated service time, which is determined by dividing the total size of the outstanding I/O to each path by its relative throughput.

The default value is round-robin 0.

Which one should I do?
0
 
LVL 80

Assisted Solution

by:arnold
arnold earned 2000 total points
ID: 38764107
The difference deals with whether the devices are part of the same group or they are added individually.
http://www.netfibre.com/?p=447
0
 
LVL 6

Author Comment

by:vmdude
ID: 38764131
Perfect! That like helps a lot. I'll post my findings back here shortly
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question