M07 StorageOptimization
M07 StorageOptimization
Module 7
By the end of this lesson, you should be able to meet the following
objective:
Describe factors that affect storage performance
seq_wr
100 rnd_rd
80 rnd_wr
60
40
20
0
1 2 4 8 16 32 64
Number of hosts
A SCSI reservation:
Causes a LUN to be used exclusively by a single host for a brief period
Is used by a VMFS instance to lock the file system while the VMFS
metadata is updated
Operations that result in metadata updates:
Creating or deleting a virtual disk
Increasing the size of a VMFS volume
Creating or deleting snapshots
Increasing the size of a VMDK file
To minimize the impact on virtual machine performance:
Postpone major maintenance and configuration until off-peak hours.
If the array supports VMware vSphere® Storage APIs – Array
Integration and hardware assisted locking, SCSI reservations are not
necessary.
VMware vSphere: Optimize and Scale 7-16
Lazy-zeroed Space allocated at vSphere Web Shorter creation Good for most
thick the time of creation, Client or time, but reduced cases.
but zeroed on first vmkfstools performance on first
write (default). write to a block
Thin Space allocated and vSphere Web Shorter creation Disk space
zeroed upon Client or time, but reduced utilization is
demand. vmkfstools performance on first the main
write to a block concern.
By the end of this lesson, you should be able to meet the following
objectives:
Describe benefits of VMware vSphere® Flash Read Cache™
Explain the benefit of using Virtual Flash Host Swap Cache when
virtual machine swap files are stored on non-SSD datastores
Describe the interaction between Flash Read Cache, VMware
vSphere® Distributed Resource Scheduler™ (DRS), and VMware
vSphere® High Availability
Describe limitations of Flash Read Cache
Explain the purpose of a VMware® Virtual SAN™ datastore
Describe the architecture and requirements of Virtual SAN
Key Features
Key features
Flash Read Cache infrastructure
Flash Read Cache • Pools local flash devices
• Provides flash-based resource
Flash Read Cache infrastructure
management
vSphere Cache software
• ESXi host-based caching
• Provides per-VMDK caching
CPU Memory Flash Resource
Benefits
Easy to manage as a pooled
resource
Targeted use is per-VMDK
Transparent to the application and
guest OS
SAN/NAS
write through
write
commit
1
Cache 2
3
ack
Read-intensive operation
workloads:
Collaboration applications
Flash Read Flash Read Flash Read
Cache Cache Cache
Storage arrays
SAS/SATA SSD
Only solid-state drives (SSD)
are used for a read cache.
SAN and local hard-disk drives PCIe flash cards
(HDDs) are used as a persistent
store.
VMware recommends that all SAS/SATA HDD
hosts in a cluster be identically
configured.
GO Repeat as If Repeat as
Stop
necessary necessary necessary
Configure
Configure a Configure virtual
Add SSD Flash Read
virtual flash flash host swap
capacity Cache for each
resource cache
virtual machine
vSphere
vSphere
SSD
Fully integrated
with vSphere
vMotion, DRS,
and vSphere HA.
vSphere vMotion
migration
workflows give the
option of whether
or not to migrate
the cache
contents.
Advanced settings
allow individual
VMDK migration
settings.
vSphere vMotion
Cross-Host
vSphere
Storage vMotion
Storage
Array
Cross-Host
Virtual flash resources are
vSphere Storage managed at the host level.
•
vMotion
There is no cluster-wide knowledge
about Flash Read Cache availability
Flash Read Cache Flash Read Cache
or use.
DRS selects a host that has
available virtual flash capacity to
start a virtual machine.
There is no automatic virtual
machine migration for Flash Read
Cache optimization.
• DRS migrates a virtual machine only
Storage for mandatory reasons or if
Array
necessary to correct host over-
utilization.
vSphere
Virtual SAN stores and manages data in the form of flexible data
containers called objects.
vSphere
Virtual Machine
Storage Policy
Virtual machine storage policies
Capacity
Availability are created before virtual
Performance machine deployment to reflect
the requirements of the
applications running in the
virtual machine.
…
The storage policy is based on
vSphere the Virtual SAN capabilities.
Virtual SAN datastore Based on virtual machine
requirements, the appropriate
policy is selected at deployment
disk group disk group
time.
…
Virtual SAN cluster
By the end of this lesson, you should be able to meet the following
objectives:
Determine which disk metrics to monitor
Identify metrics in vCenter Server and resxtop
Demonstrate how to monitor disk throughput
normal
VMkernel
Adapter view: Type d. latency
queuing at
Device view: Type u. the device
vSphere Web
Client counter:
Disk Command
Aborts
resxtop counter:
ABRTS/s
VMFS
shared storage
fileserver2.sh VMFS
datawrite.sh remote
Linux01.vmdk
logwrite.sh data disk
… …
your assigned
LUN
Test 1
Sequential Writes to a Virtual
Disk on a Remote Datastore
Test 2
Random Writes to a Virtual
Disk on a Remote Datastore
Test 3
Random Reads from a Virtual
Disk on a Remote Datastore
Test 4
Random Reads from a Virtual
Disk on a Local Datastore
By the end of this lesson, you should be able to meet the following
objectives:
Use VMware vSphere® Management Assistant to manage vSphere
virtual storage
Use vmkfstools for VMFS operations
Use the vscsiStats command
vSphere Management
Storage Management Task
Assistant Command
Examine LUNs. esxcli
You can specify when the path should change by using the
--bytes or --iops argument.
To set the device to switch to the next path each time 12,345 bytes are
sent along the current path:
esxcli conn_options storage nmp psp roundrobin
deviceconfig set --type=bytes --bytes=12345 --device
naa.xxx
To set the device to switch after 4,200 I/O operations are performed on
a path:
esxcli conn_options storage nmp psp roundrobin
deviceconfig set --type=iops --iops=4200 --device
naa.xxx
vscsiStats <options>
-l List running virtual machines and their world IDs
(worldGroupID).
-s Start vscsiStats data collection.
-x Stop vscsiStats data collection.
-p Print histograms, specifying histogram type.
-c Produce results in a comma-delimited list.
-h Display help menu for more information about
command-line parameters.
-w Specify worldGroupID
By the end of this lesson, you should be able to meet the following
objectives:
Describe various storage performance problems
Discuss causes of storage performance problems
Propose solutions to correct storage performance problems
Discuss examples of troubleshooting storage performance problems
Maximum disk
latencies range
from 100ms to
1100ms.
This latency is
very high.
This leads to
high latencies.
Scenario:
A group of virtual machines runs on a host.
Each virtual machine’s application reads from and writes to the same
NAS device.
• The NAS device is also a virtual machine.
Problem:
Users suddenly cannot log in to any of the virtual machines.
• The login process is very slow.
Initial speculation:
Virtual machines are saturating a resource.
Predictable, balanced
disk usage Uneven, reduced
disk usage
Steady read
and write traffic
Increased write traffic.
Zero read traffic
Problem diagnosis:
CPU usage increased per virtual machine.
Write traffic increased per virtual machine.
Write traffic to the NAS virtual machine significantly increased.
One possible problem:
An application bug in the virtual machine caused the error condition:
• The error condition caused excessive writes to the NAS virtual machine.
• Each virtual machine is so busy writing that it never reads.
Configure each LUN with the correct RAID level and storage
characteristics for applications and virtual machines that use the LUN.
Use VMFS file systems for your virtual machines.
Avoid oversubscribing paths (SAN) and links (iSCSI and NFS).
Isolate iSCSI and NFS traffic.
Applications that write a lot of data to storage should not share Ethernet
links to a storage device.
Postpone major storage maintenance until off-peak hours.
Eliminate all possible swapping to reduce the burden on the storage
subsystem.
In SAN configurations, spread I/O loads over the available paths to the
storage devices.
Strive for complementary workloads.
Questions?