Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36122

Cant boot after lvextend and resize2fs

$
0
0
Forum,

To free up enough space to upgrade to f18, I decided to shrink the swap space and extend the root:

swapoff -v /dev/vg_nk47/lv_swap
lvreduce /dev/vg_nk47/lv_swap -L 4096M
lvextend --size +4096M /dev/vg_nk47/lv_root
resize2fs

When booting up, I get the grub menu and then see the bootup feedback. Then it looks like it's trying to start the desktop, but I only get the busy icon on a blank screen. I figured f18 was still installing, so I let it spin all night. Nothing. The good news is if I bootup with a liveCD, I can still see all my data.

Anyone know how to resolve this?

Regards,
Noel

// original setup
Code:

# Generated by LVM2 version 2.02.95(2) (2012-03-06): Thu Dec  6 05:57:52 2012

contents = "Text Format Volume Group"
version = 1

description = "Created *before* executing 'vgchange -a y --sysinit'"

creation_host = "nk47"        # Linux nk47 3.3.4-5.fc17.x86_64 #1 SMP Mon May 7 17:29:34 UTC 2012 x86_64
creation_time = 1354802272        # Thu Dec  6 05:57:52 2012

vg_nk47 {
        id = "hLozuj-Zbze-DOQh-XzeU-OtwQ-qGlX-0VCTkT"
        seqno = 3
        format = "lvm2" # informational
        status = ["RESIZEABLE", "READ", "WRITE"]
        flags = []
        extent_size = 65536                # 32 Megabytes
        max_lv = 0
        max_pv = 0
        metadata_copies = 0

        physical_volumes {

                pv0 {
                        id = "zTWADU-rcJZ-Cnpk-9Cus-MOiY-OhrH-eqvDrz"
                        device = "/dev/sda2"        # Hint only

                        status = ["ALLOCATABLE"]
                        flags = []
                        dev_size = 38074368        # 18.1553 Gigabytes
                        pe_start = 2048
                        pe_count = 580        # 18.125 Gigabytes
                }
        }

        logical_volumes {

                lv_swap {
                        id = "erHbu1-n1Po-6qFN-RVQK-OtCl-a3Hz-aKrrG8"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        creation_host = "nk47"
                        creation_time = 1354801235        # 2012-12-06 05:40:35 -0800
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 290        # 9.0625 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 0
                                ]
                        }
                }

                lv_root {
                        id = "Yu8BmP-N1TS-gcL0-vuzc-TMI8-4lB6-2tbG8r"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        creation_host = "nk47"
                        creation_time = 1354801237        # 2012-12-06 05:40:37 -0800
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 290        # 9.0625 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 290
                                ]
                        }
                }
        }
}

//after
Code:

# Generated by LVM2 version 2.02.95(2) (2012-03-06): Thu Jan 17 04:49:02 2013

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing 'lvextend --size +4096M /dev/vg_nk47/lv_root'"

creation_host = "nk47"        # Linux nk47 3.6.11-1.fc17.x86_64 #1 SMP Mon Dec 17 22:16:35 UTC 2012 x86_64
creation_time = 1358426942        # Thu Jan 17 04:49:02 2013

vg_nk47 {
        id = "hLozuj-Zbze-DOQh-XzeU-OtwQ-qGlX-0VCTkT"
        seqno = 5
        format = "lvm2" # informational
        status = ["RESIZEABLE", "READ", "WRITE"]
        flags = []
        extent_size = 65536                # 32 Megabytes
        max_lv = 0
        max_pv = 0
        metadata_copies = 0

        physical_volumes {

                pv0 {
                        id = "zTWADU-rcJZ-Cnpk-9Cus-MOiY-OhrH-eqvDrz"
                        device = "/dev/sda2"        # Hint only

                        status = ["ALLOCATABLE"]
                        flags = []
                        dev_size = 38074368        # 18.1553 Gigabytes
                        pe_start = 2048
                        pe_count = 580        # 18.125 Gigabytes
                }
        }

        logical_volumes {

                lv_swap {
                        id = "erHbu1-n1Po-6qFN-RVQK-OtCl-a3Hz-aKrrG8"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        creation_host = "nk47"
                        creation_time = 1354801235        # 2012-12-06 05:40:35 -0800
                        segment_count = 1

                        segment1 {
                                start_extent = 0
                                extent_count = 128        # 4 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 0
                                ]
                        }
                }

                lv_root {
                        id = "Yu8BmP-N1TS-gcL0-vuzc-TMI8-4lB6-2tbG8r"
                        status = ["READ", "WRITE", "VISIBLE"]
                        flags = []
                        creation_host = "nk47"
                        creation_time = 1354801237        # 2012-12-06 05:40:37 -0800
                        segment_count = 2

                        segment1 {
                                start_extent = 0
                                extent_count = 290        # 9.0625 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 290
                                ]
                        }
                        segment2 {
                                start_extent = 290
                                extent_count = 128        # 4 Gigabytes

                                type = "striped"
                                stripe_count = 1        # linear

                                stripes = [
                                        "pv0", 128
                                ]
                        }
                }
        }
}


Viewing all articles
Browse latest Browse all 36122

Trending Articles