Softaculous


Topic : how to reduce the size on a vps with virtualizor


Posted By: visio on October 10, 2020, 9:33 am
Hi

I have a virtualizor on a server, on one vps the customer wants to reduce the size of the vps, is it possible? is it dangeous?

Thanks

Posted By: wolke on October 10, 2020, 10:03 am | Post: 1
Which Virtualization?
Which Storage Type?


Posted By: visio on October 10, 2020, 10:38 am | Post: 2
it is KVM and the hard disks are SATA

Posted By: visio on October 10, 2020, 10:46 am | Post: 3
actually
Virtualization : KVM
Storage Type : LVM

If I open a ticket  could you login and check?


Thanks

Posted By: wolke on October 10, 2020, 11:12 am | Post: 4
I can´t access your ticket as I´am not with virtualizor staff.

But you can have a look here:

https://www.rootusers.com/lvm-resize-how-to-decrease-an-lvm-partition/

(you should try this in non-production system first and always take a full backup...)

Posted By: jevingala on October 10, 2020, 1:58 pm | Post: 5
Hi,

Stop the vps first.
You will need to create a mapper first using kpartx command on server for vps disk and then run e2fsck and reszie2fs with the size you want.
Then resize your LV and then change size in disks table for that vps in phpmyadmin on panel.
Once its done, try to increase vps disk size by 1Gb from panel and then start vps and check.

Increasing size from panel by 1Gb for vps will help in updating partition table with vps.

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.