linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvm1.0.8: vgcfgrestore does not seem to work
@ 2006-06-22 20:00 Stefan Lucke
  2006-06-23  4:59 ` Stefan Lucke
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Lucke @ 2006-06-22 20:00 UTC (permalink / raw)
  To: linux-lvm

Hi, I know I'm running an old system, but yesterday I got some troubles.
It started with a simple read I/O error on an lvm disk. There are 2 x 300GB
disks in that VG. Next step was that first 8 sectors were zeroed on the first
disk in that VG. pvscan showed only the 2nd of this VG and disks of other
VGs. Doing a: 
./vgcfgrestore -ll -n vg01 -v -f /etc/lvmconf/vg01.conf  /dev/sde
shows expected values for this VG:
vgcfgrestore -- locking logical volume manager
vgcfgrestore -- restoring volume group "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- checking existence of "/etc/lvmconf/vg01.conf"
vgcfgrestore -- reading volume group data for "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- reading physical volume data for "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- reading logical volume data for "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- checking volume group consistency of "vg01"
vgcfgrestore -- checking volume group consistency of "vg01"
--- Volume group ---
VG Name               vg01
VG Access             read/write
VG Status             NOT available/resizable
VG #                  1
MAX LV                255
Cur LV                1
Open LV               0
MAX LV Size           1.00 TB
Max PV                255
Cur PV                2
Act PV                2
VG Size               558.78 GB
PE Size               32.00 MB
Total PE              17881
Alloc PE / Size       16356 / 511.12 GB
Free  PE / Size       1525 / 47.66 GB
VG UUID               QOShhy-bTvW-sBL6-z9L8-aEgS-q9rt-Kd8lMw

--- Logical volume ---
LV Name                /dev/vg01/lv02
VG Name                vg01
LV Write Access        read/write
LV Status              NOT available
LV #                   1
# open                 0
LV Size                511.12 GB
Current LE             16356
Allocated LE           16356
Allocation             next free
Read ahead sectors     120
Block device           58:1


--- Physical volume ---
PV Name               /dev/sde
VG Name               vg01
PV Size               279.40 GB / NOT usable 55.67 MB [LVM: 158.00 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       32768
Total PE              8939
Free PE               0
Allocated PE          8939
PV UUID               IheqIs-8lN7-GoSh-YTvX-LJdk-gtib-xSH6uY

--- Physical volume ---
PV Name               /dev/sdb
VG Name               vg01
PV Size               279.48 GB / NOT usable 44.82 MB [LVM: 158.00 KB]
PV#                   2
PV Status             available
Allocatable           yes
Cur LV                1
PE Size (KByte)       32768
Total PE              8942
Free PE               1525
Allocated PE          7417
PV UUID               ptD8W7-aPU9-G7kU-TLtw-8g71-orH0-KwzYdm



vgcfgrestore -- unlocking logical volume manager

but a subsequent vgscan only finds my other VG

Hopefully I havn't lost the entire video data :-( .
Really need some advice.

-- 
Stefan Lucke

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

* Re: [linux-lvm] lvm1.0.8: vgcfgrestore does not seem to work
  2006-06-22 20:00 [linux-lvm] lvm1.0.8: vgcfgrestore does not seem to work Stefan Lucke
@ 2006-06-23  4:59 ` Stefan Lucke
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Lucke @ 2006-06-23  4:59 UTC (permalink / raw)
  To: linux-lvm

On Donnerstag 22 Juni 2006 22:00, Stefan Lucke wrote:
> Hi, I know I'm running an old system, but yesterday I got some troubles.
> It started with a simple read I/O error on an lvm disk. There are 2 x 300GB
> disks in that VG. Next step was that first 8 sectors were zeroed on the first
> disk in that VG. pvscan showed only the 2nd of this VG and disks of other
> VGs. Doing a: 
> ./vgcfgrestore -ll -n vg01 -v -f /etc/lvmconf/vg01.conf  /dev/sde

Ah, grr. option -l is somthing like a test option in addition to -t. 
Dropped those -l or -ll and vgcfgrestore did what it was expected to do.
My volume group is back online :-)))  .


-- 
Stefan Lucke

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

end of thread, other threads:[~2006-06-23  4:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 20:00 [linux-lvm] lvm1.0.8: vgcfgrestore does not seem to work Stefan Lucke
2006-06-23  4:59 ` Stefan Lucke

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).