Angels Technology

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, July 24, 2012

convert thick disk to thin using a command line via the vmkfstools on the esxi host

Posted on 8:37 AM by Unknown

    So you have a thick provisioned disk and you want to convert it to a thin provisioned disk.
    Another issue you have is that you don’t have storage vmotion.
    Well, what do you do then?


    Here is out think provisioned disk





    Step 1: power off you virtual machine.
    Step 2: ssh in to the esxi host.
    Step 3: go to the directory where you have your vmdk disk



    Step 4:  convert the thick disk to think using this command
    vmkfstools -i SERVERNAME.vmdk -d thin thinSERVERNAME.vmdk
    So in the above example it will be
    vmkfstools -i Convert3.vmdk -d thin thinConvert3.vmdk



    Step 5: Move original vmdk out of the way
    mv SERVERNAME-flat.vmdk orig-SERVERNAME-flat.vmdk
    So the example it will be
    mv Convert3-flat.vmdk orig-Convert3-flat.vmdk

    Step 6 . Move new thin .vmdk flat file into place
    mv thinSERVERNAME-flat.vmdk SERVERNAME-flat.vmdk
    So the example it will be
    mv thinConvert3-flat.vmdk Convert3-flat.vmdk





    Step 7: remove the vm from inventory and readd. Then power on
    (right click vm and remove from inventory via vsphere client )


    Now your vm is thin provisioned:



    based on : http://communities.vmware.com/message/1668191

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in command line, datastore, datastore. rdm, esxi, vm, vmdk, VMFS, vmkfstools, vmware, vsphere | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Convert your physical RDM (rdmp) to a virtual RDM (rdmv)
    So you have a raw disk mapping on your virtual machine in esxi   and you wanted to convert it from a rdmp to a rdmv. Using the VMware cli...
  • How to run a powershell script for vmware : walkthrough
    Here is a walk through on how to make and run a powershell /powercli script The methods also apply to powershell but this is target towa...
  • VM script : To Get the VM data with Snapshot, Datastore, Total Disk Size, Cluster Name, OS Name
    Here is a good script I came across which get's some details of a virtual machine: Its from the technet script repository : here # To Ge...
  • convert thick disk to thin using a command line via the vmkfstools on the esxi host
    So you have a thick provisioned disk and you want to convert it to a thin provisioned disk. Another issue you have is that you don’t have ...
  • Browsing Vmware logs in the DCUI (view esxi logs via console)
    Why would you view your logs in the console? Well sometimes it's the only place that is accessible if there is an error. Go to your DC...
  • How to read PSOD errors on your esxi host
    Here are some links that are useful to help you interpret why psod errors are happening. Machine Check Exception errors: mce http://kb.vmwar...
  • Vmware DRS anti affinity rules wont let you enter maintenance mode for a esxi host
    You have a DRS rule that specifies that 2 vms need to be kept apart: In this case: 250-FT and 250sql3 For larger clusters with multiple...
  • Setting your esxi host to restart automatically after crash or purple screen aka psod
    The default and recommended setting is to leave the purple screen of death up to help you notice that het host has died and also leave t...
  • Visualesxtop problems starting the java bat file
    What is it: Visualesxtop, a new fling that gives you a graphical way to view esxtop data Get it here http://labs.vmware.com/flings/visua...
  • Migrating VMs : don’t use OVA/OVF?
    Don’t use OVF to move virtual machines around in your environment? Interesting thread here, http://communities.vmware.com/message/2110421 ...

Categories

  • 5.1
  • backup
  • cloud
  • cluster
  • command line
  • console
  • converter
  • cpu
  • datacenter
  • datastore
  • datastore. rdm
  • DCUI
  • dell
  • disaster recovery
  • display
  • DR
  • e1000
  • e1000e
  • ec2
  • esx
  • esxi
  • esxtop
  • extent
  • Good for enterprise
  • HA
  • hcl
  • host
  • HP
  • ibm
  • iometer
  • iscsi
  • iso
  • linked mode
  • logs
  • MAC
  • memory
  • NFS
  • NIC
  • NTP
  • ova
  • ovf
  • p2v
  • pcie
  • performance
  • phone
  • powercli
  • powershell
  • PSOD
  • raid
  • RDM
  • resource pool
  • rvtools
  • scsi
  • sddc
  • snapshots
  • SQL
  • SRM
  • ssh
  • storage
  • svmotion
  • syslog collector
  • v2v
  • vapp
  • vcenter
  • vcloud
  • vcp
  • veeam
  • VI console
  • vm
  • vmdk
  • VMFS
  • vmkfstools
  • vmotion
  • VMUG
  • vmware
  • vmware tools
  • vmware.esxi
  • vmxnet3
  • vsphere
  • vum
  • web client
  • windows

Blog Archive

  • ►  2013 (28)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (14)
    • ►  May (1)
    • ►  April (1)
    • ►  March (5)
    • ►  February (1)
    • ►  January (1)
  • ▼  2012 (138)
    • ►  December (2)
    • ►  November (13)
    • ►  October (26)
    • ►  September (19)
    • ►  August (35)
    • ▼  July (34)
      • Esxi : Recovering from a bad update : Last known g...
      • convert thick disk to thin using a command line vi...
      • Setup NTP for your ESXi host
      • Boot virtual machine from ISO : tips on if you are...
      • Best practices for using VMware Converter : Checklist
      • Iometer test of USB flash drive connected to a Vmw...
      • Can you storage vmotion (svmotion) your virutalize...
      • vCenter and Hosts Disconnected -- Reason: Cannot v...
      • Network configuration not updated in configuration...
      • There are issues communicating with the following ...
      • "The Fully Qualified Domain Name cannot be resolve...
      • Notes: Linked-mode vsphere vcenter pre-requisites ...
      • What to the DCUI console logs show
      • Browsing Vmware logs in the DCUI (view esxi logs ...
      • SRM Site Recovery Manager best practices
      • Keeping nic configurations when p2v
      • What is stretched storage cluster / metro storage...
      • How to create a vapp in esxi or vsphere
      • Thought: Raid 0 and Raid 1 : quick easy way to rem...
      • Setting a MAC for a vm manually
      • Extents and VMFS volumes
      • How to add a Raw disk to your esx host (RDM)
      • How to describe vsphere vs vcenter to a layman
      • How to setup a cluster in vmware vsphere
      • Matching virtual disks to the Disks on the guest
      • How to attach a vmdk to VM
      • How to attach a ISO to a vmware guest via vsphere ...
      • personal thoughts: veeam vs vranger
      • Copy-vmguestfile :: Copying data from powercli to ...
      • Vmware converter : does disabling ssl make your vm...
      • Growing and Expanding a VMFS
      • How to connect to the vpshere web client
      • Snapshot creation /reversion/ deletion/ listing w...
      • Enable ssh from powercli
    • ►  June (9)
Powered by Blogger.

About Me

Unknown
View my complete profile