* [linux-lvm] LVM skips /dev/hde3 because sysfs tells it not to use it
@ 2009-02-05 20:51 Stefan Monnier
2009-02-05 21:16 ` Alasdair G Kergon
2009-02-05 21:24 ` Milan Broz
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-02-05 20:51 UTC (permalink / raw)
To: linux-lvm
I had to disable sysfs_scan before pvcreate accepted to use /dev/hde3 on
a little MIPS box.
How does LVM decide whether sysfs tells it to use a block device or not?
And why would /dev/hde (an internal IDE drive) be presented by sysfs as
"not to be used by LVM"?
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] LVM skips /dev/hde3 because sysfs tells it not to use it
2009-02-05 20:51 [linux-lvm] LVM skips /dev/hde3 because sysfs tells it not to use it Stefan Monnier
@ 2009-02-05 21:16 ` Alasdair G Kergon
2009-02-05 21:24 ` Milan Broz
1 sibling, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2009-02-05 21:16 UTC (permalink / raw)
To: LVM general discussion and development
Version of lvm2 userspace?
Version of kernel and relevant config options for sysfs?
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] LVM skips /dev/hde3 because sysfs tells it not to use it
2009-02-05 20:51 [linux-lvm] LVM skips /dev/hde3 because sysfs tells it not to use it Stefan Monnier
2009-02-05 21:16 ` Alasdair G Kergon
@ 2009-02-05 21:24 ` Milan Broz
2009-02-06 15:25 ` [linux-lvm] " Stefan Monnier
1 sibling, 1 reply; 4+ messages in thread
From: Milan Broz @ 2009-02-05 21:24 UTC (permalink / raw)
To: LVM general discussion and development
Stefan Monnier wrote:
> I had to disable sysfs_scan before pvcreate accepted to use /dev/hde3 on
> a little MIPS box.
>
> How does LVM decide whether sysfs tells it to use a block device or not?
> And why would /dev/hde (an internal IDE drive) be presented by sysfs as
> "not to be used by LVM"?
It should be possible to use the device unless there is some filter set.
Run the command with debug on (add -vvvv) and you will see which filter disabled
the device and why.
I guess you can also hit this "known" problem with
old lvm toolset (<2.02.29) and new kernel with new sysfs layout.
*If* it is this situation you can fix it using one of the following
1) disable sysfs scan
2) upgrade lvm
3) switch CONFIG_SYSFS_DEPRECATED_V2 kernel config on and recompile kernel
Milan
--
mbroz@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [linux-lvm] Re: LVM skips /dev/hde3 because sysfs tells it not to use it
2009-02-05 21:24 ` Milan Broz
@ 2009-02-06 15:25 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-02-06 15:25 UTC (permalink / raw)
To: linux-lvm
> I guess you can also hit this "known" problem with
> old lvm toolset (<2.02.29) and new kernel with new sysfs layout.
Yes, sorry about that, that was the culprit. I had done a "apt-get
upgrade", but forgot that this box runs Debian "stable". After upgrading lvm2
to the "testing" version of the lvm2 package, the problem disappeared.
Thank you for your help,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-06 15:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 20:51 [linux-lvm] LVM skips /dev/hde3 because sysfs tells it not to use it Stefan Monnier
2009-02-05 21:16 ` Alasdair G Kergon
2009-02-05 21:24 ` Milan Broz
2009-02-06 15:25 ` [linux-lvm] " Stefan Monnier
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).