vSphere Storage Appliance

 View Only
  • 1.  Increasing disk on redhat vitual machine

    Posted Aug 10, 2011 07:08 PM

    Hello,

    I have a redhat 5 vitual machine with lvm. I have increased the disk size in edit settings, but when i try to extend the lv by lvextend it does not see added disk.

    fdisk -l shows the added disk but pvdisplay, vgdiaply and hence lvdisplay does not. How can disk be increased in a linux virtual machine?

    Thanks



  • 2.  RE: Increasing disk on redhat vitual machine

    Posted Aug 11, 2011 10:18 AM

    You need to create a new partition on that free space.

    Let's assume you expanded drive /dev/sda and you have three partitions on that drive /dev/sda1-sda3, create /dev/sda4 (you may have to reboot after doing so).

    1. Create a physical volume for that partition: pvcreate /dev/sda4
    2. Add that volume to the volume group with vgextend: vgextend <Your Volume Group> /dev/sda4
    3. Expand the logical volume with vextend, First check how much spavce can be added with vgdisplay, look for "Free PE".
      lvextend -L+<what Free PE shows> /dev/<path to your Volume group)
    4. Resize the filesystem after doing that (if the used filesystem can be resized) with whatever tool that filesystem offers.

    AWo



  • 3.  RE: Increasing disk on redhat vitual machine

    Posted Aug 11, 2011 08:29 PM

    Thanks for the information. Can pvresize be used?



  • 4.  RE: Increasing disk on redhat vitual machine

    Posted Aug 12, 2011 07:24 AM

    Haven't tried that, yet.

    But you can take that easy. Make a copy of your .vmdk's so they are safe. Then you are free to try.

    AWo