Book Image

VMware vSphere Troubleshooting

Book Image

VMware vSphere Troubleshooting

Overview of this book

VMware vSphere is the leading server virtualization platform with consistent management for virtual data centers. It enhances troubleshooting skills to diagnose and resolve day to day problems in your VMware vSphere infrastructure environment. This book will provide you practical hands-on knowledge of using different performance monitoring and troubleshooting tools to manage and troubleshoot the vSphere infrastructure. It begins by introducing systematic approach for troubleshooting different problems and show casing the troubleshooting techniques. You will be able to use the troubleshooting tools to monitor performance, and troubleshoot issues related to Hosts and Virtual Machines. Moving on, you will troubleshoot High Availability, storage I/O control problems, virtual LANS, and iSCSI, NFS, VMFS issues. By the end of this book, you will be able to analyze and solve advanced issues related to vShpere environment such as vcenter certificates, database problems, and different failed state errors.
Table of Contents (16 chapters)
VMware vSphere Troubleshooting
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Installing VMware vRealize Operations Manager
Power CLI - A Basic Reference
Index

Detaching a datastore using vSphere PowerCLI


You can also use vSphere PowerCLI to unmount and detach the datastore in your infrastructure with the following steps:

  1. Download the community-supported script available from the VMware community at http://goo.gl/ER30YK. Review and accept the VMware contributed sample code agreement.

  2. If the script is in a text file, save it as a .ps1 file.

  3. Open vSphere PowerCLI as an administrator and run the following command:

    Import-Module C:\DataStoreFunctions.ps1
    
  4. If the preceding command complains that the script is not digitally signed in the PowerCLI shell, you can use the following command to bypass it for the current PowerCLI session:

    Set-ExecutionPolicy –Scope Process –ExectuionPolicy Bypass
    
  5. Connect with the vCenter Server by typing the following command and replace the user name and password with your credentials:

    Connect-VIServer –Server crimv1vcs001.linxsol.com –Protocol https –User linxsol\zeeshan –Password yourpassword
    
  6. Use the Get-DatastoreMountInfo...