VMware
Rescan Storage
How to rescan storage ?
USB Datastore
How to add an USB hard drive as Datastore ?
Disabling usb arbitrator service
Stopping
/etc/init.d/usbarbitrator stop
Disabling
chkconfig usbarbitrator off
Labeling
partedUtil mklabel /dev/disks/mpx.vmhba32:C0:T0:L0 gpt
Get the partition table
⚠️ This command will bring you a number :
eval expr $(partedUtil getptbl /dev/disks/mpx.vmhba32:C0:T0:L0 | tail -1 | awk '{print $1 " \\* " $2 " \\* " $3}') - 1
Dont forget to fill the number found :
partedUtil setptbl /dev/disks/mpx.vmhba32:C0:T0:L0 gpt "1 2048 ${NUMBER} AA31E02A400F11DB9590000C2911D1B8 0"
Last step
vmkfstools -C vmfs6 -S USB-Datastore /dev/disks/mpx.vmhba32:C0:T0:L0:1
License
Removing License
rm -r /etc/vmware/license.cfg
Get a new trial license
cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg
Restarting VPXA
/etc/init.d/vpxa restart