<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hello, I am trying this list as I wasn't able to get much assistance on another lace.</div><div dir="ltr"><br></div><div dir="ltr">We had a LVM made up of 4 disks and lost a drive.  I pulled the drive and replaced it and then tried to repair but then when I tried to recover it, it turned out it was a striped volume. (Its not my server! Never thought they would put the data on a striped volume). <div><br></div><div>So I returned the original drive back into the same slot to see if there was a way to recover the data. </div><div><br></div><div>This is lvm2 2.02.95-8</div><div><div><br></div><div>The drive that failed was /dev/sdc. When I put in back in it magically started working. I want to see if its possible to try to recover the data because all the drives are actually still in the exact same slots.  The main issue is it is not finding the logical volume anymore.</div><div><div><br></div><div>Any help appreciated.</div><div><br></div><div>AB</div><span class=""><font color="#888888"><div><br></div><div><br></div></font></span></div><div><br></div><div>Below are  my logs. </div><div><br></div><div><div>/# pvscan -v</div><div>    Wiping cache of LVM-capable devices</div><div>    Wiping internal VG cache</div><div>    Walking through all physical volumes</div><div>  PV /dev/sdb   VG data   lvm2 [465.76 GiB / 465.76 GiB free]</div><div>  PV /dev/sdd   VG data   lvm2 [465.76 GiB / 465.76 GiB free]</div><div>  PV /dev/sde   VG data   lvm2 [465.76 GiB / 465.76 GiB free]</div><div>  PV /dev/sdf   VG data   lvm2 [465.76 GiB / 465.76 GiB free]</div><div>  PV /dev/sdc   VG data   lvm2 [465.76 GiB / 465.76 GiB free]</div><div>  Total: 5 [2.27 TiB] / in use: 5 [2.27 TiB] / in no VG: 0 [0   ]</div></div><div><br></div><div><br></div><div><div>:/# vgscan -v</div><div>    Wiping cache of LVM-capable devices</div><div>    Wiping internal VG cache</div><div>  Reading all physical volumes.  This may take a while...</div><div>    Finding all volume groups</div><div>    Finding volume group "data"</div><div>  Found volume group "data" using metadata type lvm2</div></div><div><br></div><div><br></div><div><div>/# lvscan -v</div><div>    Finding all logical volumes</div></div><div><br></div><div>I have a file in the archive folder /etc/lvm/archive that is from the morning before I ran "vgreduce --removemissing --force data"<br></div><div><br></div><div>Is there any way to restore the metadata? Below is the contents of archive file.</div><div><br></div><div><div># Generated by LVM2 version 2.02.95(2) (2012-03-06): Thu Oct 22 09:44:12 2015</div><div><br></div><div>contents = "Text Format Volume Group"</div><div>version = 1</div><div><br></div><div>description = "Created *before* executing 'vgreduce --removemissing --force data'"</div><div><br></div><div>creation_host = "" # Linux  3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u5 x86_64</div><div>creation_time = 1445521452      # Thu Oct 22 09:44:12 2015</div><div><br></div><div>data {</div><div>        id = "0UcXlh-1lXG-udrp-T6QJ-fqMt-G5mz-mgpLmN"</div><div>        seqno = 6</div><div>        format = "lvm2" # informational</div><div>        status = ["RESIZEABLE", "READ", "WRITE"]</div><div>        flags = []</div><div>        extent_size = 8192              # 4 Megabytes</div><div>        max_lv = 0</div><div>        max_pv = 0</div><div>        metadata_copies = 0</div><div><br></div><div>        physical_volumes {</div><div><br></div><div>                pv0 {</div><div>                        id = "mKQGfL-Fs0C-bRIv-rcKT-jbWs-7olM-R2VCCw"</div><div>                        device = "/dev/sdb"     # Hint only</div><div><br></div><div>                        status = ["ALLOCATABLE"]</div><div>                        flags = []</div><div>                        dev_size = 976773168    # 465.762 Gigabytes</div><div>                        pe_start = 384</div><div>                        pe_count = 119234       # 465.758 Gigabytes</div><div>                }</div><div><br></div><div>                pv1 {</div><div>                        id = "KLL51K-SwV9-6VU6-9ulL-DOJy-L9uJ-T5k43a"</div><div>                        device = "unknown device"       # Hint only</div><div><br></div><div>                        status = ["ALLOCATABLE"]</div><div>                        flags = ["MISSING"]</div><div>                        dev_size = 976773168    # 465.762 Gigabytes</div><div>                        pe_start = 384</div><div>                        pe_count = 119234       # 465.758 Gigabytes</div><div>                }</div><div><br></div><div>                pv2 {</div><div>                        id = "98S7nn-R4sG-OMBc-HR9Y-kHPM-Du8q-ZBNJ3c"</div><div>                        device = "/dev/sdd"     # Hint only</div><div><div>                        dev_size = 976773168    # 465.762 Gigabytes</div><div>                        pe_start = 384</div><div>                        pe_count = 119234       # 465.758 Gigabytes</div><div>                }</div><div><br></div><div>                pv3 {</div><div>                        id = "d1CHzd-91uQ-7c0X-XA02-0Tlh-bBtv-rusTsj"</div><div>                        device = "/dev/sde"     # Hint only</div><div><br></div><div>                        status = ["ALLOCATABLE"]</div><div>                        flags = []</div><div>                        dev_size = 976773168    # 465.762 Gigabytes</div><div>                        pe_start = 384</div><div>                        pe_count = 119234       # 465.758 Gigabytes</div><div>                }</div><div><br></div><div>                pv4 {</div><div>                        id = "vK0cGK-zz71-rpGC-IcP3-gsKU-EHjx-fY70SB"</div><div>                        device = "/dev/sdf"     # Hint only</div><div><br></div><div>                        status = ["ALLOCATABLE"]</div><div>                        flags = []</div><div>                        dev_size = 976773168    # 465.762 Gigabytes</div><div>                        pe_start = 384</div><div>                        pe_count = 119234       # 465.758 Gigabytes</div><div>                }</div><div>        }</div><div><br></div><div>        logical_volumes {</div><div><br></div><div>                home {</div><div>                        id = "DM6HzG-mgeC-Hj4M-MyKk-k8UT-ZjHU-t74qTe"</div><div>                        status = ["READ", "WRITE", "VISIBLE"]</div><div>                        flags = []</div><div>                        segment_count = 5</div><div><br></div><div>                        segment1 {</div><div>                                start_extent = 0</div><div>                                extent_count = 119234   # 465.758 Gigabytes</div><div><br></div><div>                                type = "striped"</div><div>                                stripe_count = 1        # linear</div><div><br></div><div>                                stripes = [</div><div>                                        "pv0", 0</div><div>                                ]</div><div>                        }</div><div>                        segment2 {</div><div>                                start_extent = 119234</div><div>                                extent_count = 119234   # 465.758 Gigabytes</div><div><div>                                type = "striped"</div><div>                                stripe_count = 1        # linear</div><div><br></div><div>                                stripes = [</div><div>                                        "pv1", 0</div><div>                                ]</div><div>                        }</div><div>                        segment3 {</div><div>                                start_extent = 238468</div><div>                                extent_count = 119234   # 465.758 Gigabytes</div><div><br></div><div>                                type = "striped"</div><div>                                stripe_count = 1        # linear</div><div><br></div><div>                                stripes = [</div><div>                                        "pv2", 0</div><div>                                ]</div><div>                        }</div><div>                        segment4 {</div><div>                                start_extent = 357702</div><div>                                extent_count = 119234   # 465.758 Gigabytes</div><div><br></div><div>                                type = "striped"</div><div>                                stripe_count = 1        # linear</div><div><br></div><div>                                stripes = [</div><div>                                        "pv3", 0</div><div>                                ]</div><div>                        }</div><div>                        segment5 {</div><div>                                start_extent = 476936</div><div>                                extent_count = 118131   # 461.449 Gigabytes</div><div><br></div><div>                                type = "striped"</div><div>                                stripe_count = 1        # linear</div><div><br></div><div>                                stripes = [</div><div>                                        "pv4", 0</div><div>                                ]</div><div>                        }</div><div>                }</div><div>        }</div><div>}</div></div></div></div><div>---</div><div><br></div><div><br></div><div><br></div><div><br></div></div><span class=""><font color="#888888"><div><br></div><div><br></div></font></span></div>
</div><br></div>