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
Reattach a Device
When you have completed storage reconguration, you can reaach the storage device, mount the
datastore, and restart the virtual machines.
Prerequisites
Make sure you are familiar with datastore mounting. See“Mounting Datastores with Existing Signatures,”
on page 32.
Procedure
1 (Optional) Check whether the device is detached.
esxcli storage core device detached list
2 Aach the device.
esxcli storage core device set -d naa.XXX --state=on
3 Mount the datastore and restart virtual machines.
Working with Permanent Device Loss
In some cases a permanent device loss (PDL) might occur.
With earlier ESXi releases, an APD (All Paths Down) event results when the LUN becomes unavailable. The
event is dicult for administrators because they do not have enough information about the state of the LUN
to know which corrective action is appropriate.
In ESXi 5.0, the ESXi host can determine whether the cause of an APD event is temporary, or whether the
cause is PDL. A PDL status occurs when the storage array returns SCSI sense codes indicating that the LUN
is no longer available or that a severe, unrecoverable hardware problem exist with it. ESXi has an improved
infrastructure that can speed up operations of upper-layer applications in a device loss scenario.
I Do not plan for APD or PDL events, for example, when you want to upgrade your hardware.
Instead, perform an orderly removal of LUNs from your ESXi server, which is described in “Detach a Device
and Remove a LUN,” on page 48, perform the operation, and add the LUN back.
Removing a PDL LUN
How you remove a PDL LUN depends on whether it was in use.
n
If the LUN that goes into PDL is not in use by any user process or by the VMkernel, the LUN
disappears by itself after a PDL.
n
If the LUN was in use when it entered PLD, delete the LUN manually by following the process
described in “Detach a Device and Remove a LUN,” on page 48.
Reattach a PDL LUN
You can reaach a PDL LUN after it has been removed.
Procedure
1 Return the LUN to working order.
Chapter 4 Managing Storage
VMware, Inc. 49