This alert triggers when a file system in a virtual machine (VM) is running out of available disk space.
The alert has the following severity levels:
The alert provides details about the specific file system (disk_name
), its
mount point (mount_point
), the VMI name, and namespace.
When a guest file system runs out of space, the VM may experience:
Critical space exhaustion (>95%) significantly increases the risk of immediate application or system failure.
Check the file-system usage metrics for the VMI:
# Get the domain name of the VMI
$ kubectl exec -it <pod-name> -n <namespace> -- virsh list
# Query filesystem info via QEMU Guest Agent
$ kubectl exec -it <pod-name> -n <namespace> -- virsh qemu-agent-command <domain-name> '{"execute": "guest-get-fsinfo"}'
You can also connect to the VMI by using the virtctl
console to inspect
disk usage in the guest OS:
$ virtctl console <vmi-name> -n <namespace>
In the guest OS, run commands to evaluate file-system usage. For example, in Linux guests:
$ df -h
$ du -sh /* | sort -h
Free up space in the guest file system:
Expand the disk size if the underlying PVC supports volume expansion:
a. Check if the storage class supports volume expansion:
$ kubectl get storageclass <storage-class-name> -o yaml | grep allowVolumeExpansion
b. Modify the PVC to request a larger size:
$ kubectl edit pvc <pvc-name> -n <namespace>
# Update the spec.resources.requests.storage value to a larger size
c. Restart the VM to apply the changes:
$ virtctl restart <vm-name> -n <namespace>
This step causes the disk.img to be resized to match the new PVC size. While this is primarily needed for filesystem volumes, it’s recommended to always restart for consistency.
Set up log rotation and cleanup policies within guest operating systems.
Use appropriate volume sizes when provisioning VMs based on expected workload requirements.
Consider using dynamic storage provisioning with StorageClasses that support volume expansion.
Implement automated cleanup scripts or maintenance tasks within VMs to manage disk space proactively.
Review and optimize application storage patterns to minimize unnecessary disk usage.
If the issue persists or the file system continues to fill up rapidly after cleanup, investigate the root cause such as application bugs, excessive logging, or unexpected data growth.
If you cannot resolve the issue, see the following resources: