From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] vgcfgrestore error !
Date: Mon Nov 19 06:02:01 2001 [thread overview]
Message-ID: <20011119125632.A12388@sistina.com> (raw)
In-Reply-To: <3BF8E5DE.ABAEB618@LTUtech.com>; from Igor.Dumaire@LTUtech.com on Mon, Nov 19, 2001 at 11:58:38AM +0100
Igor,
you need to figure out, which Physical Volumes (PVs) belong to your VG lvm1
by running 'vgcfgrestore -ll -n lvm1'. Please check for the PV list at
the end of the output.
Then restore the LVM metadata by running 'vgcfgrestore -n lvm1 /dev/hdWhatever`
on every of those.
Afterwards run 'vgscan;vgchange -ay lvm1', which should revive lvm1.
What error happend in the first place causing lvm1 to disapear?
Do you use recent LVM software?
Regards,
Heinz -- The LVM Guy --
On Mon, Nov 19, 2001 at 11:58:38AM +0100, Igor Dumaire wrote:
> Hi,
>
> After a reboot I have lost a volume (/dev/lvm1) but not an other (/dev/lvm2)
> (vgscan doesn't see lvm1 !)
>
> I am trying to restore it, using vgcfgrestore, but I have the message below :
>
> # vgcfgrestore -n lvm1 /dev/lvm1
> vgcfgrestore -- can't restore part of active volume group "lvm1"
> vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
> [-n|--name VolumeGroupName] [-h|--help]
> [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
> [--version] [PhysicalVolumePath]
>
> # vgcfgrestore -n lvm1 /dev/lvmOLD
> vgcfgrestore -- invalid physical volume "/dev/lvmOLD"
> vgcfgrestore [-d|--debug] [-f|--file VGConfPath] [-l[l]|--list [--list]]
> [-n|--name VolumeGroupName] [-h|--help]
> [-o|--oldpath OldPhysicalVolumePath] [-t|--test] [-v|--verbose]
> [--version] [PhysicalVolumePath]
>
> WHY this message !
> What do I do ?
>
> # lvmdiskscan
> lvmdiskscan -- reading all disks / partitions (this may take a while...)
> lvmdiskscan -- /dev/hda1 [ 70.57 MB] Primary LINUX native partition [0x83]
> lvmdiskscan -- /dev/hda2 [ 19.07 GB] DOS extended partition [0x05]
> lvmdiskscan -- /dev/hda5 [ 2.01 GB] Extended LINUX native partition [0x83]
> lvmdiskscan -- /dev/hda6 [ 1.00 GB] Extended LINUX native partition [0x83]
> lvmdiskscan -- /dev/hda7 [ 1.00 GB] Extended LINUX native partition [0x83]
> lvmdiskscan -- /dev/hda8 [ 517.69 MB] Extended LINUX native partition [0x83]
> lvmdiskscan -- /dev/hda9 [ 14.55 GB] Extended LINUX native partition [0x83]
> lvmdiskscan -- /dev/hdc1 [ 57.27 GB] Primary LVM partition [0x8E]
> lvmdiskscan -- /dev/hdd1 [ 57.27 GB] Primary LVM partition [0x8E]
> lvmdiskscan -- /dev/hde1 [ 57.27 GB] Primary LVM partition [0x8E]
> lvmdiskscan -- /dev/hdf1 [ 57.27 GB] Primary LVM partition [0x8E]
> lvmdiskscan -- /dev/hdg1 [ 57.27 GB] Primary LVM partition [0x8E]
> lvmdiskscan -- /dev/hdh1 [ 57.27 GB] Primary LVM partition [0x8E]
> lvmdiskscan -- 7 disks
> lvmdiskscan -- 0 whole disks
> lvmdiskscan -- 0 loop devices
> lvmdiskscan -- 0 multiple devices
> lvmdiskscan -- 0 network block devices
> lvmdiskscan -- 13 partitions
> lvmdiskscan -- 6 LVM physical volume partitions
>
> # vgdisplay
> --- Volume group ---
> VG Name lvm2
> VG Access read/write
> VG Status available/resizable
> VG # 0
> MAX LV 255
> Cur LV 1
> Open LV 1
> MAX LV Size 255.99 GB
> Max PV 255
> Cur PV 3
> Act PV 3
> VG Size 171.79 GB
> PE Size 4.00 MB
> Total PE 43977
> Alloc PE / Size 43776 / 171.00 GB
> Free PE / Size 201 / 804.00 MB
> VG UUID Jp3gDv-ib7D-p5te-FFLZ-lNjI-5brK-fzjEM6
>
> # vgdisplay lvm1
> vgdisplay -- volume group "lvm1" not found
>
>
> Thanks for your help.
>
> --
> Igor Dumaire
>
> www.LTUtech.com - Making Sense of Visual Content
> ------------------------------------------------
>
> _______________________________________________
> 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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2001-11-19 6:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-19 4:57 [linux-lvm] vgcfgrestore error ! Igor Dumaire
2001-11-19 6:02 ` Heinz J . Mauelshagen [this message]
2001-11-19 6:12 ` Igor Dumaire
2001-11-19 6:17 ` Igor Dumaire
2001-11-19 8:23 ` Heinz J . Mauelshagen
2001-11-19 9:21 ` Igor Dumaire
2001-11-20 5:25 ` Heinz J . Mauelshagen
2001-11-20 5:40 ` Igor Dumaire
2001-11-23 7:41 ` Heinz J . Mauelshagen
2001-11-20 12:54 ` Igor Dumaire
2001-11-20 13:24 ` Igor Dumaire
2001-11-20 12:40 ` Sébastien Riccio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011119125632.A12388@sistina.com \
--to=mauelshagen@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.