book
Article ID: 306914
calendar_today
Updated On:
Environment
VMware vSphere ESXi 5.0
VMware vSphere ESXi 5.1
Cause
This issue occurs if there are two partitions on the local disk and the host cannot delete these partitions to create a VMFS partition.
To determine if there are already two partitions on the local disk, run this command:
# fdisk -lu
You see output similar to:
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
To resolve this issue, remove the two partitions from the local disk:
- Make note of the disk identifier which was returned by the fdisk command in the Cause section as it is required in this procedure.
- Run this command to open the disk's partition table for editing:
# fdisk -u /dev/disks/naa.12345678901234567890123456789012
Example output:
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)
- To delete the first partition, type d and then type 1. For example:
Command (m for help): d
Partition number (1-4): 1
- To delete the second partition, type d and then type 2. For example:
Command (m for help): d
Partition number (1-4): 2
- To write the changes made by fdisk, type w. For example:
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table
- To confirm that the partitions have been deleted, run this command:
# fdisk -lu
Example output:
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
- You are now able to add the local VMFS datastore without issues.
Additional Information
To remove ESXi 5.x GPT partitions, perform these steps:
- Navigate to the disks/ folder by running the command:
cd /vmfs/devices/disks/
- To view a long list of the files with their file size in the disks/ folder by running the command:
ls -lh
Note: Look for the network address authority (NAA) number listed in the vSphere Client for the local adapter and note it.
- Run these commands:
partedUtil delete naanumber_2
partedUtil delete naanumber_1
- To verify that the partitions are deleted, run the command:
ls -lh - In the vSphere client, click Rescan All in the Storage Adapters view.
- Navigate through the Add Storage wizard.
For more information, see
Using the partedUtil command line utility on ESXi and ESX (1036609).
Identifying disks when working with VMware ESXi/ESXUsing the partedUtil command line utility on ESXi and ESXCreating a local VMFS datastore after a new ESXi 5.x install allows only 2 TB or lessESXi 5.x の新規インストール後のローカル VMFS データストアの作成が次のエラーで失敗する: ホスト構成中のエラー:ディスクのパーティション情報の更新に失敗しました