LightYear
/Docs
DocsGetting StartedResize a Cloud Server

Resize a Cloud Server

Upgrade or downgrade your server's CPU and RAM plan without losing data.

intermediate
5 min read
LightYear Docs Team
Updated April 24, 2026
resizeupgradeplanscaling
Ready to get started?

LightYear allows you to resize your server to a different plan. You can upgrade to a larger plan or downgrade to a smaller one, subject to disk size constraints.

Resize Constraints

DirectionAllowed?Notes
Upgrade CPU/RAMYesAlways allowed
Upgrade diskYesDisk can only grow, never shrink
Downgrade CPU/RAMYesAllowed if new plan disk ≥ current disk usage
Downgrade diskNoDisk size cannot be reduced

[!IMPORTANT] A resize requires a server reboot. Plan for a brief downtime window (typically 30–120 seconds).

Step 1 — Take a Snapshot

Before resizing, take a snapshot as a safety measure:

  1. Go to Servers → Your Server → Snapshots.
  2. Click Take Snapshot and wait for it to complete.

Step 2 — Initiate the Resize

  1. Navigate to Servers → Your Server → Settings.
  2. Click Resize Server.
  3. Select the new plan from the list.
  4. Review the new hourly cost.
  5. Click Resize Now.

The server will reboot automatically. The resize process takes approximately 60–120 seconds.

Step 3 — Verify the New Resources

After the server comes back online, verify the new resources:

>_BASH
$nproc
OUTPUT
4
>_BASH
$free -h
OUTPUT
               total        used        free      shared  buff/cache   available
Mem:           7.8Gi       512Mi       6.8Gi        12Mi       512Mi       7.0Gi
Swap:          1.0Gi          0B       1.0Gi
>_BASH
$df -h /
OUTPUT
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        80G  4.2G   76G   6% /

Resize via API

>_BASH
$curl -X POST https://api.lightyear.host/v1/servers/SERVER_ID/resize \
$ -H "Authorization: Bearer YOUR_API_KEY" \
$ -H "Content-Type: application/json" \
$ -d '{"plan_id": "vc2-4c-8gb"}'

Was this article helpful?

Your cookie choices for this website

This site uses cookies and related technologies, as described in our privacy policy, for purposes that may include site operation, analytics, and enhanced user experience. You may choose to consent to our use of these technologies, or manage your own preferences. Cookie policy