Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2010

    resize a solusvm kvm VM


    I am newbie in kvm, I used to use xen and I can resize a xen vm in solusvm cp either enlarge nor shrink the size of the disk.

    Now in kvm, it seems solusvm cp don't allow me to shrink the disk, and regarding enlarge, there is a new function allow me to add another disk to the vm.

    I got 2 questions expect you give me advice below:

    1. How to shrink a vm disk if I really need to ?

    2. What is the best way to enalrge the total disk spaces ? I figure out there is 2 ways of doing that.
    One is to modify the resource in the cp, change the HDD value and then mounted a gparted ISO and rebuild partition.
    Another way is to add another virtual disk(s) and make it lvm.

    I am asking this because I got a vm running cpanel, I might need to add/remove some disk spaces from time to time.

    Appreciate your prompt reply, and happy new year.

  2. #2
    Join Date
    Nov 2007
    New Jersey, USA

    It is not possible to reduce the actual disk space with a KVM setup in SolusVM.

    - Daniel
    Managed & Unmanaged SSD VPS's by | FAST PURE SSD & HDD Plans!
    █ Locations in USA & United Kingdom - Legal Adult Content Allowed! 24/7 Certified Support.
    cPanel/WHM Included | Premium Softaculous | Data Migration Included with Managed Support.
    █ INSTANT SETUP | Paypal, Skrill, 2checkout, BitCoin & all Major Credit Cards Accepted! Skype:

  3. #3
    Hi there,

    To increase the size of a KVM VPS in SolusVM, increase the "Hdd Space" in Resources and Reboot the VPS. Use the GParted ISO to increase your VPS's partition as you wish. You can find a detailed how-to with screenshots here:

    Decreasing the size of a KVM VPS in SolusVM is a manual process and I can't stress enough how important it is to a) know what you're doing, b) take backups, and c) take backups again, before doing any of the following.
    This is a totally unsupported method - proceed at your own risk.

    First boot your VPS with GParted and decrease your partition by ~ 1-2GB less than what you intend to shrink in to. For example if you want to shrink your VPS disk space to 30GB, shrink the partitions in GParted to ~28GB.
    Then, log into your node via SSH and execute the following:

    lvreduce -L 30G /dev/vps/kvm101_img
    (replace with your own correct path to the LV)

    Now reboot your VPS and boot into GParted again. This time you should increase the disk space to the exact size of the LV (from 28GB to 30GB in this example). That's it, unmount GParted, and reboot your VPS.

    Final step is to update the disk size in SolusVM. For this you have to log into your SolusVM master via SSH and connect to MySQL.
    You can find your MySQL credentials by checking out the /usr/local/solusvm/includes/solusvm.conf file.

    The format of the solusvm.conf is as follows:
    example: <DATABASENAME>:<USER>:<PASSWORD>:<HOST>:<the key is the last entry>

    Let's say that your solusvm.conf looks like this:
    You should do the following:
    # mysql -u 9oir5txb1kre8fy -p
    Enter password: 1zz9xopplawxsuz
    mysql> use 2j6zbqsfyszcvi
    mysql> UPDATE vservers SET disk=32212254720 WHERE vserverid=101;
    (32212254720 bytes = 30 GB)

    Where vserverid is the ID of the VPS in SolusVM.
    Fusioned -
    Enterprise Hosting | CloudLinux, cPanel, LiteSpeed, R1Soft | PHP 5.2, 5.3, 5.4 & 5.5 | Softaculous | CloudFlare
    SSD KVM VPS in Netherlands | SolusVM | Intel E3-1230v2 | LSI RAID-10 SSD | 1Gbps | IPv6 ready

  4. #4
    Join Date
    Jan 2010
    WOW! GZ, it's really complex, Thanks for your reply, I think your reply is much much better than solusvm support.

  5. #5
    Join Date
    Jan 2010

    So, if you want to enlarge a kvm hdd space, you will use gparted ISO, I just thinking another way, why not use lvm inside the vm ?

    I mean, in solusvm kvm function, there is a function to allow you to add another hdd to the vm, you add it, and then make it lvm, and mount /home to that lvm, next time, if you need enlarge again, just add another hdd and bind it into the lvgroup, then you got enlarged size.

    And if you want to shrink, just remove some hdd from the lvgroup, is there any disadvantage of doing this ?

  6. #6
    Join Date
    Jan 2010
    Or, there is 3rd way, add a hdd for the /home partition (in my case, /home is the most large partition) in kvm, and then cp -rp /home /dvs/sdb1 .

    If someday you need more spaces for /home, add another hdd for the size you need, and copy again, and remove the old one.

Similar Threads

  1. KVM + SOLUSVM problem
    By php-master in forum VPS Hosting
    Replies: 10
    Last Post: 02-23-2014, 10:30 PM
  2. SolusVM KVM OVH need some help
    By Karolukas in forum Dedicated Server
    Replies: 6
    Last Post: 11-09-2013, 12:09 PM
  3. Doubts SolusVM + KVM
    By chupaqueedeuva in forum VPS Hosting
    Replies: 23
    Last Post: 10-14-2013, 04:39 PM
  4. KVM & SolusVM
    By Cloudarama in forum VPS Hosting
    Replies: 2
    Last Post: 07-26-2012, 09:47 AM
  5. SolusVM for KVM or Virtualizor for KVM
    By petejack9 in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 05-30-2012, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts