An error occurred while adding the local disk in ESXI5.5, and an error occurred in esxi5.5.
On esxi5 (Version 5.0), a gb Western Digital enterprise hard drive was added. It was previously used in Win2008.
When adding storage, an error is reported:
Esxi calls "HostDatastoreSystem. QueryVmfsDatastoreCreateOptions" of the object "ha-datastoresystem" on x"
Go to configuration> Security configuration file to enable the ssh service.
Result The fdisk-l command is unavailable. The following message is displayed:
~ # Fdisk-l
Found valid GPT with protective MBR; using GPT
Use the partedUtil command.
~ # Ls/vmfs/devices/disks or ~ # Ls/dev/disks
You can see the WDC--WD500 ***, This is the newly added disk, followed by the number 1-6 is the number of partitions.
Google did not find the partition to be formatted or deleted.
We plan to use partedUtil delete/dev/disks/t10.ATA _____ WDC_WD5003ABYX2D01WERA0 _ *. This is to delete the partition. The Partition Number is missing after the command, so it fails.
PartedUtil-h for help.
Create New Label (all existing data will be lost): mklabel <diskName> <label>
With this option, all data will be lost.
~ # PartedUtil mklabel/dev/disks/t10.ATA _____ wdc_wd5003abyx2d01wera0_________________________wd2dwmayp0181073 msdos
Putty can be used for copying. If the disk name is so long, it is easy to make a mistake.
After this command is executed, there is no output, but with ls, there is no partition under the disk.
Adding a disk to the VMware vSphere Client is successful.
In ssh, the new hard drive has one partition.
T10.ATA _____ wdc_wd5003abyx2d01wera0_________________________ wd2dwmayp0181073
T10.ATA _____ wdc_wd5003abyx2d01wera0_________________________ wd2dwmayp0181073: 1
Create a new disk for the VM, manually specify the disk storage, and select the Newly Added Disk.