Generate dummy file with actual size

  • This can be used for testing different types of thresholds

  • It generates a dummy file with actual size that occupies space

Steps:

  • Create the file on disk partition you want:

touch file_name
  • Then allocate actual disk size:

fallocate -l 200G file_name
  • This will add 200 GB from the disk space to the file_name

To increase the size of an already existing filename you can use the same command:

fallocate -l 300G file_name
  • This will modify the size to 300 GB

Last updated