Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question How to add unallocated space to a logical volume? using LVM

    Hello folks,

    This is how my 2 TB (GPT) hard disk looks like

    sda1       1 MiB Bios_boot
    sda2 1024 GB LVM --- vg1 1024 GB --- lv1     24 GB ext4
                                     --- lv2   1000 GB ext4
          800 GB unallocated
    sda3  200 GB ext4
    What is the safest or better way to add 512 GB to lv2 ?

    1. Resize sda2 to be 512 GB bigger with parted or gdisk and then pvresize, lvresize, resize2fs.
    2. Create a new partition in the unallocated space, initialize it as a new pv and add it to the vg, then lvresize, resize2fs.

    What's the best alternative? Are there performance penalties if the 2nd option is used?

    Thank you very much

  2. #2
    Linux Newbie hagfish52's Avatar
    Join Date
    Dec 2011
    Asheville, NC
    I think the best way to go would be to create a new partition and then add it to the LVM group 3.2.2.*Adding Unallocated Volumes to a Volume Group Shouldn't be any performance penalties.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts