2 Replies Latest reply on Feb 17, 2012 7:15 AM by continuum

    How to caculate the size for a VMFS volume ?

    continuum Guru
    vExpertCommunity Warriors

      Creating a new partitiontable after ESXi 4.*  wiped it blank was quite easy with fdisk.
      Nowadays with partedUtil and ESXi 5   this is not so trivial.


      Consider we have a disk/Lun that looks like this


      ~ # partedUtil get /vmfs/devices/disks/mpx.vmhba1:C0:T4:L0
      93990 255 63 1509949440


      and lets assume that the original - now messed up Volume was created with ESXi 5.
      How do I calculate the value for the end-sector so that I can re-create the VMFS-partition like this:


      partedUtil setptbl "/vmfs/devices/disks/mpx.vmhba1:C0:T4:L0"  gpt  "1 2048 ??? AA31E02A400F11DB9590000C2911D1B8 0"

      In this case the correct value was 1509949349  but how can I calculate it if I dont know the correct value ???