Guide to regaining access to a Vultr instance when disk space is completely full, preventing logins and normal operation
If you’re unable to log in to your Vultr Compute Instance even after using the web console the issue may be caused by 100% disk usage. When disk space is full, services may fail to start, login sessions can be blocked, and even plan resizing may not succeed until space is freed.
Follow the steps below to mount the SystemRescue ISO and free up some space:
Follow these steps to manually mount the root disk and access your instance's file system:
List the attached block devices to identify the root partition.
# lsblk
Output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 647.7M 1 loop /run/archiso/sfs/airootfs
sr0 11:0 1 720M 0 rom /run/archiso/bootmnt
vda 253:0 0 180G 0 disk
├─vda1 253:1 0 260M 0 part
└─vda2 253:2 0 179.7G 0 part
Mount the root block device (e.g., /dev/vda2
) to the /mnt
directory.
# mount /dev/vda2 /mnt
Replace /dev/vda2
with the correct partition name from your instance if different.
Change the root path to enter your instance environment.
# chroot /mnt
To identify which directories are consuming the most space, run.
# du -h --max-depth=1 /var
Output:
4.3G /var/lib
261M /var/cache
298M /var/log
4.8G /var
Repeat the command in other directories (/home
, /usr
, etc.) to investigate space usage further.
Run the below command to list large files by size.
# ls -larSh /var/log/
This shows all files in /var/log/, sorted in descending order of size.
After you have verified the large files and folders, use the below commands to remove then from the server.
To delete a file:
# rm /path/to/unneeded/file
To delete a directory:
# rm -rf /path/to/directory
/var/log/
, /var/cache/
, or /tmp
.
After you have freed up some disk space in your server, exit the chroot environment.
# exit
Reboot the server.
# reboot
Detach the ISO from the instance in the Custom ISO section.
After the instance reboots, you should be able to log in normally via SSH or the web console.