
A VPS can run out of disk space while its CPU and memory still look healthy. Choosing where data should live, tracking how quickly it grows, and planning recovery before a disk fills up can prevent an avoidable outage. You do not need to start by buying the largest plan or adding RAID: first find out what is using storage and what you would need to restore.
Root disk or an attached volume?
The root disk is the server's boot disk. It usually contains the operating system, installed packages, application code, logs, and sometimes application data. Keep enough free space for updates, temporary files, logs, and normal growth; a full root filesystem can affect more than the application that used the last available bytes.
An attached block-storage volume is a separate device. After it is formatted and mounted, it provides another filesystem at a path such as /srv/uploads or /var/lib/postgresql. It does not automatically increase the free space on the root filesystem. Your application must write its data to the mounted path, and the volume must be mounted when the service starts.
DigitalOcean calls its network-attached block devices Volumes. Its volume feature overview describes how they attach to Droplets, while its setup guide covers formatting and mounting. Other providers use different names and may have different attachment, resize, and backup limits, so check the documentation for your VPS.
Choose a separate volume when you need to expand a data filesystem independently from the boot disk or want a clearer boundary between system and application data. Before moving a database or upload directory, confirm the destination is mounted, copy the data with an application-safe procedure, check ownership and permissions, and test that the service starts after a reboot. A block volume is not automatically shared storage for multiple servers; use a shared file service or an object-storage workflow if several machines need access.
Measure capacity before adding storage
Check filesystem space and inodes on Linux:
df -hT
df -i
df reports the mounted filesystems, not just the capacity advertised in your plan. Inode exhaustion can also prevent new files from being created even when some disk space remains. To find large directories on a GNU/Linux server, you can inspect a path such as /var with:
sudo du -xhd1 /var
Use the results to identify whether logs, uploads, package caches, database files, or temporary data are growing. Estimate the next storage size from current use, expected growth until your next review, and room for temporary work such as deployments or restores. Keep enough headroom to investigate or resize before the filesystem becomes critical; the right reserve depends on how quickly your data grows and how long a capacity change takes.
Once you know what is growing, apply the right retention rule: rotate logs, expire disposable caches through their normal tools, and archive infrequently used files when that fits the workload. Compression can reduce the size of logs or archives, but it uses CPU and may add time when you need to restore them. Do not delete database files or compress active data without a procedure designed for that application.
Compare the cost of the whole setup, not only the VPS plan: an attached volume may be billed while detached, and snapshots or backups can have separate charges and retention rules. Check the provider's current volume pricing and backup pricing before choosing a design.
Monitor space and storage performance
Track free bytes and inodes for the root filesystem and each mounted volume separately. Set alerts early enough to investigate growth, remove safe-to-delete data, or expand the filesystem before writes fail. Also monitor disk latency and throughput when the application is slow: adding capacity does not necessarily fix an I/O bottleneck, and a faster storage plan will not help if the workload is waiting on CPU, memory, or database queries instead.
Use your provider's metrics alongside operating-system and application monitoring. DigitalOcean's current Insights documentation describes its metrics and alerting tools. For any provider, make sure the measurements include the volume that holds your data rather than only the VPS boot disk.
Data-center location can affect network latency for some workloads, but it does not make storage faster by itself. Similarly, RAID is not a general VPS performance or backup solution. Use RAID only when the provider exposes the required disks and you have a specific design for it; it cannot protect against accidental deletion, a compromised account, or a failure that affects every copy.
Make backups independent and restorable
Treat backups as a separate part of the storage plan. Keep an application-aware backup of important data, and store at least one protected copy outside the production server and its primary storage failure domain. Encrypt backup data, restrict who can read or delete it, and choose a retention period that matches how far back you may need to recover.
Check exactly what a provider's backup feature covers. For example, DigitalOcean's automated Droplet backups do not include attached Volumes; its volume snapshots are a separate feature. The same snapshot documentation explains that volume snapshots are crash-consistent, not guaranteed to be filesystem-consistent. A snapshot can help with rollback, but do not assume it replaces an application-consistent backup or an independent copy.
Database files need particular care because copying a disk while a database is writing may not produce a clean application-level recovery point. Use the database's backup method or a documented provider procedure, then test a restore in a separate environment. Our guide to database backup and restore plans for small web apps covers recovery targets, protected copies, and restore drills.
A practical storage checklist
Before changing your VPS storage:
- Measure filesystem space, inodes, and the directories consuming the most space.
- Decide whether the data belongs on the root disk, a separately mounted block volume, or a storage service designed for shared access.
- Check current provider limits, resize steps, backup coverage, and total cost.
- Monitor each filesystem and review storage growth before it reaches its limit.
- Keep an independent backup and test that you can restore the data and restart the application.
The useful storage setup is the smallest one that meets your workload's capacity and performance needs while giving you a recovery path you have actually practiced.