Stop worrying about your server.
cPanel/Plesk Server Management for just $59/mo with Unlimited tickets, Unlimited admin hours, Security audits, 24×7 monitoring and lot more
Migrating vm on Solusvm kvm:
For transferring KVM virtual servers between nodes you can follow the steps mentioned below,
At first we need to find the correct LV that needs backed up for the migration. For that login to the server using ssh and deploy the following command,
now you can see the logical volume details displayed like,
--- Logical volume --- LV Name /dev/vps/kvm454_img VG Name vps LV UUID pFtowh-vnxa-DXeE-KqqZ-N1h1-IQ2z-4VFSad LV Write Access read/write LV Status available # open 0 LV Size 100.00 GB Current LE 160 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 512 Block device 453.45
You can see the LV name from the list.
Now we need to shut-down the source VPS either using SolusVM or from the command line. From the command line use the following command,
virsh shutdown kvm454
Here kvm454 is the kvm that we need to migrate.
After shutdown the vps next we need to take the backup. For that use the following command,
dd if=/dev/vps/kvm454_img | gzip | dd of=/home/kvm454_backup.gz bs=4096
For transferring it to the destination node we need to create a logical volume same size as the original one on the destination node.
Use the following command for that,
lvcreate -n kvm454_img --size 100G /dev/vps
Now we can transfer the backup to the destination server using SCP,
scp -C /home/kvm454_backup.gz [email protected]:/home/
Restore the backup to the new LV from command line using the following command,
dd if=/home/kvm454_backup.gz | gzip -d | dd of=/dev/vps/kvm454_img bs=4096
The solusVM master is needed to be updated after the completion of restoration. For that you need to run the following command from the solusVM master,
/scripts/vm-migrate <VSERVERID> <NEWNODEID>
Here <VSERVERID> is the virtual server ID, you will get that from VM list on your SolusVM and <NEWNODEID> is the node ID, you will get that from the list of nodes on SolusVM.
All the process is now completed and you need to boot the new VPS from solusVM.
Please confirm and verify that the new VM working fine without any issues.
If you need our help to fix any issues with your server. Please feel free to contact us, simply email to [email protected]
Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59