VMware Cloud Community
raugustyn
Contributor
Contributor

Problems extending the size of the file space

Hi,

I have imported a VM and by default it has 4G which is way to low so I changed it to 200G buy when I run df -k, it does not show as anything changed?

Am I doing anything wrong or missing a step?

0 Kudos
7 Replies
AntonVZhbankov
Immortal
Immortal

Check VM - is there 200GB for HardDisk?

Actually, when you increase HardDisk size, filesystem is not expanded automatically.

fdisk /dev/sda will show you 200GB disk with 4GB partition.


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
raugustyn
Contributor
Contributor

Correct .... what is the easist way to add this available space to the existing partitions?

0 Kudos
AntonVZhbankov
Immortal
Immortal

I suppose you have linux VM.

Easiest way is to create 196GB partition and mount it for ex. to /spare.

But if you want to add space to existing partition it depends on what filesystem are using, is there LVM, is partition with data las partition on disk etc.


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
raugustyn
Contributor
Contributor

Anton,

Thank you.

I have Ubuntu 8.04 and I added the patition, formated it and mounted now I want to make sure that it gets mounted everytime it boots but when I look into the fstab it has some UUIDnumbers instead of the regular devices.

Where do I find the UUID of the partition I have created and would this soleve my problem?

0 Kudos
AntonVZhbankov
Immortal
Immortal

ls -l /dev/disk/by-uuid/


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
raugustyn
Contributor
Contributor

Thanks but the disk I created does not exist there ....?

what are the consequences?

0 Kudos
AntonVZhbankov
Immortal
Immortal

Unfortunately I'm Windows admin, not Ubuntu. Can't help you anymore.

Now you have classic linux problem, I'm sure there are tons of manuals on linux forums.


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos