当前位置:网站首页>Esxi attaching mobile (Mechanical) hard disk detailed tutorial

Esxi attaching mobile (Mechanical) hard disk detailed tutorial

2022-07-07 07:04:00 Go crazy first.

One 、 Turn on EXSI SSH service

Get into ESXI operating system , Click host , Right click Service , Turn on both options on the right .

  Two 、 Get into SSH

Do not connect the mobile hard disk at this time !

#  stop it usbarbitrator service 
$ /etc/init.d/usbarbitrator stop
$ chkconfig usbarbitrator off

Connect the hard disk ( disk ):

#  distinguish usb Interface 
$ esxcli storage core device list |grep -i usb

Enter the following command to get the hard disk information : 

$ ls /dev/disks/

  Define the mobile hard disk as gpt Zoning (GUID Partition ): 

$ partedUtil mklabel /dev/disks/mpx.vmhba35:C0:T0:L0 gpt

  Print partition table :

$ partedUtil getptbl /dev/disks/mpx.vmhba35:C0:T0:L0

  Convert the binary value of the hard disk :

$ eval expr $(partedUtil getptbl /dev/disks/mpx.vmhba35:C0:T0:L0 | tail -1 | awk  '{print $1 " \\* " $2 " \\* " $3}') - 1

  Change to binary value of hard disk :

(AA31E02A400F11DB9590000C2911D1B8) yes VMFS Data storage partition GUID, hinder 0 Attribute , Don't change .

#  take (mpx.vmhba35:c0:T0:L0) Change to binary value of hard disk 5860528064
$ partedUtil setptbl /dev/disks/mpx.vmhba35:C0:T0:L0 gpt "1 2048 5860528064 AA31E02A400F11DB9590000C2911D1B8 0"

Mount the mobile hard disk :

$ vmkfstools -C vmfs5 -S USB_Datastore /dev/disks/mpx.vmhba35:C0:T0:L0:1

  Successfully mount ! 

  Reference tutorial :

https://zhuanlan.zhihu.com/p/485471368 

原网站

版权声明
本文为[Go crazy first.]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070218236894.html