On 10/28/2014 01:25 PM, reynie...@gmail.com wrote:

Ok, I attached the file here but also will be nice to extend the LVM so it
can grow up until not empty space leave.

The attachment didn't come through, but I can use the file that you posted
before.  The PV you have is completely used, but restoring this configuration
should get you back to a state where you can try again to extend the VG to
a new PV.  You can do _all_ of that online -- no need to resort to a live
CD.  And this time, don't remove or overwrite that new PV until you have
successfully purged it from the LVM structure.

Updated file attached as LVMconfig.new .  All I have done is comment out
two blocks of lines referring to "pv1" and change the segment count to "1"
for lv_root.  You will need to run

    vgcfgrestore -v --file LVMconfig.new vg_devserver

You might want to try it first including the "--test" option to see what
it is going to do.

--
Bob Nichols     "NOSPAM" is really part of my email address.
                Do NOT delete it.
# Generated by LVM2 version 2.02.100(2)-RHEL6 (2013-10-23): Mon Oct 20
15:27:17 2014

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing 'vgreduce --removemissing
vg_devserver'"

creation_host = "localhost"     # Linux localhost
2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64
creation_time = 1413835037      # Mon Oct 20 15:27:17 2014

vg_devserver {
        id = "VidRBE-37ri-HYfd-Sd1x-6lZX-ph9I-F3wvCG"
        seqno = 6
        format = "lvm2" # informational
        status = ["RESIZEABLE", "READ", "WRITE"]
        flags = []
        extent_size = 8192              # 4 Megabytes
        max_lv = 0
        max_pv = 0
        metadata_copies = 0

        physical_volumes {

                pv0 {
                        id = "ij17Vf-kY56-jfg0-j769-Z1E5-Nk7C-RqYG18"
                        device = "/dev/sda2"    # Hint only

                        status = ["ALLOCATABLE"]
                        flags = []
                        dev_size = 61888512     # 29.5107 Gigabytes
                        pe_start = 2048
                        pe_count = 7554 # 29.5078 Gigabytes
                }

#               pv1 {
#                       id = "vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS"
#                       device = "unknown device"       # Hint only
#
#                       status = ["ALLOCATABLE"]
#                       flags = ["MISSING"]
#                       dev_size = 62906520     # 29.9962 Gigabytes
#                       pe_start = 2048
#                       pe_count = 7678 # 29.9922 Gigabytes
#               }
        }

        logical_volumes {

                lv_root {
                        id = "Ee2apF-rS1m-7Xny-4XYk-u2ZM-lMp7-IBQPnL"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        creation_host = "devserver"
                        creation_time = 1361816267      # 2013-02-25
13:47:47 -0430
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 6554     # 25.6016 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 0
                                ]
                        }
#                       segment2 {
#                               start_extent = 6554
#                               extent_count = 8        # 32 Megabytes
#
#                               type = "striped"
#                               stripe_count = 1        # linear
#
#                               stripes = [
#                                       "pv1", 0
#                               ]
#                       }
                }

                lv_swap {
                        id = "hW0BAn-BzE4-aHXm-b18h-8rg0-JyBS-ycbOVd"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        creation_host = "devserver"
                        creation_time = 1361816271      # 2013-02-25
13:47:51 -0430
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 1000     # 3.90625 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 6554
                                ]
                        }
                }
        }
}
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to