将 LUN 格式化为 VMFS 5 失败并显示以下错误:不能让分区超出磁盘!
search cancel

将 LUN 格式化为 VMFS 5 失败并显示以下错误:不能让分区超出磁盘!

book

Article ID: 301278

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
免责声明:本文为 Formatting LUN as VMFS 5 fails with the error: Can't have a partition outside the disk!(2082806) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。


在一台 ESXi 主机加载一个新的 LUN 后,您遇到以下症状:

  • 无法将 LUN 格式化为 VMFS 5。
  • 将 LUN 格式化为数据存储失败并显示以下错误:

    在 ESXi xxx.xxx.xxx.xx 上调用对象 ha-datastoresystem HostDatastoreSystem.QueryVmfsDatastoreCreateOptions 失败
    (Call HostDatastoreSystem.QueryVmfsDatastoreCreateOptions for object ha-datastoresystem on ESXi xxx.xxx.xxx.xx failed)

  • 运行 PartedUtil getptbl /vmfs/devices/disks/naa.5000xxxxxxxxx 命令失败并显示以下错误:

    错误: 不能让分区超出磁盘!
    无法读取设备 /vmfs/devices/disks/naa.5000xxxxxxxxx 的分区表 (Error: Can’t have a partition outside the disk!
    Unable to read partition table for device /vmfs/devices/disks/naa.5000xxxxxxxxx
    )


Environment

VMware vSphere ESXi 5.5
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0

Cause

如果 LUN 上已有一个分区,会出现此问题。

Resolution

要解决此问题,请使用以下命令在受影响的磁盘上创建正常的 MS-DOS 分区:
partedUtil setptbl /vmfs/devices/disks/naa.5000c50023397a33 msdos


Additional Information

若数据未损坏,大多数分区问题都可以使用 PartedUtil 解决。Formatting LUN as VMFS 5 fails with the error: Can't have a partition outside the disk!