* [linux-lvm] vgscan vs vgcfgrestore
@ 2004-08-18 2:53 Rob Schwartz
2004-08-23 13:42 ` Heinz Mauelshagen
0 siblings, 1 reply; 2+ messages in thread
From: Rob Schwartz @ 2004-08-18 2:53 UTC (permalink / raw)
To: Linux-LVM
[-- Attachment #1: Type: text/plain, Size: 1287 bytes --]
Hello Heinz,
Forgive me for writing in English. As I come from the United States I am embarassingly uni-lingual. I have been working with LVM for several months now and finally have had the opportunity to get into the guts of the lvm configuration. I am preparing myself for the situation where my LVM environment gets corrupted in some manner. Actually, last week I encountered a problem with LVM and was unable to quickly recover so I ended up simply rebuilding the LVM PV's, VG's and LV's and restoring data. Fortunately, it was an easy restore. I have been comparing the vgscan utility with vgcfgrestore. In a test environment I have deleted the /etc/lvm* stuff and even deleted the /dev/lvm* stuff and successfully recovered the VG and LV by simply doing a vgscan. Whew... nice... I understand vgcfgbackup and vgcfgrestore but am not sure when I would need to use the configuration backup. The VGDA as I understand it is stored on the PV's. If I have the PV's intact I therefore have the VGDA and hence am able to recover using vgscan. When would I need to use vgcfgrestore? I have found much information on LVM on the web but nothing that really pinpoints my question. If there is something out there that I can refer to, please tell me.
Regards,
Rob
[-- Attachment #2: Type: text/html, Size: 1922 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] vgscan vs vgcfgrestore
2004-08-18 2:53 [linux-lvm] vgscan vs vgcfgrestore Rob Schwartz
@ 2004-08-23 13:42 ` Heinz Mauelshagen
0 siblings, 0 replies; 2+ messages in thread
From: Heinz Mauelshagen @ 2004-08-23 13:42 UTC (permalink / raw)
To: LVM general discussion and development
On Tue, Aug 17, 2004 at 10:53:48PM -0400, Rob Schwartz wrote:
> Hello Heinz,
>
> Forgive me for writing in English. As I come from the United States I am embarassingly uni-lingual. I have been working with LVM for several months now and finally have had the opportunity to get into the guts of the lvm configuration. I am preparing myself for the situation where my LVM environment gets corrupted in some manner. Actually, last week I encountered a problem with LVM and was unable to quickly recover so I ended up simply rebuilding the LVM PV's, VG's and LV's and restoring data. Fortunately, it was an easy restore. I have been comparing the vgscan utility with vgcfgrestore. In a test environment I have deleted the /etc/lvm* stuff and even deleted the /dev/lvm* stuff and successfully recovered the VG and LV by simply doing a vgscan.
Yes, vgscan's task is to discover any PVs, retrieve the LVM metadata, store
it in /etc/lvmtab* and created devnodes for access to the VGs/LVs.
> Whew... nice... I understand vgcfgbackup and vgcfgrestore but am not sure when I would need to use the configuration backup. The VGDA as I understand it is stored on the PV's. If I have the PV's intact I therefore have the VGDA and hence am able to recover using vgscan. When would I need to use vgcfgrestore?
You indirectly answered your onw question ;)
You need vgcfgrestor, when the metadata on the PVs is *not* intact (eg,
accidential overwrite or starnge crash). and vgscan fails to discover
your VG(s).
> I have found much information on LVM on the web but nothing that really pinpoints my question. If there is something out there that I can refer to, please tell me.
Have you referenced the LVM-HOWTO yet (URL below) ?
>
> Regards,
> Rob
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-23 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-18 2:53 [linux-lvm] vgscan vs vgcfgrestore Rob Schwartz
2004-08-23 13:42 ` Heinz Mauelshagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox