* [linux-lvm] pvversion failure
@ 2001-07-25 15:14 James Pattinson
2001-07-25 16:11 ` James Pattinson
0 siblings, 1 reply; 6+ messages in thread
From: James Pattinson @ 2001-07-25 15:14 UTC (permalink / raw)
To: linux-lvm
Hi
Trying to upgrade from beta7 to beta8. I have 2 PVs, neither of which are
empty, that belong to a single VG, vg00.
When trying to upgrade the PVs to version 2, I get:
./pvversion -1 /dev/ide/host2/bus0/target0/lun0/part1
pvversion -- created dummy LV "/dev/vg00/pvversionpart19519" on empty PV
"/dev/ide/host2/bus0/target0/lun0/part1"
pvversion -- ERROR: pv_display() failed again
pvversion -- giving up on "/dev/ide/host2/bus0/target0/lun0/part1"
[root@greebo tools]# lvmdiskscan | grep LVM
lvmdiskscan -- /dev/ide/host2/bus0/target0/lun0/part1 [ 16.02 GB]
Primary LVM partition [0x8E]
lvmdiskscan -- /dev/ide/host2/bus1/target0/lun0/part1 [ 16.02 GB]
Primary LVM partition [0x8E]
lvmdiskscan -- 2 LVM physical volume partitions
[root@greebo tools]#
It seems the pvversion program thinks my PV is empty, and tries to create
a dummy LV on it. But of course it's not empty.
I created my PVs, VG and LVs using beta7 kernel and tools not too long
ago. Im using devfs as you can see.
Any ideas?
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvversion failure
2001-07-25 15:14 [linux-lvm] pvversion failure James Pattinson
@ 2001-07-25 16:11 ` James Pattinson
2001-07-25 19:48 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 6+ messages in thread
From: James Pattinson @ 2001-07-25 16:11 UTC (permalink / raw)
To: linux-lvm
Oops - hate to reply to my own message, but I just noticed the -1 in my
pvversion command. To clarify, I get the same behaviour if I use -2 as
well.
James
On Wed, 25 Jul 2001, James Pattinson wrote:
> Hi
>
> Trying to upgrade from beta7 to beta8. I have 2 PVs, neither of which are
> empty, that belong to a single VG, vg00.
>
> When trying to upgrade the PVs to version 2, I get:
>
> ./pvversion -1 /dev/ide/host2/bus0/target0/lun0/part1
> pvversion -- created dummy LV "/dev/vg00/pvversionpart19519" on empty PV
> "/dev/ide/host2/bus0/target0/lun0/part1"
> pvversion -- ERROR: pv_display() failed again
> pvversion -- giving up on "/dev/ide/host2/bus0/target0/lun0/part1"
>
> [root@greebo tools]# lvmdiskscan | grep LVM
> lvmdiskscan -- /dev/ide/host2/bus0/target0/lun0/part1 [ 16.02 GB]
> Primary LVM partition [0x8E]
> lvmdiskscan -- /dev/ide/host2/bus1/target0/lun0/part1 [ 16.02 GB]
> Primary LVM partition [0x8E]
> lvmdiskscan -- 2 LVM physical volume partitions
> [root@greebo tools]#
>
> It seems the pvversion program thinks my PV is empty, and tries to create
> a dummy LV on it. But of course it's not empty.
>
> I created my PVs, VG and LVs using beta7 kernel and tools not too long
> ago. Im using devfs as you can see.
>
> Any ideas?
>
> James
>
> _______________________________________________
> 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvversion failure
2001-07-25 16:11 ` James Pattinson
@ 2001-07-25 19:48 ` Heinz J . Mauelshagen
2001-07-25 22:02 ` James Pattinson
2001-07-26 11:07 ` James Pattinson
0 siblings, 2 replies; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2001-07-25 19:48 UTC (permalink / raw)
To: linux-lvm
On Wed, Jul 25, 2001 at 05:11:42PM +0100, James Pattinson wrote:
> Oops - hate to reply to my own message, but I just noticed the -1 in my
> pvversion command. To clarify, I get the same behaviour if I use -2 as
> well.
Yes, I guessed that already.
My guess is, that the long device pathes trigger a regex bug we didn't hit
during our tests.
Could you switch devfs of and retry pvversion in order
to work around that assumed flaw?
>
> James
>
> On Wed, 25 Jul 2001, James Pattinson wrote:
>
> > Hi
> >
> > Trying to upgrade from beta7 to beta8. I have 2 PVs, neither of which are
> > empty, that belong to a single VG, vg00.
> >
> > When trying to upgrade the PVs to version 2, I get:
> >
> > ./pvversion -1 /dev/ide/host2/bus0/target0/lun0/part1
> > pvversion -- created dummy LV "/dev/vg00/pvversionpart19519" on empty PV
> > "/dev/ide/host2/bus0/target0/lun0/part1"
> > pvversion -- ERROR: pv_display() failed again
> > pvversion -- giving up on "/dev/ide/host2/bus0/target0/lun0/part1"
> >
> > [root@greebo tools]# lvmdiskscan | grep LVM
> > lvmdiskscan -- /dev/ide/host2/bus0/target0/lun0/part1 [ 16.02 GB]
> > Primary LVM partition [0x8E]
> > lvmdiskscan -- /dev/ide/host2/bus1/target0/lun0/part1 [ 16.02 GB]
> > Primary LVM partition [0x8E]
> > lvmdiskscan -- 2 LVM physical volume partitions
> > [root@greebo tools]#
> >
> > It seems the pvversion program thinks my PV is empty, and tries to create
> > a dummy LV on it. But of course it's not empty.
> >
> > I created my PVs, VG and LVs using beta7 kernel and tools not too long
> > ago. Im using devfs as you can see.
> >
> > Any ideas?
> >
> > James
> >
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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] 6+ messages in thread
* Re: [linux-lvm] pvversion failure
2001-07-25 19:48 ` Heinz J . Mauelshagen
@ 2001-07-25 22:02 ` James Pattinson
2001-07-26 11:07 ` James Pattinson
1 sibling, 0 replies; 6+ messages in thread
From: James Pattinson @ 2001-07-25 22:02 UTC (permalink / raw)
To: linux-lvm
Hi
Well, I booted into my rescue partition, which has no devfs. Using kernel
2.4.7 and beta8 patch but with beta7 tools, the pvversion command gave the
same error. I'm rather confused now - I must admit I thought that would
work around the problem - because long devfs names have caused me
problems in the past.
Any more ideas? I could just re-create my VG again like I usually do, but
that's quite a task since I have LVM-on-root.
James
On Wed, 25 Jul 2001, Heinz J . Mauelshagen wrote:
> On Wed, Jul 25, 2001 at 05:11:42PM +0100, James Pattinson wrote:
> > Oops - hate to reply to my own message, but I just noticed the -1 in my
> > pvversion command. To clarify, I get the same behaviour if I use -2 as
> > well.
>
> Yes, I guessed that already.
>
> My guess is, that the long device pathes trigger a regex bug we didn't hit
> during our tests.
>
> Could you switch devfs of and retry pvversion in order
> to work around that assumed flaw?
>
> >
> > James
> >
> > On Wed, 25 Jul 2001, James Pattinson wrote:
> >
> > > Hi
> > >
> > > Trying to upgrade from beta7 to beta8. I have 2 PVs, neither of which are
> > > empty, that belong to a single VG, vg00.
> > >
> > > When trying to upgrade the PVs to version 2, I get:
> > >
> > > ./pvversion -1 /dev/ide/host2/bus0/target0/lun0/part1
> > > pvversion -- created dummy LV "/dev/vg00/pvversionpart19519" on empty PV
> > > "/dev/ide/host2/bus0/target0/lun0/part1"
> > > pvversion -- ERROR: pv_display() failed again
> > > pvversion -- giving up on "/dev/ide/host2/bus0/target0/lun0/part1"
> > >
> > > [root@greebo tools]# lvmdiskscan | grep LVM
> > > lvmdiskscan -- /dev/ide/host2/bus0/target0/lun0/part1 [ 16.02 GB]
> > > Primary LVM partition [0x8E]
> > > lvmdiskscan -- /dev/ide/host2/bus1/target0/lun0/part1 [ 16.02 GB]
> > > Primary LVM partition [0x8E]
> > > lvmdiskscan -- 2 LVM physical volume partitions
> > > [root@greebo tools]#
> > >
> > > It seems the pvversion program thinks my PV is empty, and tries to create
> > > a dummy LV on it. But of course it's not empty.
> > >
> > > I created my PVs, VG and LVs using beta7 kernel and tools not too long
> > > ago. Im using devfs as you can see.
> > >
> > > Any ideas?
> > >
> > > James
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> > _______________________________________________
> > 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
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvversion failure
2001-07-25 19:48 ` Heinz J . Mauelshagen
2001-07-25 22:02 ` James Pattinson
@ 2001-07-26 11:07 ` James Pattinson
2001-08-14 13:56 ` Heinz J . Mauelshagen
1 sibling, 1 reply; 6+ messages in thread
From: James Pattinson @ 2001-07-26 11:07 UTC (permalink / raw)
To: linux-lvm
Hi Heinz
Fixed it now - it was a different flaw I'm afraid!
Line 96 of pvversion takes the first 33 lines of the output of pvdisplay
to determine the PE something or other, and on my system with 15 LVs, you
get no PE info in the first 33 lines!
Changing this value to 36 solved the problem. However I suggest a value of
300 or so to allow for the maximum number of 256 LVs. Was this a dirty
hack? :-)
Cheers
James
On Wed, 25 Jul 2001, Heinz J . Mauelshagen wrote:
> On Wed, Jul 25, 2001 at 05:11:42PM +0100, James Pattinson wrote:
> > Oops - hate to reply to my own message, but I just noticed the -1 in my
> > pvversion command. To clarify, I get the same behaviour if I use -2 as
> > well.
>
> Yes, I guessed that already.
>
> My guess is, that the long device pathes trigger a regex bug we didn't hit
> during our tests.
>
> Could you switch devfs of and retry pvversion in order
> to work around that assumed flaw?
>
> >
> > James
> >
> > On Wed, 25 Jul 2001, James Pattinson wrote:
> >
> > > Hi
> > >
> > > Trying to upgrade from beta7 to beta8. I have 2 PVs, neither of which are
> > > empty, that belong to a single VG, vg00.
> > >
> > > When trying to upgrade the PVs to version 2, I get:
> > >
> > > ./pvversion -1 /dev/ide/host2/bus0/target0/lun0/part1
> > > pvversion -- created dummy LV "/dev/vg00/pvversionpart19519" on empty PV
> > > "/dev/ide/host2/bus0/target0/lun0/part1"
> > > pvversion -- ERROR: pv_display() failed again
> > > pvversion -- giving up on "/dev/ide/host2/bus0/target0/lun0/part1"
> > >
> > > [root@greebo tools]# lvmdiskscan | grep LVM
> > > lvmdiskscan -- /dev/ide/host2/bus0/target0/lun0/part1 [ 16.02 GB]
> > > Primary LVM partition [0x8E]
> > > lvmdiskscan -- /dev/ide/host2/bus1/target0/lun0/part1 [ 16.02 GB]
> > > Primary LVM partition [0x8E]
> > > lvmdiskscan -- 2 LVM physical volume partitions
> > > [root@greebo tools]#
> > >
> > > It seems the pvversion program thinks my PV is empty, and tries to create
> > > a dummy LV on it. But of course it's not empty.
> > >
> > > I created my PVs, VG and LVs using beta7 kernel and tools not too long
> > > ago. Im using devfs as you can see.
> > >
> > > Any ideas?
> > >
> > > James
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> > _______________________________________________
> > 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
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] pvversion failure
2001-07-26 11:07 ` James Pattinson
@ 2001-08-14 13:56 ` Heinz J . Mauelshagen
0 siblings, 0 replies; 6+ messages in thread
From: Heinz J . Mauelshagen @ 2001-08-14 13:56 UTC (permalink / raw)
To: linux-lvm
On Thu, Jul 26, 2001 at 12:07:09PM +0100, James Pattinson wrote:
> Hi Heinz
>
> Fixed it now - it was a different flaw I'm afraid!
>
> Line 96 of pvversion takes the first 33 lines of the output of pvdisplay
> to determine the PE something or other, and on my system with 15 LVs, you
> get no PE info in the first 33 lines!
>
> Changing this value to 36 solved the problem. However I suggest a value of
> 300 or so to allow for the maximum number of 256 LVs. Was this a dirty
> hack? :-)
Kind of looks like one, doesn't it ;-)
It is changed in CVS.
Heinz
>
> Cheers
>
> James
>
> On Wed, 25 Jul 2001, Heinz J . Mauelshagen wrote:
>
> > On Wed, Jul 25, 2001 at 05:11:42PM +0100, James Pattinson wrote:
> > > Oops - hate to reply to my own message, but I just noticed the -1 in my
> > > pvversion command. To clarify, I get the same behaviour if I use -2 as
> > > well.
> >
> > Yes, I guessed that already.
> >
> > My guess is, that the long device pathes trigger a regex bug we didn't hit
> > during our tests.
> >
> > Could you switch devfs of and retry pvversion in order
> > to work around that assumed flaw?
> >
> > >
> > > James
> > >
> > > On Wed, 25 Jul 2001, James Pattinson wrote:
> > >
> > > > Hi
> > > >
> > > > Trying to upgrade from beta7 to beta8. I have 2 PVs, neither of which are
> > > > empty, that belong to a single VG, vg00.
> > > >
> > > > When trying to upgrade the PVs to version 2, I get:
> > > >
> > > > ./pvversion -1 /dev/ide/host2/bus0/target0/lun0/part1
> > > > pvversion -- created dummy LV "/dev/vg00/pvversionpart19519" on empty PV
> > > > "/dev/ide/host2/bus0/target0/lun0/part1"
> > > > pvversion -- ERROR: pv_display() failed again
> > > > pvversion -- giving up on "/dev/ide/host2/bus0/target0/lun0/part1"
> > > >
> > > > [root@greebo tools]# lvmdiskscan | grep LVM
> > > > lvmdiskscan -- /dev/ide/host2/bus0/target0/lun0/part1 [ 16.02 GB]
> > > > Primary LVM partition [0x8E]
> > > > lvmdiskscan -- /dev/ide/host2/bus1/target0/lun0/part1 [ 16.02 GB]
> > > > Primary LVM partition [0x8E]
> > > > lvmdiskscan -- 2 LVM physical volume partitions
> > > > [root@greebo tools]#
> > > >
> > > > It seems the pvversion program thinks my PV is empty, and tries to create
> > > > a dummy LV on it. But of course it's not empty.
> > > >
> > > > I created my PVs, VG and LVs using beta7 kernel and tools not too long
> > > > ago. Im using devfs as you can see.
> > > >
> > > > Any ideas?
> > > >
> > > > James
> > > >
> > > > _______________________________________________
> > > > 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
> > > >
> > >
> > > _______________________________________________
> > > 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
> >
> >
>
>
> _______________________________________________
> 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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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] 6+ messages in thread
end of thread, other threads:[~2001-08-14 13:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-25 15:14 [linux-lvm] pvversion failure James Pattinson
2001-07-25 16:11 ` James Pattinson
2001-07-25 19:48 ` Heinz J . Mauelshagen
2001-07-25 22:02 ` James Pattinson
2001-07-26 11:07 ` James Pattinson
2001-08-14 13:56 ` Heinz J . Mauelshagen
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.