Posts

Showing posts with the label vmkfstools

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...

How to do Lun reset and target reset operations on ESXi 6.x ?

LUN reset - Resets the specified LUN by clearing any SCSI reservation on the LUN and making the LUN available to all servers again. The reset does not affect any of the other LUNs on the device. If another LUN on the device is reserved, it remains reserved. Target reset - Resets the entire target. The reset clears any SCSI reservations on all the LUNs associated with that target and makes the LUNs available to all servers again. To check all the available devices: # esxcfg-scsidevs -l naa.60002ac000000000000000860001cb64    Device Type: Direct-Access    Size: 2609152 MB    Display Name: 3PARdata Fibre Channel Disk (naa.60002ac000000000000000860001cb64)    Multipath Plugin: NMP    Console Device: /vmfs/devices/disks/naa.60002ac000000000000000860001cb64    Devfs Path: /vmfs/devices/disks/naa.60002ac000000000000000860001cb64    Vendor: 3PARdata  Model: VV        ...