* [linux-lvm] pvcreate error
@ 2002-01-14 14:00 Csuk, Ferenc
2002-01-14 14:25 ` Andreas Dilger
2002-01-15 4:13 ` Yves Alloyer
0 siblings, 2 replies; 8+ messages in thread
From: Csuk, Ferenc @ 2002-01-14 14:00 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 943 bytes --]
Dear All,
I just installed a new system and I installed the latest 2.4.16 kernel
and the latest LVM tool 1.0.1-rc4. I established a software RAID-5
device(md) and wanted to create a logical volume group on it(as I did
with 2.4.7 kernel on another system). However, when I issued the command
I got the following error:
# pvcreate -v /dev/md2
pvcreate -- locking logical volume manager
> pvcreate -- checking physical volume name "/dev/md2"
> pvcreate -- getting physical volume size
> pvcreate -- checking partition type
> pvcreate -- creating new physical volume
> pvcreate -- setting up physical volume for /dev/md7 with 0 sectors
> pvcreate -- ERROR "parameter error" setting up physical volume
"/dev/md2"
I checked the archives where I saw suggestion to patch the LVM tool, but
I don´t think that is related to the latest version.
What is the problem? Should I downgrade to 2.4.7?
Thanks in advance,
Ferenc
[-- Attachment #2: Type: text/html, Size: 1871 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] pvcreate error
2002-01-14 14:00 Csuk, Ferenc
@ 2002-01-14 14:25 ` Andreas Dilger
2002-01-15 4:13 ` Yves Alloyer
1 sibling, 0 replies; 8+ messages in thread
From: Andreas Dilger @ 2002-01-14 14:25 UTC (permalink / raw)
To: Csuk, Ferenc; +Cc: linux-lvm
On Jan 14, 2002 20:57 +0100, Csuk, Ferenc wrote:
> I just installed a new system and I installed the latest 2.4.16 kernel
> and the latest LVM tool 1.0.1-rc4. I established a software RAID-5
> device(md) and wanted to create a logical volume group on it(as I did
> with 2.4.7 kernel on another system). However, when I issued the command
> I got the following error:
>
> # pvcreate -v /dev/md2
> pvcreate -- locking logical volume manager
> > pvcreate -- checking physical volume name "/dev/md2"
> > pvcreate -- getting physical volume size
> > pvcreate -- checking partition type
> > pvcreate -- creating new physical volume
> > pvcreate -- setting up physical volume for /dev/md7 with 0 sectors
^^^^^^^^ ^^^^^^^^^
> > pvcreate -- ERROR "parameter error" setting up physical volume
> "/dev/md2"
Something strange going on there. We have md2 => md7 and zero size.
Maybe the output of "pvcreate -v -d /dev/md2" would help.
> I checked the archives where I saw suggestion to patch the LVM tool, but
> I don´t think that is related to the latest version.
Yes, there were problems with MD devices and LVM, but I don't know when
the fix went in. Note that there _should_ be a 1.0.1 release of the
tools also.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [linux-lvm] pvcreate error
2002-01-14 14:00 Csuk, Ferenc
2002-01-14 14:25 ` Andreas Dilger
@ 2002-01-15 4:13 ` Yves Alloyer
1 sibling, 0 replies; 8+ messages in thread
From: Yves Alloyer @ 2002-01-15 4:13 UTC (permalink / raw)
To: linux-lvm
Hi Csuk,
1.0.1rc4 is not the latest. I ran into the same problem because when it sees
an md device, no matter the raid level, it thinks the device has a partition
table which is wrong. These device are always used as a whole.
To fix the problem you may either upgrade to 1.0.1 or just have a look at
the thread
"[linux-lvm] pvcreate fails on a software RAID metadisk". It describes a
patch from Luca Berra and me:
--- tools/lib/lvm_check_partitioned_dev.c.bluca Thu Aug 23 07:51:53 2001
+++ tools/lib/lvm_check_partitioned_dev.c Fri Oct 5 21:18:51 2001
@@ -55,6 +55,8 @@
switch (lvm_get_device_type(st_rdev)) {
case LVM_DEVICE_TYPE_INVALID:
break;
+ case LVM_DEVICE_TYPE_MD:
+ break;
default:
ret = TRUE;
}
Yves
-----Original Message-----
From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]On
Behalf Of Csuk, Ferenc
Sent: Monday, January 14, 2002 9:32 PM
To: linux-lvm@sistina.com
Subject: [linux-lvm] pvcreate error
Dear All,
I made a typing error in my question. Each line of the error message is
related to /dev/md2 instead of /dev/md7.
I just installed a new system and I installed the latest 2.4.16 kernel and
the latest LVM tool 1.0.1-rc4. I established a software RAID-5 device(md)
and wanted to create a logical volume group on it(as I did with 2.4.7 kernel
on another system). However, when I issued the command I got the following
error:
# pvcreate -v /dev/md2
pvcreate -- locking logical volume manager
> pvcreate -- checking physical volume name "/dev/md2"
> pvcreate -- getting physical volume size
> pvcreate -- checking partition type
> pvcreate -- creating new physical volume
> pvcreate -- setting up physical volume for /dev/md2 with 0 sectors
> pvcreate -- ERROR "parameter error" setting up physical volume "/dev/md2"
I checked the archives where I saw suggestion to patch the LVM tool, but I
don�t think that is related to the latest version.
What is the problem? Should I downgrade to 2.4.7?
Thanks in advance,
Ferenc
^ permalink raw reply [flat|nested] 8+ messages in thread
* [linux-lvm] pvcreate error
@ 2003-01-03 17:47 richard turner
2003-01-06 17:18 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 8+ messages in thread
From: richard turner @ 2003-01-03 17:47 UTC (permalink / raw)
To: linux-lvm
i am trying to create a pv on an entire disk /dev/hdb with the following
command:
pvcreate -ff -y /dev/hdb
it returns the following error:
pvcreate --device "/dev/hdb" has a partition table
fdisk, sfdisk and all other methods prove there is not a partition table
on /dev/hdb
using lvm 1.0.1 with mandrake8.2 kernel 2.4.18-6
what is causing pvcreate to think i have a partition table on /dev/hdb?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [linux-lvm] pvcreate error
@ 2003-01-06 12:55 richard turner
0 siblings, 0 replies; 8+ messages in thread
From: richard turner @ 2003-01-06 12:55 UTC (permalink / raw)
To: linux-lvm
i am trying to create a physical volume on /dev/hdb using:
pvcreate -ff -y /dev/hdb
the following error is generated:
pvcreate -- device "/dev/hdb" has a partition table
my understanding is that pvcreate looks in /proc/partitions for
partition information. currently /proc/partitions does not show any
partitions for hdb (target1). i have tried:
dd if=/dev/zero of=/dev/hdb bs=1k count=1
blockdev --rereadpt /dev/hdb
nothing indicates that there is a partition table on /dev/hdb, however
pvcreate is still detecting one.
i am using lvm 1.0.1. is this a known issue with version 1.0.1? is there
something i am missing that pvcreate is detecting?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] pvcreate error
2003-01-03 17:47 [linux-lvm] pvcreate error richard turner
@ 2003-01-06 17:18 ` Heinz J . Mauelshagen
2003-01-06 18:03 ` richard turner
0 siblings, 1 reply; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2003-01-06 17:18 UTC (permalink / raw)
To: linux-lvm
On Fri, Jan 03, 2003 at 03:48:31PM -0800, richard turner wrote:
> i am trying to create a pv on an entire disk /dev/hdb with the following
> command:
> pvcreate -ff -y /dev/hdb
>
> it returns the following error:
> pvcreate --device "/dev/hdb" has a partition table
>
> fdisk, sfdisk and all other methods prove there is not a partition table
> on /dev/hdb
>
> using lvm 1.0.1 with mandrake8.2 kernel 2.4.18-6
>
> what is causing pvcreate to think i have a partition table on /dev/hdb?
The identifier at the end of the first sector.
dd if=/dev/zero of=/dev/hdb bs=512 count=1
should make pvcreate happy ;)
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
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] 8+ messages in thread
* Re: [linux-lvm] pvcreate error
2003-01-06 17:18 ` Heinz J . Mauelshagen
@ 2003-01-06 18:03 ` richard turner
2003-01-07 12:46 ` richard turner
0 siblings, 1 reply; 8+ messages in thread
From: richard turner @ 2003-01-06 18:03 UTC (permalink / raw)
To: linux-lvm
i have tried that with no success.
dd if=/dev/zero of=/dev/hdb bs=512 count=1
blockdev --rereadpt /dev/hdb
is there a patch i dont know about for devfs? or kernel 2.4.18?
On Mon, 2003-01-06 at 15:06, Heinz J . Mauelshagen wrote:
> On Fri, Jan 03, 2003 at 03:48:31PM -0800, richard turner wrote:
> > i am trying to create a pv on an entire disk /dev/hdb with the following
> > command:
> > pvcreate -ff -y /dev/hdb
> >
> > it returns the following error:
> > pvcreate --device "/dev/hdb" has a partition table
> >
> > fdisk, sfdisk and all other methods prove there is not a partition table
> > on /dev/hdb
> >
> > using lvm 1.0.1 with mandrake8.2 kernel 2.4.18-6
> >
> > what is causing pvcreate to think i have a partition table on /dev/hdb?
>
> The identifier at the end of the first sector.
>
> dd if=/dev/zero of=/dev/hdb bs=512 count=1
>
> should make pvcreate happy ;)
>
> >
> >
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@sistina.com
> > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> --
>
> 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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] pvcreate error
2003-01-06 18:03 ` richard turner
@ 2003-01-07 12:46 ` richard turner
0 siblings, 0 replies; 8+ messages in thread
From: richard turner @ 2003-01-07 12:46 UTC (permalink / raw)
To: linux-lvm
I have some additional information that hopefully someone will be
familiar with and provide some assistance.
The kernel I am using 2.4.18-6 was created using devfs. However, when I
am trying to create a physical volume on /dev/hdb devfs is not active.
My /proc/partitions is as follows:
22 0 15972 hdc
3 0 20066251 ide/host0/bus0/target0/lun0/disc
3 1 313267 ide/host0/bus0/target0/lun0/part1
3 2 265072 ide/host0/bus0/target0/lun0/part2
3 3 1 ide/host0/bus0/target0/lun0/part3
3 5 3076416 ide/host0/bus0/target0/lun0/part5
3 64 20066251 ide/host0/bus0/target1/lun0/disc
is it the case that pvcreate is interpreting "disc" as a partition
because it does not detect a traditional "hdb" and therefore cannot
create the physical volume? is devfs required to be active for pvcreate
to locate the disc according to its naming convention?
On Mon, 2003-01-06 at 16:05, richard turner wrote:
> i have tried that with no success.
> dd if=/dev/zero of=/dev/hdb bs=512 count=1
> blockdev --rereadpt /dev/hdb
>
> is there a patch i dont know about for devfs? or kernel 2.4.18?
>
> On Mon, 2003-01-06 at 15:06, Heinz J . Mauelshagen wrote:
> > On Fri, Jan 03, 2003 at 03:48:31PM -0800, richard turner wrote:
> > > i am trying to create a pv on an entire disk /dev/hdb with the following
> > > command:
> > > pvcreate -ff -y /dev/hdb
> > >
> > > it returns the following error:
> > > pvcreate --device "/dev/hdb" has a partition table
> > >
> > > fdisk, sfdisk and all other methods prove there is not a partition table
> > > on /dev/hdb
> > >
> > > using lvm 1.0.1 with mandrake8.2 kernel 2.4.18-6
> > >
> > > what is causing pvcreate to think i have a partition table on /dev/hdb?
> >
> > The identifier at the end of the first sector.
> >
> > dd if=/dev/zero of=/dev/hdb bs=512 count=1
> >
> > should make pvcreate happy ;)
> >
> > >
> > >
> > >
> > > _______________________________________________
> > > linux-lvm mailing list
> > > linux-lvm@sistina.com
> > > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >
> > --
> >
> > 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
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@sistina.com
> > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-01-07 12:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 17:47 [linux-lvm] pvcreate error richard turner
2003-01-06 17:18 ` Heinz J . Mauelshagen
2003-01-06 18:03 ` richard turner
2003-01-07 12:46 ` richard turner
-- strict thread matches above, loose matches on Subject: below --
2003-01-06 12:55 richard turner
2002-01-14 14:00 Csuk, Ferenc
2002-01-14 14:25 ` Andreas Dilger
2002-01-15 4:13 ` Yves Alloyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox