A cloud VM reports low disk space, writes are failing, and the budget review is approaching.
Fastest route: identify whether the pressure comes from real data growth, logs or caches, or inode exhaustion before changing infrastructure. Clean up only known disposable data, then expand the cloud volume if the required data is still growing. Assess a dedicated server only when the workload is stable, its capacity can be estimated, and the team can own storage and recovery. Migration does not automatically lower costs.
This guide is for CTOs and technical leads deciding whether stable services should stay in cloud, expand, or enter a migration assessment before the 2027 budget.
It also helps operations teams tracing disk alerts and application owners checking capacity and recovery responsibilities.
Diagnose what “disk full” means before choosing a fix
A disk alert is a symptom, not a sizing recommendation. Start by separating three different conditions: block-space exhaustion, inode exhaustion, and space held by files that no longer appear in a directory listing.
Run these checks on the affected Linux host:
df -h
df -i
du -xhd1 /path/to/check
df -h reports filesystem capacity and usage in a human-readable format. df -i shows inode use. du estimates space used by files and directories. These commands answer different questions; a directory total is not a substitute for filesystem usage. See the GNU documentation for df and GNU documentation for du.
If df -i shows the filesystem out of inodes while df -h still shows block space available, look for large populations of small files: sessions, queued jobs, cache entries, or application-generated fragments. Removing a few large files may not resolve this condition. Identify the directory and its owner before changing retention.
If df reports more usage than du can account for, check for deleted files still held open by running processes. The file has disappeared from its directory, but the process may continue holding its blocks. The lsof reference documents how the tool lists open files; use it to investigate rather than restarting services blindly.
Hold point: do not delete database files, container layers, or backups simply because they are large. First confirm their purpose, owner, and restoration path. A quick space recovery that removes the only usable backup creates a larger incident.
Record the source and trend of the occupied space
A one-time snapshot cannot tell whether the requirement is permanent. Compare filesystem readings across billing periods and map the largest directories to a service owner. Separate business data growth from unmanaged operational residue.
Use a small attribution record before estimating a target:
| Directory or data set | Current use | Observed change | Likely cause | Owner | Safe action and recovery path |
|---|---|---|---|---|---|
| Database files | From host checks | Compare dated readings | Customer or application data | Database owner | Capacity plan; verify database restore |
| Logs | From host checks | Compare before and after rotation | Retention or rotation gap | Service owner | Adjust policy; preserve required audit data |
| Container storage | From host checks | Compare image and writable-layer use | Build or runtime churn | Platform owner | Remove only unused artifacts; confirm redeployment |
| Cache or temporary files | From host checks | Check whether it is recreated | Unbounded cache or temporary output | Application owner | Confirm regeneration and set a limit |
| Backups | From host checks | Compare retention inventory | Local copies accumulating | Operations owner | Preserve required copies; verify off-host copy |
Record dates and use the same filesystem boundary each time. The -x option in the du example avoids crossing into other filesystems, so the directory total is easier to compare with the filesystem being investigated. If a mount point or container storage driver changes, note that in the record; otherwise a changed measurement may look like growth when the measurement boundary changed.
The owner field matters. Operations can identify a large directory, but only the application or data owner can establish whether its contents are disposable. If growth is mainly logs, caches, or abandoned build artifacts, fix the retention process before buying capacity. If records, uploads, or database files are growing because the service is being used more, treat that as a capacity requirement.
Compare expansion, migration, and staying put on the same basis
Cloud VM disk expansion can solve a real capacity shortage without changing the application environment. It does not necessarily enlarge the partition or filesystem automatically. The required follow-up depends on the cloud platform, disk layout, logical-volume setup, and filesystem. For example, the persistent-disk resize instructions describe platform-specific resizing and partition considerations; the Linux volume expansion guide also distinguishes volume expansion from making the new space available to the filesystem. Follow the documentation for the actual platform and host layout.
| Option | Best fit | Capacity and billing check | Operational responsibility | Main risk to resolve |
|---|---|---|---|---|
| Clean up and remain on the current VM | Space is tied to known logs, caches, temporary data, or unused artifacts | Confirm the cleanup restores working headroom; check whether existing disk charges change | Retention rules, monitoring, and safe cleanup | Deleting required data or allowing the same buildup to recur |
| Expand the cloud volume | Required data is growing, and the service can remain on its current platform | Check the provider’s charge for the new volume size and any related storage items against the invoice | Partition or logical-volume changes, filesystem growth, monitoring, backup | The volume grows, but the partition or filesystem remains unchanged |
| Add a data disk or reorganize storage | Data can be separated from the boot or application volume | Compare the added disk and any backup or snapshot charges for the same period | Mounts, permissions, application paths, and recovery documentation | A mount or application configuration error can hide or misdirect data |
| Assess migration to a dedicated server | Demand is stable, target capacity is known, and the team can operate the storage layer | Compare the complete current bill with the target offer and migration costs for the same period | Disk layout, monitoring, backups, restore tests, and hardware incident response | Capacity, recovery, or operational duties are underestimated |
| Defer migration | Evidence is incomplete or the workload is bursty or tightly coupled to managed services | Continue tracking actual usage and current charges | Keep alerting and define a review trigger | Repeatedly paying for emergency expansion without addressing the cause |
Do not compare only a cloud disk line item with a server rental price. Use the same time period and include the service’s storage-related charges, required backup copies, any migration work, and the operational time needed to maintain and restore the data. Use actual invoices and the relevant provider’s official pricing material for the right region and billing period. Do not assume a discount or infer a future bill from a single month.
For the dedicated-server side, use the actual configuration and price shown for the intended target. The cloudgbps billing explanation can help verify how the service’s billing period is represented; it does not replace checking the target configuration and current price. A comparison worksheet should retain the source beside every amount, so finance can reproduce the calculation later.
The volume-modification guidance for a cloud platform may also specify restrictions or conditions that affect when a resized volume can be modified again. Check those limits before planning several quick changes; for example, review the relevant volume modification documentation when that platform is in use. Do not assume another provider follows the same process.
Size from observed growth and the actual storage boundary
A useful capacity estimate starts with what cannot be removed, not with a generic growth percentage. Add the current required data, the change observed over comparable periods, space required for temporary operations, and the headroom needed to avoid repeating the incident immediately. Keep the assumptions visible. If there is no trustworthy history, collect it before committing to a long-term target.
Then identify what the proposed capacity actually describes:
- Volume capacity: the block device presented by the platform or server.
- Partition capacity: the portion of the device assigned to a partition.
- Logical-volume capacity: the space assigned through a volume manager, if one is used.
- Filesystem capacity: the space the operating system can use for files.
- Application capacity: any limit enforced by the database, container runtime, or application configuration.
These layers can differ. Increasing a cloud volume may leave a smaller partition or filesystem in place until the host configuration is updated. Conversely, moving data to another disk can introduce mount, permissions, and startup-order dependencies. Record the existing layout before changing it, and check the platform’s supported procedure for the exact disk and filesystem.
A dedicated server needs the same discipline. List what will live on each disk, what needs redundancy, what must be backed up off-host, and how each data set will be restored. If multiple disks are available, establish whether they are independent devices or configured as a redundant array. Do not treat a disk count as usable capacity or assume a particular RAID arrangement without verifying the configuration. A mirror can help with a disk failure, but it does not by itself provide an off-host copy or a tested recovery process.
Match the migration decision to workload stability and ownership
Storage growth alone is not a reason to migrate. The decision changes when the workload has predictable demand and the team is ready to operate the target environment.
A migration assessment is reasonable when:
- Data growth is visible across comparable measurements, rather than inferred from one alert.
- The service runs steadily enough to choose capacity without relying on rapid, unpredictable scaling.
- Required data, temporary working space, and recovery copies fit the target design.
- The team can monitor disk use, investigate failures, maintain backups, and restore the service.
- The application can be moved without losing a required managed database, object-storage, or regional dependency.
Keep the service in cloud or consider a hybrid layout when it has sharp capacity swings, needs fast expansion, depends on multiple regions, or relies on managed storage features that would be difficult to replace. A migration can shift work from a provider to the operations team. Count that responsibility; do not treat it as free simply because it is not a monthly line item.
For a database, plan the destination around both data files and the database’s operating needs. Include temporary files, logs, maintenance operations, and backup staging in the inventory. Document how writes will be handled during cutover and how to return to the previous environment if validation fails. Do not promise a zero-downtime move unless the architecture and tested procedure support it.
Use a staged decision before the budget is approved
Treat the choice as a sequence of review gates, not a single response to an alert.
First gate — confirm the cause. Collect df, df -i, and directory-level readings. Identify deleted files still held open if the totals do not reconcile. Assign owners to the large directories.
Second gate — remove only verified waste. Correct log rotation or cache retention where evidence supports it. Confirm the deletion is safe and that the service can regenerate or restore the data. Recheck filesystem use afterward.
Third gate — estimate required capacity. Compare dated readings, separate required data from controllable data, and include temporary operating space and recovery copies. Keep the estimate tied to the actual disk, partition, and filesystem layout.
Fourth gate — check the cloud expansion path. Read the platform’s current instructions for volume modification and filesystem growth. Verify billing for the selected region and billing period. After the change, confirm the operating system sees the intended capacity and the application can write to it.
Fifth gate — compare migration on a matching period. Use actual invoices, the intended target configuration and price, migration effort, backup requirements, and ongoing operational work. Keep cloud cleanup or expansion in the comparison as a valid alternative.
Final gate — approve only a complete recovery plan. Before moving production data, document the source and destination, backup location, restore steps, monitoring, validation criteria, and rollback trigger. Run a restore test before treating the new environment as recoverable.
The team can keep this audit trail beside the budget case. For a second view of how to separate a cloud bill signal from a verified cause, see the related cloud bill investigation guide. That guide concerns cost investigation; the storage decision here still needs disk measurements and a recovery plan.
FAQ: common disk-capacity decisions
Cleanup or expansion first?
Check whether the shortage is block space, inodes, or open deleted files. Then identify the directories driving use. If known disposable logs or caches are responsible, address their retention first. If required data is growing, expansion may be the right short-term fix, subject to the platform’s disk and filesystem procedure. Do not delete unknown database or backup files to postpone a capacity decision.
Why can Linux report low space when directory totals seem modest?
The readings may cover different things. df reports filesystem use, while du totals visible directory contents within its scan boundary. Inode exhaustion can prevent new files even when block space remains. A process can also hold a deleted file open. Compare filesystem and inode readings, verify mounts, and investigate open files before changing disk size.
When does a growing VM justify dedicated-server assessment?
Start an assessment when measurements show sustained growth, the service’s demand is stable enough to size, and the team can own storage operations and recovery. Keep cloud expansion or a hybrid design in play for workloads that need rapid scaling, multiple regions, or managed storage dependencies. Compare complete costs for the same period; the move is not automatically cheaper.
What needs to move with the data?
Move more than the files. Include ownership and permissions, database and application configuration, mount behavior, monitoring, backup copies, and documented restoration steps. Choose an off-host backup destination and verify that the required data can be restored before switching traffic. Keep a rollback path until the destination has passed application-level validation.
For this decision, the key comparison is not “cloud disk versus server disk.” It is a managed volume with provider-defined expansion steps versus a dedicated server whose disks, monitoring, backup, and recovery must be planned and operated by the team. Cloud volumes can carry separate capacity and related service charges, and the provider controls parts of the storage workflow. A dedicated machine can avoid some shared-VM constraints, but it does not remove single-server failure risk or the need for off-host backups.
If the measured workload is steady and the team accepts those responsibilities, check the actual disk options and charges in the cloudgbps server configurator before including a dedicated server in the budget. If growth is still unexplained, or the service depends on elasticity and managed storage, keep it in cloud while collecting better evidence.
Frequently asked questions
Should I clean up a full cloud disk or expand it first?
Check block space, inode use, and directory growth before changing capacity. Remove files only when their purpose and recovery path are known. If the pressure comes from retained logs, caches, or temporary files, fix the retention or rotation policy first. Expand the volume when required data is genuinely growing and cleanup cannot safely restore working space.
Why does Linux report a full disk when directories look small?
Compare filesystem usage with directory totals, then check inode availability. A large number of small files can exhaust inodes while leaving block capacity, and a deleted file can still consume space while a process holds it open. Use filesystem-level tools and inspect open deleted files before assuming the volume size is the cause.
When should a growing cloud workload move to a dedicated server?
Consider migration only when workload demand is steady enough to size in advance, the target capacity fits, and the team can own storage monitoring, backup, recovery, and hardware-failure planning. Keep bursty workloads, rapid scaling needs, multi-region dependencies, or systems tightly coupled to managed storage in cloud or a hybrid design unless those dependencies are addressed.
How should I plan data and backups after moving to a dedicated server?
Inventory each data set, its growth pattern, write behavior, and recovery priority. Decide which data needs disk redundancy and which copies must live outside the server. Document how to restore the operating system, database, and application, then test the process before switching production traffic. A larger disk or a mirrored layout does not replace an off-host recovery copy.
AMD EPYC 7543P Dedicated Server
From $455.2/month