Posts

Showing posts with the label big file

Create a big file on ESXi 6.x with zero's written on it (Testing Purpose)

Many times for the testing purpose you need to create big capacity dummy files on the filesystems to check few features of disks/arrays or some kind of drivers. So here I will show you how you can create such a big file and also depending on your requirement if you need just an empty file or you need to zero it out, means writing zero's on it. ESXi server has a inbuilt utility which makes this task easier, named "vmkfstool". This is the same utility which is also used for making new VMDK files for the VM's, and that's what we will be using for testing purpose: Create 50GB large empty file: # vmkfstools -c 50G /vmfs/volumes/esx_ds/dummy-fill/fill1.vmdk -d thin Create: 100% done. Create 50GB large file with zero's written on it: # vmkfstools -c 50G /vmfs/volumes/esx_ds/dummy-fill/fill1.vmdk -d eagerzeroedthick Creating disk '/vmfs/volumes/esx_ds/dummy-fill/fill1.vmdk' and zeroing it out... Create: 100% done. [root@CRT3-D-ESX6U3:~] ls -l...

Create a big file on RHEL/CentOS with zero's written on it (Testing Purpose)

Many times for the testing purpose you need to create big capacity dummy files on the filesystems to check few features of disks/arrays or some kind of drivers. So here I will show you how you can create such a big file and also depending on your requirement if you need just an empty file or you need to zero it out, means writing zero's on it. To create an empty 50GB file using dd utility: # dd if=/dev/zero of=/dummy-fill/dummy_file.img bs=1 count=0 seek= 50G 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0.00042393 s, 0.0 kB/s Here above command will create 50GB of the file named " dummy_file.img " inside " /dummy-fill/ " folder. Where "53687091200" is in Bytes which is equivalent to 50GB. To create a big 50GB file and to write zero's on it follow below commands; # dd if=/dev/zero of=/dummy-fill/ dummy_file.img  count=1024 bs=52428800 1024+0 records in 1024+0 records out 53687091200 bytes (50 GB) copied, 58.52256 s, 426 MB/...

Create a big file on Windows 2012R2 and 2016 with zero's written on it (Testing Purpose)

Many times for the testing purpose you need to create big capacity dummy files on the filesystems to check few features of disks/arrays or some kind of drivers. So here I will show you how you can create such a big file and also depending on your requirement if you need just an empty file or you need to zero it out, means writing zero's on it. To create an empty 50GB file using Powershell: PS C:\>   fsutil file createnew d:\dummy_file.img 53687091200 Here above command will create 50GB of the file named "dummy_file.img" inside "D:" filesystem. Where " 53687091200 " is in Bytes which is equivalent to 50GB. To create a big 50GB file and to write zero's on it follow below commands; Creates a new file of a specified size: PS C:\> fsutil file createnew  d:\dummy_file.img  53687091200 File d:\fill1 is created Set the valid data length for a file: PS C:\> fsutil file setvaliddata d:\ dummy_file.img  53687091200 Valid data le...