Use vSAN RVC to learn more about the vSAN environment

Use vSAN RVC to learn more about the vSAN environment

The vSAN Ruby vSphere Console (RVC) is a lot of undocumented features of vSAN, allowing you to explore some beautiful features of vSAN in terms of hypothetical server scenarios, vCenter Server Appliance hypothetical scenarios, cluster information, and dashboard information.

To access vSAN RVC, simply SSH to the vCenter Server Appliance and run:

rvc root @ localhost

After entering the root password, this will take you to the RVC Shell:

vSAN RVC Shell

vSAN RVC Shell

From here, you can access a vCenter environment similar to the directory structure:

vSAN RVC Shell directory structure

vSAN RVC Shell directory structure

From here on, I like to assign variables to make the execution of commands easier.

RVC Shell variables

RVC Shell variables

The RVC command vsan.cluster_info is a command that enables us to view the detailed information of each host of each node in the vSAN cluster.

RVC vsan.cluster_info

RVC vsan.cluster_info

Another favorite command is vsan.whatif_host_failures. This command provides pre/post counter information before and after simulating a single host failure. This is a great feature that allows you to easily view the resource status when a host failure occurs.

vSAN RVC vsan.whatif_host_failures

vSAN RVC vsan.whatif_host_failures

vsan.check_limits is another useful RVC command. It provides information about how much each host consumes for each of the above Virtual SAN limits, including:

  • #Assocs (Limited to 20,000 per host)
  • #Sockets (limited to 10,000 per host)?
  • #Components (limited to 3000 per host) # Disk utilization of each disk
vSAN RVC vsan.check_limits

vSAN RVC vsan.check_limits

vsan.check_state is a three-step command to verify the current running status of the VM on the Virtual SAN data storage.

vSAN RVC vsan.check_state

vSAN RVC vsan.check_state

As you can see, there seems to be a problem of inaccessible data on one of my hosts.

Another cool tool is the vSAN Observer, which can be used. run:

vsan.observer〜群集--run-webserver --force

Then go to: http://  vCenterServer_hostname_or_IP_Address : 8010

It takes several minutes to generate enough statistics to fill the graph.

RVC vsan.observer

RVC vsan.observer

Please note that you need to stop vsan.observer when you are done, otherwise it will continue to run in the background.

There are a total of 29 commands that can be used to interact with the vSAN namespace. These lists can be here found :  and in the command list RVC .

Guess you like

Origin blog.csdn.net/z136370204/article/details/113663001