VMware Cloud Community
knizam123
Contributor
Contributor

Increase the size of linux VM

Hi,

I'm beginner in VM

We would like to increase the size of VM machine as below, 59GB to 100GB. Would it be possible??

[root@orsev01 ~]# fdisk -l

Disk /dev/sda: 59.0 GB, 59055800320 bytes

255 heads, 63 sectors/track, 7179 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1        2611    20972826   83  Linux

/dev/sda2            2612        5222    20972857+  83  Linux

/dev/sda3            5223        6527    10482412+  83  Linux

/dev/sda4            6528        7179     5237190    5  Extended

/dev/sda5            6528        7179     5237158+  83  Linux

Reply
0 Kudos
2 Replies
admin
Immortal
Immortal

it looks like you have 1 disk and made multiple partitions

would like to increase size of disk? yes you can if you have enough space on datastore.

depending on OS, you may need to shutdown VM to increase disk.

on vCenter, select VM which you would like to increase -> right click "edit setting"  --> change number on hard disk as you wish.

or you can add additional disk.

after that, you also may need to resize partitions if change change number on hard disk.

https://www.howtoforge.com/linux_resizing_ext3_partitions

Reply
0 Kudos
RAJ_RAJ
Expert
Expert

Hi,

Below is the easiest way

1. Edit Settings of VM

2. Increase the HDD size

3. Boot with gparted bootable cd and you can easily increase the partition size

Download # http://downloads.sourceforge.net/gparted/gparted-live-0.28.1-1-amd64.iso

Resize Partition Instructions #  vSphere Advanced Technics: Increase disk size of a Linux VM native partition Using GParted

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
Reply
0 Kudos