Objectif : créer deux partitions sur un disque pour avoir deux DataStore VMFS
LUN: 1.6 To
Identifier le disque
ls -l /vmfs/devices/disks
Créer les partitions avec partedUtil
partedUtil setptbl "/vmfs/devices/disks/mpx.vmhba1:C0:T1:L0" gpt "1 2048 1677716144 AA31E02A400F11DB9590000C2911D1B8 0" "2 1677716145 3515230207 AA31E02A400F11DB9590000C2911D1B8 0"
Lister les partitions créées
ls -l /vmfs/devices/disks/ lrwxrwxrwx 1 root root 19 Apr 20 13:58 vml.0000000000766d686261313a313a30 -> mpx.vmhba1:C0:T1:L0 lrwxrwxrwx 1 root root 21 Apr 20 13:58 vml.0000000000766d686261313a313a30:1 -> mpx.vmhba1:C0:T1:L0:1 lrwxrwxrwx 1 root root 21 Apr 20 13:58 vml.0000000000766d686261313a313a30:2 -> mpx.vmhba1:C0:T1:L0:2
Création des Datastores VMFS
vmkfstools -C vmfs5 -b 1m -S DS1 /vmfs/devices/disks/vml.0000000000766d686261313a313a30:1
vmkfstools -C vmfs5 -b 1m -S DS2 /vmfs/devices/disks/vml.0000000000766d686261313a313a30:2
Source
KB 1009829: Manually creating a VMFS volume using vmkfstools -C
KB 1036609: Using the partedUtil command line utility on ESXi and ESX