Find Block Size with vscsiStats and Other Storage Statistics.

Ever wonder what block sizes your VM’s are using for writing and reading to disk?  I always have and I recently found a way to get this information out of the ESXi hypervisor.  You can also get a lot of other data such as random and sequential writes, latency, and a few other items.

  1.  Connect to the host with SSH.
  2. Enter the command “vsciStats -l” This will list all the VM’s on that host and its disk.
  3. vsciStats -s will start that stats collection.  You can pair this down by using the -w for the world group id and -i for handle id.
  4. vsciStats -p ioLength -w 123456 would display the block sizes for that particular VM and drives.
  5. -h will give you a list of all the possible variables to use.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: