Reboots, Reinstalls & Console

Cloning and resizing your VPS

By the Domain India teamPublished 9 min read
Knowledge base article
Contents (11 sections)

Sooner or later a VPS needs to change shape: more memory or disk for a growing site, or an exact copy to use as a staging server or a fresh start. This guide explains how resizing and cloning work for a Domain India VPS, what you ask support to do and what you do yourself inside the server, and the checks that stop a clone from clashing with the original.

Key takeaways

To resize a Domain India VPS to a bigger plan, open a ticket. Expect a short restart, then grow the partition and filesystem yourself if the new disk space does not show up. Shrinking a disk in place is not possible, so moving to a smaller plan means a new VPS and a migration. For a clone, ask support whether they can copy your VPS, or build the copy yourself: order a second VPS, copy the data across with rsync and a database dump, then change the hostname, secrets and anything that sends mail or runs on a schedule.

Self-managed VPS

A Domain India VPS is self-managed: you get root access and look after the operating system and software yourself. The optional panels are none, CyberPanel, Webuzo or DirectAdmin; cPanel is not offered on VPS. The commands in this guide run on your own VPS, not on shared hosting.

1. Resizing and cloning: what each one means

  • Resizing changes the resources of the same server: more vCPU, RAM or disk. The IP address, data and settings stay as they are.
  • Cloning makes a second, separate server that starts as a copy of the first. It gets its own IP address, and from then on the two servers go their own way.

Resize when one server is running out of room. Clone when you need a staging copy, a test bed for an upgrade, or a second server to split the load.

2. Before you change anything: take your own backup

Whatever you do next, have a copy of your data that lives outside the VPS:

bash
# Databases (MySQL or MariaDB)
mysqldump --all-databases --single-transaction --routines --events | gzip > /root/all-db-$(date +%F).sql.gz

# Website files and configuration
tar -czf /root/www-etc-$(date +%F).tar.gz /var/www /etc

Download both files to your computer or send them to off-site storage. For a scheduled setup, see automated backups with cron and rclone. If you rely on snapshots, ask support what your plan includes before you start.

3. Resize to a bigger plan

Compare the plans first. Each VPS plan is a fixed combination of vCPU, RAM and NVMe disk, so resizing means moving to the next plan up.

VPS Basic
₹1,105.30/mo + GST
  • 2 vCPU
  • 4 GB DDR4 RAM
  • 128 GB NVMe SSD Storage
  • 3 TB Monthly Bandwidth
See plan details
VPS Standard
₹2,210.60/mo + GST
  • 4 vCPU
  • 8 GB DDR4 RAM
  • 256 GB NVMe SSD Storage
  • 5 TB Monthly Bandwidth
See plan details
  1. Ask for the upgrade.
    Open a ticket from /client/support/new naming the VPS and the plan you want. Support confirms the price difference before anything changes.
  2. Plan for a restart.
    New CPU and memory apply after the VPS restarts, so choose a quiet time and tell your users.
  3. Check the new resources.
    Log in over SSH and run nproc, free -h and lsblk.
  4. Grow the disk if needed.
    If lsblk shows a bigger disk but df -h does not, extend the partition and filesystem (section 4).

Moving to a smaller plan. CPU and RAM can go down, but a disk can't be shrunk in place without risking the data on it. To move to a smaller plan, order the smaller VPS, migrate your sites to it (section 5), and cancel the old one at its renewal. Note that VPS plans are not refundable once provisioned.

4. Grow the partition and filesystem after a disk upgrade

A bigger virtual disk doesn't automatically make a bigger filesystem. Check first:

bash
lsblk          # size of the disk and its partitions
df -hT /       # size and type (ext4 or xfs) of the root filesystem

If the disk (for example vda) is larger than its root partition (for example vda1), grow the partition, then the filesystem:

bash
# growpart comes from cloud-guest-utils (Debian/Ubuntu) or cloud-utils-growpart (AlmaLinux/Rocky)
sudo growpart /dev/vda 1

# ext4
sudo resize2fs /dev/vda1
# xfs (default on AlmaLinux and Rocky Linux)
sudo xfs_growfs /

Your device names may differ (sda, nvme0n1p1), and some images use LVM, where you run pvresize and lvextend -r instead. Read lsblk carefully and replace the names. If you're unsure, stop and ask support before running a resize command: a wrong device name can damage the disk.

5. Clone a VPS

Ask support first

Open a ticket saying which VPS you want copied and why. Support can tell you whether a copy can be made for you and what it costs; a copy needs a second VPS on your account either way.

Or build the copy yourself

This method works between any two Linux servers, including moving to a new plan:

  1. Order the second VPS
    with the same operating system family and version as the first, from VPS hosting.
  2. Install the same software.
    Web server, PHP or your runtime, database server, and any panel you use, at the same versions.
  3. Copy the files.
    From the new server, pull the website files across: rsync -aHAX --numeric-ids root@OLD_IP:/var/www/ /var/www/
  4. Copy the databases.
    Dump them on the old server, copy the file across and import it on the new one.
  5. Copy the configuration you need.
    Web server virtual hosts, cron jobs, firewall rules and TLS certificates. Don't copy /etc wholesale; it contains network and identity settings that belong to the old server.
  6. Test before switching.
    Point your computer's hosts file at the new IP and check every site.
  7. Switch DNS
    when you are happy, if the clone is replacing the original.

For moving whole websites, the website migration guide walks through the same steps in more detail.

6. After cloning: make the copy its own server

An exact copy still thinks it is the original. Change these before you put it to work:

Hostname
Set a new one with hostnamectl set-hostname and update /etc/hosts.
SSH host keys and machine ID
On a disk-level copy, regenerate them so the two servers can't be confused: remove /etc/ssh/ssh_host_*, run ssh-keygen -A, and create a new /etc/machine-id.
Secrets
Change database passwords, API keys and application secrets on the copy, especially for a staging server.
Scheduled jobs and mail
Turn off cron jobs that send emails, charge customers or call external services, so the copy doesn't do everything twice.
Application URLs
Update site URLs (for WordPress, siteurl and home) if the copy runs under a staging name.
Keep staging private
Protect a staging copy with a password or IP allow-list and a noindex rule, so search engines don't index it.

7. Troubleshooting

ProblemLikely causeFix
df -h shows the old size after an upgradeThe partition or filesystem was not grownFollow section 4
The VPS doesn't come back after a restartA service failed at boot, or a firewall rule blocks SSHOpen a ticket so support can check it with you
The clone sends duplicate emails or ordersCron jobs and queues were copied tooDisable them on the copy (section 6)
Sites on the clone load the old serverDNS or hard-coded URLs still point to the originalUpdate DNS, hosts or the application's URL settings

8. Where Domain India fits

Domain India VPS plans run on KVM with NVMe storage and full root access. Resizing and copies go through support, and the work inside the server is yours. If you'd rather not manage a server at all, shared hosting or the App Platform may suit you better; see VPS vs shared hosting.

Frequently asked questions

How do I upgrade my Domain India VPS to a bigger plan?

Open a support ticket naming the VPS and the plan you want. Support confirms the price difference first. The new resources apply after a restart.

Why doesn't my VPS show the extra disk space after an upgrade?

The disk grew but the partition and filesystem did not. Run lsblk and df -hT, then grow the partition with growpart and the filesystem with resize2fs for ext4 or xfs_growfs for xfs.

Can I downgrade my VPS to a smaller plan?

A disk can't be shrunk in place safely, so moving to a smaller plan means ordering the smaller VPS, migrating your data to it and cancelling the old one at renewal. VPS plans are not refundable once provisioned.

Can Domain India clone my VPS?

Open a support ticket saying which VPS you want copied. Support will tell you whether a copy can be made for you. You can also build the copy yourself on a second VPS with rsync and a database dump.

Does a cloned VPS keep the same IP address?

No. A clone is a separate server with its own IP address. Update DNS if the clone is replacing the original.

What should I change after cloning a server?

Give it a new hostname, regenerate SSH host keys and the machine ID on a disk-level copy, change secrets and passwords, and disable cron jobs and mail that should only run on the original.

Ready to grow your server? Compare VPS plans, or open a ticket to ask for an upgrade or a copy of your VPS.

Need a bigger VPS?

KVM virtual servers with NVMe storage and full root access, from Starter to Enterprise.

Compare VPS plans

Ready when you are

Get VPS from ₹552.65/mo + GST

See plans

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app