Agenda 1 Use of the VMware vsphere Command-line Interface (vcli), the ESXi Shell, and Log Files to Diagnose and Correct Problems 2 Troubleshooting Net

Similar documents
Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

VMware vsphere 6.0 / 6.5 Advanced Infrastructure Deployment (AID)

VMware vsphere 6.0 / 6.5 Infrastructure Deployment Boot Camp

2V0-620 Exam Questions Demo VMware. Exam Questions 2V vsphere 6 Foundations Beta Exam

Overview. Prerequisites. VMware vsphere 6.5 Optimize, Upgrade, Troubleshoot

VMware vsphere Administration Training. Course Content

BraindumpsVCE. Best vce braindumps-exam vce pdf free download

VMware vsphere 5.5 Professional Bootcamp

Changes in VCP6.5-DCV exam blueprint vs VCP6

This Presentation Will Discuss 1 NSX Infrastructure Communication 2 Using NSX Central CLI 3 Validating and Populating NSX Controller Tables 4 Controll

vsphere Command-Line Interface Concepts and Examples ESXi 6.5 vcenter Server 6.5

vsphere Command-Line Interface Concepts and Examples ESXi 6.5 vcenter Server 6.5

VI3 to vsphere 4.0 Upgrade and New Technology Ultimate Bootcamp

"Charting the Course... VMware vsphere 6.5 Optimize, Upgrade, Troubleshoot. Course Summary

Vmware VCP-511. VMware Certified Professional on vsphere 5 (Private Beta) Download Full Version :

vrealize Operations Management Pack for vsan 1.0 Guide

Exam Name: VMware Certified Professional on vsphere 5 (Private Beta)

PassTest. Bessere Qualität, bessere Dienstleistungen!

VMware vsphere 5 Ultimate Bootcamp

vsphere Command-Line Interface Concepts and Examples 17 APR 2018 ESXi 6.7 vcenter Server 6.7

Latest IT Exam Questions & Answers

5 Critical Vmware Esxcli Network Troubleshooting Commands

2V0-602.exam. Number: 2V0-602 Passing Score: 800 Time Limit: 120 min File Version: Vmware 2V0-602

ESXi Version 5.1 Host

VMware vsphere 6.5/6.0 Ultimate Bootcamp

Question No: 2 What three shares are available when configuring a Resource Pool? (Choose three.)

AccelStor All-Flash Array VMWare ESXi 6.0 iscsi Multipath Configuration Guide

Exam Name: VMware Certified Professional 6 Data Center Virtualization Delta Beta

Latest IT Exam Questions & Answers

[VMICMV6.5]: VMware vsphere: Install, Configure, Manage [V6.5]

VMware vsphere: Install, Configure, Manage plus Optimize and Scale- V 6.5. VMware vsphere 6.5 VMware vcenter 6.5 VMware ESXi 6.

BraindumpsIT. BraindumpsIT - IT Certification Company provides Braindumps pdf!

VMware - VMware vsphere: Install, Configure, Manage [V6.7]

How do I patch custom OEM images? Are ESXi patches cumulative? VMworld 2017 Do stateless hosts keep SSH & SSL identities after reboot? With Auto Deplo

VMware. Exam Questions 2V0-621D. VMware Certified Professional 6 Data Center Virtualization Delta Beta. Version:Demo

vsphere Troubleshooting Guide

Exam Questions VCP550D

vsphere 5/6: Install, Configure, Manage Review Questions

Vendor: VMware. Exam Code: VCPC550. Exam Name: VMware Certified Professional -Cloud. Version: Demo

VMware vsphere 6.5 Administration Basics Ultimate Bootcamp

VMware vsphere 6.5: Install, Configure, Manage (5 Days)

VMware vsphere with ESX 4 and vcenter

VMware ESXi 4.1 Operations Guide TECHNICAL WHITE PAPER

2V0-622 vmware. Number: 2V0-622 Passing Score: 800 Time Limit: 120 min.

Vmware VCP550. VMware Certified Professional on vsphere 5. Download Full Version :

VMware vsphere 4.1 Ultimate Bootcamp. Course Overview. Course Outline

DumpExam. The best exam dump, valid dumps PDF, accurate exam materials provider

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Chapter 10. Troubleshooting Your Virtual Environment. Troubleshooting ESX and ESXi Hosts. Troubleshooting ESX Hosts

VMware vsphere 5.5 Ultimate Bootcamp. Course Overview

Managing Virtual Machines

VMware vsphere: What s New Lab Manual ESXi 5.5 and vcenter Server 5.5

VMware vsphere 4. Architecture VMware Inc. All rights reserved

VMware Certified Professional 2V0-602

Vmware 3V VMware Certified Advanced Professional Data Center Virtualization Design.

Detail the learning environment, remote access labs and course timings

Managing Virtual Machines Using the Cisco SRE-V CLI

VMware vsphere with ESX 6 and vcenter 6

PASS4TEST 専門 IT 認証試験問題集提供者

VMware Ultimate Bootcamp v 3.5

GetCertkey. No help, Full refund!

Administering VMware vsphere and vcenter 5

Installing and Upgrading Cisco Network Registrar Virtual Appliance

"Charting the Course... VMware vsphere 6.7 Boot Camp. Course Summary

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

Vmware VCP-101E. VMware ESX Server System Management II. Download Full Version :

2V0-622D.exam. VMWARE 2V0-622D. VMware Certified Professional 6.5 Data Center Virtualization Delta Exam. Version 1.

What s New in VMware vsphere 5.0 Platform

VMware vsphere 4.0 Ultimate Bootcamp

Exam Name: VMware Certified Professional 5 Data Center Virtualization (VCP5-DCV) Exam

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

VSPHERE: FAST TRACK V6.5 (EDU-VSFT65)

Exam4Tests. Latest exam questions & answers help you to pass IT exam test easily

VMware vsphere: Install, Configure, Manage (vsphere ICM 6.7)

Dell Storage Compellent Integration Tools for VMware

ATA Infotech Ventures Pvt. Ltd.

VMware vsphere with ESX 4.1 and vcenter 4.1

VMware vsphere. Administration VMware Inc. All rights reserved

NetApp Element Plug-in for vcenter Server User Guide

Dell Storage Compellent Integration Tools for VMware

Vendor: VMware. Exam Code: VCP550PSE. Exam Name: VMware Certified Professional - Data Center Virtualization (PSE) Version: Demo

Dell Storage Integration Tools for VMware

Logical Operations Certified Virtualization Professional (CVP) VMware vsphere 6.0 Level 1 Exam CVP1-110

vsan Monitoring and Troubleshooting Update 1 16 OCT 2018 VMware vsphere 6.7 VMware vsan 6.7

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

vsphere Host Profiles Update 1 VMware vsphere 6.5 VMware ESXi 6.5 vcenter Server 6.5

Vmware VCP550PSE. VMware Certified Professional on vsphere 5.

Virtualization with VMware ESX and VirtualCenter SMB to Enterprise

Troubleshooting vsphere Storage

VMware vsphere 5.5 Advanced Administration

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

ITexamSimulator. Simulate exam and practical test for Certification exam

Multipathing Configuration for Software iscsi Using Port Binding

This is an adaption of the material available from mylearn.vmware.com. Information last updated: 01/09/2015

Vendor: VMware. Exam Code: 2V Exam Name: VMware vsphere 6.5 Foundations Exam. Question 1 Question 40

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

By the end of the class, attendees will have learned the skills, and best practices of virtualization. Attendees

VMware Exam 2V0-621 VMware Certified Professional 6 Data Center Virtualization Beta Version: 7.0 [ Total Questions: 242 ]

Vmware 2V VMware Certified Professional 6 - Data Center Virtualization.

Transcription:

SER1289BU vsphere Troubleshooting Tips and Tricks Javier Menendez & Francis Daly #VMworld #SER1289BU

Agenda 1 Use of the VMware vsphere Command-line Interface (vcli), the ESXi Shell, and Log Files to Diagnose and Correct Problems 2 Troubleshooting Networking Issues 3 Troubleshooting Storage Issues 4 Troubleshooting vsphere HA Cluster and Performance Issues VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 2

Scope This Presentation covers portions of the Troubleshooting Workshop: For more information, go to http://vmware.com/education Certain troubleshooting topics are addressed in the VMware vsphere: Fast Track [6.5] course. 3

Troubleshooting Overview

Troubleshooting Process The troubleshooting process consists of the following tasks: Defining the problem Identifying symptoms Gathering information Identifying the cause of the problem Identifying possible causes Determining the root cause Solving the problem Identifying possible solutions Implementing the best solution #SER1289BU CONFIDENTIAL 5

Solving the Problem Can I Do It with the Web Client or Should I Use the esxi Shell? What are my choices: Can I fix the problem with the Web, Host or vsphere Client? Do I want or need to use the command line utilities? #SER1289BU CONFIDENTIAL 6

Troubleshooting Tools and Choices

Command-line Troubleshooting Choices Choices to obtain command-line access on a VMware ESXi host: VMware vsphere ESXi Shell Can be access via: 1. The DCUI (if enabled via ALT + F1) 2. Via putty after enabling ssh. vsphere Management Assistant (VMA) Appliance deployed via ovf Contains vcli package Does NOT use port 22. #SER1289BU CONFIDENTIAL 8

The esxcli Command The esxcli command offers the following namespaces, as well as many new esxcli functions added in the vsphere 6.5. If working with vsan, check out the new esxcli vsan debug namespace #SER1289BU CONFIDENTIAL 9

Example: The esxcli vsan Namespace The vsan related commands are found in esxcli vsan #SER1289BU CONFIDENTIAL 10

New Commands Added with Every New vsphere Release. Ex: The esxcli vsan debug Namespace The new vsan debug related commands are amazing to discover the state of your objects, vms, etc. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 11

Tip: Remember the esxcli esxcli command list Command esxcli esxcli command list displays all the command options. To quickly find the command needed, combine it with the grep command VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 12

The VMA s vicfg-* Commands vicfg- [tab] [tab] Commands with the vicfg- prefix enable you to manage your storage, network, and host configuration. Type vicfg- followed by the TAB key twice so see all the available commands. For example, vicfg-cfgbackup allows you to back up the esxi settings in a few seconds. #SER1289BU CONFIDENTIAL 13

The esxi shell s esxcfg- Commands Are Still There esxcfg- [tab] [tab] Commands with the esxcfgprefix enable you to manage your storage, network, and host configuration. Type esxcfg- followed by the TAB key twice so see all the available commands. Remember the h (help) option to master these commands. #SER1289BU CONFIDENTIAL 14

Tip: Remember the -h Option for esxcfg-* Commands Use the h option (for help) to see options for this particular command and in some cases, even examples on how to use the command. How many times did you struggle to create a vmkernel port with the cli? VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 15

Manipulating Virtual Machines with the cli from the V.M.A.? vmware-cmd The vmware-cmd command is used to interact with virtual machines. vmware-cmd The vmware-cmd command is exclusively used for virtual machines. #SER1289BU CONFIDENTIAL 16

Example: Listing Your Virtual Machines vmware-cmd -l Lists the virtual machines that are located on the target host. Lists virtual machines by path to the.vmx file. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 17

Tip: Learn More on Your Own Type vmware-cmd --help to see what the command allows you to do. vmware-cmd allows you to start a vm, take snapshots, register a vm, etc. VMworld 2017 Content: Not for The esxi host has a similar command to manipulate vms called vim-cmd vmsvc. publication #SER1289BU CONFIDENTIAL 18

Manipulating Virtual Machines from the esxi shell vim-cmd vmsvc can perform similar tasks from the esxi shell. Wondering what the destroy option does? Better try it on a test vm. #SER1289BU CONFIDENTIAL 19

Tip: Location of VMware vcenter Server 6.5 Log Files The VMware vcenter Server 6.5 logs are located in the %ALLUSERSPROFILE%\VM Ware\vCenterServer\logs folder. Recommendation The VMware vcenter Server Appliance 6.5 logs are located in the /var/log/vmware folder. See http://kb.vmware.com/kb/2110014 and 1021806 for additional details. #SER1289BU CONFIDENTIAL 20

Useful ESXi Host Logs for Troubleshooting ESXi hosts write to multiple log files, depending on which action is being performed. Log file hostd.log syslog.log vmkernel.log vmkwarning.log vmksummary.log Purpose Host Management service logs Management service initialization, watchdogs, scheduled tasks, and DCUI use Core VMkernel logs, including device discovery, storage and networking device and driver events, and virtual machine startups A summary of warning and alert log messages excerpted from the VMKernel logs A summary of ESXi host startup and shutdown, and an hourly heartbeat with uptime, number of virtual machines running, and service resource consumption #SER1289BU CONFIDENTIAL 21

Tip: Other Critical Logs to Be Aware of and How to View Them /var/log/fdm.log displays HA cluster related events and notifications. /var/log/shell.log displays commands executed inside of the esxi shell. VMworld 2017 Content: Not for /var/log/clomd.log displays vsan health related information for devices among the output publication #SER1289BU CONFIDENTIAL 22

Tip: Remember /var/log Lots of logs available in this directory #SER1289BU CONFIDENTIAL 23

Collecting Diagnostic Data for VMware Technical Support Methods for collecting diagnostic information to send to VMware Technical Support include the following: Use the GUI to export files to a log bundle. vsphere Client or vsphere Web Client Use the vm-support command to collect information from an individual ESXi host. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 24

Tip: Running vm-support when Engaging Support #SER1289BU CONFIDENTIAL 25

Network Troubleshooting Commands VMworld 2017 Content: Not for publication

Tip: Useful Networking Related Commands Use esxcfg-vmknic l or vicfg-vmknic -l to view your vmkernel port related information. Are they still there and enabled? Use esxcfg-nics l or vicfgnics l to view uplink related information. Are the nics up or down? Use esxcfg-vswitch l or vicfg-vswitch l to view virtual switch related information. Is the switch connected to at least one uplink? esxcli also has options to perform these tasks. For example: esxcli network nic list is similar to esxcfg-nics -l #SER1289BU CONFIDENTIAL 27

Tip: Did You Know That Somebody could accidentally down a nic? If so, type esxcli network nic up n vmnic2. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 28

Tip: Did You Know That Somebody could disable a vmkernel port with commands like esxcfg-vmknic -D? VMworld 2017 Content: Not for If so, type esxcfg-vmknic -e to reenable the vmkernel port. publication #SER1289BU CONFIDENTIAL 29

Tip: Rebuilding the Management Network from Scratch Somebody could accidentally disconnect an uplink from a virtual switch? ffaaa #SER1289BU CONFIDENTIAL 30

Need a Packet Sniffer? Remember pktcap-uw There is a built-in packet sniffer called pktcap-uw and an older one called tcpdump-uw. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 31

Storage Troubleshooting

Tip: Did You Know That You can see how many dastastores exist and how full the datastores are? This command displays vmfs, nfs, vsan and vvol datastores. There is also a vdf h command. #SER1289BU CONFIDENTIAL 33

Tip: Did You Know That You can easily view all sorts of information with esxcli? #SER1289BU CONFIDENTIAL 34

Tip: Use esxcli Storage Core Device Smart for SSD Information vsphere 6.5 Includes Use this command to retrieve data about a specific SSD device. Critical for vsan, Flash Read Cache or any datastore using SSDs. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 35 35

Tip: Be Familiar with partedutil partedutil is the command that partitions luns. It can also create, resize and delete partitions. #SER1289BU CONFIDENTIAL 36

Tip: Suspect Metadata Corruption? voma is the on-disk metadata analyzer for vmfs datastores. #SER1289BU CONFIDENTIAL 37

Troubleshooting Clusters and Performance VMworld 2017 Content: Not for publication

vsphere HA A reliable network connection between the hosts and VMware vcenter Server is essential for enabling vsphere HA. FDM ESXi host (slave) vcenter Server FDM vpxa hostd vpxa hostd vpxa ESXi host (slave) vpxd FDM hostd ESXi host (master) Heartbeat Datastores Management Network #SER1289BU CONFIDENTIAL 39

Tip: Remember F.D.M There is a log for HA that you can t see with the Web or vsphere Client? #SER1289BU CONFIDENTIAL 40

Tip: Did You Know That You can stop, start or restart the HA service from the cli if needed? #SER1289BU CONFIDENTIAL 41

Tip: You Can Restart All Services at Once If Needed Remember services.sh restart #SER1289BU CONFIDENTIAL 42

Tip: Did You Know That esxtop is an amazing tool for performance troubleshooting? VMworld 2017 esxtop has options for CPU (c), RAM (m), Disk (d,u,v) and Network (n) related statistics? esxtop has an option for vsan (-x option)? Content: Not for publication #SER1289BU CONFIDENTIAL 43

Tip: Did You Know That esxtop has built-in help? #SER1289BU CONFIDENTIAL 44

Tip: Did You Know That You can add more output to esxtop by pressing f? For example, you can add NUMA related information (G Option) VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 45

Tip: Learn the vsish Command and Its Capabilities vsish has hundreds of subcommands. Just type the command and take a look You can type commands like cd to change directories and get to view information. VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 46

Tip: Learn the vsish Command and Its Capabilities vsish has hundreds of subcommands. Just type the command and take a look VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 47

Global Support Services Learn more about how VMware is radically transforming Customer Support through VMware Skyline technology. See a demo in the VMware booth in the Solutions Exchange Sign up for a Meet the Experts roundtable in the Schedule Builder on the VMworld mobile app or visit the Meet the Experts, Level 2 Visit www.vmware.com/support/service/skyline VMworld 2017 Content: Not for publication #SER1289BU CONFIDENTIAL 48

Additional Education Resources At VMworld 2017 Education & Certification Lounge: VM Village Certification Exam Center: Jasmine EFG, Level 3 Online vsphere Training: www.vmware.com/go/vsphere65training VMware Training: www.vmware.com/education VMware Certification: www.vmware.com/certification or Save 50% distribution off VCP & VCAP exams at VMworld 2017 #SER1289BU CONFIDENTIAL 49