esxi7/8 使用usb存储

在第一次的引导界面,按shift+O,输入

systemMediaSize=min

1.停止ESXI的USB检查进程,并禁止开机自动启动

/etc/init.d/usbarbitrator stop
chkconfig usbarbitrator off

2.进入/vmfs/devices/disks目录

cd /vmfs/devices/disks

3.使用ls命令列出磁盘分区

ls
partedUtil getptbl mpx.vmhba32:C0:T0:L0

gpt

31130 255 63 500118192

1 64 204863 C12A7328F81F11D2BA4B00A0C93EC93B systemPartition 128

5 208896 8595455 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

6 8597504 16984063 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

7 16986112 67108863 4EB2EA3978554790A79EFAE495E21F8D vmfsl 0

逐行复制,逐行更改。

partedUtil setptbl mpx.vmhba32:C0:T0:L0 gpt \
"1 64 204863 C12A7328F81F11D2BA4B00A0C93EC93B 128" \

"5 208896 8595455 EBD0A0A2B9E5443387C068B6B72699C7 0" \

"6 8597504 16984063 EBD0A0A2B9E5443387C068B6B72699C7 0" \

"7 16986112 67108863 4EB2EA3978554790A79EFAE495E21F8D 0" \

"8 67110912 500118158 AA31E02A400F11DB9590000C2911D1B8 0"

执行
vmkfstools -C vmfs6 -b 1m -S UsbDatastore mpx.vmhba32:C0:T0:L0:8

OK