当前位置:网站首页>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
成功挂载!
参考教程:
边栏推荐
- 缓存在高并发场景下的常见问题
- Abnova 膜蛋白脂蛋白体技术及类别展示
- Redis(一)——初识Redis
- 反射(二)
- Wechat applet hides the progress bar component of the video tag
- How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
- Install mongodb database
- The difference between string constants and string objects when allocating memory
- Three updates to build applications for different types of devices | 2022 i/o key review
- Unity C# 函数笔记
猜你喜欢
反射(二)
面试中有哪些经典的数据库问题?
Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!
Tkinter window selects PCD file and displays point cloud (open3d)
POI export to excel: set font, color, row height adaptation, column width adaptation, lock cells, merge cells
Matlab / envi principal component analysis implementation and result analysis
Force deduction 62 different paths (the number of all paths from the upper left to the lower right of the matrix) (dynamic planning)
The difference between string constants and string objects when allocating memory
Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
当前发布的SKU(销售规格)信息中包含疑似与宝贝无关的字
随机推荐
Redis (I) -- getting to know redis for the first time
How to find the literature of a foreign language journal?
UIC (configuration UI Engineering) public file library adds 7 industry materials
How can I check the DOI number of a foreign document?
Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!
VMware安装后打开就蓝屏
二十岁的我4面拿到字节跳动offer,至今不敢相信
Abnova 膜蛋白脂蛋白体技术及类别展示
Handling hardfault in RT thread
Kotlin之 Databinding 异常
What are the classic database questions in the interview?
Wechat applet hides the progress bar component of the video tag
ICML 2022 | 探索语言模型的最佳架构和训练方法
UIC(组态UI工程)公版文件库新增7款行业素材
学术报告系列(六) - Autonomous Driving on the journey to full autonomy
VIM mapping large K
matlab / ENVI 主成分分析实现及结果分析
字符串常量与字符串对象分配内存时的区别
Which foreign language periodicals are famous in geology?
Redis (II) - redis General Command