Vmkfstools: Difference between revisions

m
no edit summary
(Created page with "Command for directly working with the virtual disk at host level. With this command you can destroy whole virtual machines if you do not take the right precautions (hint: BAC...")
 
mNo edit summary
Line 4: Line 4:


   
   
  OPTIONS FOR FILE SYSTEMS:
=== Usage ===
  vmkfstools [options] target
 
Whereby target can be either a physical disk, a virtual disk or a device.
 
The command is mostly known for using it to manipulate virtual disks.
 
=== Options ===
from the help page of the command.
====OPTIONS FOR FILE SYSTEMS ====
   
   
  vmkfstools -C --createfs [vmfs3|vmfs5]
  vmkfstools -C --createfs [vmfs3|vmfs5]
Line 17: Line 26:
   vmfsPath
   vmfsPath
   
   
OPTIONS FOR VIRTUAL DISKS:
====OPTIONS FOR VIRTUAL DISKS====
   
   
  vmkfstools -c --createvirtualdisk #[gGmMkK]
  vmkfstools -c --createvirtualdisk #[gGmMkK]
Line 49: Line 58:
   vmfsPath
   vmfsPath
   
   
OPTIONS FOR DEVICES:
====OPTIONS FOR DEVICES====
   
   
           -L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|rea                              dresv] /vmfs/devices/disks/...
           -L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|rea                              dresv] /vmfs/devices/disks/...
Line 56: Line 65:
  vmkfstools -H --help
  vmkfstools -H --help


=== Usage ===
 
=== Options ===
=== Examples ===
=== Examples ===
Export a VM disk in 2GB chunks, note that since ESXi 5.x the 2GB sparse driver is disabled.
Export a VM disk in 2GB chunks, note that since ESXi 5.x the 2GB sparse driver is disabled.
1,274

edits