Convert sparse disk to Virtual Disk -thick
Space Efficient Virtual Disk is a new virtual disk (vmdk) format. It is a sparse format similar to redo log based disk with the added benefit of both growing and shrinking dynamically. This new vmdk format is applicable to both block based storage (iSCSI, FC etc.,) and file based storage (NFS). The block size of these disks is 4KB that aligns well with the NTFS block size and provides maximum space efficiency. In addition, it helps keep IOs aligned on most storage arrays .
Most of the time we will get error after converting a Physical Server to Virtual and save it as Target is workstation . And later after uploading the VMDK & VMX file and powering on the VM . The Solution this problem is convert the sparse disk to thick and power on the vm .
Note :- Virtual Device Node can be SCSI also .
We have to convert the sparse disk using the vmkfstools command.
To do this perform the following steps:
1. SSH onto the ESX server and navigate to the folder containing the vmdk file in sparse format.
[root@ESX1] # cd /vmfs/volumes/Datastore1/VM1 |
vmkfstools -i VM1.vmdk -d eagerzeroedthick VM1-thick.vmdk |
[root@ESX1] # vmkfstools -i "VM1.vmdk" -d eagerzeroedthick "VM1-thick.vmdk" |
Destination disk format : VMFS eagerzeroedthick |
Cloning disk 'VM1.vmdk' ... |
Clone: 100% done . |
2. Run the following command to convert VM1.vmdk to VM1-thick.vmdk:
The result will be as follows:
Note :- Be patient till you will be able to see in console
[root@ESX1]
#
3. Once it completes remove the old sparse disk from virtual machine by using edit option .
4.Add the newly created thick disk, which is VM1-thick.vmdk, to the VM. You will now see that the format of the disk has changed to thick:
Note :- Virtual Device Node can be SCSI also .
4. Power on the VM and ensure it is working properly.
No comments:
Post a Comment