惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
The Last Watchdog
The Last Watchdog
Cyberwarzone
Cyberwarzone
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
The Cloudflare Blog
V
V2EX
博客园_首页
博客园 - 聂微东
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
GRAHAM CLULEY
T
Tenable Blog
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
SecWiki News
SecWiki News
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
T
Troy Hunt's Blog
博客园 - 【当耐特】
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
A
About on SuperTechFans
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
D
DataBreaches.Net
P
Privacy & Cybersecurity Law Blog
Schneier on Security
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
D
Docker
P
Proofpoint News Feed

博客园 - 三角形

Docker镜像加速器,检测失效 & 测速 ESXi 不认SN640 SN750 等容量大的 NVME 出租司机给我上的MBA课 -- 转载(文末有18年后的续集) 飞牛影视配置独立端口号,不与飞牛公用web端口 esxi 7 定时关机 Oracle RAC 部署 (VMware共享磁盘配置方法) esxi 无法在浏览器中关闭虚拟机 使用Rocky Linux 快速部署虚拟化环境,浏览器访问,开源免费 Esxi 使用 RDM (Raw Device Mapping) 功能直接将磁盘分配给虚拟机,直通 OpenSSH 远程代码执行漏洞(CVE-2024-6387) Ubuntu22.04 和 centos7处理方法 部署SFTP服务,并限制访问目录 esxi 虚拟机 导出 & 导入 QYN2 2025年免费收徒(运维) XFS误删除文件,数据恢复 在esxi上:获取vm列表,批量给vm关机,批量给vm强制关机 esxi主机,自动创建30个vm,并自动完成vm初始化操作 自动查询12306余票,结果以txt形式放到nginx网站目录下 ubuntu自动下载电视剧《鸣龙少年》
esxi重装后,之前的卷没能自动挂载
三角形 · 2024-12-20 · via 博客园 - 三角形

1、发现卷,找到卷的 UUID 和 lable

[root@localhost:~] esxcfg-volume -l
Scanning for VMFS-6 host activity (4096 bytes/HB, 1024 HBs).
VMFS UUID/label: 58af595d-73559071-c3b2-1c1b0d6e7f3a/HDD2
Can mount: Yes
Can resignature: Yes
Extent name: t10.ATA_____TOSHIBA_HDWD130____________________________________18UB53YAS:1    range: 0 - 2861567 (MB)

Scanning for VMFS-6 host activity (4096 bytes/HB, 1024 HBs).
VMFS UUID/label: 58af594f-c477fe00-f7ec-1c1b0d6e7f3a/HDD1
Can mount: Yes
Can resignature: Yes
Extent name: t10.ATA_____ST4000NM01152D1YZ107_________________________________ZC1BDA81:1    range: 0 - 2861567 (MB)

2、挂载卷,注意这李用的是 -m 临时挂载

[root@localhost:~] esxcfg-volume -m 58af595d-73559071-c3b2-1c1b0d6e7f3a
Mounting volume 58af595d-73559071-c3b2-1c1b0d6e7f3a
[root@localhost:~] esxcfg-volume -m 58af594f-c477fe00-f7ec-1c1b0d6e7f3a
Mounting volume 58af594f-c477fe00-f7ec-1c1b0d6e7f3a

3、卸载卷 -u 

[root@localhost:~] esxcfg-volume -u 58af595d-73559071-c3b2-1c1b0d6e7f3a
Umounting volume /vmfs/volumes/58af595d-73559071-c3b2-1c1b0d6e7f3a
[root@localhost:~] esxcfg-volume -u 58af594f-c477fe00-f7ec-1c1b0d6e7f3a
Umounting volume /vmfs/volumes/58af594f-c477fe00-f7ec-1c1b0d6e7f3a

4、永久挂载 -M ,重启后依然有效

[root@localhost:~] esxcfg-volume -M 58af594f-c477fe00-f7ec-1c1b0d6e7f3a
Persistently mounting volume 58af594f-c477fe00-f7ec-1c1b0d6e7f3a
[root@localhost:~] 
[root@localhost:~] esxcfg-volume -M 58af595d-73559071-c3b2-1c1b0d6e7f3a
Persistently mounting volume 58af595d-73559071-c3b2-1c1b0d6e7f3a

5、查看帮助,-l  -m  -u -M 的说明

[root@localhost:~] esxcfg-volume --help
esxcfg-volume <options>
-l|--list                                List all volumes which have been
                                         detected as snapshots/replicas.
-m|--mount <VMFS UUID|label>             Mount a snapshot/replica volume, if 
                                         its original copy is not online.
-u|--umount <VMFS UUID|label>            Umount a snapshot/replica volume.
-r|--resignature <VMFS UUID|label>       Resignature a snapshot/replica volume.
-M|--persistent-mount <VMFS UUID|label>  Mount a snapshot/replica volume
                                         persistently, if its original copy is
                                         not online.
-U|--upgrade <VMFS UUID|label>           Upgrade a VMFS3 volume to VMFS5.
-h|--help                                Show this message.

最后附上参考链接 https://www.cnblogs.com/dwj192/p/17021112.html