* [linux-lvm] vgscan errors
@ 2002-03-04 11:22 Kelly Corbin
2002-03-04 17:26 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 20+ messages in thread
From: Kelly Corbin @ 2002-03-04 11:22 UTC (permalink / raw)
To: linux-lvm
I'm getting the following errors when running vgscan from my custom
rescue CD:
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "first_vg"
vgscan -- ERROR 2 writing volume group backup file
/etc/lvmtab.d/first_vg.tmp in vg_cfgbackup.c (line 270)
vgscan -- ERROR: unable to do a backup of volume group "first_vg"
Unfortunately, I can't figure out why it couldn't write the backup file.
The directory is successfully created, but apparently it can't write
the files there for some reason.
If I do a -v I get a little more info:
vgscan -- storing volume group data of "first_vg" in
"/etc/lvmtab.d/first_vg.tmp"
vgscan -- storing physical volume data of "first_vg" in
"/etc/lvmtab.d/first_vg.tmp"
vgscan -- storing logical volume data
of "first_vg" in "/etc/lvmtab.d/first_vg.tmp"
vgscan -- ERROR 2 writing volume group backup file
/etc/lvmtab.d/first_vg.tmp in vg_cfgbackup.c (line 270)
vgscan -- ERROR: unable to do a backup of volume group "first_vg"
This is a new machine and all I have done is create the volume group,
mount it and copy data down to it. I then rebooted and tried to run
vgscan again to confirm the consistency of what I had done and got the
above errors. I've done this exact procedure several times before with
no problems. I'm using LVM 1.0.1 with kernel 2.4.16 patched for XFS.
Is there anything else I can try? Ideas?
Thanks!
Kelly
--
--------------------------------------------
-- Kelly Corbin
-- Systems Administrator
--
-- http://www.theiqgroup.com
-- The Future of eServices...
--
-- The IQ Group, Inc.
-- 6740 Antioch Suite 110
-- Merriam, KS 66204
-- (913)-722-6700 x105
-- Fax (913)722-7264
--------------------------------------------
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-04 11:22 [linux-lvm] vgscan errors Kelly Corbin
@ 2002-03-04 17:26 ` Heinz J . Mauelshagen
2002-03-05 14:20 ` Kelly Corbin
0 siblings, 1 reply; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-04 17:26 UTC (permalink / raw)
To: linux-lvm
Error 2 is ENOENT (no entry).
Could be a space problem in case / run full.
Regards,
Heinz -- The LVM Guy --
On Mon, Mar 04, 2002 at 11:22:10AM -0600, Kelly Corbin wrote:
> I'm getting the following errors when running vgscan from my custom
> rescue CD:
>
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- found inactive volume group "first_vg"
> vgscan -- ERROR 2 writing volume group backup file
> /etc/lvmtab.d/first_vg.tmp in vg_cfgbackup.c (line 270)
> vgscan -- ERROR: unable to do a backup of volume group "first_vg"
>
> Unfortunately, I can't figure out why it couldn't write the backup file.
> The directory is successfully created, but apparently it can't write
> the files there for some reason.
>
> If I do a -v I get a little more info:
>
> vgscan -- storing volume group data of "first_vg" in
> "/etc/lvmtab.d/first_vg.tmp"
> vgscan -- storing physical volume data of "first_vg" in
> "/etc/lvmtab.d/first_vg.tmp"
> vgscan -- storing logical volume data
>
> of "first_vg" in "/etc/lvmtab.d/first_vg.tmp"
>
> vgscan -- ERROR 2 writing volume group backup file
> /etc/lvmtab.d/first_vg.tmp in vg_cfgbackup.c (line 270)
> vgscan -- ERROR: unable to do a backup of volume group "first_vg"
>
> This is a new machine and all I have done is create the volume group,
> mount it and copy data down to it. I then rebooted and tried to run
> vgscan again to confirm the consistency of what I had done and got the
> above errors. I've done this exact procedure several times before with
> no problems. I'm using LVM 1.0.1 with kernel 2.4.16 patched for XFS.
>
> Is there anything else I can try? Ideas?
>
> Thanks!
>
> Kelly
>
> --
> --------------------------------------------
> -- Kelly Corbin
> -- Systems Administrator
> --
> -- http://www.theiqgroup.com
> -- The Future of eServices...
> --
> -- The IQ Group, Inc.
> -- 6740 Antioch Suite 110
> -- Merriam, KS 66204
> -- (913)-722-6700 x105
> -- Fax (913)722-7264
> --------------------------------------------
>
>
> _______________________________________________
> 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
*** 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] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-04 17:26 ` Heinz J . Mauelshagen
@ 2002-03-05 14:20 ` Kelly Corbin
2002-03-05 15:34 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 20+ messages in thread
From: Kelly Corbin @ 2002-03-05 14:20 UTC (permalink / raw)
To: linux-lvm
Well, after rooting around, it looks like my partition table was screwed
up. However, when try to create the vg and lv again (after re-fdisking
the disk) it fails at the lv creation. Vgcreate works with no problem;
I can reboot and re-activate the vg I just created. When I run
lvcreate, I get the following error:
#lvcreate -l23722 -nfirst_lv first_vg
lvcreate -- ERROR 0 writing volume group backup file
/etc/lvmtab.d/first_vg.tmp in vg_cfgbackup.c [line 268]
lvcreate -- WARNING: you don't have an automatic backup of "first_vg"
lvcreate -- logical volume "/dev/first_vg/first_lv successfully created.
vgdisplay then shows the correct number of free/used extents (1 free,
the rest used), but a vgscan now will fail miserably (before or after
reboot) with the same error (ERROR 2)
This is a new disk that I'm trying to setup for the first time.
Ideas?
Thanks.
Heinz J . Mauelshagen wrote:
> Error 2 is ENOENT (no entry).
> Could be a space problem in case / run full.
>
> Regards,
> Heinz -- The LVM Guy --
>
--
--------------------------------------------
-- Kelly Corbin
-- Systems Administrator
--
-- http://www.theiqgroup.com
-- The Future of eServices...
--
-- The IQ Group, Inc.
-- 6740 Antioch Suite 110
-- Merriam, KS 66204
-- (913)-722-6700 x105
-- Fax (913)722-7264
--------------------------------------------
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-05 14:20 ` Kelly Corbin
@ 2002-03-05 15:34 ` Heinz J . Mauelshagen
2002-03-05 16:49 ` Kelly Corbin
0 siblings, 1 reply; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-05 15:34 UTC (permalink / raw)
To: linux-lvm
On Tue, Mar 05, 2002 at 02:20:44PM -0600, Kelly Corbin wrote:
> Well, after rooting around, it looks like my partition table was screwed
> up. However, when try to create the vg and lv again (after re-fdisking
> the disk) it fails at the lv creation. Vgcreate works with no problem;
> I can reboot and re-activate the vg I just created. When I run
> lvcreate, I get the following error:
>
> #lvcreate -l23722 -nfirst_lv first_vg
> lvcreate -- ERROR 0 writing volume group backup file
> /etc/lvmtab.d/first_vg.tmp in vg_cfgbackup.c [line 268]
> lvcreate -- WARNING: you don't have an automatic backup of "first_vg"
> lvcreate -- logical volume "/dev/first_vg/first_lv successfully created.
>
> vgdisplay then shows the correct number of free/used extents (1 free,
> the rest used), but a vgscan now will fail miserably (before or after
> reboot) with the same error (ERROR 2)
>
> This is a new disk that I'm trying to setup for the first time.
>
> Ideas?
It is probably too little free space in the root fs.
Because you've got somany extents the size of the metadata backup is bigger
as well.
Check your root fs free space, please.
>
> Thanks.
>
>
> Heinz J . Mauelshagen wrote:
>
> > Error 2 is ENOENT (no entry).
> > Could be a space problem in case / run full.
> >
> > Regards,
> > Heinz -- The LVM Guy --
> >
>
>
>
> --
> --------------------------------------------
> -- Kelly Corbin
> -- Systems Administrator
> --
> -- http://www.theiqgroup.com
> -- The Future of eServices...
> --
> -- The IQ Group, Inc.
> -- 6740 Antioch Suite 110
> -- Merriam, KS 66204
> -- (913)-722-6700 x105
> -- Fax (913)722-7264
> --------------------------------------------
>
>
> _______________________________________________
> 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] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-05 15:34 ` Heinz J . Mauelshagen
@ 2002-03-05 16:49 ` Kelly Corbin
2002-03-05 18:00 ` [linux-lvm] PV-Move fails, now at 127 Pe's Denie Andriessen
2002-03-07 11:17 ` [linux-lvm] vgscan errors Kelly Corbin
0 siblings, 2 replies; 20+ messages in thread
From: Kelly Corbin @ 2002-03-05 16:49 UTC (permalink / raw)
To: linux-lvm
Doh! I didn't get what you were saying in your first reply. I'm sure
that's it. It's running in an init. ramdisk image and there's very
little actual space. Generally speaking, how big do those backups get?
Thanks for your help.
Heinz J . Mauelshagen wrote:
> On Tue, Mar 05, 2002 at 02:20:44PM -0600, Kelly Corbin wrote:
>
> It is probably too little free space in the root fs.
> Because you've got somany extents the size of the metadata backup is bigger
> as well.
>
> Check your root fs free space, please.
>
>
>>Thanks.
>>
>>
>>Heinz J . Mauelshagen wrote:
>>
>>
>>>Error 2 is ENOENT (no entry).
>>>Could be a space problem in case / run full.
>>>
>>>Regards,
>>>Heinz -- The LVM Guy --
--
--------------------------------------------
-- Kelly Corbin
-- Systems Administrator
--
-- http://www.theiqgroup.com
-- The Future of eServices...
--
-- The IQ Group, Inc.
-- 6740 Antioch Suite 110
-- Merriam, KS 66204
-- (913)-722-6700 x105
-- Fax (913)722-7264
--------------------------------------------
^ permalink raw reply [flat|nested] 20+ messages in thread
* [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-05 16:49 ` Kelly Corbin
@ 2002-03-05 18:00 ` Denie Andriessen
2002-03-06 3:56 ` Heinz J . Mauelshagen
2002-03-07 11:17 ` [linux-lvm] vgscan errors Kelly Corbin
1 sibling, 1 reply; 20+ messages in thread
From: Denie Andriessen @ 2002-03-05 18:00 UTC (permalink / raw)
To: linux-lvm
Hi,
So, I've updated my lvm tools from 0.9.1-beta2 to 1.0.3., and now I seem to
have ran into quite some problems..
Ran all test of the move again, and after a few faultless flows I started
off again..
We have a volume with 4 * 60, 2 * 80 disk, and another volume (new one, new
disk) with 120Gb.
I'd like to move one 60Gb disk to the volume with the 120 Gb disk.
E2fsran nicely, then I started with a PV move, to get /dev/hdc1 out (after
failing the first time I tries also to move /dev/hdb1 out) both failing at
the same point, that is with 127 PE's moved...
Any takers ?
Regards,
------- info-----------
pvmove -- writing physical extent part of VGDA on destination "/dev/hdg1"
lv: /dev/volume/data[1] old_dev: 22:01 new_dev: 34:01 old_pe_sector:
4176642 new_pe_sector: 47036865
pvmove -- opening output physical volume "/dev/hdg1"
pvmove -- llseeking input physical volume "/dev/hdc1"
pvmove -- llseeking output physical volume "/dev/hdg1"
pvmove -- /dev/hdc1 [PE 127 [data [LE 7328]] -> /dev/hdg1 [PE 1435]
[128/3577]
pvmove -- locking physical extent 127 of "/dev/hdc1" in kernel
pvmove -- about to read input physical volume "/dev/hdc1" and to write
output physical volume "/dev/hdg1"
pvmove -- ERROR reading input physical volume "/dev/hdc1" (still 7733248
bytes to read)
pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
[root@localhost /]# lvscan
lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
vgscan
[root@localhost /]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "volume"
vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
data of volume group "volume" from physical volume(s)
vgscan -- found active volume group "mp3volume"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
groups
[root@localhost /]# lvscan
lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
vgscan
[root@localhost /]# vgdisplay
vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
vgscan
[root@localhost /]# vgdisplay -v volume
vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
vgscan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-05 18:00 ` [linux-lvm] PV-Move fails, now at 127 Pe's Denie Andriessen
@ 2002-03-06 3:56 ` Heinz J . Mauelshagen
2002-03-06 5:02 ` Denie Andriessen
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-06 3:56 UTC (permalink / raw)
To: linux-lvm
Well, you hit the cast problem I reported a fix for on linux-lvm shortly
after the LVM 1.0.3 release.
Sorry for the inconvenience!
Here's the patch again.
Regards,
Heinz -- The LVM Guy --
diff -u -B -r1.43 -r1.44
--- LVM/tools/lib/liblvm.h 18 Feb 2002 16:37:18 -0000 1.43
+++ LVM/tools/lib/liblvm.h 20 Feb 2002 10:49:14 -0000 1.44
@@ -93,10 +93,10 @@
#include <time.h>
#include <limits.h>
#ifdef _G_LSEEK64
-int lseek64 ( unsigned int, unsigned long long, unsigned int);
+loff_t lseek64 ( int, loff_t, int);
#define llseek lseek64
#else
-int llseek ( unsigned int, unsigned long long, unsigned int);
+loff_t llseek ( int, loff_t, int);
#endif
#include <sys/ioctl.h>
@@ -130,7 +130,7 @@
#define LVMTAB "/etc/lvmtab" /* LVM table of VGs */
#define LVMTAB_DIR "/etc/lvmtab.d" /* storage dir VG data */
#define LVMTAB_MINSIZE ( sizeof ( vg_t) + sizeof ( lv_t) + sizeof ( pv_t))
-#define LVM_DEV "/dev/lvm"
+#define LVM_DEV LVM_DIR_PREFIX "lvm"
#define VG_BACKUP_DIR "/etc/lvmconf"
#define DISK_NAME_LEN 8
#define LV_MIN_NAME_LEN 5
On Wed, Mar 06, 2002 at 01:05:53AM +0100, Denie Andriessen wrote:
> Hi,
>
> So, I've updated my lvm tools from 0.9.1-beta2 to 1.0.3., and now I seem to
> have ran into quite some problems..
>
> Ran all test of the move again, and after a few faultless flows I started
> off again..
> We have a volume with 4 * 60, 2 * 80 disk, and another volume (new one, new
> disk) with 120Gb.
>
> I'd like to move one 60Gb disk to the volume with the 120 Gb disk.
>
> E2fsran nicely, then I started with a PV move, to get /dev/hdc1 out (after
> failing the first time I tries also to move /dev/hdb1 out) both failing at
> the same point, that is with 127 PE's moved...
>
> Any takers ?
>
> Regards,
> ------- info-----------
> pvmove -- writing physical extent part of VGDA on destination "/dev/hdg1"
> lv: /dev/volume/data[1] old_dev: 22:01 new_dev: 34:01 old_pe_sector:
> 4176642 new_pe_sector: 47036865
> pvmove -- opening output physical volume "/dev/hdg1"
> pvmove -- llseeking input physical volume "/dev/hdc1"
> pvmove -- llseeking output physical volume "/dev/hdg1"
> pvmove -- /dev/hdc1 [PE 127 [data [LE 7328]] -> /dev/hdg1 [PE 1435]
> [128/3577]
> pvmove -- locking physical extent 127 of "/dev/hdc1" in kernel
> pvmove -- about to read input physical volume "/dev/hdc1" and to write
> output physical volume "/dev/hdg1"
> pvmove -- ERROR reading input physical volume "/dev/hdc1" (still 7733248
> bytes to read)
> pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
>
> [root@localhost /]# lvscan
> lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> vgscan
>
> [root@localhost /]# vgscan
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- found active volume group "volume"
> vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
> data of volume group "volume" from physical volume(s)
> vgscan -- found active volume group "mp3volume"
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume
> groups
>
> [root@localhost /]# lvscan
> lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> vgscan
>
> [root@localhost /]# vgdisplay
> vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> vgscan
>
> [root@localhost /]# vgdisplay -v volume
> vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> vgscan
>
>
>
> _______________________________________________
> 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
*** 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] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 3:56 ` Heinz J . Mauelshagen
@ 2002-03-06 5:02 ` Denie Andriessen
2002-03-06 5:13 ` Heinz J . Mauelshagen
` (2 more replies)
2002-03-06 5:04 ` Denie Andriessen
2002-03-06 9:01 ` Denie Andriessen
2 siblings, 3 replies; 20+ messages in thread
From: Denie Andriessen @ 2002-03-06 5:02 UTC (permalink / raw)
To: linux-lvm
Hi,
So now the volume is inactive, I can't change it, although it notices
there is an inactive volume on the disks...
hdb1 and hdc1 both have 127 blocks on there now, and hdg1 has 2*127 block
removed. I can't access the data anymore now... Any suggestions on how to
get the volume back online, so the data can be accessed ???
-------------
vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't
get data of volume group "volume" from physical volume(s)
-------------
Denie
On Wed, 6 Mar 2002, Heinz J . Mauelshagen wrote:
>
> Well, you hit the cast problem I reported a fix for on linux-lvm shortly
> after the LVM 1.0.3 release.
>
> Sorry for the inconvenience!
>
> Here's the patch again.
>
> Regards,
> Heinz -- The LVM Guy --
>
> On Wed, Mar 06, 2002 at 01:05:53AM +0100, Denie Andriessen wrote:
> > Hi,
> >
> > So, I've updated my lvm tools from 0.9.1-beta2 to 1.0.3., and now I seem to
> > have ran into quite some problems..
> >
> > Ran all test of the move again, and after a few faultless flows I started
> > off again..
> > We have a volume with 4 * 60, 2 * 80 disk, and another volume (new one, new
> > disk) with 120Gb.
> >
> > I'd like to move one 60Gb disk to the volume with the 120 Gb disk.
> >
> > E2fsran nicely, then I started with a PV move, to get /dev/hdc1 out (after
> > failing the first time I tries also to move /dev/hdb1 out) both failing at
> > the same point, that is with 127 PE's moved...
> >
> > Any takers ?
> >
> > Regards,
> > ------- info-----------
> > pvmove -- writing physical extent part of VGDA on destination "/dev/hdg1"
> > lv: /dev/volume/data[1] old_dev: 22:01 new_dev: 34:01 old_pe_sector:
> > 4176642 new_pe_sector: 47036865
> > pvmove -- opening output physical volume "/dev/hdg1"
> > pvmove -- llseeking input physical volume "/dev/hdc1"
> > pvmove -- llseeking output physical volume "/dev/hdg1"
> > pvmove -- /dev/hdc1 [PE 127 [data [LE 7328]] -> /dev/hdg1 [PE 1435]
> > [128/3577]
> > pvmove -- locking physical extent 127 of "/dev/hdc1" in kernel
> > pvmove -- about to read input physical volume "/dev/hdc1" and to write
> > output physical volume "/dev/hdg1"
> > pvmove -- ERROR reading input physical volume "/dev/hdc1" (still 7733248
> > bytes to read)
> > pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
> >
> > [root@localhost /]# lvscan
> > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgscan
> > vgscan -- reading all physical volumes (this may take a while...)
> > vgscan -- found active volume group "volume"
> > vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> > vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
> > data of volume group "volume" from physical volume(s)
> > vgscan -- found active volume group "mp3volume"
> > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> > vgscan -- WARNING: This program does not do a VGDA backup of your volume
> > groups
> >
> > [root@localhost /]# lvscan
> > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgdisplay
> > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgdisplay -v volume
> > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> >
> >
> > _______________________________________________
> > 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
>
> *** 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://www.sistina.com/lvm/Pages/howto.html
>
--
----- geekcode sig file -----
GCM/GCS/GS d- s: a C++$ U+++$ P+++$ L++$ E- W+++$ N++ u K w++ O M
V PS PE++ Y+ PGP t+ 5 X++ R tv- b++ DI++ D+ G e+++ h-- r+>++ y++
-----------------------------
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 3:56 ` Heinz J . Mauelshagen
2002-03-06 5:02 ` Denie Andriessen
@ 2002-03-06 5:04 ` Denie Andriessen
2002-03-06 9:01 ` Denie Andriessen
2 siblings, 0 replies; 20+ messages in thread
From: Denie Andriessen @ 2002-03-06 5:04 UTC (permalink / raw)
To: linux-lvm
Hi,
So now the volume is inactive, I can't change it, although it notices
there is an inactive volume on the disks...
hdb1 and hdc1 both have 127 blocks on there now, and hdg1 has 2*127 block
removed. I can't access the data anymore now... Any suggestions on how to
get the volume back online, so the data can be accessed ???
-------------
vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't
get data of volume group "volume" from physical volume(s)
-------------
Denie
On Wed, 6 Mar 2002, Heinz J . Mauelshagen wrote:
>
> Well, you hit the cast problem I reported a fix for on linux-lvm shortly
> after the LVM 1.0.3 release.
>
> Sorry for the inconvenience!
>
> Here's the patch again.
>
> Regards,
> Heinz -- The LVM Guy --
>
> > [root@localhost /]# vgdisplay
> > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgdisplay -v volume
> > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> >
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 5:02 ` Denie Andriessen
@ 2002-03-06 5:13 ` Heinz J . Mauelshagen
2002-03-06 5:37 ` Heinz J . Mauelshagen
2002-03-06 19:07 ` Denie Andriessen
2 siblings, 0 replies; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-06 5:13 UTC (permalink / raw)
To: linux-lvm
Please see my email with explanation I send to yu directly.
Regards,
Heinz -- The LVM Guy --
On Wed, Mar 06, 2002 at 12:02:29PM +0100, Denie Andriessen wrote:
> Hi,
>
> So now the volume is inactive, I can't change it, although it notices
> there is an inactive volume on the disks...
>
> hdb1 and hdc1 both have 127 blocks on there now, and hdg1 has 2*127 block
> removed. I can't access the data anymore now... Any suggestions on how to
> get the volume back online, so the data can be accessed ???
>
> -------------
> vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't
> get data of volume group "volume" from physical volume(s)
> -------------
>
> Denie
>
>
> On Wed, 6 Mar 2002, Heinz J . Mauelshagen wrote:
>
> >
> > Well, you hit the cast problem I reported a fix for on linux-lvm shortly
> > after the LVM 1.0.3 release.
> >
> > Sorry for the inconvenience!
> >
> > Here's the patch again.
> >
> > Regards,
> > Heinz -- The LVM Guy --
> >
> > On Wed, Mar 06, 2002 at 01:05:53AM +0100, Denie Andriessen wrote:
> > > Hi,
> > >
> > > So, I've updated my lvm tools from 0.9.1-beta2 to 1.0.3., and now I seem to
> > > have ran into quite some problems..
> > >
> > > Ran all test of the move again, and after a few faultless flows I started
> > > off again..
> > > We have a volume with 4 * 60, 2 * 80 disk, and another volume (new one, new
> > > disk) with 120Gb.
> > >
> > > I'd like to move one 60Gb disk to the volume with the 120 Gb disk.
> > >
> > > E2fsran nicely, then I started with a PV move, to get /dev/hdc1 out (after
> > > failing the first time I tries also to move /dev/hdb1 out) both failing at
> > > the same point, that is with 127 PE's moved...
> > >
> > > Any takers ?
> > >
> > > Regards,
> > > ------- info-----------
> > > pvmove -- writing physical extent part of VGDA on destination "/dev/hdg1"
> > > lv: /dev/volume/data[1] old_dev: 22:01 new_dev: 34:01 old_pe_sector:
> > > 4176642 new_pe_sector: 47036865
> > > pvmove -- opening output physical volume "/dev/hdg1"
> > > pvmove -- llseeking input physical volume "/dev/hdc1"
> > > pvmove -- llseeking output physical volume "/dev/hdg1"
> > > pvmove -- /dev/hdc1 [PE 127 [data [LE 7328]] -> /dev/hdg1 [PE 1435]
> > > [128/3577]
> > > pvmove -- locking physical extent 127 of "/dev/hdc1" in kernel
> > > pvmove -- about to read input physical volume "/dev/hdc1" and to write
> > > output physical volume "/dev/hdg1"
> > > pvmove -- ERROR reading input physical volume "/dev/hdc1" (still 7733248
> > > bytes to read)
> > > pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
> > >
> > > [root@localhost /]# lvscan
> > > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > > [root@localhost /]# vgscan
> > > vgscan -- reading all physical volumes (this may take a while...)
> > > vgscan -- found active volume group "volume"
> > > vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> > > vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
> > > data of volume group "volume" from physical volume(s)
> > > vgscan -- found active volume group "mp3volume"
> > > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> > > vgscan -- WARNING: This program does not do a VGDA backup of your volume
> > > groups
> > >
> > > [root@localhost /]# lvscan
> > > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > > [root@localhost /]# vgdisplay
> > > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > > [root@localhost /]# vgdisplay -v volume
> > > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
> > *** 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://www.sistina.com/lvm/Pages/howto.html
> >
>
> --
>
>
>
>
> ----- geekcode sig file -----
> GCM/GCS/GS d- s: a C++$ U+++$ P+++$ L++$ E- W+++$ N++ u K w++ O M
> V PS PE++ Y+ PGP t+ 5 X++ R tv- b++ DI++ D+ G e+++ h-- r+>++ y++
> -----------------------------
>
>
>
>
> _______________________________________________
> 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
*** 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] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 5:02 ` Denie Andriessen
2002-03-06 5:13 ` Heinz J . Mauelshagen
@ 2002-03-06 5:37 ` Heinz J . Mauelshagen
2002-03-06 19:07 ` Denie Andriessen
2 siblings, 0 replies; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-06 5:37 UTC (permalink / raw)
To: linux-lvm
Denie,
got service unavailable for denie@blok14b.gimmie.tudelft.nl :-(
Regards,
Heinz -- The LVM Guy --
On Wed, Mar 06, 2002 at 12:02:29PM +0100, Denie Andriessen wrote:
> Hi,
>
> So now the volume is inactive, I can't change it, although it notices
> there is an inactive volume on the disks...
>
> hdb1 and hdc1 both have 127 blocks on there now, and hdg1 has 2*127 block
> removed. I can't access the data anymore now... Any suggestions on how to
> get the volume back online, so the data can be accessed ???
>
> -------------
> vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't
> get data of volume group "volume" from physical volume(s)
> -------------
>
> Denie
>
>
> On Wed, 6 Mar 2002, Heinz J . Mauelshagen wrote:
>
> >
> > Well, you hit the cast problem I reported a fix for on linux-lvm shortly
> > after the LVM 1.0.3 release.
> >
> > Sorry for the inconvenience!
> >
> > Here's the patch again.
> >
> > Regards,
> > Heinz -- The LVM Guy --
> >
> > On Wed, Mar 06, 2002 at 01:05:53AM +0100, Denie Andriessen wrote:
> > > Hi,
> > >
> > > So, I've updated my lvm tools from 0.9.1-beta2 to 1.0.3., and now I seem to
> > > have ran into quite some problems..
> > >
> > > Ran all test of the move again, and after a few faultless flows I started
> > > off again..
> > > We have a volume with 4 * 60, 2 * 80 disk, and another volume (new one, new
> > > disk) with 120Gb.
> > >
> > > I'd like to move one 60Gb disk to the volume with the 120 Gb disk.
> > >
> > > E2fsran nicely, then I started with a PV move, to get /dev/hdc1 out (after
> > > failing the first time I tries also to move /dev/hdb1 out) both failing at
> > > the same point, that is with 127 PE's moved...
> > >
> > > Any takers ?
> > >
> > > Regards,
> > > ------- info-----------
> > > pvmove -- writing physical extent part of VGDA on destination "/dev/hdg1"
> > > lv: /dev/volume/data[1] old_dev: 22:01 new_dev: 34:01 old_pe_sector:
> > > 4176642 new_pe_sector: 47036865
> > > pvmove -- opening output physical volume "/dev/hdg1"
> > > pvmove -- llseeking input physical volume "/dev/hdc1"
> > > pvmove -- llseeking output physical volume "/dev/hdg1"
> > > pvmove -- /dev/hdc1 [PE 127 [data [LE 7328]] -> /dev/hdg1 [PE 1435]
> > > [128/3577]
> > > pvmove -- locking physical extent 127 of "/dev/hdc1" in kernel
> > > pvmove -- about to read input physical volume "/dev/hdc1" and to write
> > > output physical volume "/dev/hdg1"
> > > pvmove -- ERROR reading input physical volume "/dev/hdc1" (still 7733248
> > > bytes to read)
> > > pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
> > >
> > > [root@localhost /]# lvscan
> > > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > > [root@localhost /]# vgscan
> > > vgscan -- reading all physical volumes (this may take a while...)
> > > vgscan -- found active volume group "volume"
> > > vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> > > vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
> > > data of volume group "volume" from physical volume(s)
> > > vgscan -- found active volume group "mp3volume"
> > > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> > > vgscan -- WARNING: This program does not do a VGDA backup of your volume
> > > groups
> > >
> > > [root@localhost /]# lvscan
> > > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > > [root@localhost /]# vgdisplay
> > > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > > [root@localhost /]# vgdisplay -v volume
> > > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > > vgscan
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
> > *** 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://www.sistina.com/lvm/Pages/howto.html
> >
>
> --
>
>
>
>
> ----- geekcode sig file -----
> GCM/GCS/GS d- s: a C++$ U+++$ P+++$ L++$ E- W+++$ N++ u K w++ O M
> V PS PE++ Y+ PGP t+ 5 X++ R tv- b++ DI++ D+ G e+++ h-- r+>++ y++
> -----------------------------
>
>
>
>
> _______________________________________________
> 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
*** 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] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 3:56 ` Heinz J . Mauelshagen
2002-03-06 5:02 ` Denie Andriessen
2002-03-06 5:04 ` Denie Andriessen
@ 2002-03-06 9:01 ` Denie Andriessen
2 siblings, 0 replies; 20+ messages in thread
From: Denie Andriessen @ 2002-03-06 9:01 UTC (permalink / raw)
To: linux-lvm
Hi,
Applied the patch, but 1 problem still remains..
It claims that the VG "volume" is an unknown volume, and therefor it also
does not want to start to do a pvmove... :(
Is all data lost now ?
Denie
On Wed, 6 Mar 2002, Heinz J . Mauelshagen wrote:
>
> Well, you hit the cast problem I reported a fix for on linux-lvm shortly
> after the LVM 1.0.3 release.
>
> Sorry for the inconvenience!
>
> Here's the patch again.
>
> Regards,
> Heinz -- The LVM Guy --
> > ------- info-----------
> > pvmove -- writing physical extent part of VGDA on destination "/dev/hdg1"
> > lv: /dev/volume/data[1] old_dev: 22:01 new_dev: 34:01 old_pe_sector:
> > 4176642 new_pe_sector: 47036865
> > pvmove -- opening output physical volume "/dev/hdg1"
> > pvmove -- llseeking input physical volume "/dev/hdc1"
> > pvmove -- llseeking output physical volume "/dev/hdg1"
> > pvmove -- /dev/hdc1 [PE 127 [data [LE 7328]] -> /dev/hdg1 [PE 1435]
> > [128/3577]
> > pvmove -- locking physical extent 127 of "/dev/hdc1" in kernel
> > pvmove -- about to read input physical volume "/dev/hdc1" and to write
> > output physical volume "/dev/hdg1"
> > pvmove -- ERROR reading input physical volume "/dev/hdc1" (still 7733248
> > bytes to read)
> > pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
> >
> > [root@localhost /]# lvscan
> > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgscan
> > vgscan -- reading all physical volumes (this may take a while...)
> > vgscan -- found active volume group "volume"
> > vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
> > vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
> > data of volume group "volume" from physical volume(s)
> > vgscan -- found active volume group "mp3volume"
> > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> > vgscan -- WARNING: This program does not do a VGDA backup of your volume
> > groups
> >
> > [root@localhost /]# lvscan
> > lvscan -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgdisplay
> > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
> >
> > [root@localhost /]# vgdisplay -v volume
> > vgdisplay -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run
> > vgscan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 5:02 ` Denie Andriessen
2002-03-06 5:13 ` Heinz J . Mauelshagen
2002-03-06 5:37 ` Heinz J . Mauelshagen
@ 2002-03-06 19:07 ` Denie Andriessen
2002-03-08 14:19 ` Denie Andriessen
2 siblings, 1 reply; 20+ messages in thread
From: Denie Andriessen @ 2002-03-06 19:07 UTC (permalink / raw)
To: linux-lvm
Hi,
Yes, I know, it's late again, but that's just the burden of having a day
job..
Stiil I seem to be unable to get the volume back online/accesable still...
The volume still doesn't 'want' (?) to becognised.. PVscan sees it, vgck
does not agree to it, vgscan neither..
Short:
After the upgrade to LVM1.0.3. and before aplying the 'sig problem' patch..
we tried to do some PV moves, from then onwards it seemed no to get any
better.... SInce the reboot the volume was not accesible anymore...
Long, long, very long log on:
http://blok14b.gimmie.tudelft.nl/~denie/LVM/log.txt
Main question is, shoulld I stick to the the about 380Gb of data or reformat
and start over new ?
The data is not really 'that' improtant' as it's just what the student's
overhere (about 120 of them) can grab together from the net for internal use
only in our house only
... But still there were quite a few good things there..
Regards,
Denie Andriessen
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-05 16:49 ` Kelly Corbin
2002-03-05 18:00 ` [linux-lvm] PV-Move fails, now at 127 Pe's Denie Andriessen
@ 2002-03-07 11:17 ` Kelly Corbin
2002-03-08 2:47 ` Heinz J . Mauelshagen
1 sibling, 1 reply; 20+ messages in thread
From: Kelly Corbin @ 2002-03-07 11:17 UTC (permalink / raw)
To: linux-lvm
OK, now I have another problem. I got vgscan to run fine now off of my
boot CD, but now the system fails the vgscan on boot (/ is an LVM) with
an 'ERROR 28 writing volume group backup file /etc/...'
I'm assuming this is because the initrd created by lvmcreate_initrd is
not big enough to accomodate the metadata backup. What size is this
generally (lvmcreate_initrd says it calculates this automatically) and
to what size should I set this manually to get this to work? How much
space do I need for the backups during vgscan?
Thanks.
Kelly Corbin wrote:
> Doh! I didn't get what you were saying in your first reply. I'm sure
> that's it. It's running in an init. ramdisk image and there's very
> little actual space. Generally speaking, how big do those backups get?
>
> Thanks for your help.
>
> Heinz J . Mauelshagen wrote:
>
>> On Tue, Mar 05, 2002 at 02:20:44PM -0600, Kelly Corbin wrote:
>>
>> It is probably too little free space in the root fs.
>> Because you've got somany extents the size of the metadata backup is
>> bigger
>> as well.
>>
>> Check your root fs free space, please.
>>
>>
>>> Thanks.
>>>
>>>
>>> Heinz J . Mauelshagen wrote:
>>>
>>>
>>>> Error 2 is ENOENT (no entry).
>>>> Could be a space problem in case / run full.
>>>>
>>>> Regards,
>>>> Heinz -- The LVM Guy --
>>>
>
>
--
--------------------------------------------
-- Kelly Corbin
-- Systems Administrator
--
-- http://www.theiqgroup.com
-- The Future of eServices...
--
-- The IQ Group, Inc.
-- 6740 Antioch Suite 110
-- Merriam, KS 66204
-- (913)-722-6700 x105
-- Fax (913)722-7264
--------------------------------------------
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-07 11:17 ` [linux-lvm] vgscan errors Kelly Corbin
@ 2002-03-08 2:47 ` Heinz J . Mauelshagen
2002-03-08 3:12 ` Andreas Dilger
0 siblings, 1 reply; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-08 2:47 UTC (permalink / raw)
To: linux-lvm
On Thu, Mar 07, 2002 at 11:17:23AM -0600, Kelly Corbin wrote:
> OK, now I have another problem. I got vgscan to run fine now off of my
> boot CD, but now the system fails the vgscan on boot (/ is an LVM) with
> an 'ERROR 28 writing volume group backup file /etc/...'
>
> I'm assuming this is because the initrd created by lvmcreate_initrd is
> not big enough to accomodate the metadata backup.
Exactly.
> What size is this
> generally (lvmcreate_initrd says it calculates this automatically) and
> to what size should I set this manually to get this to work? How much
> space do I need for the backups during vgscan?
Calculate your given initrd size plus your /etc/lvconf/* backup sizes
you need to store in the initrd once vgscan is run
and change the INITRDSIZE to that number in kilobytes + 1MB.
Regards,
Heinz -- The LVM Guy --
>
> Thanks.
>
> Kelly Corbin wrote:
>
> > Doh! I didn't get what you were saying in your first reply. I'm sure
> > that's it. It's running in an init. ramdisk image and there's very
> > little actual space. Generally speaking, how big do those backups get?
> >
> > Thanks for your help.
> >
> > Heinz J . Mauelshagen wrote:
> >
> >> On Tue, Mar 05, 2002 at 02:20:44PM -0600, Kelly Corbin wrote:
> >>
> >> It is probably too little free space in the root fs.
> >> Because you've got somany extents the size of the metadata backup is
> >> bigger
> >> as well.
> >>
> >> Check your root fs free space, please.
> >>
> >>
> >>> Thanks.
> >>>
> >>>
> >>> Heinz J . Mauelshagen wrote:
> >>>
> >>>
> >>>> Error 2 is ENOENT (no entry).
> >>>> Could be a space problem in case / run full.
> >>>>
> >>>> Regards,
> >>>> Heinz -- The LVM Guy --
> >>>
> >
> >
>
>
> --
> --------------------------------------------
> -- Kelly Corbin
> -- Systems Administrator
> --
> -- http://www.theiqgroup.com
> -- The Future of eServices...
> --
> -- The IQ Group, Inc.
> -- 6740 Antioch Suite 110
> -- Merriam, KS 66204
> -- (913)-722-6700 x105
> -- Fax (913)722-7264
> --------------------------------------------
>
>
> _______________________________________________
> 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
*** 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] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-08 2:47 ` Heinz J . Mauelshagen
@ 2002-03-08 3:12 ` Andreas Dilger
2002-03-08 6:37 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 20+ messages in thread
From: Andreas Dilger @ 2002-03-08 3:12 UTC (permalink / raw)
To: linux-lvm
On Mar 08, 2002 09:44 +0100, Heinz J . Mauelshagen wrote:
> On Thu, Mar 07, 2002 at 11:17:23AM -0600, Kelly Corbin wrote:
> > OK, now I have another problem. I got vgscan to run fine now off of my
> > boot CD, but now the system fails the vgscan on boot (/ is an LVM) with
> > an 'ERROR 28 writing volume group backup file /etc/...'
> >
> > I'm assuming this is because the initrd created by lvmcreate_initrd is
> > not big enough to accomodate the metadata backup.
>
> Exactly.
>
> > What size is this
> > generally (lvmcreate_initrd says it calculates this automatically) and
> > to what size should I set this manually to get this to work? How much
> > space do I need for the backups during vgscan?
>
> Calculate your given initrd size plus your /etc/lvconf/* backup sizes
> you need to store in the initrd once vgscan is run
> and change the INITRDSIZE to that number in kilobytes + 1MB.
I think a lot of people have this same problem (not enough free space in
initrd). Can't we just disable backups somehow? It's the initrd after
all, so it's not like the backups are useful. Alternately, it is better
to just fix the script to have more leeway in the INITRDSIZE in the
first place.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-08 3:12 ` Andreas Dilger
@ 2002-03-08 6:37 ` Heinz J . Mauelshagen
2002-03-08 16:50 ` Goetz Bock
0 siblings, 1 reply; 20+ messages in thread
From: Heinz J . Mauelshagen @ 2002-03-08 6:37 UTC (permalink / raw)
To: linux-lvm
On Fri, Mar 08, 2002 at 02:12:14AM -0700, Andreas Dilger wrote:
> On Mar 08, 2002 09:44 +0100, Heinz J . Mauelshagen wrote:
> > On Thu, Mar 07, 2002 at 11:17:23AM -0600, Kelly Corbin wrote:
> > > OK, now I have another problem. I got vgscan to run fine now off of my
> > > boot CD, but now the system fails the vgscan on boot (/ is an LVM) with
> > > an 'ERROR 28 writing volume group backup file /etc/...'
> > >
> > > I'm assuming this is because the initrd created by lvmcreate_initrd is
> > > not big enough to accomodate the metadata backup.
> >
> > Exactly.
> >
> > > What size is this
> > > generally (lvmcreate_initrd says it calculates this automatically) and
> > > to what size should I set this manually to get this to work? How much
> > > space do I need for the backups during vgscan?
> >
> > Calculate your given initrd size plus your /etc/lvconf/* backup sizes
> > you need to store in the initrd once vgscan is run
> > and change the INITRDSIZE to that number in kilobytes + 1MB.
>
> I think a lot of people have this same problem (not enough free space in
> initrd). Can't we just disable backups somehow?
Andreas,
vgscan creates cache copies of the metadata in /etc/lvmtab.d/.
So if just vgscan and "vgchange -ay" run in the initrd, there's one copy
for every VG in /etc/lvmtab.d/ *and*
export LVM_VG_MAX_BACKUPS=no
disables automatic backup creation in /etc/lvmconf/.
vgchange needs little modification to read the data directly from the devices
rather than from the cache files.
Should I put that into LVM 1.0.4? ;-)
> It's the initrd after
> all, so it's not like the backups are useful. Alternately, it is better
> to just fix the script to have more leeway in the INITRDSIZE in the
> first place.
>
> Cheers, Andreas
> --
> Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
> \ would they cancel out, leaving him still hungry?"
> http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
>
>
> _______________________________________________
> 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] 20+ messages in thread
* Re: [linux-lvm] PV-Move fails, now at 127 Pe's...
2002-03-06 19:07 ` Denie Andriessen
@ 2002-03-08 14:19 ` Denie Andriessen
0 siblings, 0 replies; 20+ messages in thread
From: Denie Andriessen @ 2002-03-08 14:19 UTC (permalink / raw)
To: linux-lvm
So,
Found the 1.0.4.-pre1.tar.bz2, compiled, installed
(Hey, the fix to the 'cast' problem was already in there, although an old
version of the file was also!)
Was: Unable to clear last PE
>Well, you hit the cast problem I reported a fix for on linux-lvm shortly
>after the LVM 1.0.3 release.
Now:
- it *IS* possible to do the vgscan
- it *IS* possible to turn the volume active again
- it *IS* possible to do PV move again, and it does NOT fail on PE 127
anymore
- ALL data was still there !
- Everything is up and running !
- I am very very very happy !!!
Thanks a LOT, keep up the amazing work !!
Very kind regards,
Denie Andriessen
----- Original Message -----
<LOTS CUT OUT>
Hi,
So now the volume is inactive, I can't change it, although it notices
there is an inactive volume on the disks...
hdb1 and hdc1 both have 127 blocks on there now, and hdg1 has 2*127 block
removed. I can't access the data anymore now... Any suggestions on how to
get the volume back online, so the data can be accessed ???
-------------
vgscan -- only found 20391 of 20518 LEs for LV /dev/volume/data (0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't
get data of volume group "volume" from physical volume(s)
-------------
On Tue, Mar 05, 2002 at 02:50:19AM +0100, Denie Andriessen wrote:
> Hi,
>
> Could it be the: "known misalignment issue we had in the 0.9.1 Beta
series"
> (after reading through lots of messages)
> https://mail.sistina.com/pipermail/linux-lvm/2002-February/010724.html
Yes, that's my guess.
>
> Is an upgrade 'dangerous' ? (risk of loosing data)
Well, the way to go is:
- pvmove /dev/hdf2 # move your data back to /dev/hdf1
- vgreduce test12 /dev/hdf2
- update to LVM 1.0.3 (or wait for 1.0.4 which will be released soon)
- pvcreate /dev/hdf2
- vgextend test12 /dev/hdf2
- pvmove /dev/hdf1
>
> Cheers,
> Denie
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-lvm] vgscan errors
2002-03-08 6:37 ` Heinz J . Mauelshagen
@ 2002-03-08 16:50 ` Goetz Bock
2002-03-09 11:47 ` [linux-lvm] Mounting Reiserfs errors Laurentiu Simion
0 siblings, 1 reply; 20+ messages in thread
From: Goetz Bock @ 2002-03-08 16:50 UTC (permalink / raw)
To: linux-lvm
On Fri, Mar 08 '02 at 13:35, Heinz J . Mauelshagen wrote:
> vgscan creates cache copies of the metadata in /etc/lvmtab.d/.
>
> So if just vgscan and "vgchange -ay" run in the initrd, there's one copy
> for every VG in /etc/lvmtab.d/ *and*
>
> export LVM_VG_MAX_BACKUPS=no
>
> disables automatic backup creation in /etc/lvmconf/.
>
> vgchange needs little modification to read the data directly from the devices
> rather than from the cache files.
>
> Should I put that into LVM 1.0.4? ;-)
Yes, please do this.
(While I don't need this, my initrd is big enough and moves over to
tempfs very soon, but it would so much nicer to just do
vgchange -a y /dev/<root vg>/<root lv>
and save vgscan.
)
Just my 0.02 Euro,
Goetz.
^ permalink raw reply [flat|nested] 20+ messages in thread
* [linux-lvm] Mounting Reiserfs errors
2002-03-08 16:50 ` Goetz Bock
@ 2002-03-09 11:47 ` Laurentiu Simion
0 siblings, 0 replies; 20+ messages in thread
From: Laurentiu Simion @ 2002-03-09 11:47 UTC (permalink / raw)
To: linux-lvm
I am running LVM with ext3 and recently with Reiserfs on Mandrake 8.1
(kernel 2.4.8-26) I had no problems for quite a time with ext3 but when
I have tried to play with Reiserfs I've got into big big trouble.
This is the /proc/lmv/global listing:
------------------------------------------------------------------------
LVM module version LVM 0.9.1_beta7(ish) (20 June 2001)
Total: 2 VGs 3 PVs 5 LVs (4 LVs open 4 times)
Global: 44714 bytes malloced IOP version: 10 0:09:22 active
VG: system [1 PV, 4 LV/4 open] PE Size: 4096 KB
Usage [KB/PE]: 9043968 /2208 total 6963200 /1700 used 2080768 /508
free
PV: [AA] ide/host0/bus0/target0/lun0/part6 9043968 /2208 6963200
/1700 2080768 /508
LVs: [AWDL ] 1 409600 /100 1x open
[AWDL ] 2 5201920 /1270 1x open
[AWDL ] 3 716800 /175 1x open
[AWDL ] 4 634880 /155 1x open
VG: depot [2 PV, 1 LV/0 open] PE Size: 4096 KB
Usage [KB/PE]: 4321280 /1055 total 2097152 /512 used 2224128 /543
free
PVs: [AA] ide/host0/bus0/target0/lun0/part7 2064384 /504 2064384
/504 0 /0
[AA] ide/host0/bus0/target0/lun0/part8 2256896 /551 32768
/8 2224128 /543
LV: [AWDL ] lvol1 2097152 /512 close
--------------------------------------------------------------------------
The VG with problems is "depot". Is split on 2 disk partitions and has
one LV using half of the space.
I was able at the beginning to mount /dev/depot/lvol1 as reiserfs but
after a FS resize I've got the following error trying to mount the FS:
# mount -t reiserfs /dev/depot/lvol1 /u0
mount: wrong fs type, bad option, bad superblock on /dev/depot/lvol1,
or too many mounted file systems
I was running all the possible checks on /dev/depot/lvol1 as per below:
# reiserfsck /dev/depot/lvol1
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.x.1b
Will read-only check consistency of the filesystem on /dev/depot/lvol1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes):Y
[root@cr227180-a lvm]# reiserfsck /dev/depot/lvol1
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.x.1b
Will read-only check consistency of the filesystem on /dev/depot/lvol1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes):Yes
###########
reiserfsck --check started at Sat Mar 9 12:44:21 2002
###########
reiserfs_fetch_ondisk_bitmap: bread failed reading bitmap (491520)
Replaying journal..
0 transactions replayed
Checking S+tree..ok
Comparing bitmaps..on-disk bitmap does not match to the correct one.
32767 bits differ
on-disk bitmap does not match to the correct one.
Checking Semantic tree...
ok
There were found 1 corruptions which can be fixed with --fix-fixable
###########
reiserfsck finished at Sat Mar 9 12:44:26 2002
###########
I forced a FS repair but it will not repair. It seems there are no major
corruptions on the FS, but I cannot mount.
# reiserfsck /dev/depot/lvol1 --fix-fixable
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.x.1b
Will check consistency of the filesystem on /dev/depot/lvol1
Will fix what can be fixed w/o --rebuild-tree
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes):Yes
###########
reiserfsck --fix-fixable started at Sat Mar 9 12:45:34 2002
###########
reiserfs_fetch_ondisk_bitmap: bread failed reading bitmap (491520)
Replaying journal..
0 transactions replayed
Checking S+tree..ok
Comparing bitmaps..on-disk bitmap does not match to the correct one.
32767 bits differ
Trying to fix bitmap ..
bitmaps were not recovered.
You can either run rebuild-tree or live with some leaked space
Checking Semantic tree...
ok
No corruptions found
There are on the filesystem:
Leaves 658
Internal nodes 6
Directories 106
Other files 2335
Data block pointers 133863 (zero of them 0)
Safe links 0
###########
reiserfsck finished at Sat Mar 9 12:45:40 2002
###########
I have upgraded the LVM module to 1.0.1.-rc4 in a 2.4.18 Kernel, but
nothing is changed.
Can somebody show me light at the end of the tunnel PLEASE?
Thanks in advance,
Laurentiu
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2002-03-09 11:47 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-04 11:22 [linux-lvm] vgscan errors Kelly Corbin
2002-03-04 17:26 ` Heinz J . Mauelshagen
2002-03-05 14:20 ` Kelly Corbin
2002-03-05 15:34 ` Heinz J . Mauelshagen
2002-03-05 16:49 ` Kelly Corbin
2002-03-05 18:00 ` [linux-lvm] PV-Move fails, now at 127 Pe's Denie Andriessen
2002-03-06 3:56 ` Heinz J . Mauelshagen
2002-03-06 5:02 ` Denie Andriessen
2002-03-06 5:13 ` Heinz J . Mauelshagen
2002-03-06 5:37 ` Heinz J . Mauelshagen
2002-03-06 19:07 ` Denie Andriessen
2002-03-08 14:19 ` Denie Andriessen
2002-03-06 5:04 ` Denie Andriessen
2002-03-06 9:01 ` Denie Andriessen
2002-03-07 11:17 ` [linux-lvm] vgscan errors Kelly Corbin
2002-03-08 2:47 ` Heinz J . Mauelshagen
2002-03-08 3:12 ` Andreas Dilger
2002-03-08 6:37 ` Heinz J . Mauelshagen
2002-03-08 16:50 ` Goetz Bock
2002-03-09 11:47 ` [linux-lvm] Mounting Reiserfs errors Laurentiu Simion
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.