• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

Determining vClone growth rate

Ian Gibbs · Apr 29, 2009 ·

A quick intro: my name is Ian Gibbs, and I’m a former VMware PS Consultant like Duncan currently is. I’ve just transitioned to a role with a VMware customer where I’m responsible for delivering VMware View for real to 3000 users. Duncan has kindly invited me to share the things I learn with the world. I hope to post some scripts and things I create to help make life easier for you all.

This week I have been redesigning the storage layout for the View implementation. There’ll be a few other posts to come on this as it has turned out to be a massive topic, but this sub-task has been to determine the rate at which the vClone disks are growing so that I can size the datastores properly. We have around 100 pilot VMs and I wanted to see how big each vClone disk was versus its age. This turns out to be harder than you’d imagine, as ESX/Linux/Unix file systems  don’t store file creation times. Anyway, a script was required and duly created. I hope you too find it useful. To use it:

  1. Download the script here
  2. Get the script on to an ESX server that can see the DS that contains the VMs you are interested in
  3. Mark it executable with chmod +x <script-filename>
  4. Install the bc RPM from here
  5. Run it and redirect the output to a CSV file.

My results average out roughly like this:

3hrs: 560Mb

20hrs: 700Mb

90hrs: 850Mb

We’ve moved the pagefile off C: to the UDD so my results will probably be lower than yours. Now to find out why it goes to half a gig so quickly…

Share it:

  • Tweet

Related

Desktop Scripting, Storage, vdi

Reader Interactions

Comments

  1. wallbreaker says

    29 April, 2009 at 12:42

    what do you mean by UDD ?

  2. mit12 says

    29 April, 2009 at 14:24

    I believe UDD stands for user data disk.

  3. cskow says

    29 April, 2009 at 14:35

    Welcome Ian!

  4. cskow says

    29 April, 2009 at 14:57

    Ian,

    That growth is on shared storage correct? Do you plan on doing any testing with deduplication on after you find out what’s growing? Or is it on already?

  5. Ian says

    29 April, 2009 at 16:29

    Effectively I already have dedupe through the fact that I have a 600Mb file representing a 7Gb HDD. There’d be very little in common between this and other deltas, so we aren’t planning to enable storage dedupe as well.

  6. cloudpimps says

    29 May, 2009 at 11:58

    Hi Ian,
    UDDs growing is a bitch, but I reckon this is because the NTFS filesystem will always write to available zero’d blocks before it writes to blocks containing deleted files.

    Check out Stu from vinternals’ post here, discussing it:
    http://vinternals.com/2008/12/vmware-view-linked-clones-not-a-panacea-for-vdi-storage-pain/

    Hope you’re enjoying the new role… we miss ya
    Jeff O’Connor

  7. OneRock says

    29 May, 2009 at 16:49

    That’s precisely the shortcoming about vClones that Quest has been pitching for the last few months. They say they’ve been working on an alternative to be expected in upcoming versions of vWorkspace.

  8. vaelon says

    28 July, 2009 at 20:09

    The interpreter you are referencing is /bin/bash. Bash is not installed by default, its /bin/sh. Do I need bash installed?

  9. vaelon says

    28 July, 2009 at 20:36

    Fixed the issue, but my question is, how does it know the age of the disk? I have 40 users in a desktop pool, set to refresh on log off, I am assuming if it refreshes then its not going to show good data. Can I set this to run every hour during their 8hr work period?

  10. Ian says

    1 August, 2009 at 19:39

    It reads the last modified time of the vmx file associated with the delta disk. _Usually_ this will be the time the delta disk was last refreshed, recomposed, or created. If one of these has ocurred, then the delta disk will have been reset to 0, so you do want the age from that time. It’s good data alright – it’s the point of the script.

    Pretty sure bash is installed in ESX by default as the default shell, isn’t it? On hols right now so I can’t confirm.

Primary Sidebar

About the author

Duncan Epping is a Chief Technologist in the Office of CTO of the Cloud Platform BU at VMware. He is a VCDX (# 007), the author of the "vSAN Deep Dive", the “vSphere Clustering Technical Deep Dive” series, and the host of the "Unexplored Territory" podcast.

Upcoming Events

Feb 9th – Irish VMUG
Feb 23rd – Swiss VMUG
March 7th – Dutch VMUG
May 24th – VMUG Poland
June 1st – VMUG Belgium

Recommended Reads

Sponsors

Want to support Yellow-Bricks? Buy an advert!

Advertisements

Copyright Yellow-Bricks.com © 2023 · Log in