Re: [linux-lvm] problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now this is interesting.  I noticed that when I dumped the config, and
look at it, one of the (largest) pv's isn't showing up at all.  I also
don't see a way to for vgcfgbackup to pull from a specific physical
device, so not sure how I can 'force' it to see the other lvm
partition.  This is what I have now, but partition /dev/hdb1 is not
showing up.  These are 2 partitions I used to move extents from failing
to disk before it completely died.  I'm guessing this is why it doesn't
see the rest of the VG, very little right now isn't listed as "missing"
even those /dev/hdb1 is there, but vgscan doesn't seem to see it.
                
		pv0 {
                        id = "YnfiRa-QnzV-Llio-quX6-UrHQ-WuCl-RiwZWd"
                        device = "/dev/hda7"    # Hint only

                        status = ["ALLOCATABLE"]
                        pe_start = 8576
                        pe_count = 373  # 1.45703 Gigabytes
                }

                pv1 {
                        id = "qFNI3x-yIgQ-Lqco-PDNN-djJ4-UiWw-szmJiW"
                        device = "/dev/hda8"    # Hint only

                        status = ["ALLOCATABLE"]
                        pe_start = 8576
                        pe_count = 444  # 1.73438 Gigabytes
                }

Thanks again for all the help...definitely won't be using this across
disks not on RAID anymore...

Dan

On Wed, 2003-01-08 at 17:10, Alasdair G Kergon wrote:
> Procedure to follow:
>   
>    vgcfgbackup -P -f /tmp/vgbackup rootvg
> 
>    Edit the backup file as follows:
>    Add "WRITE" to the status line and remove "PARTIAL"
> 
> e.g.
>    status = ["RESIZEABLE", "PARTIAL", "READ"]
> becomes
>    status = ["RESIZEABLE", "READ", "WRITE"]
> 
> 
> Remove the whole PV section for your "unknown device"
> - referenced as "pv1" in this example.
> 
>                 pv1 {
>                         id = "TBCgjx-ne5X-4fHP-aHqe-dKJR-Vwnb-kjDhWQ"
>                         device = "unknown device"       # Hint only
> 
>                         status = ["ALLOCATABLE"]
>                         pe_start = 128
>                         pe_count = 5    # 20 Megabytes
>                 }
> 
> 
> Remove the whole LV section for any LVs that refer to the pv you
> removed above (pv1 here referenced inside "stripes") e.g.
> 
>                 tmp {
>                         id = "4eTLYv-PTDr-FXvv-58Xk-Q4Th-p8yi-GeKCHr"
>                         status = ["READ", "WRITE", "VISIBLE"]
>                         segment_count = 1
> 
>                         segment1 {
>                                 start_extent = 0
>                                 extent_count = 3        # 12 Megabytes
> 
>                                 type = "striped"
>                                 stripe_count = 1        # linear
> 
>                                 stripes = [
>                                         "pv1", 0
>                                 ]
>                         }
>                 }
> 
> Write the metadata back to disk:
>   vgcfgrestore -f /tmp/vgbackup rootvg
> 
> Alasdair
-- 
===========================
Daniel Wittenberg
Senior Unix Admin
University of Iowa - ITS


_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux