Solved

Trying to configure failover in multipath.conf

Posted on 2013-01-10
5
472 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 78

Accepted Solution

by:
arnold earned 500 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 78

Assisted Solution

by:arnold
arnold earned 500 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

688 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