O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring virtual SAN

In order to configure virtual SAN, certain prerequisites need to be met. For example, we need a SSD in the server and a VMkernel portgroup needs to be configured, which will require a VSAN network. Let's first check the portgroups available in the server:

Configuring virtual SAN

Then, check whether VSAN traffic is enabled in any of the portgroups. We will do this using the Get-VMHostNetworkAdapter cmdlet. Note the Where {…} check; here, I am checking each object for the existence of VsanTraffic:

PS C:\> Get-VMHostNetworkAdapter –VMHost ESXi1.lab.com –VMKernel | Where {$_.VsanTrafficEnabled –eq $true}

The result of the preceding command is shown in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required