Linux LVM users
 help / color / mirror / Atom feed
From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] restoring volume group from file
Date: Fri Apr 25 04:27:02 2003	[thread overview]
Message-ID: <20030425112124.B16006@sistina.com> (raw)
In-Reply-To: <20030424163942.GH12350@mit.edu>; from jwa@mit.edu on Thu, Apr 24, 2003 at 12:39:42PM -0400

James,

sounds like you had a problem with your LVs before you copied already,
which I assume was the reason to copy hde5 and run vgcfgrestore.

What does vgck (metadata checker) display ?

Maybe you have better luck with an older metadata backup from
/etc/lvmconf ?

On Thu, Apr 24, 2003 at 12:39:42PM -0400, James W Anderson wrote:
> 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
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.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                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2003-04-25  4:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-24 11:39 [linux-lvm] restoring volume group from file James W Anderson
2003-04-25  4:27 ` Heinz J . Mauelshagen [this message]
2003-04-26 15:16   ` James W Anderson
2003-04-28  3:55     ` Heinz J . Mauelshagen

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=20030425112124.B16006@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox