Applicable to:
- SolusVM
Question
How to migrate OpenVZ VPS manually using backup/restore procedure?
Answer
- Connect to source node via SSH
- Create a dump of the source VPS using below commands:
# mkdir /home/backup
# vzdump --compress --dumpdir /home/backup 101where:
--compress
- compress the dump file (results in a .tgz).
--dumpdir
- the directory where the dump will be stored, default is /vz/dump. - Transfer the backup file to destination server using
scp
orrsync
utility. - Connect to destination node via SSH
- Restore the backup in a new container on destination using the following command:
# vzdump --restore /path/to/backupfile.tgz CTID
where CTID is a VPS container ID
-
Start the VPS once restoration is complete:
# vzctl start 101
-
If both source and destination nodes are in one SolusVM cluster let the SolusVM master node know the new slave server of the VPS by executing the following command on master node:
# /scripts/vm-migrate [VSERVERID] [NEWNODEID]
Otherwise, import the migrated VPS into SolusVM using this instruction.
Comments
0 commentsPlease sign in to leave a comment.