Monitoring and Managing Virtual SAN Storage
Virtual SAN is a distributed layer of software that runs natively as a part of the ESXi hypervisor. Virtual SAN aggregates local or direct-attached storage disks of a host cluster and creates a single storage pool shared across all hosts of the cluster.
While supporting VMware features that require shared storage, such as HA, vMotion, and DRS, Virtual SAN eliminates the need for an external shared storage and simplifies storage configuration and virtual machine provisioning activities.
You can use ESXCLI commands to retrieve virtual SAN information, manage Virtual SAN clusters, perform network management, add storage, set the policy, and perform other monitoring and management tasks. Type esxcli vsan --help for a complete list of commands.
To retrieve Virtual SAN information
1
esxcli vsan network list
2
esxcli vsan storage list
3
esxcli vsan cluster get
You can activate Virtual SAN when you create host clusters or enable Virtual SAN on existing clusters. When enabled, Virtual SAN aggregates all local storage disks available on the hosts into a single datastore shared by all hosts. You can later expand the datastore by adding storage devices or hosts to the cluster.
You can run these commands in the ESXi Shell for a host, or the command affects the target host that you specify as part of the vCLI connection options.
To manage a Virtual SAN cluster
1
esxcli vsan cluster join --cluster-uuid <uuid>
The UUID of the cluster is required.
2
esxcli vsan cluster get
3
esxcli vsan cluster leave
To add and remove Virtual SAN storage
1
esxcli vsan storage add --disks <device_name>
The command expects an empty disk, which will be partitioned or formatted. Specify a device name, for example, mpx.vmhba2:C0:T1:L0.
2
esxcli vsan storage add --ssd <device_name>
The command expects an empty disk, which will be partitioned or formatted. Specify a device name, for example, mpx.vmhba2:C0:T1:L0.
3
esxcli vsan storage list --device <device>
4
You can remove disks or disk groups only when Virtual SAN is in manual mode. For the automatic disk claim mode, the remove action is not supported
esxcli vsan storage remove --disk <device_name>
Instead of specifying the device name, you can specify the UUID if you include the --uuid option.
esxcli vsan storage remove --ssd <device_name>
Instead of specifying the device name, you can specify the UUID if you include the --uuid option. Any SSD that you remove from Virtual SAN becomes available for such features as Flash Read Cache.