Lors de la création d’un Datastore sur un disque déjà utilisé, l’erreur Vim.Host.DiskPartitionInfo.spec peut se produire. Il faut supprimer les partitions actuellement présentent sur la Lun.
Utilitaire: « partedUtil »
Get Partitions : get Set Partitions : set ["partNum startSector endSector type attr"]* Delete Partition : delete Resize Partition : resize Get Partitions : getptbl Set Partitions : setptbl label ["partNum startSector endSector type/guid attr"]* Fix Partition Table : fix Create New Label (all existing data will be lost): mklabel label Show commonly used partition type guids : showGuids Get usable first and last sectors : getUsableSectors Fix GPT Table interactively : fixGpt
Lister le chemin du disque
esxcfg-scsidevs -l
mpx.vmhba1:C0:T1:L0
Device Type: Direct-Access
Size: 1716421 MB
Display Name: Local VMware Disk (mpx.vmhba1:C0:T1:L0)
Multipath Plugin: NMP
Devfs Path: /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0
Lister les partitions présentent:
partedUtil get /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0
218813 255 63 3515231324
1 2048 2929354751 7 0
Supprimer les partitions:
partedUtil delete /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0 1
La partition VMFS peut être créée.