From: Patrick Boutilier <boutilpj@ednet.ns.ca>
To: LVM Mailing List <linux-lvm@msede.com>
Subject: Re: [linux-lvm] vgcfgrestore
Date: Mon, 17 Apr 2000 12:13:02 -0300 [thread overview]
Message-ID: <38FB29FE.7017CB71@ednet.ns.ca> (raw)
In-Reply-To: 38F4AF07.7136C51@ednet.ns.ca
I will answer my own questions just in case somebody is searching through
the archives for answers to similar problems.
Patrick Boutilier wrote:
> Hello,
>
> Looks like I am going to have to resort to using vgcfgrestore as I get
> the following error running vgscan:
>
> vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- scanning for all active volume group(s) first
> vgscan -- found active volume group "data_vg"
> vgscan -- reading data of volume group "data_vg" from physical volume(s)
>
> vgscan -- ERROR -364: can't get data of volume group "data_vg" from
> physical volume(s)
> vgscan -- ERROR -364 creating "/etc/lvmtab" and "/etc/lvmtab.d"
>
> I assume with an error like that there is no way I am going to be able
> to activate my logical volumes on the next reboot?
>
I will answer my own questions just in case somebody is searching through
the archives for answers to similar problems.
>
> Also I haven't seen anywhere where it says that the logical volumes and
> volume group must be offline when running vgcfgrestore other than this
> piece at the end of the vgcfgrestore man page:
>
> vgcfgrestore returns an exit state of 0 for success and > 0 for error:
>
> 1 no physical volume on command line
> 2 invalid physical volume name
> 3 volume grou is active
> ......
>
> So I will ask the question. Can vgcfgrestore be run on active logical
> volumes and volume groups?
As I thought the volume group did have to be inactive. One note though. I
could not successfully run vgcfgrestore in single user mode. I kept
getting an error (which I didn't write down) until I went to run level 3
without
activating my volume group. Good news is that the restore worked and vgscan
now runs properly.
next prev parent reply other threads:[~2000-04-17 15:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-12 17:14 [linux-lvm] vgcfgrestore Patrick Boutilier
2000-04-17 15:13 ` Patrick Boutilier [this message]
2000-04-17 17:18 ` Patrick Boutilier
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=38FB29FE.7017CB71@ednet.ns.ca \
--to=boutilpj@ednet.ns.ca \
--cc=linux-lvm@msede.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.