* [linux-lvm] vgcreate looks at devices it shouldn't
@ 2002-02-23 6:07 jarausch
2002-02-24 4:32 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 2+ messages in thread
From: jarausch @ 2002-02-23 6:07 UTC (permalink / raw)
To: linux-lvm
Hi,
on the second machine where I would like to create LVM volumes
I have the following problem
The ZIP drive and the CDROM drive are mapped to
hdd (hdc resp.) BUT due to a kernel parameter
hdc=ide-scsi hdd=ide-scsi
these are no more accessible as /dev/hdd /dev/hdc
Now pvcreate /dev/sdb1 works fine but
vgcreate home /dev/sdb1
produces error messages like
ide-scsi: hdd unsupported command in request queue (0)
....
and after some such messages
vgcreate -- ERROR "pv_read(): read" reading physical volumes.
AND the desired volume group on my scsi drive /dev/sdb1
is NOT created.
What can one do about this. How to tell the utilities
to never look at /dev/hd?
I am using lvm-1.0.2
Does this problem vanish with 2.0 ?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] vgcreate looks at devices it shouldn't
2002-02-23 6:07 [linux-lvm] vgcreate looks at devices it shouldn't jarausch
@ 2002-02-24 4:32 ` Heinz J . Mauelshagen
0 siblings, 0 replies; 2+ messages in thread
From: Heinz J . Mauelshagen @ 2002-02-24 4:32 UTC (permalink / raw)
To: linux-lvm
On Sat, Feb 23, 2002 at 01:07:35PM +0100, jarausch@igpm.rwth-aachen.de wrote:
> Hi,
>
> on the second machine where I would like to create LVM volumes
> I have the following problem
>
> The ZIP drive and the CDROM drive are mapped to
> hdd (hdc resp.) BUT due to a kernel parameter
> hdc=ide-scsi hdd=ide-scsi
> these are no more accessible as /dev/hdd /dev/hdc
>
> Now pvcreate /dev/sdb1 works fine but
> vgcreate home /dev/sdb1
> produces error messages like
> ide-scsi: hdd unsupported command in request queue (0)
> ....
> and after some such messages
> vgcreate -- ERROR "pv_read(): read" reading physical volumes.
>
> AND the desired volume group on my scsi drive /dev/sdb1
> is NOT created.
>
> What can one do about this. How to tell the utilities
> to never look at /dev/hd?
The supported devices in LVM1 are hard coded :-(
Easy way would be to have a wrapper "myvgcreate" like:
#!/bin/sh
DEVDIR=/dev
SAVDIR=/dev/.SAV
DEVS="hdc hdd"
cmd=$(basename $0)
errcheck () {
if [ $2 -ne 0 ]; then
echo -en "$cmd -- $1\n\n" >&2
exit $2
fi
}
[ ! -d $SAVDIR ] && mkdir $SAVDIR
cd $SAVDIR >/dev/null 2>&1
errcheck "Can't chdir to $SAVDIR" $?
cd $DEVDIR >/dev/null 2>&1
errcheck "Can't chdir to $DEVDIR" $?
mv $DEVS $SAVDIR
errcheck "Can't move $DEVS form $DEVDIR to $SAVDIR" $?
vgcreate $*
cd $SAVDIR >/dev/null 2>&1
errcheck "Can't chdir to $SAVDIR" $?
mv $DEVS $DEVDIR
errcheck "Can't move $DEVS from $SAVDIR to $DEVDIR" $?
rmdir $SAVDIR >/dev/null 2>&1
errcheck "Can't remove $SAVDIR" $?
exit 0
>
> I am using lvm-1.0.2
>
> Does this problem vanish with 2.0 ?
Yes.
LVM 2 Beta 1 provides a configurable device filter which enables
you to exclude device nodes using regular exporessions.
THIS IS BETA SOFTWARE NOT MEANT TO BE USED ON PRODUCTION MACHINES!
Unless you try it on test or otherwise not critical systems,
stay with the above work around.
>
> Many thanks for a hint,
>
> Helmut Jarausch
>
> Lehrstuhl fuer Numerische Mathematik
> Institute of Technology, RWTH Aachen
> D 52056 Aachen, Germany
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-24 4:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-23 6:07 [linux-lvm] vgcreate looks at devices it shouldn't jarausch
2002-02-24 4:32 ` Heinz J . Mauelshagen
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).