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 beendetected 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 volumepersistently, if its original copy isnot 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