Documente Academic
Documente Profesional
Documente Cultură
Module 6
Storage Troubleshooting
VMotion Troubleshooting
Network Troubleshooting
Management Troubleshooting
Importance
Nearly every service depends on access to storage. It is
critical that you understand the Pluggable Storage
Architecture in VMware ESX 4.x in order to be able to
quickly restore lost access to storage.
Module Lessons
Lesson 1:
Lesson 2:
Lesson 3:
Lesson 1:
Pluggable Storage
Architecture Review
Lesson Objectives
Describe the Pluggable Storage Architecture
Describe the operation of the VMware-supplied PSA plug-ins
Describe the available load-distribution policies
Describe the purpose of the VMware vStorage APIs
Describe asymmetric logical unit access and target port
group support
PSA
VMware NMP
VMware SATP
VMware PSP
VMware SATP
VMware PSP
VMware SATP
VMware PSP
NMP Illustration
SATPs handle path failover, monitor
path health, and report changes to the
NMP.
PSPs choose the best available path.
SATP
HBA 1
PSP
HBA 2
NMP
PSA
VMkernel
storage stack
Fixed PSP
The Fixed PSP uses a designated preferred path, if it has
been configured.
If the ESX host cannot use the preferred path, the PSP
selects a random alternative available path.
The PSP automatically fails back to the preferred path as
soon as that path becomes available.
This is the default PSP for active-active arrays.
PSP
1
SATP
5
HBA 1
2
HBA 2
3
NMP
PSA
VMkernel
storage stack
Third-Party Plug-Ins
PSA
VMware NMP
third-party
MPP
third-party
MPP
VMware SATP
VMware PSP
VMware SATP
VMware PSP
VMware SATP
VMware PSP
third-party SATP
third-party PSP
To accommodate
specific storage
arrays
Lab 20
In this lab, you will identify components of the PSA.
Identify PSA components.
Lesson Summary
Described the PSA
Described the operation of the VMware-supplied PSA plugins
Described the available load-distribution policies
Described the purpose of the vStorage APIs
Described asymmetric logical unit access and target port
group support
Lesson 2:
Viewing Storage Components
Lesson Objectives
Describe storage device naming
View storage plug-ins in the VMware vSphere Client
Use the esxcli command to view and manage storage
Use the esxcfg-mpath command to view and manage
storage
Use the vmkload_mod command to view VMkernel modules
Configure storage path masking
Troubleshoot storage problems
Storage Naming
Identifiers are universally unique IDs associated with devices
that are persistent across reboots and across hosts. Depending
on the type of storage, different algorithms are used.
Runtime Names
Field
Definition
The name
of the first
path to the
device,
assigned by
the host,
and not
persistent
across
reboots.
vmhba<n>
C<n>
The channel number. Software iSCSI initiators use the channel number to show
multiple paths to the same target.
T<n>
The target number. Target numbering is decided by the host and might change if
there is a change in the mappings of targets visible to the host. Targets that are
shared by different ESX hosts might not have the same target number.
L<n>
The LUN number that shows the position of the LUN within the target. The LUN
number is provided by the storage system.
esxcli Command
The esxcli command is primarily used for managing storage.
It is available in the service console and in VMware vSphere
Command-Line Interface (vCLI).
Command syntax:
esxcli <conn_options> <namespace> <app> <cmd> [cmd_options]
<conn_options>
<namespace>
<app>
<cmd>
Command to be called
[cmd_options]
Command options
esxcfg-mpath Command
The service console esxcfg-mpath command lists information
about Fibre Channel or iSCSI LUNs and changes a storage
paths state.
The vicfg-mpath command is the equivalent in vCLI.
To manage ESX 3.5 hosts using the ESX 4.x vCLI, use the vicfgmpath35 command.
Command syntax:
esxcfg-mpath <conn_options> <cmd_options>
<conn_options> are vCLI connection parameters that not
needed in the service console.
To display a list of command specific options, use esxcfgmpath h.
vmkload_mod Command
The vmkload_mod command is used to load, unload, and
list the loaded VMkernel modules.
It can also list the available parameters for each module.
0x1000
0x1000
0x4000
0x6000
0x2000
0x2000
0x4000
0x1000
0x3000
0x1000
0x1000
0x1000
0x3000
0x417fd8676270
0x417fd8680e80
0x417fd8684460
0x417fd868d9b0
0x417fd868e9c0
0x417fd868f9d0
0x417fd86909e0
0x417fd86919f0
0x417fd8692a00
0x417fd8693a10
0x417fd8694a20
0x417fd8695a30
0x417fd8696a40
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
0x1000
10
11
17
18
19
20
21
22
23
24
25
26
27
0x2000
0x3000
0x2000
0x417fd8681e90
0x417fd8697a80
0x417fd8698aa0
0x1000
0x1000
0x1000
12 Yes
28 Yes
29 Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Lab 21
In this lab, you will examine and configure the storage
of your ESX host.
1. List all multipathing plug-ins installed on your ESX host.
2. Examine devices that have been claimed by the native
multipathing plug-in on your ESX host.
3. Record information about one of the Storage Array Type Plugins loaded into the NMP.
4. Examine the SATP configuration on your ESX host.
5. Determine the default PSP and the active path for a specific
storage NAA device.
6. Change the configuration of the PSP for a storage device.
Lab 22
In this lab, you will examine and configure the storage
of your ESXi host.
1. List all multipathing plug-ins installed on your ESXi host.
2. List which devices have been claimed by the native
multipathing plug-in on your ESXi host.
3. Examine Storage Array Type Plug-ins on your ESXi host.
4. Examine a specific storage device on your ESXi host.
Lesson Summary
Described storage device naming
Viewed storage plug-ins in the vSphere Client
Used the esxcli command to view and manage storage
Used the esxcfg-mpath command to view and manage
storage
Used the vmkload_mod command to view VMkernel
modules
Resolved storage problems
Lesson 3:
iSCSI and NAS Storage
Lesson Objectives
Configure iSCSI Challenge Handshake Authentication
Protocol settings
Configure software iSCSI initiator multipathing
Describe iSCSI message digests
Troubleshoot iSCSI and NAS storage problems
Description
Supported
HW/SW
SW
The host prefers CHAP, but can use nonCHAP connections if the target does not
support CHAP.
HW/SW
Use CHAP
SW
Bidirectional CHAP
iSCSI Storage Adapter > Properties
Bidirectional CHAP
cannot be enabled until
Use CHAP is selected.
Per-Target CHAP
Per-target
CHAP is
configured
by selecting
a target on
the
Dynamic
Discovery
tab or the
Static
Discovery
tab.
Port binding can be configured with a single virtual switch or a pair of virtual
switches.
vmhba32
vmk1
vmk3
vmk2
PortGroup A
vmnic1
vmhba32
vmnic2
PortGroup C
PortGroup B
vmnic3
vmk4
PortGroup D
vmnic4
2.
Example:
# esxcli swiscsi nic add -n vmk1 -d vmhba32
# esxcli swiscsi nic add -n vmk2 -d vmhba32
Description
Header Digest
Data Digest
Lab 23
In this lab, you will configure your ESX host to use
iSCSI storage with CHAP and digest settings enabled.
1. Configure your ESX host to use iSCSI storage with CHAP
authentication.
2. Configure your ESX host to use iSCSI storage with digests.
3. Examine iSCSI-related log files and diagnostic data.
Lab 24
In this lab, you will configure your iSCSI storage to use
port binding and multipathing.
1. Configure your ESX/ESXi host to use iSCSI port binding.
2. Configure your ESX/ESXi host to use storage multipathing.
Lab 25
In this lab, you will configure path masking.
Configure your ESX/ESXi host to use path masking.
Lab 26
In this lab, you will diagnose and correct a variety of
FC-SCSI problems.
Troubleshoot FC-SCSI storage problems.
Lab 27
In this lab, you will diagnose and correct a variety of
NAS and iSCSI problems.
Troubleshoot NAS and iSCSI problems.
Lesson Summary
Configured iSCSI CHAP settings
Configured software iSCSI initiator multipathing
Described iSCSI message digests
Configured storage path masking
Resolved iSCSI and NAS storage problems
Key Points
The Pluggable Storage Architecture uses software plug-ins to
manage and access storage.
The default VMware-supplied multipathing plug-in is the
native multipathing plug-in.
A Storage Array Type Plug-in is available to manage all
VMware arrays on the hardware compatibility list.
The three Path Selection Plug-ins support the Most Recently
Used, Fixed, and Round Robin load-distribution policies.
esxcli and esxcfg-mpath (vicfg-mpath) are primary
storage management commands.
ESX/ESXi 4.x supports several CHAP configurations.
ESX/ESXi 4.x supports software iSCSI initiator multipathing.