Solved

Trying to configure failover in multipath.conf

Posted on 2013-01-10
5
440 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 77

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 77

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrating an SQL 2008 database to Oracle 12c 3 88
Java / Linux and Regular Expressions 11 70
Remove a very long string from all files in Linux 6 87
Backup & Restore 3 46
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
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…

910 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

20 Experts available now in Live!

Get 1:1 Help Now