* [linux-lvm] Multipath / LVM2
@ 2010-03-16 16:40 blub
2010-03-16 18:06 ` Luca Berra
2010-03-16 18:08 ` malahal
0 siblings, 2 replies; 7+ messages in thread
From: blub @ 2010-03-16 16:40 UTC (permalink / raw)
To: linux-lvm
hello
I have troubles to get multipathing working on gentoo. I have an identical
setup working on a debian box.
The problem is that LVM does not detect labels on the multipath device
node; instead it does try to use a physical path (eg /dev/sda1)
the device nodes /dev/dm-X are not automaticaly created like they get on
debian, I did run dmsetup mknodes which did not create /dev/dm-X nodes, so
i created /dev/dm-0 with the minor/major of the corresponding /dev/mapper/
node. I don't know if this is a problem.
anyway, I've pasted alot of output to http://pastebin.com/wheL4nyE
hope somebody can help me :)
regards
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Multipath / LVM2
2010-03-16 16:40 [linux-lvm] Multipath / LVM2 blub
@ 2010-03-16 18:06 ` Luca Berra
2010-03-16 19:09 ` blub
2010-03-16 18:08 ` malahal
1 sibling, 1 reply; 7+ messages in thread
From: Luca Berra @ 2010-03-16 18:06 UTC (permalink / raw)
To: linux-lvm
On Tue, Mar 16, 2010 at 05:40:20PM +0100, blub@trans.am wrote:
>hello
>
>I have troubles to get multipathing working on gentoo. I have an identical
>setup working on a debian box.
>The problem is that LVM does not detect labels on the multipath device
>node; instead it does try to use a physical path (eg /dev/sda1)
>
>the device nodes /dev/dm-X are not automaticaly created like they get on
>debian, I did run dmsetup mknodes which did not create /dev/dm-X nodes, so
>i created /dev/dm-0 with the minor/major of the corresponding /dev/mapper/
>node. I don't know if this is a problem.
>
>anyway, I've pasted alot of output to http://pastebin.com/wheL4nyE
>
change the preferred_names in /etc/lvm.conf to reference /dev/mapper
entries before /dev/sd
eg:
preferred_names = [ "^/dev/mapper/" ]
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Multipath / LVM2
2010-03-16 16:40 [linux-lvm] Multipath / LVM2 blub
2010-03-16 18:06 ` Luca Berra
@ 2010-03-16 18:08 ` malahal
1 sibling, 0 replies; 7+ messages in thread
From: malahal @ 2010-03-16 18:08 UTC (permalink / raw)
To: linux-lvm
blub@trans.am [blub@trans.am] wrote:
> hello
>
> I have troubles to get multipathing working on gentoo. I have an identical
> setup working on a debian box.
> The problem is that LVM does not detect labels on the multipath device
> node; instead it does try to use a physical path (eg /dev/sda1)
One easy way to avoid using the paths rather than actual multipath
devices is to use filtering in /etc/lvm/lvm.conf. Like below:
# Use only names from /dev/mapper directory
filter = [ "a|/dev/mapper/.*|", "r/.*/" ]
> the device nodes /dev/dm-X are not automaticaly created like they get on
> debian, I did run dmsetup mknodes which did not create /dev/dm-X nodes, so
> i created /dev/dm-0 with the minor/major of the corresponding /dev/mapper/
> node. I don't know if this is a problem.
This is odd, maybe something to do with udev rules? Anyway, you don't
need /dev/dm-X nodes if you use LVM filtering.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Multipath / LVM2
2010-03-16 18:06 ` Luca Berra
@ 2010-03-16 19:09 ` blub
2010-03-16 19:44 ` malahal
2010-03-16 19:45 ` Luca Berra
0 siblings, 2 replies; 7+ messages in thread
From: blub @ 2010-03-16 19:09 UTC (permalink / raw)
To: linux-lvm
hello
thanks for trying to help :)
I've changed the filter and preferred_names variables to
preferred_names="^/dev/mapper/"
filter=["a|/dev/mapper/.*|", "r/.*/"]
without luck :(
new pvscan output:
http://pastebin.com/5PysR0rD
> On Tue, Mar 16, 2010 at 05:40:20PM +0100, blub@trans.am wrote:
>>hello
>>
>>I have troubles to get multipathing working on gentoo. I have an
>> identical
>>setup working on a debian box.
>>The problem is that LVM does not detect labels on the multipath device
>>node; instead it does try to use a physical path (eg /dev/sda1)
>>
>>the device nodes /dev/dm-X are not automaticaly created like they get on
>>debian, I did run dmsetup mknodes which did not create /dev/dm-X nodes,
>> so
>>i created /dev/dm-0 with the minor/major of the corresponding
>> /dev/mapper/
>>node. I don't know if this is a problem.
>>
>>anyway, I've pasted alot of output to http://pastebin.com/wheL4nyE
>>
> change the preferred_names in /etc/lvm.conf to reference /dev/mapper
> entries before /dev/sd
>
> eg:
> preferred_names = [ "^/dev/mapper/" ]
>
> L.
>
>
> --
> Luca Berra -- bluca@comedia.it
> Communication Media & Services S.r.l.
> /"\
> \ / ASCII RIBBON CAMPAIGN
> X AGAINST HTML MAIL
> / \
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Multipath / LVM2
2010-03-16 19:09 ` blub
@ 2010-03-16 19:44 ` malahal
2010-03-16 19:45 ` Luca Berra
1 sibling, 0 replies; 7+ messages in thread
From: malahal @ 2010-03-16 19:44 UTC (permalink / raw)
To: linux-lvm
Do "rm -rf /etc/lvm/cache" to remove the LVM cache. If you need this at
boot time, of course, you need to create new initramfs with the new
/etc/lvm/lvm.conf file.
blub@trans.am [blub@trans.am] wrote:
> hello
> thanks for trying to help :)
>
> I've changed the filter and preferred_names variables to
>
> preferred_names="^/dev/mapper/"
> filter=["a|/dev/mapper/.*|", "r/.*/"]
>
> without luck :(
>
> new pvscan output:
> http://pastebin.com/5PysR0rD
I don't see any warnings about any duplicates. What is the problem?
Thanks, Malahal.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Multipath / LVM2
2010-03-16 19:09 ` blub
2010-03-16 19:44 ` malahal
@ 2010-03-16 19:45 ` Luca Berra
2010-03-16 21:35 ` blub
1 sibling, 1 reply; 7+ messages in thread
From: Luca Berra @ 2010-03-16 19:45 UTC (permalink / raw)
To: linux-lvm
On Tue, Mar 16, 2010 at 08:09:16PM +0100, blub@trans.am wrote:
>hello
>thanks for trying to help :)
>
>I've changed the filter and preferred_names variables to
>
>preferred_names="^/dev/mapper/"
>filter=["a|/dev/mapper/.*|", "r/.*/"]
>
>without luck :(
reading your output again i noticed you partitioned the luns on the HDS
(hope at least you aligned the partition)
but i fail to see the partitioned multipath luns in /dev/mapper
rereading again i see a "livecd" prompt
are you by chance using systemrescuecd (gentoo based)? i tried it once and it did not
run kpartix on /dev/mapper.
you should check your udev rules and see why kpartx is not called and
partitions are not created
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] Multipath / LVM2
2010-03-16 19:45 ` Luca Berra
@ 2010-03-16 21:35 ` blub
0 siblings, 0 replies; 7+ messages in thread
From: blub @ 2010-03-16 21:35 UTC (permalink / raw)
To: LVM general discussion and development
i could resolve the issue, thanks to all who helped :)
the problem was that there is indeed a partition the the array's and the
partition map was not created. i did use the gentoo live cd, but on an
installed gentoo system the partition maps are not created out-of-the-box
by udev either
anyway, thanks again :)
> On Tue, Mar 16, 2010 at 08:09:16PM +0100, blub@trans.am wrote:
>>hello
>>thanks for trying to help :)
>>
>>I've changed the filter and preferred_names variables to
>>
>>preferred_names="^/dev/mapper/"
>>filter=["a|/dev/mapper/.*|", "r/.*/"]
>>
>>without luck :(
>
> reading your output again i noticed you partitioned the luns on the HDS
> (hope at least you aligned the partition)
> but i fail to see the partitioned multipath luns in /dev/mapper
> rereading again i see a "livecd" prompt
> are you by chance using systemrescuecd (gentoo based)? i tried it once and
> it did not
> run kpartix on /dev/mapper.
> you should check your udev rules and see why kpartx is not called and
> partitions are not created
>
> L.
>
> --
> Luca Berra -- bluca@comedia.it
> Communication Media & Services S.r.l.
> /"\
> \ / ASCII RIBBON CAMPAIGN
> X AGAINST HTML MAIL
> / \
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-03-16 21:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 16:40 [linux-lvm] Multipath / LVM2 blub
2010-03-16 18:06 ` Luca Berra
2010-03-16 19:09 ` blub
2010-03-16 19:44 ` malahal
2010-03-16 19:45 ` Luca Berra
2010-03-16 21:35 ` blub
2010-03-16 18:08 ` malahal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).