Announcement

Collapse
No announcement yet.

Default Kubuntu 13.10 LVM install - LV partition "Allocatable yes [but full]"

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Default Kubuntu 13.10 LVM install - LV partition "Allocatable yes [but full]"

    Hi,
    Just did the default LVM install of 13.10. Realized after the fact that the second hard drive was not automatically added to the LV. It was NTFS formatted(this was previously a windows box).

    Reformatted second hard disk in gparted and then added to LV:
    Code:
    sudo vgextend kubuntu-vg /dev/sdb1
    However, after adding it I noticed that the original partition assigned to the LV has not assigned any free space.
    Code:
    $ sudo pvdisplay
      --- Physical volume ---
      PV Name               /dev/sda5
      VG Name               kubuntu-vg
      PV Size               148.81 GiB / not usable 2.00 MiB
      Allocatable           yes (but full)
      PE Size               4.00 MiB
      Total PE              38095
      Free PE               0
      Allocated PE          38095
      PV UUID               MdozMl-ocRw-tGAB-zd4p-86ag-PxGI-HTnvff
       
      --- Physical volume ---
      PV Name               /dev/sdb1
      VG Name               kubuntu-vg
      PV Size               149.05 GiB / not usable 1.31 MiB
      Allocatable           yes 
      PE Size               4.00 MiB
      Total PE              38156
      Free PE               38156
      Allocated PE          0
      PV UUID               8f46t3-ISYf-PtxL-qCCn-XHB4-ZJRW-wJ7Flq
       
    $ sudo vgdisplay
      --- Volume group ---
      VG Name               kubuntu-vg
      System ID             
      Format                lvm2
      Metadata Areas        2
      Metadata Sequence No  4
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                2
      Open LV               2
      Max PV                0
      Cur PV                2
      Act PV                2
      VG Size               297.86 GiB
      PE Size               4.00 MiB
      Total PE              76251
      Alloc PE / Size       38095 / 148.81 GiB
      Free  PE / Size       38156 / 149.05 GiB
      VG UUID               IAWz0E-Hece-FsaG-ydfE-00ae-fP3o-XQm0o
    Can anyone help me with why the partition /dev/sda5 is shown as allocated but full? Any how to fix it? The was the result of a default install...
    Last edited by brendan; Mar 19, 2014, 09:00 AM. Reason: typo

    #2
    ext4? From the LVM manual:

    On the other hand, if a system is partitioned with the ext4 file system, the hard drive is divided into partitions of defined sizes. If a partition becomes full, it is not easy to expand the size of the partition. Even if the partition is moved to another hard drive, the original hard drive space has to be reallocated as a different partition or not used.
    Later docs say it can be done. What happens when you do lvextend ?

    Please Read Me

    Comment


      #3
      Looks like you have to follow it with fsadm resize to grow it while online.

      Please Read Me

      Comment


        #4
        Code:
        $ sudo lvextend -L +140G kubuntu-vg /dev/sda5  Path required for Logical Volume "kubuntu-vg"
          Please provide a volume group name
          Run `lvextend --help' for more information.
        and

        Code:
        $ sudo fsadm resize /dev/kubuntu-vg 140G
        fsadm: Cannot get FSTYPE of "/dev/kubuntu-vg"
        Last edited by brendan; Mar 19, 2014, 10:18 AM. Reason: typos

        Comment


          #5
          what's the output of vgdisplay -v

          Please Read Me

          Comment


            #6
            Code:
            $ sudo vgdisplay -v    Finding all volume groups
                Finding volume group "kubuntu-vg"
              --- Volume group ---
              VG Name               kubuntu-vg
              System ID             
              Format                lvm2
              Metadata Areas        2
              Metadata Sequence No  4
              VG Access             read/write
              VG Status             resizable
              MAX LV                0
              Cur LV                2
              Open LV               2
              Max PV                0
              Cur PV                2
              Act PV                2
              VG Size               297.86 GiB
              PE Size               4.00 MiB
              Total PE              76251
              Alloc PE / Size       38095 / 148.81 GiB
              Free  PE / Size       38156 / 149.05 GiB
              VG UUID               IAWz0E-Hece-FsaG-ydfE-00ae-fP3o-XQm0oE
               
              --- Logical volume ---
              LV Path                /dev/kubuntu-vg/root
              LV Name                root
              VG Name                kubuntu-vg
              LV UUID                FlgvS7-Refz-7Rme-gxl7-bcxG-VQR3-I5hdmV
              LV Write Access        read/write
              LV Creation host, time kubuntu, 2014-03-19 05:44:00 -0300
              LV Status              available
              # open                 1
              LV Size                144.82 GiB
              Current LE             37075
              Segments               1
              Allocation             inherit
              Read ahead sectors     auto
              - currently set to     256
              Block device           252:0
               
              --- Logical volume ---
              LV Path                /dev/kubuntu-vg/swap_1
              LV Name                swap_1
              VG Name                kubuntu-vg
              LV UUID                eF5n5n-mr1J-ZjF0-aqHO-hJSM-VEHD-YjCLMa
              LV Write Access        read/write
              LV Creation host, time kubuntu, 2014-03-19 05:44:00 -0300
              LV Status              available
              # open                 2
              LV Size                3.98 GiB
              Current LE             1020
              Segments               1
              Allocation             inherit
              Read ahead sectors     auto
              - currently set to     256
              Block device           252:1
               
              --- Physical volumes ---
              PV Name               /dev/sda5     
              PV UUID               MdozMl-ocRw-tGAB-zd4p-86ag-PxGI-HTnvff
              PV Status             allocatable
              Total PE / Free PE    38095 / 0
               
              PV Name               /dev/sdb1     
              PV UUID               8f46t3-ISYf-PtxL-qCCn-XHB4-ZJRW-wJ7Flq
              PV Status             allocatable
              Total PE / Free PE    38156 / 38156
            Wonder if I should just reinstall without LVM and manually create my LV afterwards...

            Comment


              #7
              It seems to me you're trying to expand the physical device - which you can't do. You want to expand the logical volume.

              Shouldn't you be doing this?

              sudo lvextend -L +140G kubuntu-vg /dev/kubuntu-vg/root

              Please Read Me

              Comment


                #8
                Thanks for the help, but I already decided to reinstall, which has led to other problems, and a new thread.

                Comment

                Working...
                X