[linux-lvm] rescuing a VG with one missing PV

Heinz J . Mauelshagen mauelshagen at sistina.com
Tue Feb 12 03:24:02 UTC 2002


On Mon, Feb 11, 2002 at 10:53:25PM +0200, Erkki Seppala wrote:
> The drive I got was two gigabytes smaller than the original, and thus:
> 
> [21:42] lectric(pts/8):~# vgcfgrestore -n archive /dev/ide/host0/bus0/target1/lun0/part1
> vgcfgrestore -- size of physical volume /dev/ide/host0/bus0/target1/lun0/part1 differs from backup
> 
> The original disc was:
> 
>   PVs: [AN] ide/host0/bus0/target1/lun0/part1 60030976 /3664    
> 		21331968 /1302    38699008/2362  
> 
> and it now is 58633312 blocks according to fdisk.

Change your partition to have the very same size as before and vgcfgrestore.

> 
> Is there a way to still restore the remaining VG?-o Sounds like the
> backup would need to be modified. The physical extents that were in
> the dead device would need to be either removed from the VG or
> allocated from another device?
> -- 
>   _____________________________________________________________________
>      / __// /__ ____  __                              Erkki Seppälä\   \
>     / /_ / // // /\ \/ //ircnet                           Modeemi Ry\  /
>    /_/  /_/ \___/ /_/\_\@modeemi.fi        http://www.modeemi.fi/~flux/
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

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 at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the linux-lvm mailing list