All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [linux-lvm] 0.8i pvcreate doesn't recognise Mylex RAID
@ 2000-01-25 17:21 Jakma, Paul
  2000-01-26  0:01 ` Heinz Mauelshagen
  0 siblings, 1 reply; 6+ messages in thread
From: Jakma, Paul @ 2000-01-25 17:21 UTC (permalink / raw)
  To: linux-lvm

> Any solution to this problem? Where can i teach pv_get_size about
> Mylex /dev/rd? Also does it matter that I'm using devfs and hence
> have long nested /dev/ path names?
> 
> thanks,

Ok, it turns out to be related to the new devfs namespace. I grep'ed for
/dev/rd in tools/lib, and replaced the 2 occurances i found with
/dev/rd/disc0 and got LVM working.

So the problem is that the scanning functions only descend down one level.
Eg in my case the tools/lib/* routines know about /dev/rd, so only nodes in
/dev/rd will be found, which is not where they are in latest devfs.

However.. this begs the question:

Why in the name of god do the LVM tools use such elaborate and convulated
methods for verifying the supplied device name? LVM tools are effectively
tied to a very specific /dev namespace, and changing it is non-trivial.

I would much prefer that LVM tools only do basic sanity-checking on the
device file, and leave as much of the namespace policy/sanity as possible up
to the administrator. As is the Unix way. If i want to change my /dev the
LVM tools should be able to handle it.

Apart from this LVM works very very nicely. (apart from small issues which
I'll send a seperate mail about). LVM turns linux into a very capable
storage server. 

Congratulations!! 

-paul jakma
paul.jakma@compaq.com
paul@clubi.ie

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: [linux-lvm] 0.8i pvcreate doesn't recognise Mylex RAID
@ 2000-01-26 18:18 Jakma, Paul
  2000-01-26 19:54 ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Jakma, Paul @ 2000-01-26 18:18 UTC (permalink / raw)
  To: 'Heinz Mauelshagen'; +Cc: mge, linux-lvm

> Yes, it's an obvious disadvantage to do this 8-{(((
> 
> The simple reason for it is performance enhancement.
> 

there had to be a reason. :)

but i can live with the performance drop - it's only going to be for things
like the startup lvm commands, and maintenance commands like pvcreate, isn't
it?

> A disadvantage still persists: you can't count on 16 minors 
> per disk for eg.
> like you can see with DAC960 with only 8 minors per volume.
> Scanning all device nodes still causes pain (s.b.).
> 

devfs would be the answer.. but that's in a bit of a political no-mans land.
:(

> Yep.
> That's why a change to use /proc/partitions is
> in the current developement code.
> 

eeekk... /proc.. no, no no. I've had too much crap with changes in format of
/proc files breaking userland tools, i hate the same to happen to LVM. I
think it would be much mroe hassle-free to just take the performance hit and
scan /dev. 

> I think we can count on the existence of /proc and can fallback
> to scanning /dev, if /proc doesn't exist by accident.
> 

ok.. sounds reasonable.

> Thanks 8-{)
> 
> Heinz
>

regards,

Paul Jakma.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [linux-lvm] 0.8i pvcreate doesn't recognise Mylex RAID
@ 2000-01-21 23:21 paul
  0 siblings, 0 replies; 6+ messages in thread
From: paul @ 2000-01-21 23:21 UTC (permalink / raw)
  To: linux-lvm

OK, I've compiled and installed 2.2.14+0.8i+devfs 99.10, but still
pvcreate returns an error in pv_get_size when trying to init a
Mylex /dev/rd/.../partX device:

pvcreate  /dev/rd/disc0/part3
pvcreate -- ERROR -241 getting size of physical volume "/dev/rd/disc0/part3"

ls -l /dev/rd/disc0/part3
brw-------   1 root     root      48,   3 Jan  1  1970 /dev/rd/disc0/part3

Any solution to this problem? Where can i teach pv_get_size about
Mylex /dev/rd? Also does it matter that I'm using devfs and hence
have long nested /dev/ path names?

thanks,

Paul Jakma
paul@clubi.ie

---------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-01-26 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-25 17:21 [linux-lvm] 0.8i pvcreate doesn't recognise Mylex RAID Jakma, Paul
2000-01-26  0:01 ` Heinz Mauelshagen
2000-01-26  2:22   ` Michael Marxmeier
  -- strict thread matches above, loose matches on Subject: below --
2000-01-26 18:18 Jakma, Paul
2000-01-26 19:54 ` Andi Kleen
2000-01-21 23:21 paul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.