Find the answer to your Linux question:
Results 1 to 5 of 5

Thread: LVM Extension

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    LVM Extension

    I am adding disk space of 20GB on following Logical Volumes to get 40GB and 100GB resp. Can anyone please guide how to proceed with this initially by how to detect this added space and the extend the LV.

    # fdisk -l

    Disk /dev/sda: 42.9 GB, 42949672960 bytes
    255 heads, 63 sectors/track, 5221 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 2610 20860402+ 8e Linux LVM

    Disk /dev/sdb: 85.8 GB, 85899345920 bytes
    255 heads, 63 sectors/track, 10443 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 10443 83883366 8e Linux LVM

    Thank you

  2. #2
    Linux Newbie
    Join Date
    Jan 2012
    You will need to create partitions for the newly created space and then join the newly created partition to the volume group using the vgextend command. This needs to be done on unmounted volumes, so I tend to do this with a live CD

  3. #3
    Linux Engineer
    Join Date
    Jan 2005
    Saint Paul, MN
    See the howto at LVM HOWTO

  4. $spacer_open
  5. #4
    Hi Riseup,
    Are you able to simply reboot your server to discover the new disks? If not you can try the following command,
    echo "- - -" > /sys/class/scsi_host/host0/scan

    You may need to replace 'host0' with your relevant HBA name. This should re-scan your bus for any newly added drives.

    You can the use parted to create a new LVM partition on the newly discovered disk. Parted is very straight forward to use.

    You will then use pvcreate, vgextend and lvextend to add it to an existing LV.

    Hope this helps.

  6. #5
    go through this site
    www dot howtoforge dot com /linux_lvm this is awesome. I hope this could help to solve extending hard disk space.
    And there is PartedMagic tool which is a GUI based tool. I am not sure how to use that. But we tried using in Virtual Machines. It is also awesome tool.

Posting Permissions

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