Monday, January 25, 2016

VSAN ESXCLI MG and Cluster Information

I have a confession to make: I’m lazy. Quite lazy; but not that lazy that I’ve started programing yet, although I’m close to it. If you ask me to do something (or I know I have to do something), I’ll google the “best and least burdensome” way to do it. The more spoon-feeding the process, the better.

So I’ve been getting my hands dirty with Virtual SAN (the official name, since VSAN is already taken by Cisco to represent multiple SANs in their MDS; kind of a play on VLAN). Virtual SAN is configured from the vSphere Web Client (although you can also do it via the CLI, as explained here in William Lam’s article) and hard as I looked, there is limited non-storage information that you get regarding the state of the Virtual SAN cluster and its member. I can’t tell if this is by design or what, but I don’t like it.

When configuring a Virtual SAN, I want to know things like who is the Master, what MGs are being used and which are the Virtual SAN members. True to my nature, I googled around a bit (not that hard really, just the top 4-5 hits on Google) and I couldn’t quite find what I was looking for. Thus I had no choice to go into the CLI and get the answers myself. I’m putting this here as 1) a parking lot for me to reference in the future and 2) a page to help fellow slackers when they need to find out the state of their Virtual SAN deployment.

Without further ado, these are the states I’m interested in looking up, follow buy the commands that will provide you the information:

  1. VMkernel port used for Virtual SAN (this you can get from the vSphere Web Client by looking at the host’s VMkernel ports in Manageà Networking )
  2. Multicast Group (MG) used by Virtual SAN cluster.
  3. The Port Numbers used by Virtual SAN’s MG traffic.
  4. The Virtual SAN host role (Master, Backup or Agent)

ESXCLI VSAN NETWORK LIST
This provides me a, b and c above. This command provides Multicast information, including the Time To Live (TTL) for the Multicast traffic. The default value is 5, which means that if Virtual SAN is being deployed over Layer 3, you can’t have this host being more than 5 routers away from the other hosts. Of course, this setting can be changed with the command esxcli vsan network ipv4 set --intrface-name vmk# --multicast-ttl {0<#<256}.



On a side note, you should seriously consider changing the MGs if you are deploying Virtual SAN over Layer 3. Chances are pretty good that the Data Center network team has a MG addressing plan that does not include the default MGs for Virtual SAN. Remember that all Virtual SAN cluster members must have the same Master MG address and Agent MG address. The command to change the default MGs is esxcli vsan network  --interface-name vmk# --agent-mc-addr x.x.x.x --master-mc-addr y.y.y.y.

Elver’s Opinion: If you have multiple Virtual SAN clusters over Layer 3, then change the default MGs for each Virtual SAN cluster.

ESXCLI VSAN CLUSTER LIST
This provides me with 4 above. This command tells you who the Master and Backup Virtual SAN nodes are and, if this host is either of them or an Agent. There are only three node roles in Virtual SAN. I believe this command doesn’t need explanation other than to clarify that I have a three node Virtual SAN cluster.



.elver

No comments:

Post a Comment