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.
1
# Create a 1GB sparse file
2
dd if=/dev/zero of=/tmp/1GBsparse.img bs=1M count=1024
3
4
# Format with ext4
5
mkfs.ext4 /tmp/1GBsparse.img
6
7
# Mount the disk
8
mkdir /mnt/1GBsparse
9
mount /tmp/1GBsparse.img /mnt/1GBsparse/
Copied!
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.
1
[root ~] # cat /dev/zero > /mnt/1GBsparse/full
2
cat: write error: No space left on device
Copied!
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.
1
rm /mnt/1GBsparse/full
Copied!
Clean up
1
umount /mnt/1GBsparse/
2
rmdir /mnt/1GBsparse/
3
rm -f /tmp/1GBsparse.img
Copied!

On Windows

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.
1
create vdisk file="c:\test.vhd" type=fixed maximum=1000
2
select vdisk file=c:\test.vhd
3
attach vdisk
4
create partition primary
5
format fs=ntfs label="test" quick
6
assign letter=t
Copied!
Creating a virtual disk
new virtual disk is mounted
With the new disk attached you can fill up with an empty file executingfsutil 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 8mo ago
Copy link