linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] vgcfgbackup
@ 2000-05-23 15:29 Jan Niehusmann
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Niehusmann @ 2000-05-23 15:29 UTC (permalink / raw)
  To: linux-lvm

Sorry, I should have written the previous mail in english. 
I first wanted to send it directly to Michael, and forgot to
write english when I decided to send it to the list :-)

The patch is for vgcfgbackup, which doesn't preserve old backups.

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

* Re: [linux-lvm] vgcfgbackup
  2001-08-21 10:54 ` Ulrich Wiederhold
@ 2001-08-27 17:39   ` AJ Lewis
  0 siblings, 0 replies; 5+ messages in thread
From: AJ Lewis @ 2001-08-27 17:39 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

On Tue, Aug 21, 2001 at 12:54:48PM +0200, Ulrich Wiederhold wrote:
> Hi,
> once again...
> Fixed the problem using uuid_fixer.

Yeah!  uuid_fixer strikes again!

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Behind every good computer -- is a jumble of wires 'n stuff.
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] vgcfgbackup
  2001-08-20 22:43 Ulrich Wiederhold
@ 2001-08-21 10:54 ` Ulrich Wiederhold
  2001-08-27 17:39   ` AJ Lewis
  0 siblings, 1 reply; 5+ messages in thread
From: Ulrich Wiederhold @ 2001-08-21 10:54 UTC (permalink / raw)
  To: linux-lvm

Hi,
once again...
Fixed the problem using uuid_fixer.

Uli

-- 
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5

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

* [linux-lvm] vgcfgbackup
@ 2001-08-20 22:43 Ulrich Wiederhold
  2001-08-21 10:54 ` Ulrich Wiederhold
  0 siblings, 1 reply; 5+ messages in thread
From: Ulrich Wiederhold @ 2001-08-20 22:43 UTC (permalink / raw)
  To: linux-lvm

Hello,
looking for a solution in the mailinglist-archive I found something, so
I reinstalled an older lvm-version:
~ $ dpkg --list | grep lvm
ii  lvm-common     1.2            The Logical Volume Manager for Linux
ii  lvm10          0.9.1-final-1  The Logical Volume Manager for Linux

I did a 
home:# vgcfgrestore -l -n vg01
--- Volume group ---
VG Name               vg01
VG Access             read/write
VG Status             NOT available/resizable
VG #                  0
MAX LV                256
Cur LV                3
Open LV               0
MAX LV Size           255.99 GB
Max PV                256
Cur PV                5
Act PV                5
VG Size               49.15 GB
PE Size               4 MB
Total PE              12583
Alloc PE / Size       12583 / 49.15 GB
Free  PE / Size       0 / 0
VG UUID               p8KJS0-eei7-s10H-61hT-7uJS-Euiq-bXhlNs

And restored the vg01 using "vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/XXX"
for every pv I use, output is like
home:# vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/hda2
vgcfgrestore -- VGDA for "vg01" successfully restored to physical volume
"/dev/hda2"
vgcfgrestore -- you may not have an actual backup of restored volume
group "vg01"

What should I do now?
vgchange still won´t find a volume group, vgcfgbackup show this:
home:# vgcfgbackup -v vg01
vgcfgbackup -- using volume group(s) on command line
vgcfgbackup -- locking logical volume manager
vgcfgbackup -- checking volume group name "vg01"
vgcfgbackup -- checking existence of volume group "vg01"
vgcfgbackup -- ERROR: volume group "vg01" has an invalid number of
physical volumes
vgcfgbackup -- ERROR "vg_cfgbackup(): vg_check_exist" backing up volume
group vg01

and:
home:# pvscan          
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/sdb1" of VG "vg01" [8.51 GB / 0 free]
pvscan -- inactive PV "/dev/sdc1" of VG "vg01" [4.23 GB / 0 free]
pvscan -- inactive PV "/dev/hda2" of VG "vg01" [19.1 GB / 0 free]
pvscan -- inactive PV "/dev/hdb1" of VG "vg01" [7.87 GB / 0 free]
pvscan -- inactive PV "/dev/hdd1" of VG "vg01" [9.44 GB / 0 free]
pvscan -- total: 5 [49.17 GB] / in use: 5 [49.17 GB] / in no VG: 0 [0]

How can I continue?
Thanks for your hints.

Uli


P.S.: I haven´t written the last email to this list because I need an information about the meaning
of unstable.

-- 
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5

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

* [linux-lvm] vgcfgbackup
@ 2000-05-23 15:21 Jan Niehusmann
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Niehusmann @ 2000-05-23 15:21 UTC (permalink / raw)
  To: linux-lvm

vgcfgbackup macht bei mir immer nur ein Backup und beh�lt die �lteren
Versionen nicht. Folgender Patch scheint das zu beheben (relativ zu
0.8final)

--- 0.8final.orig/tools/lib/vg_cfgbackup.c	Tue Feb 22 03:09:32 2000
+++ 0.8final/tools/lib/vg_cfgbackup.c	Tue May 23 17:02:35 2000
@@ -366,7 +366,7 @@
       }
 
       /* VGDA backup history */
-      for ( i = vg_max_backups; i > 1; i--) {
+      for ( i = vg_max_backups; i >= 1; i--) {
          sprintf ( vg_backup_path_old2, "%s/%s.conf.%d.old%c",
                                         directory, vg_name, i, 0);
          if ( opt_v > 0) printf ( "%s -- checking for \"%s\"\n",

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

end of thread, other threads:[~2001-08-27 17:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-23 15:29 [linux-lvm] vgcfgbackup Jan Niehusmann
  -- strict thread matches above, loose matches on Subject: below --
2001-08-20 22:43 Ulrich Wiederhold
2001-08-21 10:54 ` Ulrich Wiederhold
2001-08-27 17:39   ` AJ Lewis
2000-05-23 15:21 Jan Niehusmann

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