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.
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 my.cloudradar.io
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
Open a terminal with administrative rights, and type in
diskpart
. On the diskpart command prompt enter the following commands to VHD disk container with a size of 1GB, format and mount it. create vdisk file="c:\test.vhd" type=fixed maximum=1000
select vdisk file=c:\test.vhd
attach vdisk
create partition primary
format fs=ntfs label="test" quick
assign letter=t

Creating a virtual disk

new virtual disk is mounted
With the new disk attached you can fill up with an empty file executing
fsutil file createnew T:\data 980000000
. Your disk is filled and you should get a message.
Your disk is filled.

Full disk detected.
Now delete the file to recover the alert with
del t:\data
. After you have received the recovery you can eject the virtual disk and delete the file c:\test.vhd
.
Eject virtual disk
Last modified 2yr ago