Adding A USB Disk as VMFS Datastore in #ESXi 7.02
Step1: open the Esxi and enable the SSH.
Step2: Open the putty and logging with root user.
Step3: Stop #USB Arbitrator
/etc/init.d/usbarbitrator stop
Step4: Write A Label to The Device --Local USB Direct: Access: mpx.vmhba32:C0:T0:L0
partedUtil mklabel /dev/disks/mpx.vmhba32:C0:T0:L0 gpt
Step5: calculate the disk end sector.
eval expr $(partedUtil getptbl /dev/disks/mpx.vmhba32:C0:T0:L0 | tail -1 | awk '{print $1 " \\* " $2 " \\* " $3}') - 1
Step6: Create the partition
partedUtil setptbl /dev/disks/mpx.vmhba32:C0:T0:L0 gpt "1 2048 30844799 AA31E02A400F11DB9590000C2911D1B8 0"
Step7: Format Partition With VMFS6
vmkfstools -C vmfs6 -S USB-Storage /dev/disks/mpx.vmhba32:C0:T0:L0:1
Check the disk in ESXi storage.
#VMware
![](https://s2.save4k.ru/pic/hT8CQ2QHdIo/maxresdefault.jpg)