6.5
Table Of Contents
- vSphere Command-Line Interface Concepts and Examples
- Contents
- About This Book
- vSphere CLI Command Overviews
- Introduction
- List of Available Host Management Commands
- Targets and Protocols for vCLI Host Management Commands
- Supported Platforms for vCLI Commands
- Commands with an esxcfg Prefix
- ESXCLI Commands Available on Different ESXi Hosts
- Trust Relationship Requirement for ESXCLI Commands
- Using ESXCLI Output
- Connection Options for vCLI Host Management Commands
- Connection Options for DCLI Commands
- vCLI Host Management Commands and Lockdown Mode
- Managing Hosts
- Managing Files
- Managing Storage
- Introduction to Storage
- Examining LUNs
- Detach a Device and Remove a LUN
- Reattach a Device
- Working with Permanent Device Loss
- Managing Paths
- Managing Path Policies
- Scheduling Queues for Virtual Machine I/O
- Managing NFS/NAS Datastores
- Monitor and Manage FibreChannel SAN Storage
- Monitoring and Managing Virtual SAN Storage
- Monitoring vSphere Flash Read Cache
- Monitoring and Managing Virtual Volumes
- Migrating Virtual Machines with svmotion
- Configuring FCoE Adapters
- Scanning Storage Adapters
- Retrieving SMART Information
- Managing iSCSI Storage
- iSCSI Storage Overview
- Protecting an iSCSI SAN
- Command Syntax for esxcli iscsi and vicfg-iscsi
- iSCSI Storage Setup with ESXCLI
- iSCSI Storage Setup with vicfg-iscsi
- Listing and Setting iSCSI Options
- Listing and Setting iSCSI Parameters
- Enabling iSCSI Authentication
- Set Up Ports for iSCSI Multipathing
- Managing iSCSI Sessions
- Managing Third-Party Storage Arrays
- Managing Users
- Managing Virtual Machines
- Managing vSphere Networking
- Introduction to vSphere Networking
- Retrieving Basic Networking Information
- Troubleshoot a Networking Setup
- Setting Up vSphere Networking with vSphere Standard Switches
- Setting Up Virtual Switches and Associating a Switch with a Network Interface
- Retrieving Information About Virtual Switches
- Adding and Deleting Virtual Switches
- Checking, Adding, and Removing Port Groups
- Managing Uplinks and Port Groups
- Setting the Port Group VLAN ID
- Managing Uplink Adapters
- Adding and Modifying VMkernel Network Interfaces
- Managing VMkernel Network Interfaces with ESXCLI
- Add and Configure an IPv4 VMkernel Network Interface with ESXCLI
- Add and Configure an IPv6 VMkernel Network Interface with ESXCLI
- Managing VMkernel Network Interfaces with vicfg-vmknic
- Add and Configure an IPv4 VMkernel Network Interface with vicfg-vmknic
- Add and Configure an IPv6 VMkernel Network Interface with vicfg-vmknic
- Setting Up vSphere Networking with vSphere Distributed Switch
- Managing Standard Networking Services in the vSphere Environment
- Setting the DNS Configuration
- Manage an NTP Server
- Manage the IP Gateway
- Setting Up IPsec
- Manage the ESXi Firewall
- Monitor VXLAN
- Monitoring ESXi Hosts
- Index
Typically, the path to the device has the following format.
vmhba<adapter>:C<channel>:T<target>:L<LUN>
n
vmbh<adapter> is the name of the storage adapter. The name refers to the physical adapter on the
host, not the SCSI controller used by the virtual machines.
n
C<channel> is the storage channel number. Software iSCSI adapters and dependent hardware
adapters use the channel number to show multiple paths to the same target.
n
T<target> is the target number. Target numbering is determined by the host and might change if
the mappings of targets that are visible to the host change. Targets that are shared by dierent
hosts might not have the same target number.
n
L<LUN> is the LUN number that shows the position of the LUN within the target. The number is
provided by the storage system. If a target has only one LUN, the LUN number is always zero (0).
Legacy Identifiers
In addition to the SCSI INQUIRY or mpx identiers, ESXi generates an alternative legacy name, called VML
name, for each device. Use the device UID instead.
Examining LUNs
A LUN (Logical Unit Number) is an identier for a disk volume in a storage array target.
Target and Device Representation
In the ESXi context, the term target identies a single storage unit that a host can access. The terms device
and LUN describe a logical volume that represents storage space on a target.
The terms device and LUN mean a SCSI volume presented to the host from a storage target.
Dierent storage vendors present their storage systems to ESXi hosts in dierent ways. Some vendors
present a single target with multiple LUNs on it. Other vendors, especially iSCSI vendors, present multiple
targets with one LUN each.
Figure 4‑3. Target and LUN Representations
storage array
target
LUN LUN LUN
storage array
target targettarget
LUN LUN LUN
In Figure 4-3, three LUNs are available in each conguration. On the left, the host sees one target, but that
target has three LUNs that can be used. Each LUN represents an individual storage volume. On the right,
the host sees three dierent targets, each having one LUN.
Chapter 4 Managing Storage
VMware, Inc. 45