Simulate a full disk

If you want to test CloudRadar, simulate a full disk to see how the alerting is working.

Executing the following commands is harmless. Just 1 GB of your hard disk is used temporarely. Your disk is not really filled.

On Linux

Create and mount a so-called sparse file.

# Create a 1GB sparse file
dd if=/dev/zero of=/tmp/1GBsparse.img bs=1M count=1024
# Format with ext4
mkfs.ext4 /tmp/1GBsparse.img
# Mount the disk
mkdir /mnt/1GBsparse
mount /tmp/1GBsparse.img /mnt/1GBsparse/
After some while the new disk is recognized an reported

Now fill up the new disk with zeros, so no space is left.

[root ~] # cat /dev/zero > /mnt/1GBsparse/full
cat: write error: No space left on device
The full disk is detected.
Events appear on the dashboard.
Alerts are sent via email

Empty the disk and all alerts and events should recover after some while.

rm /mnt/1GBsparse/full

Clean up

umount /mnt/1GBsparse/
rmdir /mnt/1GBsparse/
rm -f /tmp/1GBsparse.img