All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] restoring volume group from file
@ 2003-04-24 11:39 James W Anderson
  2003-04-25  4:27 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 4+ messages in thread
From: James W Anderson @ 2003-04-24 11:39 UTC (permalink / raw)
  To: linux-lvm

Hi,

I recently made a copy of an lvm partition to a file, using dd:

dd if=/dev/hde5 of=lvm-file bs=...

I would now like to mount this file, which contains a single volume
group, on a different machine.  Here is what I have done so far:

1) create a loopback device for the file

# losetup /dev/loop0 lvm-file

2) pvscan, detects the volume group

# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/loop0" of VG "vg00" [23.45 GB / 3.20 GB free]
pvscan -- total: 1 [23.46 GB] / in use: 1 [23.46 GB] / in no VG: 0 [0]

3) Now, when I try to do vgcfgrestore, I get the following error:

# vgcfgrestore -n vg00 -f vg00.conf -o /dev/hde5 /dev/loop0
vgcfgrestore -- size of physical volume /dev/loop0 differs from backup


I tried passing the -i option to tell it to ignore the size
difference, and then it did create the volume group, but all of the
logical volumes are unusable---e2fsck cannot find the superblocks on
the filesystems.

Does anyone have any suggestions as to what I might try to get this to
work?  Any help would be tremendously appreciated.

Many thanks,
James

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

end of thread, other threads:[~2003-04-28  3:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-24 11:39 [linux-lvm] restoring volume group from file James W Anderson
2003-04-25  4:27 ` Heinz J . Mauelshagen
2003-04-26 15:16   ` James W Anderson
2003-04-28  3:55     ` Heinz J . Mauelshagen

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.