当前位置:网站首页>ESXI挂载移动(机械)硬盘详细教程
ESXI挂载移动(机械)硬盘详细教程
2022-07-07 02:18:00 【不撸先疯。】
一、开启EXSI SSH服务
进入ESXI操作系统,点击主机,右键服务,将右边两个选项全部打开。

二、进入SSH
此时不要接上移动硬盘!
# 停止usbarbitrator服务
$ /etc/init.d/usbarbitrator stop
$ chkconfig usbarbitrator off接上硬盘(磁盘):
# 识别usb接口
$ esxcli storage core device list |grep -i usb
输入下述命令得到硬盘信息:
$ ls /dev/disks/
定义移动硬盘为gpt分区方式(GUID分区):
$ partedUtil mklabel /dev/disks/mpx.vmhba35:C0:T0:L0 gpt打印分区表:
$ partedUtil getptbl /dev/disks/mpx.vmhba35:C0:T0:L0
换算硬盘的二进制数值:
$ eval expr $(partedUtil getptbl /dev/disks/mpx.vmhba35:C0:T0:L0 | tail -1 | awk '{print $1 " \\* " $2 " \\* " $3}') - 1
修改为硬盘二进制数值:
(AA31E02A400F11DB9590000C2911D1B8)是VMFS数据存储分区的GUID,后面的0是属性,不要更改。
# 将(mpx.vmhba35:c0:T0:L0)修改为硬盘二进制数值5860528064
$ partedUtil setptbl /dev/disks/mpx.vmhba35:C0:T0:L0 gpt "1 2048 5860528064 AA31E02A400F11DB9590000C2911D1B8 0"
挂载移动硬盘:
$ vmkfstools -C vmfs5 -S USB_Datastore /dev/disks/mpx.vmhba35:C0:T0:L0:1
成功挂载! 

参考教程:
边栏推荐
猜你喜欢

途家、木鸟、美团……民宿暑期战事将起

Unable to debug screen program with serial port

基于FPGA的VGA协议实现

Matlab / envi principal component analysis implementation and result analysis

港科大&MSRA新研究:关于图像到图像转换,Fine-tuning is all you need

MySQL的安装

"Parse" focalloss to solve the problem of data imbalance
![[GNN] graphic gnn:a gender Introduction (including video)](/img/b3/0855885dafa7afaa7375b8d2195974.png)
[GNN] graphic gnn:a gender Introduction (including video)

VMware安装后打开就蓝屏

软件测试到了35岁,真的就干不动了吗?
随机推荐
C interview 24 (pointer) define a double array with 20 elements a
[opencv] morphological filtering (2): open operation, morphological gradient, top hat, black hat
Unity C# 函数笔记
开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启
Which foreign language periodicals are famous in geology?
「解析」FocalLoss 解决数据不平衡问题
程序员的日常 | 每日趣闻
微信小程序隐藏video标签的进度条组件
软件测试到了35岁,真的就干不动了吗?
VIM mapping large K
【解决】Final app status- UNDEFINED, exitCode- 16
What are the classic database questions in the interview?
Linear algebra (1)
Problems and precautions about using data pumps (expdp, impdp) to export and import large capacity tables in Oracle migration
Several key steps of software testing, you need to know
Google Chrome browser released patch 103.0.5060.114 to fix the 0-day vulnerability
Postgresql中procedure支持事务语法(实例&分析)
ViewModelProvider.of 过时方法解决
Symmetric binary tree [tree traversal]
How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?