![]() So, make a backup first and try at your own risk. ![]() As far as it's known this is an unsupported method and can defiantlyĬorrupt or break you virtual disk. ~ # /sbin/partedUtil "setptbl" "/vmfs/devices/disks/mpx.This article gives the steps to shrink a Vmware VMDK virtual disk file from command-line with the Vmware utility vmkfstools. Once you have the 3 arguments specified, we can now create the partition: To view all GUID types, you can use the "showGuids" option: type/GUID - This is the GUID key for a particular partition type, for VMFS it will always be AA31E02A400F11DB9590000C2911D1B8.endSector - This will need to be calculated based on size of your device.startSector - This will always be 2048 for 1MB alignment for VMFS5.partitionNumber - Pretty straight forward.The last argument is actually a string comprised of 5 individual parameters: The diskName in this example is the full path to the device which is /vmfs/devices/disks/mpx.vmhba1:C0:T2:L0 partitionNumber startSector endSector type/GUID attribute. ![]() Next we will need to create a partition by using the " setptbl" option: ~ # /sbin/partedUtil "getptbl" "/vmfs/devices/disks/mpx.vmhba1:C0:T2:L0" We can view the partitions of a device by using the " getptbl" option and ensure we don't have an existing VMFS volume: There is also only one block size of 1MB versus the 2,4 and 8 that was available in ESX(i) 4.x With ESXi 5, an MBR (Master Boot Record) partition table is no longer used and has been replaced with a GPT (GUID Partition Table) partition table. ![]() Show commonly used partition type guids : showGuids ![]() Set Partitions : setptbl *Ĭreate New Label (all existing data will be lost): mklabel Set Partitions : set *ĭelete Partition : delete Resize Partition : resize However, if you do not have access to the vSphere Client or you wanted to format additional VMFS volumes via a kickstart, you can do so using the CLI and the partedUtil under /sbin. VMware always recommends formatting and creating a new VMFS volume using the vSphere Client as it automatically aligns your VMFS volume. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |