Search the VMware Knowledge Base (KB)
View by Article ID

Formatting LUN as VMFS 5 fails with the error: Can't have a partition outside the disk! (2082806)

  • 4 Ratings

Symptoms

After a new LUN is mounted to an ESXi host, you experience these symptoms: 

  • Cannot format LUN as VMFS 5.
  • Formatting LUN as datastore fails with the error:

    Call HostDatastoreSystem.QueryVmfsDatastoreCreateOptions for object ha-datastoresystem on ESXi xxx.xxx.xxx.xx failed

  • Running the PartedUtil getptbl /vmfs/devices/disks/naa.5000xxxxxxxxx command fails with the error:

    Error: Can’t have a partition outside the disk!
    Unable to read partition table for device /vmfs/devices/disks/naa.5000xxxxxxxxx

Cause

This issue occurs if LUN already has a partition on it.
 

Resolution

To resolve this issue , create a normal MS-DOS partition on the affected disks using this command:
 
partedUtil setptbl /vmfs/devices/disks/naa.5000c50023397a33 msdos

Additional Information

You can resolve most of the partition issues with PartedUtil, provided the data is not corrupt.

See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 4 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 4 Ratings
Actions
KB: