easy installvmware360.com/files/pdf/products/vsan/vsan 6.6_easy install.pdf · 11/4/2017 ·...

19
First Published On: 04-11-2017 Last Updated On: 05-02-2018 Easy Install Copyright © 2019 VMware, Inc. All rights reserved. 1

Upload: nguyenanh

Post on 17-Mar-2019

234 views

Category:

Documents


0 download

TRANSCRIPT

First Published On: 04-11-2017Last Updated On: 05-02-2018

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

1

Table Of Contents

1. Introduction 1.1.An introduction to Easy Install

2. Pre-Easy Install 2.1.Method 1 - Using a Temporary Datastore2.2.Method 2 -Manually Creating the vSAN Datastore

3. Easy Install 3.1.Using the VCSA Installer for vSAN 6.6

4. Next Steps 4.1.What are the Next Steps?

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

2

1. IntroductionIntroduction to Easy Install

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

3

1.1 An introduction to Easy Install

Deploying VMware vSAN is not a difficult task.

The vSAN Cluster Wizard is one of the workflows included in configuring a vSAN as a part of a vSphereCluster. To use this wizard, some tasks had to accomplished beforehand as prerequisites of vSAN. These tasks were accomplished by vCenter.

1. A Datacenter had to be created2. A Cluster had to be created3. Hosts had to be added to the cluster4. A VMkernel port had to be added to each host for vSAN communications5. A VMkernel port had to be added to each host for vMotion communications6. vSAN could then be enabled.

To accomplish these tasks, vCenter had to already be installed somewhere.

In environments where vCenter (Windows or VCSA) already existed, it was not difficult. In "greenfield"deployments it was a bit more challenging.

There were a couple methods for “bootstrapping” a VCSA to accomplish this task of getting vCenterrunning on top of the vSAN datastore it was managing

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

4

2. Pre-Easy InstallBefore Easy Install, there were a couple mechanisms to bootstrap the VCSA onto a vSAN installation.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

5

2.1 Method 1 - Using a Temporary Datastore

Virtualization administrators familiar with Storage vMotion are aware that a virtual machine, or VCSAappliance in this case, can be Storage vMotioned to the vsanDatastore after being installed on atraditional VMFS volume. This process is traditionally called using a “Transfer datastore” or a “swingdatastore.”

The steps to use this method include:

• Create a local VMFS datastore on the first host• Deploy the VCSA to the temporary datastore• Create a vSAN Cluster, including the first host• Add two or more additional ESXi hosts to the vSAN Cluster• Ensure vSAN networking is in place for all hosts and they are communicating properly• Storage vMotion the VCSA to the vSAN Datastore• Destroy the local VMFS datastore on the first host, ensuring no partitions remain on the device

(vSAN doesn’t work with VMFS partitions)• Add a disk group on the first host

This process isn’t complicated, but is a bit transient. The transfer or swing datastore only serves thepurpose of allowing the VCSA to be configured and then ultimately moved to the vSAN datastore.

William Lam posted this method on virtuallyghetto.com in 2013.

http://www.virtuallyghetto.com/2013/09/how-to-bootstrap-vcenter-server-onto.html

2.2 Method 2 -Manually Creating the vSAN Datastore

This method is a bit more complicated. An alternative to using a temporary datastore, is manuallysetting up a vSAN datastore on the first host as a target for the deployment of the VCSA.

The process is as follows:

• Install ESXi 6.x on physical hosts.• Because the vSAN default policy requires includes a Failure Tolerance Method of Mirroring and

a Number of Failures to Tolerate of 1, the only way to deploy to a vSAN cluster with a singlenode, is to modify the default Storage Policy to allow for forced provisioning.

The following command will need to be run on the first host:For virtual disks: esxcli vsan policy setdefault –c vdisk –p “((\”hostFailuresToTolerate\” i1)(\”forceProvisioning\” i1))”For the VM namespace: esxcli vsan policy setdefault –c vmnamespace –p“((\”hostFailuresToTolerate\” i1)(\”forceProvisioning\” i1))”

• Now a vSAN cluster must be created. This is done from the ESXi console using the command: esxcli vsan cluster new

• At least a single disk group must be created using the following command: esxcli vsan storageadd -s SSD-DISK-ID -d HDD-DISK-IDDevice ID’s can be listed using: esxcli storage core device listA disk group can be created with multiple capacity devices like this: esxcli vsan storage add –sSSD-DISK-ID –d HDD-DISK1-ID –d HDD-DISK2-ID –d HDD-DISK3-ID

• The VCSA installer can be used to deploy the VCSA to the first host with the manually createdvsanDatastore.

• Once the VCSA has been deployed, a Datacenter has to be created, a Cluster (with vSANenabled) and the first host added.

• Additional hosts can then be added, as well as vSAN networking

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

6

As can be easily seen, the manual method it a bit more complex.

William Lam posted this method on virtuallyghetto.com in 2013:

http://www.virtuallyghetto.com/2013/09/how-to-bootstrap-vcenter-server-onto_9.html

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

7

3. Easy InstallEasy Install takes the effort out of installing the VCSA on a standalone host and enabling vSAN for a larger deployment.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

8

3.1 Using the VCSA Installer for vSAN 6.6

With the introduction of vSAN 6.6, installation of the VCSA to a brand new, “greenfield” vSAN clusteris very simple using the Easy Install method.

The Easy Install method is only available when connecting the VCSA installer to an ESXi host that hasvSAN 6.6 preinstalled. Hosts that have previous builds of ESXi will not be presented the option ofcreating a vSAN datastore.

When presented with the “Select datastore” wizard, “Install on a new vSAN cluster containing thetarget host” is an alternate option to installing on an existing datastore.

As part of the vSAN datastore wizard, a Datacenter name and vSAN Cluster name must be specified.These are basic building blocks of a vCenter and a vSAN cluster.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

9

To create a vSAN datastore, at least one disk group must be created on the target host. The VCSAinstaller will present all available devices presented to be used by vSAN. Devices that have existingpartitions will not be visible.

Notice that some devices are marked as Cache tier and some are marked as Capacity tier. In theillustration above, the host controller is using passthrough, or JBOD, and the device type is properlyrepresented in the wizard.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

10

In the illustration above, all devices are flash. vSAN cannot distinguish which tier these flash devicesshould be claimed for. The last device is selected and “Claim for capacity tier” is selected at the top toensure the device will be used for capacity, rather than cache. In All-Flash configurations, Cache tierdevices are typically smaller than Capacity tier devices. Using this rule of thumb, the smaller deviceswere selected for the Cache tier.

In cases where passthrough is used, and a combination of flash and traditional spinning drives arepresented, they should automatically be selected for either Cache tier (flash) or Capacity tier (hdd).

In the event a Storage Controller is used that is presenting devices as RAID0, it is possible that the typeof device is not properly indicated. Flash devices that are represented as HDD, can be Marked as FlashDisk, to properly present these devices to the ESXi host and the vSAN configuration.

Network settings for the VCSA do not change in the installer.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

11

The installation indicates that vSAN is being enabled.

This was previously created manually using Method 2.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

12

Disks are being automatically claimed for vSAN.

The disk claiming process presented in the VCSA installer behaves just as the Claim Disks for vSANaction button does in the vSAN Disk Management section of the vSAN UI. In hosts that have only asingle Cache device, up to seven (7) capacity devices may be configured in the same disk group. In thecase of this host illustrated, there are two (2) Cache devices and six (6) Capacity devices. Becausethere are two (2) Cache devices, the Claim Disks for vSAN function will distribute the Capacity devicesevenly across the Cache devices. This results in two (2) Disk Groups being created.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

13

The VCSA is deployed to the single host. This process is identical to deploying on any other VMFS orNFS based datastore.

The VCSA deployment has completed, but the configuration is not finalized. The VCSA has only beenpartially configured, and additional settings much be completed.

The VCSA & PSC configuration continues as normal. Settings not shown here, indicate the SSO sitesettings, administrative account password, and other required VCSA settings.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

14

The VCSA (with Embedded PSC here) are started, so vCenter may be used to manage the environment.

While the deployment of the VCSA (and Embedded PSC) are complete, the vSAN configuration isincomplete.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

15

There is currently only a single host running vSAN. This is not a supported configuration, and someadditional steps must be accomplished.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

16

4. Next StepsSo the VCSA is running on a standalone vSAN 6.6 ESXi host, what's next?

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

17

4.1 What are the Next Steps?

What are the next steps?

The current state of vSAN and the VCSA are incomplete. Yes the VCSA has been deployed to a singleESXi host and vSAN 6.6 has been installed.

Looking at the last screen from Stage 2 of the installer, there is a drop down arrow that provides someadditional information.

Two (2) or more nodes must be added to the cluster, unless using 2 Node vSAN, to have a supportedconfiguration. Easy Install does not add these hosts as part of the deployment.

They must be added manually. Adding hosts here is the same as adding any hosts to a vSphere cluster.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

18

Once hosts have been added, we will see that they don't have any disks configured, and they have noconnectivity amongst each other.

vSAN VMkernel networking must be configured for them to communicate.

The Easy Install feature has only brought us part of the way. We can look to the Configuration Assistfeature will help accomplish vSAN networking and other vSAN settings, therefore finalizing the vSANconfiguration.

Easy Install

Copyright © 2019 VMware, Inc. All rights reserved.

19