Solved

Trying to configure failover in multipath.conf

Posted on 2013-01-10
5
427 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
  • 3
  • 2
5 Comments
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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 76

Assisted Solution

by:arnold
arnold earned 500 total points
Comment Utility
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
Comment Utility
Perfect! That like helps a lot. I'll post my findings back here shortly
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now