原文链接点击此处
按F2输入密码进入设置界面->Troubleshoot ing Options->Endabled
或者直接在web界面启用shell
$ /etc/init.d/usbarbitrator stop
$ chkconfig usbarbitrator off
esxcli storage core device list |grep -i usb
或
ls /dev/disks/
或
$ partedUtil mklabel /dev/disks/mpx.vmhba32\:C0\:T0\:L0 gpt
$ partedUtil getptbl /dev/disks/mpx.vmhba32\:C0\:T0\:L0
或
$ partedUtil mklabel /dev/disks/naa.5000000000000001 gpt
$ partedUtil getptbl /dev/disks/naa.5000000000000001
$ eval expr $(partedUtil getptbl /dev/disks/mpx.vmhba32\:C0\:T0\:L0 | tail -1 | awk '{print $1 " \\* " $2 " \\* " $3}') - 1
或
$ eval expr $(partedUtil getptbl /dev/disks/naa.5000000000000001 | tail -1 | awk '{print $1 " \\* " $2 " \\* " $3}') - 1
$ partedUtil setptbl /dev/disks/mpx.vmhba32\:C0\:T0\:L0 gpt "1 2048 976768064 AA31E02A400F11DB9590000C2911D1B8 0"
或
$ partedUtil setptbl /dev/disks/naa.5000000000000001 gpt "1 2048 976768064 AA31E02A400F11DB9590000C2911D1B8 0"
$ vmkfstools -C vmfs5 -S USB_Datastore /dev/disks/mpx.vmhba32\:C0\:T0\:L0:1
或
$ vmkfstools -C vmfs5 -S USB_Datastore /dev/disks/naa.5000000000000001:1
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:ESXI | esxi6.0-6.7下添加USB硬盘作为数据存储