标签:vsan命令行
以下命令在esxi主机上操作
1、查看VSAN集群状态
esxcli vsan cluster get
[root@localhost:~] esxcli vsan cluster get Cluster Information Enabled: true Current Local Time: 2017-11-14T08:41:04Z Local Node UUID: 5a09ba79-ab86-a818-c718-005056aa3651 Local Node State: MASTER Local Node Health State: HEALTHY #该节点的健康状态 Sub-Cluster Master UUID: 5a09ba79-ab86-a818-c718-005056aa3651 #VSAN集群的UUID Sub-Cluster Backup UUID: Sub-Cluster UUID: 5a09ba79-ab86-a818-c718-005056aa3651 Sub-Cluster Membership Entry Revision: 0 Sub-Cluster Member UUIDs: 5a09ba79-ab86-a818-c718-005056aa3651 Sub-Cluster Membership UUID: 17ac0a5a-b726-2b31-76cc-005056aa3651
2、显示VSAN磁盘信息
esxcli vsan storage list
3、显示VSAN网络信息
esxcli vsan network list
4、加入VSAN集群
esxcli vsan cluster join -u 5a09ba79-ab86-a818-c718-005056aa3651 #后面一串代码为VSAN UUID,可以找一台正常的esxi主机用esxcli vsan cluster get来获取。
5、退出VSAN集群
esxcli vsan cluster leave
6、获取磁盘信息
esxcli storage core device list
获取信息大致如下:
[root@esxi01.vsphere.local ~] esxcli storage core device list mpx.vmhba2:C0:T1:L0 Display Name: Local DELL Disk (naa.6b8ca3a0e81efb001d9537827336de36) Size: 953344 … mpx.vmhba2:C0:T2:L0 Display Name: Local DELL Disk (naa.6b8ca3a0e81efb001d95378473543634) Size: 953344 … mpx.vmhba2:C0:T3:L0 Display Name: Local DELL Disk (naa.6b8ca3a0e81efb001d9537817328d2eb) Size: 762496 … mpx.vmhba2:C0:T4:L0 Display Name: Local DELL Disk (naa.6b8ca3a0e81efb001d9537837344e93f) Size: 953344
7、使用命令行添加VSAN磁盘组
esxcli vsan storage add --ssd mpx.vmhba2:C0:T3:L0 --disks mpx.vmhba2:C0:T1:L0 --disks mpx.vmhba2:C0:T2:L0 --disks mpx.vmhba2:C0:T4:L0
#--ssd指定缓存盘,--disks指定容量盘
本文出自 “我还活着呢” 博客,请务必保留此出处http://hujizhou.blog.51cto.com/514907/1981735
标签:vsan命令行
原文地址:http://hujizhou.blog.51cto.com/514907/1981735