VCAP-DCV Deploy Objective 6.1

Home / blueprint / VCAP-DCV Deploy Objective 6.1

We are now in the sixth section of the blueprint ,In this section we are going to cover “Utilize Advanced vSphere Performance Monitoring Tools

Here are the objective from the blueprint :

  • Configure esxtop / resxtop custom profiles
  • Evaluate use cases for and apply esxtop / resxtop Interactive, Batch and Replay modes
  • Use esxtop / resxtop to collect performance data
  • Use vScsiStats to gather storage performance data

Lab Setup:

Using VMware workstation:

  • Microsoft Servers 2012R2 for Services (DNS , DHCP, etc…)
  • Installed esx0
  • Installed VCSA
  • Installed vMA

 Documents used:

  • vSphere Monitoring and Performance Guide
  • Using vscsiStats for Storage Performance Analysis on VMware communities

For this task we will need to use vMA , i already created a post about installing vMA in my lab  (see below):

Installing vSphere Management Assistant (vMA6)

also i have additional post from the VCP6 objectives that we discuss esxtop which can be helpful for this objective 

VCP6-DCV blueprint section 7 – Objective 7.4: Troubleshoot and Monitor vSphere Performance

Configure esxtop / resxtop custom profiles:

The difference between esxtop and resxtop is that resxtop can be run from vMA,

To create a custom profile lets change the mode to storage view (u) and save it with the letter (W)

Resxtop1

click on (q) to exit and lets load the profile again by running the following command : resxtop -c storageprofile

Resxtop2

Evaluate use cases for and apply esxtop / resxtop Interactive, Batch and Replay modes:

There are 3 modes that you can run esxtop/resxtop:

  • Interactive – Default mode, you can change the interval information collection (Defaults is 5 Second but can be change with the letter (s).
  • Batch – you can collect information for a specific amount of time you can export this information to execl of perfmon
  • Replay – you can collect information using the vm-support command

To run a esxtop/resxtop in batch mode you willl need to provide a config file,delay time, number of iteration and output file.

for example: resxtop -c storageprofile -b -d 2 -n 5 > storage.csv

Resxtop3

To run a esxtop/resxtop in replay mode you willl need to run the vm-support command with the duration time and Interval time.

for example :  vm-support -p -d 60 -i 5 -w /vmfs/volumes/nfs_dstore/

You will have to untar the file and run esxtop -R command

Resxtop4

 

 

After collection is done untar it in the location you will need to run the reconstruct script inside the directory and then use the esxtop -R command on the directory:  esxtop -R <Directory Name>

Resxtop5

 

 

Use esxtop / resxtop to collect performance data:

I am not sure if this objective mean that we need to decide which metrics to use for performance monitoring , or using the (-p) from the vm-support  command , if we need to choose the matric please see the above troubleshooting link fora previous post.

as for vm-support just run the -p option and replay it back

Resxtop7

 

 

Use vScsiStats to gather storage performance data:

Good read from VMware communities: https://communities.vmware.com/docs/DOC-10095

From the help info :  ” vscsiStats is a tool controls vscsi data collection for virtual machine disk disk I/O workload characterization. Users can start and stop online data
data collection for particular VMs as well as print out online histogram data.Command traces can also be collected and printed.”

vScsistats1

 

 

To use vscsiStats to analyze VM disk  run the command  vscsiStats -l and lookup the VM name and record the world groupID

vScsistats2

 

 

To start collecting data on that VM run the command : vscsiStats -s -w <WorldGroupID>

To stop collecting data run the command: vscsiStats -x

vScsistats3

To see the information in histogram you can choose one from the following list :  all, ioLength, seekDistance, outstandingIOs, latency, interarrival

Before displaying the results you must have vscsiStat running

The followig example shows latency information for that specific VM.

vScsistats4

 

 

Thanks for reading

Mordi.

 

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *