On a Linux VM I would like to TEST the NAGIOS monitoring more deeply than just switching off the VM or disconnecting the virtual NIC; I would like to test or "enforce a disk space alarm" through occupying several % of free space for a short period of time.
I know that I could just use a
dd if=/dev/zero of=/tmp/hd-fillup.zeros bs=1G count=50
or something like that... but this takes time and loads the system and requires again time when removing the test files with rm.
Is there a quick (almost instant) way to fill up a partition that does not load down the system and takes a lot of time ? im thinking about something that allocates space, but does not "fill" it.