VPS

How to Upgrade Your VPS (RAM, CPU, Disk) Without Downtime

13 min read

How to Upgrade Your VPS (RAM, CPU, Disk) Without Downtime

The Short Answer

Outgrowing a VPS is a good problem — it means the server is doing real work. Most providers let you upgrade in place from the control panel: CPU and RAM changes usually need a short reboot (a few minutes of downtime), while disk-only expansion is often possible without one. True zero-downtime upgrades need a second server and a DNS switch, which this guide also covers. Before spending money, though, confirm the hardware is actually the bottleneck — half of all “I need a bigger server” cases are fixed by caching and tuning instead.

If you have not diagnosed the slowdown yet, start with How to Speed Up Your VPS — Fix 1 shows how to identify whether CPU, RAM or disk is the constraint. Upgrading the wrong resource wastes money and fixes nothing.

Step 1: Confirm What Needs Upgrading

Each resource has a distinct symptom and a distinct fix:

Symptom Check Upgrade
Load average above vCPU count, site slow under traffic uptime, htop More CPU (or better caching)
RAM “available” near zero, swap in constant use free -h More RAM
Disk over 85% full, or high %iowait df -h, iostat -x More disk, or faster (NVMe) storage
Bandwidth allowance nearly exhausted Provider panel Plan with more transfer, or a CDN

Collect a week of data before deciding, not a single bad afternoon. A one-off traffic spike is not a reason to double your monthly bill; a sustained upward trend is. Monitoring (see How to Monitor Your VPS) turns this from guesswork into a graph.

Also check whether the plan you want actually exists: providers change lineups. Hetzner’s CX22, for example, is no longer orderable — the current equivalent is the CX23 (2 vCPU / 4 GB, €5.49/month excluding VAT, checked 23 November 2026). Contabo replaced its old VPS S/M lineup with Core Cloud VPS 4/6/8 in July 2026. Check the current lineup before planning an upgrade path.

Method 1: Resize in Place (Easiest, Usually a Short Reboot)

Most cloud providers (DigitalOcean, Vultr, Linode, Hetzner Cloud, Hostinger) offer one-click resize from the control panel. The typical flow:

  1. Back up first. Take a snapshot — see How to Back Up Your VPS. Resizing is routine and safe, but a snapshot is cheap insurance against the one time it is not.
  2. Choose the new plan in the provider’s panel. You usually pick from the same family (shared CPU to shared CPU, for example); switching families (shared to dedicated CPU) may require a migration instead.
  3. Decide on disk. Many providers ask whether the resize should include disk expansion. Disk-only expansion is usually possible while the server runs; CPU/RAM changes usually require a power-off and take effect after a reboot.
  4. Apply the resize. The provider shuts the server down (for CPU/RAM changes), adjusts the allocation, and boots it again. Typical downtime is 2–10 minutes.
  5. Verify. After the reboot, confirm the new resources: nproc for CPU count, free -h for RAM, df -h for disk.

Provider notes

  • DigitalOcean: resize from the Droplet page. CPU/RAM changes require a power-off; disk-only resize can be done while running but is permanent — you cannot shrink the disk later. Flexible resize options vary by plan type, so check the panel for what your Droplet allows.
  • Vultr: upgrade from the server’s settings page. Vultr generally requires the instance to be stopped for a plan change.
  • Linode (Akamai): resize from the Linode’s panel; the Linode is powered off during the resize and boots automatically afterwards.
  • Hetzner Cloud: resize from the console or API; the server reboots. Hetzner bills hourly up to a monthly cap, so an upgrade mid-month costs the pro-rated difference.
  • Contabo: upgrades via the customer panel; the VPS reboots to apply CPU/RAM changes.
  • Hostinger: upgrade from hPanel; KVM plans can move up a tier with a reboot.

Always read the provider’s own resize documentation before starting — the exact behaviour (reboot required or not, disk shrink allowed or not) varies by provider and plan type, and it changes over time.

Method 2: Expand the Disk Without Rebooting

If only the disk is full, many providers let you add disk space (or a second volume) without touching CPU or RAM:

Option A — resize the existing disk. After the provider expands the virtual disk, the partition and filesystem still show the old size. On Ubuntu 24.04 with the common cloud image layout, growpart and resize2fs handle it:

# Check the current layout
lsblk
df -h

# Grow partition 1 of /dev/vda to fill the disk (adjust device names to your system)
sudo growpart /dev/vda 1

# Grow the ext4 filesystem to fill the partition
sudo resize2fs /dev/vda1

# Verify
df -h

Device names vary: /dev/vda, /dev/sda or /dev/nvme0n1 depending on the provider’s virtualisation. Use lsblk output to identify your root disk and partition before running these commands — growing the wrong partition is a bad day. If your root filesystem is XFS instead of ext4, use sudo xfs_growfs / instead of resize2fs.

Option B — attach a separate volume. Providers such as Hetzner, DigitalOcean, Vultr and Linode offer additional block storage volumes that you attach and mount at a path such as /data. This is ideal for growing data (uploads, backups, media) without touching the system disk:

# Find the new volume
lsblk

# Format it (only for a brand-new volume — this erases data)
sudo mkfs.ext4 /dev/sdb

# Mount it
sudo mkdir -p /data
sudo mount /dev/sdb /data

# Make the mount permanent (use the UUID, not the device name)
echo "UUID=$(sudo blkid -s UUID -o value /dev/sdb) /data ext4 defaults 0 2" | sudo tee -a /etc/fstab

Volumes can usually be resized later and detached from one server and attached to another, which makes them flexible for growing projects.

Method 3: Migrate to a Bigger Server (True Zero Downtime)

When in-place resize is not available — changing provider, changing CPU family, or moving regions — migrate to a new, larger server and switch traffic over. Done in the right order, visitors see no downtime:

  1. Create the new server with the larger plan, in the desired region.
  2. Set up the new server identically: same OS, same web server, same PHP version. If you use Docker (see How to Install Docker on a VPS), this is a matter of copying Compose files; otherwise, follow your setup notes or the original install guides.
  3. Copy data. Sync files with rsync and dump/restore the database:
rsync -avz --progress -e ssh /var/www/ root@NEW_SERVER_IP:/var/www/
mysqldump -u root --all-databases --single-transaction | ssh root@NEW_SERVER_IP "mysql -u root"
  1. Lower the DNS TTL to 300 at least 24 hours before the switch, so the change propagates quickly.
  2. Test the new server using the hosts file trick (point your domain at the new IP on your own computer only) and verify everything works — including SSL, which you should issue on the new server before switching.
  3. Do a final sync to catch changes since the first copy, then update the DNS A record to the new IP.
  4. Keep the old server running for a week. Some visitors and DNS resolvers will reach it until propagation completes. Monitor its logs — when traffic stops, decommission it.

For WordPress specifically, the full migration procedure (including the plugin-based shortcut) is in How to Migrate WordPress to a VPS. The same principles apply to any application: new server ready, data synced, DNS last.

The snapshot shortcut

If you stay with the same provider, the fastest migration is often: snapshot the old server, create the new server from that snapshot at the larger size, update DNS. The snapshot carries the entire system — OS, configuration, data — so there is no reinstallation and no rsync. The catch: the snapshot is a point-in-time copy, so any data written after the snapshot (orders, comments, uploads) must be synced separately, and the new server inherits the old server’s SSH host keys and machine identity, which you may want to regenerate.

Method 4: Scale Out Instead of Up (When One Server Is Not Enough)

Sometimes the answer is not a bigger server but a second one. Signs you need to scale out rather than up:

  • Traffic spikes are short and extreme (a viral post, a sale) — a bigger server sits idle 95% of the time.
  • Different workloads compete: the database wants RAM, the web server wants CPU, and one box cannot serve both well.
  • You need redundancy: one server is a single point of failure no matter how large.

The simplest scale-out step is splitting the database onto its own server (or a managed database), which frees the web server’s RAM and CPU for requests. The next step is a load balancer in front of two or more identical web servers. Both are bigger projects than a resize, and both are beyond a first upgrade — but knowing the path exists stops you from buying an ever-larger single server past the point of sense.

After the Upgrade: Tune for the New Size

A bigger server does not automatically use its new resources well. After upgrading, revisit the settings that were sized for the old server:

  • PHP-FPM pm.max_children — raise it to use the new RAM (each child uses roughly 30–60 MB).
  • MySQL innodb_buffer_pool_size — raise it to roughly 25–40% of the new RAM on a shared web/database server.
  • OPcache memory — check opcache.memory_consumption is enough for your codebase; the default 128 MB is fine for most sites.
  • Swap — if you added a swap file as a crutch on a small server (see How to Speed Up Your VPS), it can stay; with ample RAM it simply will not be used.

Then monitor for a week and confirm the bottleneck is actually gone. If the load average is still high on a server with twice the CPU, the problem was never hardware — go back to caching and query tuning.

Downgrading (When You Over-Bought)

Most providers allow downgrades for CPU and RAM (with a reboot), but disk can almost never be shrunk — once a virtual disk is expanded, it stays expanded. If you upgraded the disk and regret it, the only path down is a migration to a fresh smaller server. This asymmetry is worth knowing before you click “resize with disk expansion”: expand the disk only when you are sure you need the space permanently. For temporary space needs, an attachable volume (Method 2, Option B) is the reversible choice.

Troubleshooting

“The panel says the resize is done but free -h shows the old RAM.” The server did not actually reboot, or the resize applied to a different resource than expected. Reboot from the panel (not just reboot from SSH, though that usually works too) and check again. If the numbers still do not change, the resize may have failed silently — check the provider’s task log or support.

“df -h still shows the old disk size after expansion.” The virtual disk grew but the partition and filesystem did not. Run the growpart + resize2fs steps from Method 2. If growpart is not installed, get it with sudo apt install cloud-guest-utils.

“The server won’t boot after resize.” Rare, but it happens — usually a bootloader or cloud-init issue triggered by the hardware change. Use the provider’s web console (VNC) to see the boot messages, and restore from the pre-resize snapshot if the system is unrecoverable. This is why Step 1 of Method 1 is “back up first”.

“The site is slower after upgrading.” Counterintuitive but possible: the new plan may be on a busier host node, or on slower storage than the old plan (some providers’ budget tiers share resources more aggressively). Compare with benchmarks (sysbench for CPU, fio or dd for disk) and, if the new server is genuinely slower, ask the provider to move you to a different host node or try another plan.

“DNS still points at the old server days after the switch.” Some resolvers ignore TTLs. There is nothing you can do to force them — this is why the old server stays up for a week. Check propagation with a global DNS checker; when the whole world shows the new IP, decommission the old server.

“The new server’s SSL certificate fails.” Certificates are tied to domain names, not servers — but certbot must validate the domain against the new server. Issue the certificate on the new server after DNS points at it (or before, using the DNS challenge). Copying /etc/letsencrypt between servers can work but risks permission problems; fresh issuance is cleaner. See How to Set Up Free SSL with Let’s Encrypt on a VPS.

Frequently Asked Questions

How much downtime does a VPS upgrade cause?

In-place CPU/RAM resize: typically 2–10 minutes for the reboot. Disk-only expansion: often zero downtime. Migration to a new server with a DNS switch: zero downtime if done in the right order, though individual visitors may hit either server during propagation. Schedule resizes in low-traffic hours regardless — 3 a.m. downtime is better than 3 p.m. downtime.

Can I upgrade just the RAM without changing CPU?

It depends on the provider. Most cloud providers sell fixed plans (CPU + RAM bundled), so you move to the next plan size. A few (notably Hetzner Cloud and some custom-config providers) allow more flexible combinations. If your provider only offers bundles, pick the plan whose weakest resource still covers your need.

Will upgrading my VPS change my IP address?

In-place resize: no, the IP stays the same. Migration to a new server: yes, the new server has a new IP, which is why DNS must be updated and why the old server stays up during propagation. If your application whitelists the server IP anywhere (APIs, firewalls, email SPF records), update those too.

Is it cheaper to upgrade or to buy a second server?

Usually upgrading is cheaper per unit of resource, because you pay for one server’s overhead (one IP, one set of backups) instead of two. A second server wins when you need isolation, redundancy, or a different region. For a single growing site, upgrade first and scale out only when a single server genuinely cannot do the job.

How do I know when to upgrade versus optimise?

Optimise first, always: caching, PHP and database tuning, and a CDN are free and often double effective capacity. Upgrade when measurements show a hardware resource saturated after optimisation — CPU at 100% with caching enabled, RAM exhausted with tuned settings, disk I/O maxed on NVMe. The tuning guide (How to Speed Up Your VPS) and the monitoring guide (How to Monitor Your VPS) give you the measurements to decide with evidence instead of hope.

Can I test a bigger server before committing?

Yes — hourly billing (Hetzner, Vultr, DigitalOcean, Linode all bill hourly up to a monthly cap) means you can spin up a larger server, migrate a copy, test under real traffic, and destroy it if it does not help, paying only for the hours used. Use this to de-risk a migration before switching DNS.

The Bottom Line

Resize in place for the easy cases (a few minutes of reboot downtime), expand the disk or attach a volume when storage is the only problem, and migrate to a new server with a DNS switch when you need true zero downtime or a different provider. In every case: snapshot first, verify the new resources after, and re-tune PHP and MySQL for the bigger box — otherwise you are paying for resources the software does not know it has.

Leave a Reply

Your email address will not be published. Required fields are marked *