Reader small image

You're reading from  Mastering PowerCLI

Product typeBook
Published inOct 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785286858
Edition1st Edition
Languages
Right arrow
Author (1)
Sajal Debnath
Sajal Debnath
author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath

Right arrow

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:

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 the following screenshot:

As you can see from the preceding example, VSAN traffic is not enabled in any of the existing portgroups. So, we will first create a portgroup VSAN in the distributed switch. Remember you need to import the VMware.VimAutomation.Vds module first, as we are going to work with a distributed switch:

PS C:\> New-VDPortgroup...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PowerCLI
Published in: Oct 2015Publisher: PacktISBN-13: 9781785286858

Author (1)

author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath