Docs‎ > ‎Espresso Appliance‎ > ‎

Increasing Disk Space in VMware

This page explains how to increase the disk space of the Espresso Logic VMware Appliance.


I want to increase the disk space on the Espresso Logic Appliance

Definitely make a VMware snap shot before proceeding 

First, check the partition table of the virtual disk in the guest

Log into the Espresso Logic Appliance as user root:

fdisk -l /dev/sda
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000315bc

Device      Boot      Start         End      Blocks    Id  System
/dev/sda1  *           1               64        512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64              1045   7875584  8e  Linux

Now, shutdown the guest before you resize the virtual disk

shutdown -h now
Use VMware player/ Workstation or Fusion and add space to the dormant Espresso Logic Appliance Virtual Machine (in this example we expanded form 8GB to 20GB)
Restart the virtual machine
re-login as root

Once the CentOS Guest is back up, add a new partition using the free space available on your virtual disk. NOTE: Use partition id 8e for Linux LVM.

fdisk /dev/sda
  n  {new partition}
  p  {primary partition}
  3  {partition number}
    First cylinder (1045-2610, default 1045): 
        Using default value 1045
        Last cylinder, +cylinders or +size{K,M,G} (1045-2610, default 2610): 
        Using default value 2610
t {change partition id} 3 {partition number] 8e {Hex code: Linux LVM partition} w {save changes}

You may need to reboot, if the update doesn’t’ work.

reboot

Recheck the partition table after reboot

fdisk -l /dev/sda

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000315bc

 Device Boot      Start         End      Blocks     Id  System
/dev/sda1   *     1             64       104391     83  Linux
/dev/sda2         14            8354     66999082+  8e  Linux LVM
/dev/sda3         8355          10443    16779892+  8e  Linux LVM

Now, create a new physical volume with the new partition

pvcreate  /dev/sda3

Use vgdisplay to list and vgextend  to identify the volume groups that you have

vgdisplay
vgextend  vg_centos65  /dev/sda3

Now, extend the logical volume again, using lgdisplay to list and identify the logical volumes that you have.

lvextend /dev/vg_centos65/lv_root     /dev/sda3

Finally, resize the file system in the logical volume

resize2fs  /dev/vg_centos65/lv_root

Verify the file system size

df -h
Filesystem                        Size    Used    Avail  Use%    Mounted on
/dev/mapper/vg_centos65-lv_root    19G    4.3G     14G    25%    /
tmpfs                             931M        0   931M     0%    /dev/shm
/dev/sda1                         485M      67M   393M    15%    /boot
Comments