Sunteți pe pagina 1din 59

Configure and Manage Virtual Storage

Module 6

2011 VMware Inc. All rights reserved

Importance

Storage options give you the flexibility to set up your storage based
on your cost, performance, and manageability requirements. Shared
storage is useful for disaster recovery, high availability, and moving
virtual machines between hosts.

VMware vSphere: Install, Configure, Manage Revision A

6-3
2011 VMware Inc. All rights reserved

Module Lessons

Lesson 1:

Storage Concepts

Lesson 2:

Configure iSCSI Storage

Lesson 3:

Configure NAS/NFS Storage

Lesson 4:

Fibre Channel SAN Storage

Lesson 5:

VMware vSphere VMFS Datastores

Lesson 6:

VMware vSphere Storage Appliance

VMware vSphere: Install, Configure, Manage Revision A

6-4
2011 VMware Inc. All rights reserved

Lesson 1:
Storage Concepts

VMware vSphere: Install, Configure, Manage Revision A

6-5
2011 VMware Inc. All rights reserved

Learner Objectives

After this lesson, you should be able to do the following:


Describe VMware vSphere storage technologies and datastores.
Describe the storage device naming convention.

VMware vSphere: Install, Configure, Manage Revision A

6-6
2011 VMware Inc. All rights reserved

Storage Overview

VMware
ESXi
hosts

datastore

NFS

VMware vSphere VMFS

types
File
system

storage
technology

Direct
Attached

VMware vSphere: Install, Configure, Manage Revision A

Fibre
Channel

FCoE

iSCSI

NAS

6-7
2011 VMware Inc. All rights reserved

Datastore
A datastore is a logical storage
unit that can use disk space on
one physical device, or span
several physical devices.
host

Types of datastores:
VMFS
Network File System (NFS)

host

Datastores are used to hold


virtual machine files, templates,
and ISO images.

datastore
VMware vSphere: Install, Configure, Manage Revision A

6-9
2011 VMware Inc. All rights reserved

VMFS-5
VMFS-5:
Allows concurrent access to
shared storage
Can be dynamically
expanded
Uses a 1MB block size,
good for storing large virtual
disk files
Provides on-disk, block-level
locking

host

host

VMFS Datastore
VMware vSphere: Install, Configure, Manage Revision A

6-10
2011 VMware Inc. All rights reserved

NFS
NFS:
Is storage shared over the
network at the file system
level
Supports NFS version 3
over TCP/IP

host

host

NFS Datastore
VMware vSphere: Install, Configure, Manage Revision A

6-11
2011 VMware Inc. All rights reserved

Storage Device Naming Conventions


Storage devices are identified in several ways:
SCSI ID Unique SCSI identifier
Canonical name The Network Address Authority (NAA) ID is a
unique LUN identifier, guaranteed to be persistent across reboots.

In addition to NAA IDs, devices can also be identified with mpx or t10
identifiers.

Runtime name Uses the convention vmhbaN:C:T:L. This name is


not persistent through reboots.

VMware vSphere: Install, Configure, Manage Revision A

6-12
2011 VMware Inc. All rights reserved

Viewing Storage Maps

HBA

target

LUN

VMware vSphere: Install, Configure, Manage Revision A

6-13
2011 VMware Inc. All rights reserved

Physical Storage Considerations

Discuss vSphere storage needs with your storage administration


team, such as:
LUN sizes
I/O bandwidth
Disk cache parameters
Zoning and masking
Identical LUN presentation to each ESXi host
Active-active or active-passive arrays
Export properties for NFS datastores

VMware vSphere: Install, Configure, Manage Revision A

6-14
2011 VMware Inc. All rights reserved

Review of Learner Objectives

You should be able to do the following:


Describe vSphere storage technologies and datastores.
Describe the storage device naming convention.

VMware vSphere: Install, Configure, Manage Revision A

6-15
2011 VMware Inc. All rights reserved

Lesson 2:
Configure iSCSI Storage

VMware vSphere: Install, Configure, Manage Revision A

6-16
2011 VMware Inc. All rights reserved

Learner Objectives

After this lesson, you should be able to do the following:


Describe uses of IP storage with ESXi.
Describe iSCSI components and addressing.
Configure iSCSI initiators.

VMware vSphere: Install, Configure, Manage Revision A

6-17
2011 VMware Inc. All rights reserved

iSCSI Components

VMware vSphere: Install, Configure, Manage Revision A

6-18
2011 VMware Inc. All rights reserved

iSCSI Addressing

iSCSI target name:


iqn.1992-08.com.mycompany:stor147cf3c25
or eui.fedcba9876543210
iSCSI alias: stor1
IP address: 192.168.36.101
iSCSI initiator name:
iqn.1998-01.com.vmware:train1-64ad4c29
or eui.1234567890abcdef
iSCSI alias: train1
IP address: 192.168.36.88

VMware vSphere: Install, Configure, Manage Revision A

6-19
2011 VMware Inc. All rights reserved

iSCSI Initiators

VMware vSphere: Install, Configure, Manage Revision A

6-20
2011 VMware Inc. All rights reserved

Configuring Software iSCSI

To configure the iSCSI software initiator:


1. Configure a VMkernel port for accessing IP storage.
2. Enable the iSCSI software adapter.
3. Configure the iSCSI IQN name and alias (if required)
4. Configure iSCSI software adapter properties, such as static/dynamic
discovery addresses and iSCSI port binding
5. Configure iSCSI security (Challenge Handshake Authentication
Protocol (CHAP)).

VMware vSphere: Install, Configure, Manage Revision A

6-21
2011 VMware Inc. All rights reserved

ESXi Network Configuration for IP Storage

A VMkernel port must be created for ESXi to access software iSCSI.


The same port can be used to access NAS/NFS storage.

To optimize your vSphere networking setup:


Separate iSCSI networks from NAS/NFS networks.

Physical separation is preferred.


If that is not possible, use VLANs.

VMware vSphere: Install, Configure, Manage Revision A

6-22
2011 VMware Inc. All rights reserved

iSCSI Target-Discovery Methods

Two discovery methods are


supported:
Static
Dynamic (also known as
SendTargets)
The SendTargets response
returns iSCSI qualified name and
all available IP addresses.

192.168.36.101:3260

SendTargets
request

SendTargets
response

iSCSI target
192.168.36.101:3260

VMware vSphere: Install, Configure, Manage Revision A

6-23
2011 VMware Inc. All rights reserved

iSCSI Security: CHAP


Software iSCSI properties > General tab

iSCSI initiators use CHAP for


authentication purposes.
By default, CHAP is not
configured.
ESXi supports two types of
CHAP authentication:
Target
Unidirectional
authenticates
Bidirectional
host.

Software iSCSI only

ESXi also supports per-target


CHAP authentication.
Software iSCSI only
Different credentials for each
target

VMware vSphere: Install, Configure, Manage Revision A

Host
authenticates
target.
6-24
2011 VMware Inc. All rights reserved

Configuring Hardware iSCSI

To configure the iSCSI hardware initiator:


1. Install the iSCSI hardware adapter.

For independent hardware iSCSI adapters

Verify properly formatted IP address and IQN names.

For dependent hardware iSCSI adapters

Determine the name of the physical NIC associated with adapter so that port
binding is properly configured.

2. Modify the iSCSI name and configure the iSCSI alias.


3. Configure iSCSI target addresses.
4. Configure iSCSI security (CHAP).

VMware vSphere: Install, Configure, Manage Revision A

6-25
2011 VMware Inc. All rights reserved

Multipathing with iSCSI Storage


Hardware iSCSI:
Use two or more hardware
iSCSI adapters.
Software or dependent
hardware iSCSI:
Use multiple NICs.
Connect each NIC to a
separate VMkernel port.
Associate VMkernel ports
with iSCSI initiator.

Configure port binding in


the Properties window of
the iSCSI adapter.
VMware vSphere: Install, Configure, Manage Revision A

6-26
2011 VMware Inc. All rights reserved

Review of Learner Objectives


You should be able to do the following:
Describe uses of IP storage with ESXi.
Describe iSCSI components and addressing.
Configure iSCSI initiators.

VMware vSphere: Install, Configure, Manage Revision A

6-27
2011 VMware Inc. All rights reserved

Lesson 3:
Configure NAS/NFS Storage

VMware vSphere: Install, Configure, Manage Revision A

6-28
2011 VMware Inc. All rights reserved

Learner Objectives

After this lesson, you should be able to do the following:


Describe NFS components and addressing.
Create an NFS datastore.

VMware vSphere: Install, Configure, Manage Revision A

6-29
2011 VMware Inc. All rights reserved

NFS Components

NAS device or a
server with
storage

directory to share
with the ESXi host
over the network

ESXi host with


NIC mapped to
virtual switch

VMkernel port
defined on virtual
switch

VMware vSphere: Install, Configure, Manage Revision A

6-30
2011 VMware Inc. All rights reserved

Addressing and Access Control with NFS

192.168.81.33

192.168.81.72
VMkernel port
configured with
IP address

VMware vSphere: Install, Configure, Manage Revision A

6-31
2011 VMware Inc. All rights reserved

Configuring an NFS Datastore

Create a VMkernel port:


For better performance and security, separate it from the iSCSI
network.
Provide the following information:
NFS server name (or IP address)
Folder on the NFS server, for example, /LUN1 and /LUN2
Whether to mount the NFS file system read-only:

Default is to mount read/write

NFS datastore name

VMware vSphere: Install, Configure, Manage Revision A

6-32
2011 VMware Inc. All rights reserved

Viewing IP Storage Information


Hosts and Clusters view > Configuration tab > Storage link

Datastores view > Storage Views tab

VMware vSphere: Install, Configure, Manage Revision A

6-33
2011 VMware Inc. All rights reserved

Unmounting/Deleting an NFS Datastore


Click the Storage link in the Configuration tab to unmount an NFS
datastore.
Unmounting an NFS datastore deletes that datastore.

VMware vSphere: Install, Configure, Manage Revision A

6-34
2011 VMware Inc. All rights reserved

Lab 7

In this lab, you will configure access to iSCSI and NFS datastore.
1. Add a VMkernel port group to a standard virtual switch.
2. Configure the iSCSI software adapter.
3. Configure access to NFS datastores.
4. View iSCSI and NFS storage information.

VMware vSphere: Install, Configure, Manage Revision A

6-36
2011 VMware Inc. All rights reserved

Lab 8

In this lab, you will design a network configuration for an ESXi host,
based on a set of requirements.
1. Analyze the requirements.
2. Design virtual switches and physical connections.

VMware vSphere: Install, Configure, Manage Revision A

6-37
2011 VMware Inc. All rights reserved

Review of Learner Objectives


You should be able to do the following:
Describe NFS components and addressing.
Create an NFS datastore.

VMware vSphere: Install, Configure, Manage Revision A

6-38
2011 VMware Inc. All rights reserved

Lesson 4:
Fibre Channel SAN Storage

VMware vSphere: Install, Configure, Manage Revision A

6-39
2011 VMware Inc. All rights reserved

Learner Objectives

After this lesson, you should be able to do the following:


Describe uses of Fibre Channel with ESXi.
Describe Fibre Channel components and addressing.
Access Fibre Channel storage.

VMware vSphere: Install, Configure, Manage Revision A

6-40
2011 VMware Inc. All rights reserved

Using Fibre Channel with ESXi

ESXi supports:
8Gb Fibre Channel
Fibre Channel over Ethernet (FCoE)

VMware vSphere: Install, Configure, Manage Revision A

6-41
2011 VMware Inc. All rights reserved

Fibre Channel SAN Components

VMware vSphere: Install, Configure, Manage Revision A

6-42
2011 VMware Inc. All rights reserved

Fibre Channel Addressing and Access Control

VMware vSphere: Install, Configure, Manage Revision A

6-43
2011 VMware Inc. All rights reserved

Accessing Fibre Channel Storage

Install one or more supported Fibre Channel adapters in the ESXi


host.
The Fibre Channel adapters are recognized by the host during the
boot sequence.

VMware vSphere: Install, Configure, Manage Revision A

6-44
2011 VMware Inc. All rights reserved

Viewing Fibre Channel Storage Information

The Storage Views tab provides


information about all SCSI adapters
and NAS mounts.

VMware vSphere: Install, Configure, Manage Revision A

6-45
2011 VMware Inc. All rights reserved

Multipathing with Fibre Channel

Multipathing allows continued


access to SAN LUNs in the
event of hardware failure. It
also provides load balancing.

(optional)

VMware vSphere: Install, Configure, Manage Revision A

6-49
2011 VMware Inc. All rights reserved

Review of Learner Objectives

You should be able to do the following:


Describe uses of Fibre Channel with ESXi.
Describe Fibre Channel components and addressing.
Access Fibre Channel storage.

VMware vSphere: Install, Configure, Manage Revision A

6-51
2011 VMware Inc. All rights reserved

Lesson 5:
VMware vSphere VMFS Datastores

VMware vSphere: Install, Configure, Manage Revision A

6-52
2011 VMware Inc. All rights reserved

Learner Objectives

After this lesson, you should be able to do the following:


Create a VMFS datastore.
Increase the size of a VMFS datastore.
Delete a VMFS datastore.

VMware vSphere: Install, Configure, Manage Revision A

6-53
2011 VMware Inc. All rights reserved

Using a VMFS Datastore with ESXi

Use VMFS datastores whenever possible:


VMFS is optimized for storing and accessing large files.
A VMFS can have a maximum volume size of 64TB.
NFS datastores are great for storing virtual machines. But some
functions are not supported.
Use RDMs if your virtual machine:

Is performing SAN snapshotting


Is clustered to a physical machine
Has large amounts of data that you do not want to convert into a virtual disk

VMware vSphere: Install, Configure, Manage Revision A

6-54
2011 VMware Inc. All rights reserved

Creating a VMFS Datastore

To create a VMFS datastore, use the Add Storage wizard:


Select the storage type, Disk/LUN.
Select an available LUN.

Specify a datastore name.


Specify the datastore size: use full or partial LUN.

VMware vSphere: Install, Configure, Manage Revision A

6-55
2011 VMware Inc. All rights reserved

Viewing VMFS Datastores


Click the Storage link in the Configuration tab

VMware vSphere: Install, Configure, Manage Revision A

6-56
2011 VMware Inc. All rights reserved

Managing Overcommitted Datastores

An overcommitted datastore can occur when there are many


thin-provisioned virtual disks that use close to their maximum
allotted disk space.
Actively monitor your datastore capacity:
Alarms assist through notifications:

Datastore disk overallocation


Virtual machine disk usage

Use reporting to view space usage.

Actively manage your datastore capacity:


Increase datastore capacity when necessary.
Use vSphere Storage vMotion to mitigate space usage issues on a
particular datastore.

VMware vSphere: Install, Configure, Manage Revision A

6-58
2011 VMware Inc. All rights reserved

Increasing the Size of a VMFS Datastore


Increase a VMFS
datastores size to give it
more space or possibly to
improve performance.
Two ways to dynamically
increase the size of a VMFS
datastore:
Add an extent (LUN).
Expand the datastore
within its extent.

VMware vSphere: Install, Configure, Manage Revision A

6-59
2011 VMware Inc. All rights reserved

Before Increasing the Size of a VMFS Datastore


In general, before making any changes to your storage allocation:
Perform a rescan to ensure that your host sees the most current
storage.
Note the unique identifier (for example, the NAA ID) of the volume
that you want to expand.

VMware vSphere: Install, Configure, Manage Revision A

6-61
2011 VMware Inc. All rights reserved

Delete or Unmount a VMFS Datastore


Deleting a VMFS datastore:

Unmounting a VMFS datastore:

VMware vSphere: Install, Configure, Manage Revision A

6-62
2011 VMware Inc. All rights reserved

Multipathing Algorithms
Arrays provide different
features, some offer activeactive storage processors (SP)
and others offer active-passive
SPs.

storage array
SP A
0 1

vSphere 5 offers native path


selection, load-balancing and
failover mechanisms.

storage
processors

switches

Third-party vendors can create


their own software to be
installed on your ESXi hosts
that will allow the ESXi host to
properly interact with the
storage arrays it uses.

VMware vSphere: Install, Configure, Manage Revision A

SP B
0 1

ESXi
hosts

6-63
2011 VMware Inc. All rights reserved

Managing Multiple Storage Paths


To modify the number of storage paths to use, select the datastore
to modify and click that datastores Properties link.
Click Manage Paths in the Properties window.

VMware vSphere: Install, Configure, Manage Revision A

6-64
2011 VMware Inc. All rights reserved

Configuring Storage Load Balancing


Path selection policies exist for:
Scalability:

Round Robin A multipathing policy that performs load balancing across


paths.

Availability:

MRU and Fixed

VMware vSphere: Install, Configure, Manage Revision A

6-65
2011 VMware Inc. All rights reserved

Lab 9

In this lab, you will work with VMFS datastores.


1. Review your shared storage configuration.
2. Change the name of a VMFS datastore.
3. Create a VMFS datastore.
4. Expand a VMFS datastore to consume unused space on a LUN.
5. Remove a VMFS datastore.
6. Extend a VMFS datastore.
Ask your instructor which LUNs contain VMFS datastores that
should not be removed or reformatted.

VMware vSphere: Install, Configure, Manage Revision A

6-66
2011 VMware Inc. All rights reserved

Review of Learner Objectives

You should be able to do the following:


Create a VMFS datastore.
Increase the size of a VMFS datastore.
Delete a VMFS datastore.

VMware vSphere: Install, Configure, Manage Revision A

6-67
2011 VMware Inc. All rights reserved

Key Points

Use VMFS datastores to hold virtual machine files.


NFS datastores are useful as a repository for ISO images.
Shared storage is integral to vSphere features like vMotion, vSphere
High Availability, and DRS.

VMware vSphere: Install, Configure, Manage Revision A

6-78
2011 VMware Inc. All rights reserved

S-ar putea să vă placă și