Sunday, September 26, 2010

How to create a file of a given size in Linux, fastly

dd if=/dev/zero of=[path to your file] bs=256K seek=[required size]/256K count=0

This will make a file of the given size, but does not fill the file with zero or anything, so the content of the file is undefined.

We will use this for volume creation in VBS-Lustre.

1 comment:

André Carlim said...

Hi, I am very interested on VBS-Lustre, however I am not finding information on this excelent software, if you could help me. My intension is provide a solution to distribute my virtual machine volumes with lower cost than a dedicated storage hardware! My contact is andre@ww.com.br. I wait anxiously for a response from.

Bye!