ESXi 5.x の新規インストール後のローカル VMFS データストアの作成が次のエラーで失敗する: ホスト構成中のエラー:ディスクのパーティション情報の更新に失敗しました
search cancel

ESXi 5.x の新規インストール後のローカル VMFS データストアの作成が次のエラーで失敗する: ホスト構成中のエラー:ディスクのパーティション情報の更新に失敗しました

book

Article ID: 307011

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:

免責事項: これは英文の記事 「Creating a local VMFS datastore after a new ESXi 5.x install fails with the error: Error during the configuration of the host:Failed to update the disk partition information (2037192)」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。


  • ESXi 5.x の新規インストール後、ホストでローカル VMFS データストアを作成できない。
  • ESXi 5.x ホストでのローカル VMFS データストアの作成が失敗する。
  • データストア作成ウィザードで、次のエラーが表示される:

    ホスト構成中のエラー:ディスクのパーティション情報の更新に失敗しました

  • この問題は DELL PowerEdge R 720 サーバで発生するが、これに限定されない。
  • この問題は、ホストが USB キーからインストールまたは起動されると発生する。


Environment

VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0

Cause

この問題は、ローカル ディスクにパーティションが 2 つあり、ホストで VMFS パーティションを作成するためにこれらのパーティションを削除できない場合に発生します。

ローカル ディスクに 2 つのパーティションが存在するかどうかを判断するには、次のコマンドを実行します:

# fdisk -lu

出力は次のようになります:

Disk /dev/disks/naa.12345678901234567890123456789012: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders, total 584843264 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/disks/naa.12345678901234567890123456789012p1 63 80324 40131 de Unknown
Partition 1 does not end on cylinder boundary
/dev/disks/naa.12345678901234567890123456789012p2 * 81920 4276223 2097152 c Win95 FAT32 (LBA)
Partition 2 does not end on cylinder boundary

Resolution

この問題を解決するには、2 つのパーティションをローカル ディスクから削除します。

  1. 原因 セクションで fdisk コマンドによって返されたディスクの識別子をメモします。これはこの手順で必要になります。

  2. 次のコマンドを実行して、ディスクのパーティション テーブルを編集用に開きます:

    # fdisk -u /dev/disks/naa.12345678901234567890123456789012

    出力例:

    The number of cylinders for this disk is set to 36404.
    There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:

    1) software that runs at boot time (e.g., old versions of LILO)

    2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)

  3. 最初のパーティションを削除するには、d と入力してから 1 と入力します。例:

    Command (m for help): d
    Partition number (1-4): 1

  4. 2 つ目のパーティションを削除するには、d と入力してから 2 と入力します。例:

    Command (m for help): d
    Partition number (1-4): 2

  5. fdisk によって行われた変更を書き込むには、w と入力します。例:

    Command (m for help): w
    The partition table has been altered!

    Calling ioctl() to re-read partition table


  6. パーティションが削除されたことを確認するには、次のコマンドを実行します:

    # fdisk -lu

    出力例:

    Disk /dev/disks/naa.12345678901234567890123456789012: 299.4 GB, 299439751168 bytes
    255 heads, 63 sectors/track, 36404 cylinders, total 584843264 sectors Units = sectors of 1 * 512 = 512 bytes


  7. これでローカル VMFS データストアを問題なく追加することができます。


Additional Information

ESXi 5.x GPT パーティションを削除するには、次の手順を実行します。
  1. 次のコマンドを実行して disks/ フォルダに移動します:

    cd /vmfs/devices/disks/

  2. 次のコマンドを実行して、disks/ フォルダのファイルの長いリストをそのファイル サイズとともに表示するには:

    ls -lh

    注: ローカル アダプタについて vSphere Client にリストされるネットワーク アドレス権限 (NAA) 番号を検索し、メモします。
  3. 次のコマンドを実行します:

    partedUtil delete naanumber_2
    partedUtil delete naanumber_1
  4. パーティションが削除されたことを確認するには、次のコマンドを実行します:

    ls -lh
  5. vSphere Client で [ストレージ アダプタ] ビューの すべてを再スキャン をクリックします。
  6. ストレージの追加ウィザードに移動します。
詳細については、「Using the partedUtil command line utility on ESXi and ESX (1036609)」を参照してください。Creating a local VMFS datastore after a new ESXi 5.x install fails with the error: Error during the configuration of the host:Failed to update the disk partition information