Vous êtes sur la page 1sur 25

HIBRIDNI OBLAK MODUL 3

MODULE 3 - VSAN AND VCLOUD DIRECTOR


(30 MINUTES)
This module contains the following lessons:

Introduction
Introduction to vSAN

Storage Profiles

Conclusion

INTRODUCTION
vSAN and vCloud Director

vSAN is radically simple, enterprise-class software-defined storage


powering VMware hyper-converged infrastructure. It allows Service
Providers to offer tiered storage options to their customers, either
using vSAN as an additional tier to existing storage, or by simply
offering multiple storage profiles on vSAN as the sole storage
solution. This module includes:

Introduction to vSAN - Learn some of the basics of vSAN and how it


can be used with vCloud Director

Storage Profiles - Create a vSAN Storage Profile and map it through


to an Organization VDC in vCloud Director

INTRODUCTION TO VSAN
This section will go over an introduction to VMware vSAN (formerly
Virtual SAN).

VIRTUAL SAN OVERVIEW


Object-based storage is considered a leading technology for hybrid
cloud deployments because many of its most prominent features,
such as massive scalability, geographic independence, and multi-
tenancy, have proven ideal for cloud storage. vSAN is a hyper-
converged, software-defined storage solution that stores and
manages data in the form of storage objects. Similar to vSphere,
vSAN can leverage commodity physical servers and locally-attached
flash devices and/or hard disks. vSAN is also completely integrated
into the VMware stack, so it works seamlessly with advanced
HIBRIDNI OBLAK MODUL 3

availability features such as VMware vSphere vMotion, VMware


vSphere High Availability (HA), VMware vSphere Distributed Resource
Scheduler (DRS), and VMware vSphere Fault Tolerance (FT).

USE CASES
Cloud service offerings can utilize either traditional infrastructure
(servers with legacy storage), or hyper-converged platforms such as
vSAN. A hyper-converged platform is a platform that combines
compute, storage, networking, and virtualization resources and
management, enabling scale-out consumption. The tight integration
of vSAN with VMware vSphere enables VMware Cloud Providers to
host public or private cloud offerings and easily utilize vSAN as the
underlying storage infrastructure.The customers of service providers
that leverage vSAN primarily run mission-critical workloads in which
stability, reliability, and predictability are extremely important. Many
traditional infrastructures, over time, hinder the ability of VMware
Cloud Providers to remain competitive in such a price-sensitive
market. vSAN enables VMware Cloud Providers launching new
offerings to avoid the large capital expenditures typically associated
with legacy storage arrays. VMware Cloud Providers who offer
consumers hybrid cloud-based virtualized solutions, such as vSphere
as a Service, Desktop as a Service, Tier 1 applications, and Database
as a Service, are ideal candidates for vSAN. Additionally, VMware
Cloud Providers can leverage vSAN as the storage infrastructure for
their VMware vCloud Director cloud offering.

VSAN WITH VCLOUD DIRECTOR


HIBRIDNI OBLAK MODUL 3

Click to enlarge

vSAN can be used as storage in Management Clusters, Tenant


Clusters, as the only storage option, or as a tiered storage option
with existing non-vSAN storage. vSAN can even be used for storage
tiering when it is the only storage (using different storage policies).

VSAN CONFIGURATIONS
vSAN is available in two configurations, hybrid and all-flash. Both
configurations have a caching tier and a capacity tier. The total
storage of the vSAN datastore is the sum of capacity of all the disks
in the capacity tier.

Hybrid Configuration
HIBRIDNI OBLAK MODUL 3

The hybrid configuration for vSAN uses magnetic disks for the
capacity layer and flash memory devices for the cache layer. This
option is ideal for workloads that have average storage performance
requirements.

All-Flash Configuration

The all-flash configuration for vSAN uses flash devices for both
capacity and caching. This option is available for workloads with
high storage performance requirements. The all-flash configuration
also allows for more advanced storage technologies, like de-
duplication, compression, and erasure-coding (similar to RAID levels
5/6 on traditional storage).

STORAGE POLICIES
When vSAN is enabled on a cluster, a single vSAN datastore is made
available to all the hosts in the cluster. A default vSAN Storage
Policy is created to define how VMs are stored on the vSAN
datastore. Because vSAN is object-based storage, multiple storage
policies can be used to change the way different VMs are stored on
the vSAN datastore. When vSAN is used with vCloud Director, the
different storage policies can be presented to vCloud Director VDCs
to allow storage tiering options to the vCD tenants.
HIBRIDNI OBLAK MODUL 3

Click to enlarge

LOG IN TO VSPHERE WEB CLIENT


If it's not already open, launch the Chrome browser from the
Windows Quick Launch taskbar.

Click to enlarge

Log in to the vSphere Web Client as:

User name: administrator@vsphere.local

Password: VMware1!
HIBRIDNI OBLAK MODUL 3

Click to enlarge

GO TO HOSTS AND CLUSTERS

Click to enlarge

If you're not already in the Hosts and Clusters view, click on


the Home icon (1) and select Hosts and Clusters (2).
HIBRIDNI OBLAK MODUL 3

VSAN CLUSTER

Click to enlarge

Select the RegionA01-COMP01 (1) cluster and go to the Configure tab


(2).

VSAN SETTINGS

Click to enlarge

Under Virtual SAN, select General.


HIBRIDNI OBLAK MODUL 3

Here we can see that Virtual SAN is turned ON. We can also see that
Deduplication and compression is Enabled.

MONITOR VSAN

Click to enlarge

Click the Monitor tab (1) and select Virtual SAN (2). Note: You may
need to click the double-down arrow (3) to see it.

By clicking on the different options on the left(4), you can see how
vSAN is running.

VSAN CAPACITY
HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click on the Capacity tab to see our overall capacity as well as how
well Deduplication and Compression are working.

STORAGE PROFILES
This section will focus on using vSAN Storage Policies in vSphere
and in vCloud Director.

POLICIES AND PROFILES

Click to enlarge

Click on the Home icon (1) and select Policies and Profiles (2).
HIBRIDNI OBLAK MODUL 3

VM STORAGE POLICIES

Click to enlarge

Click on VM Storage Policies.

Here we can see what storage policies have been defined in this
environment. Note that there are two different policies for vSAN. The
first is the Virtual SAN Default Storage Policy. This policy was
automatically created when vSAN was enabled on the cluster. This
policy shows the default settings for vSAN. The second is the vSAN
HOL Policy. This policy was created for the HOL environment. It is
configured for no redundancy.

CREATE A NEW POLICY

Click to enlarge

Click the Create a New Policy icon. A new window will pop up.

NAME THE POLICY


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Name the new policy User Policy 1 (1). Click the Next button (2).

POLICY STRUCTURE
Read about the Policy Structure. Click the Nextbutton when done.

COMMON RULES
Leave the box unchecked and click the Nextbutton.

RULE SET 1

Click to enlarge
HIBRIDNI OBLAK MODUL 3

Leave the box checked and click the <Select provider> dropdown
menu and select VSAN.

Note: If VSAN doesn't show up in the Storage Type dropdown, you


may need to refresh the storage providers. Cancel creating a new
policy and go through the following steps.

Click to enlarge

Click the Home dropdown menu and select Storage.

Click to enlarge

1. Click the vCenter server


2. Click the Configure tab

3. Click the Storage Providers section

4. Click the icon to Rescan storage providers

5. Click the Back button to go back to Policies.

6. Go back a few pages to Create a New Policy.


HIBRIDNI OBLAK MODUL 3

SET VSAN STORAGE POLICIES

Click to enlarge

Click the <Add rule> dropdown to go through each of the different


settings to see what options are available for vSAN storage policies.

Click to enlarge

Click on the ( i ) icon for more details on each setting. If you want to
have more than one rule associated with your policy, click the <Add
rule> dropdown menu to select the next rule. When you're done
setting the rules you want, click the Next button.

STORAGE COMPATIBILITY
HIBRIDNI OBLAK MODUL 3

Click to enlarge

The Storage Compatibility page shows which datastores are


compatible with the policies you selected. Since you set the policy to
use vSAN rules, the vSAN datastore should be the only one that
shows up as compatible. Click the Next button, and then
the Finishbutton on the next screen.

Note: if you don't see the VSAN datastore show up as compatible,


you won't be able to use this policy in vCD. Go back and simplify your
rules to make the lab environment compatilble (use default settings
or simply remove rules - a policy with a single rule of Force
Provisioning set to Yes will work).

LAUNCH VCLOUD DIRECTOR ADMIN PORTAL


HIBRIDNI OBLAK MODUL 3

Click to enlarge

In the Chrome web browser, click the vCD - Admin shortcut on the
Bookmark bar.

LOG IN TO VCLOUD DIRECTOR

Click to enlarge

Log in to vCloud Director as:

User name: administrator


Password: VMware1!
HIBRIDNI OBLAK MODUL 3

MANAGE & MONITOR

Click to enlarge

Click the Manage & Monitor tab.

GO TO THE GOLD PVDC

Click to enlarge
HIBRIDNI OBLAK MODUL 3

Click on the Provider VDCs (1). Then click on the Gold-PVDC (2) row
to highlight it. Then mouse over the Gold-PVDC (3) again and click on
the hyperlink.

GOLD PVDC STORAGE POLICIES

Click to enlarge

Click on the Storage Policies tab.

ADD A STORAGE POLICY TO THE PVDC


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click the green plus icon to add a new Storage Policy. A new window
will pop up.

ADD USER POLICY 1 TO THE PVDC


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click User Policy 1 (1), click the Add button (2), then click OK (3).

Note: it may take a few minutes for the new policy to show up. If the
policy isn't there when you get to this screen, wait a minute and
click the refresh icon (4). Keep doing this until the new policy shows
up. If it never shows up, go back to the vSphere Web Client, edit the
policy and make sure it shows Compatible storage. If it doesn't show
compatible storage, it won't show up in vCD as an available storage
policy.

ORGANIZATION VDCS
HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click on Organization VDCs.

OPEN THE T1 ORG VDC


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click the T1-OVDC row to highlight it, then mouse over T1-OVDC and
click the link to open the T1 Organization VDC.

T1-OVDC STORAGE POLICIES


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click the Storage Policies tab to view the storage policies


associated with the Organization VDC.

ADD A STORAGE POLICY TO THE OVDC


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click the green plus sign to add new storage policies to the
Organization VDC. A new window will pop up.

ADD USER POLICY 1 TO THE OVDC


HIBRIDNI OBLAK MODUL 3

Click to enlarge

Click User Policy 1 (1), click the Add button (2), then click OK (3).

Now the new User Policy 1 storage policy is available to Tenant 1


users in the Gold PVDC.

CONCLUSION
You should now have a better understanding of vSAN and how to use
it with vCloud Director for creating tiered storage profiles.

YOU'VE FINISHED MODULE 3


Congratulations on completing Module 3.

If you are looking for additional information on vSAN in a service


provider environment, take a look at the Storage and Availability
section of the vCloud Architecture Toolkit for Service Providers
(vCAT-SP):

https://www.vmware.com/solutions/cloud-computing/vcat-sp.html

Proceed to any module below which interests you most.

Module 1 - Intro to vCloud Director (30 minutes) (Basic)


HIBRIDNI OBLAK MODUL 3

Module 2 - vCloud Director Consumption (15 minutes) (Basic)

Module 4 - vRealize Operations with vCloud Director (45 minutes)


(Intermediate)

Module 5 - vRealize Log Insight with vCloud Director (30 minutes)


(Basic)

Module 6 - Usage Meter (30 minutes) (Basic)

Module 7 - vCloud Availability (30 minutes) (Basic)

HOW TO END LAB

Click to enlarge

To end your lab click on the END button.