VMware Cloud Community
gciscol
Enthusiast
Enthusiast

VM running very slow

 

Hi I have the slowness issue for long time. VM is created on ESXi. but it does not run well because it run very slow. I checked with below command and notice storage is used almost 100%. Looks like the default storage size of each VM is 60GB. so that I add the size to 200GB. but the added size 140GB cannot be used. I tried several times to create VM. but the issue is the storage size is always about 60GB even if adding more space. Anyone have some suggestions? Thanks! 

df -h

Filesystem Size Used Avail Use% Mounted on
udev 29G 0 29G 0% /dev
tmpfs 5.8G 1.4M 5.8G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 58G 58G 0 100% /
tmpfs 29G 0 29G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 29G 0 29G 0% /sys/fs/cgroup
/dev/loop2 44M 44M 0 100% /snap/snapd/14978
/dev/loop0 62M 62M 0 100% /snap/core20/1328
/dev/loop1 68M 68M 0 100% /snap/lxd/21835
/dev/loop3 92M 92M 0 100% /snap/lxd/24061
/dev/sda2 1.5G 252M 1.2G 19% /boot
tmpfs 5.8G 0 5.8G 0% /run/user/0

 

gciscol_0-1692990957712.png

 

 

Reply
0 Kudos
4 Replies
williambishop
Expert
Expert

adding space is one thing, but if you don't expand the vg, it won't see it. Or maybe I'm missing something (and going on 2 hours of sleep, entirely possible).

--"Non Temetis Messor."
Reply
0 Kudos
gciscol
Enthusiast
Enthusiast

Thanks for your fast reply! i understood. so i think there might be two ways to resolve the issues. please advise:

1. we can expand the added storage after creating vm

2. we can assign bigger size storage when we creating vm. but the issue default size is about 60GB. we have to change the size only after creating the vm, but even if we add the additional space, it cannot be used(need to expand it). Is there any ways that we can assign a bigger size storage during creating vm? 

Reply
0 Kudos
Sachchidanand
Expert
Expert

Instead of the default partition scheme, use the manual partition and give as much space as you want for the root partition. After creating the VM, adding more space will require to update the logical volume.

Regards,

Sachchidanand

Reply
0 Kudos
williambishop
Expert
Expert

2....always 2. The risks come in resizing, after go-live. Though minimal, you're always better off starting with what you need, rather than doing it later.

 

 

 

--"Non Temetis Messor."
Reply
0 Kudos