Re: Multipath command output - Help with understanding output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 13, 2009 at 5:48 PM, Phil Meyer <pmeyer@xxxxxxxxxxxxxxxx> wrote:
> On 10/13/2009 10:17 AM, Dan Track wrote:
>>
>> Hi,
>>
>> I've configured multipath but I'm confused with the following. When I
>> run "multipath -v2" I don't get any output, but if I run "multipath
>> -v3" I get lot's of output e.g.:
>>
>> cciss!c0d0: not found in pathvec
>> cciss!c0d0: mask = 0x1f
>> dm-0: blacklisted
>> hda: blacklisted
>> loop0: blacklisted
>> loop1: blacklisted
>> loop2: blacklisted
>> loop3: blacklisted
>> loop4: blacklisted
>> loop5: blacklisted
>> loop6: blacklisted
>> loop7: blacklisted
>> md0: blacklisted
>> ram0: blacklisted
>> ram10: blacklisted
>> ram11: blacklisted
>> ram12: blacklisted
>> ram13: blacklisted
>> ram14: blacklisted
>> ram15: blacklisted
>> ram1: blacklisted
>> ram2: blacklisted
>> ram3: blacklisted
>> ram4: blacklisted
>> ram5: blacklisted
>> ram6: blacklisted
>> ram7: blacklisted
>> ram8: blacklisted
>> ram9: blacklisted
>> sda: not found in pathvec
>> sda: mask = 0x1f
>> sda: bus = 1
>> sda: dev_t = 8:0
>> sda: size = 19534921728
>> sda: vendor = HP
>> sda: product = MSA2012sa
>> sda: rev = J300
>> sda: h:b:t:l = 0:0:0:1
>> sda: serial = 00c0ffd7ba4f00004575b24a01000000
>> sda: path checker = tur (controller setting)
>> sda: state = 2
>> sda: getprio = /sbin/mpath_prio_alua %d (controller setting)
>> sda: prio = 50
>> sda: getuid = /sbin/hp_scsi_id -g -u -n -s /block/%n (controller setting)
>> sda: uid = 3600c0ff000d7ba4f4575b24a01000000 (callout)
>> sdb: not found in pathvec
>> sdb: mask = 0x1f
>> sdb: bus = 1
>> sdb: dev_t = 8:16
>> sdb: size = 19534921728
>> sdb: vendor = HP
>> sdb: product = MSA2012sa
>> sdb: rev = J300
>> sdb: h:b:t:l = 1:0:0:2
>> sdb: serial = 00c0ffd7ba4f00004575b24a01000000
>> sdb: path checker = tur (controller setting)
>> sdb: state = 2
>> sdb: getprio = /sbin/mpath_prio_alua %d (controller setting)
>> sdb: prio = 10
>> sdb: getuid = /sbin/hp_scsi_id -g -u -n -s /block/%n (controller setting)
>> sdb: uid = 3600c0ff000d7ba4f4575b24a01000000 (callout)
>> ===== paths list =====
>> uuid                              hcil    dev dev_t pri dm_st  chk_st
>>  vend/pr
>> 3600c0ff000d7ba4f4575b24a01000000 0:0:0:1 sda 8:0   50  [undef][ready]
>> HP,MSA2
>> 3600c0ff000d7ba4f4575b24a01000000 1:0:0:2 sdb 8:16  10  [undef][ready]
>> HP,MSA2
>> params = 1 queue_if_no_path 0 2 1 round-robin 0 1 1 8:0 100
>> round-robin 0 1 1 8:16 100
>> status = 2 0 0 0 2 1 A 0 1 0 8:0 A 0 E 0 1 0 8:16 A 0
>> Found matching wwid [3600c0ff000d7ba4f4575b24a01000000] in bindings file.
>> Setting alias to mpath0
>> sda: ownership set to mpath0
>> sda: not found in pathvec
>> sda: mask = 0xc
>> sda: state = 2
>> sda: prio = 50
>> sdb: ownership set to mpath0
>> sdb: not found in pathvec
>> sdb: mask = 0xc
>> sdb: state = 2
>> sdb: prio = 10
>> mpath0: pgfailback = -2 (controller setting)
>> mpath0: pgpolicy = group_by_prio (controller setting)
>> mpath0: selector = round-robin 0 (controller setting)
>> mpath0: features = 0 (internal default)
>> mpath0: hwhandler = 0 (controller setting)
>> mpath0: rr_weight = 1 (internal default)
>> mpath0: minio = 100 (controller setting)
>> mpath0: no_path_retry = 18 (controller setting)
>> pg_timeout = NONE (internal default)
>> mpath0: set ACT_NOTHING (map unchanged)
>>
>> multipath -ll
>> mpath0 (3600c0ff000d7ba4f4575b24a01000000) dm-0 HP,MSA2012sa
>> [size=9.1T][features=1 queue_if_no_path][hwhandler=0][rw]
>> \_ round-robin 0 [prio=50][active]
>>  \_ 0:0:0:1 sda 8:0   [active][ready]
>> \_ round-robin 0 [prio=10][enabled]
>>  \_ 1:0:0:2 sdb 8:16  [active][ready]
>>
>> Does that mean multipath is working on /dev/sda and /dev/sdb? Is the
>> lack of output for "multipath -v2" a concern?
>>
>> Thanks
>> Dan
>>
>>
>
> Yes, multipath -l may not show anything.  multipath -v3 should always show
> similar to the output above, and what you see is that it found two paths to
> the same device, which is good.  It is also going to round robin reads and
> writes, which is also good.
>
> You may want to customize things a bit to make it easier to remember, or in
> case you add another unit or device.
>
> I would suggest adding at least these to /etc/multipath.conf:
>
> multipaths {
>    multipath {
>        uuid       3600c0ff000d7ba4f4575b24a01000000
>       failback        immediate
>        rr_min_io        1000
>        alias            san1
>    }
>
> devices {
>    device {
>        vendor            "HP"
>        product            "MSA2"
>        features        "1 queue_if_no_path"
>        path_checker        tur
>    }
> }
>
>
> This creats the device: /dev/mapper/san1 which can then be partitioned and
> mkfs.
>
> Good Luck!

Brilliant, many thanks for that.

I've already got the following /dev/mapper/mpath0 and
/dev/mpath/3600c0ff000d7ba4f4575b24a01000000. Can you tell me how I
can reload the config and end up with /dev/mapper/san1?

Also when running pvcreate should I run

pvcreate /dev/mapper/mpath0
or
pvcreate /dev/mpath/3600c0ff000d7ba4f4575b24a01000000
?

Thanks again.
Dan

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux