vsphere_static_160x300
Free Business and Tech Magazines and eBooks
Badges

vexpert_logo_100x57

gestaltitbadge

follow-me-twitter

Subscribe to me on FriendFeed

Comments / DISQUS
Feedjit.com

Provision a Thin Provisioned Standby LUN For vSphere Thin Provisioning

VMware has been running a blogging contest in order to promote the new vSphere Blog. The current contest topic is vSphere Thin Provisioning. A lot has been written on this topic already, but I thought I would point out a storage design conclusion I’ve come up with based mostly from the explanations and recommendations of others about handling what happens when an over allocated, thin provisioned LUN runs out of space.

This post first walks through an basic explanation of the administrative concern caused by thin provisioning and how built in vSphere monitoring and alerting can be used to proactively handle an over allocation issue. I’m using quotes from a few bloggers to help describe the potential for problem and offer ways to handle it. At the end I make a simple LUN provisioning suggestion based on combining the vSphere feature with storage device’s thin provisioning capabilities. 

vSphere Thin Provisioning and over allocation

First of all VMware explains thin-provisioned virtual disks as a feature that lets you:

“subscribe more capacity to virtual machines than they actually have, eliminating the waste of resources and space caused by unused over-allocated storage.”

To be clear, VMware vSphere provides thin provisioning independent of any storage device’s similiar features. In fact, vSphere can create thin provisioned virtual disks on the local or shared storage (VMFS or NFS) of any ESX host.

VMware vSphere even makes it easy to convert existing guests to thin provsioned virtual hard disks. The blog post Using Storage VMotion to Leverage Thin Provisioning explains:

“One piece that may not be all that clear for VMware users is that Storage VMotion (now available as a feature within our GUI and not just in the command line with vSphere 4.0) allows for an easy transition from previously thick provisioned virtual disks to new thin provisioning virtual disks. So, any user that upgrades to vSphere can now use this function to save up to 50% in terms of storage allocated in a virtual disk. Another product of this technology is the move to a thin provisioned virtual disk will also defrag the disk.”

On the surface thin provisioining is great! If a virtual machine (VM) is created with a 20 GB C:\ drive with only 10 GB actually in use then that VM only takes up 10 GB of physical space of the physical storage. A problem arises after stacking multiple thin provisioned VMs in a storage volume, and then one or more of those VMs has data growth that “cashes in” in all of it’s allocated storage. To thier credit, VMware has thought this scenario through and provides monitoring and alerting to make sure administrators can be notified before this happens.

Here are a few blog post examples that demonstrate using vSphere monitoring and alerting of vSphere thin provisioning.

Responsible Thin Provisioning in VMware vSphere

“Now in vSphere 4 there is a new element in the capacity section of the datastore summary tab that shows total provisioned space — the maximum potential growth of all virtual machines if thin provisioned disks were fully utilized:

Datastore summary tab shows committed capacity

From that borrowed screen shot you can see that 371 GB of VM disks have been provisioned in a 49 GB LUN!

Get Thin Provisioning working for you in vSphere

“This is one of the most important pieces to thin provisioning in my opinion.  At the minimum you need to setup Virtual Center alerts to monitor when your datastores are approaching critical levels.  You can’t implement thin disks in your vSphere environment and walk away.  The smart people over at VMware have given us the ability to monitor datastore disk space usage and over-allocation with the latest release of Virtual Center.  Setup your monitors so you are e-mailed when some of these thin disks begin to grow and you need to take some action.”

PowerShell Prevents Datastore Emergencies

“When a datastore is about to run out of space, the fastest resolution may be to simply migrate virtual disks to another datastore.   VMware Storage VMotion provides that capability with zero downtime for VMs and no disruption to end users.”

Additional advice creating an alarm and the next screen shot is also provided in the same post

“Create a new alarm at an appropriate level in the vCenter hierarchy, such as a datacenter, and configure like this:

Datastore Alarm

On the Triggers tab, add a “Datastore Disk Usage (%)” trigger to alert at a reasonable percentage — I opted for 93″

Combine vSphere Thin Provisioning with Storage Device Thin Provisioning

When you consider that a common feature of a lot of storage devices today is the ability to thin provision physical disk usage when creating LUNs regardless of which OS or file system will be used, you end up with the possibility to “double dip” thin provisioning with vSphere. Although a scarey thought for a lot of administrators, the possibility exists to do so. Personally, I’m not sold on the thin provisioning “double-dip”. Especially without a complete monitoring solution, a storage device’s ability to hot add disks or shelves to dynamically expand LUNs, and a budget that gets me new hardware ASAP!

However, I have no problem using storage device thin provisioning on the LUN created to hold ISO files for the VMs. Normally, this LUN would be provisioned < 50GB in size, but why not make it big enough to hold your largest VM + 20%? Thin provisioning from the storage device means it’s not actually taking up any space, but when your vSphere datastores need breathing room you could temporarily storage vmotion a VM or 2 to the ISO LUN as needed to resolve other over allocation issues.

Cashing in the storage needed for the ISO LUN still requires reserve physical disk capacity. Be aware that the same over allocation problem exists at the storage device level, but leveraging the hardware’s dynamic add ability gives an administrator more flexibility to re-allocate the capacity without taking systems down. For example, if some of your disk space is dedicated to LUN snap shots or VM backups, you might be able to afford to delete the oldest copies, free up some disk space, and then dynamically shrink/grow volumes/arrays/LUNs to create some needed space.

You could also provision a stand by LUN independent of the ISO LUN to accomplish the same purpose.

Does combining the storage thin provisioning with vSphere thin provisioning make sense to you? Any advantages or disadvantages I am missing with the strategy I describe in this post? Let me know!

Related Posts

  • fojta
    "In fact, vSphere can create thin provisioned virtual disks on the local or shared storage (VMFS or NFS) of any ESX host"
    This is not really true for NFS, where the NFS server determines the allocation policy. If the NFS storage server does not support thin provisioning then thin provisioned datastore cannot be created on it.
  • Fojta,

    We may be discussing semantics, but ESX VMs on NFS mounts have thin .vmdks by default. it's been that way since ESX 3.x. That's been the case independent of the underlying capabilities of the NFS server. For what it's worth, you've always been able to create thin .vmdks via the vmkfstools console command on any datastore before the vSphere GUI. Point is that it's a feature of ESX Server.

    To be clear, I am not saying the whole data store is thin provisioned. In that case, your point is absolutely accurate.
  • >dynamically shrink/grow volumes/arrays/LUNs
    So far and if i'm not wrong, thindisk technology provides only dynamic growth.
    Now what happens when you delete 1 year worth of IIS logs, does your thindisk dynamically shrink?

    Thindisk is a must have as long Microsoft policy is to create heavy foot print OS'es...
    FYI minimum disk space requirement for Windows 2008 R2 is 32GB!

    Anyway very good article, I guess we have a winner for this topic at the blogging contest:)
  • Didier,

    For storage device thin provisioning "reclaiming" already used space is an issue. I've been told that several sessions during the GestaltIT Field Day I'm attending next week will cover this topic.

    Does a vmdk shrink? I don;t think so, but never tried it. You can go through a quick Storage VMotion or even clone a VM to handle this.

    Your points are valid thoughts that both need to be understood as part of the recovery plan for over allocation.

    Thanks for the contest vote. Now how do I get you on the VMware commitee that is voting?!!
  • Ray
    Does the storage monitoring support think provisioning using Linked Clones as well?
  • Ray,

    Good question. This will probably be handled slightly differently for each storage manufacturers devices. Bottom line though is that linked clones are differencing disks and should not contain unused or white space that could be "thinned". The parent template could need to be thin provisioned but the linked clones probably are not.

    But really, I need to investigate further. maybe some other VM /ETC readers will provide more insight in the meantime.
  • Ray
    I mean ESX linked clones like in Lab Manager and View (I think you're talking about storage specific linked clones?)
    It's a form of thin provisioning which can get you into just as much trouble if you over provision :)
  • Ray,

    I am talking the same. Lab Manager, VMware View, Workstation linked clones is all the same technology. The linked clones are differencing (delta) disks from the parent template.
    http://www.vmware.com/support/ws55/doc/ws_clone...
  • RayBargi
    So 2 things. Firstly to add to your closing statement "Combine vSphere Thin Provisioning with Storage Device Thin Provisioning", it seems we can add third level of storage savings with linked clones based on a thin provisioned VM!

    At my work we use VMLogix Lab Manager to provision and mange VMs. LM uses linked clones so I thought I try something out and I created two base templates, one Thick and one Thin provisioned. I then deployed a VM from each and the one based on the Thin provisioned VM worked perfectly and we saved 16GB of space.

    In a situation where you would only have a few templates with a lot of linked clones running of them (Desktop Virtualization) the saving in space won’t be that great. But in an environment with many different templates with a relatively lower amount of clones (Lab Environment) the savings can be huge.

    Secondly, it seems vSphere doesn't report provisioned space for Linked Clones correctly, in fact it shows double! Well sort of :)

    In this screengrab http://s799.photobucket.com/albums/yy275/bargi/...
    The Yellow highlighted VMs are the Thick base template and a clone deployed form it. In the Green is a Thin provisioned base template and its respective clone. You can see from the command line the sizes of the folders are correct and from the Storage Views Tab the sizes are also correct.

    However in the grab http://s799.photobucket.com/albums/yy275/bargi/... you can see the Summary and Virtual Machines Tab are reporting the provisioned space wrong. Both are saying the provisioned space for the clones is 41GB which is double actual space “Provisioned” for the clone, which should be only 20GB.

    Does anyone else find this or am I missing something?

    Cheers

    Ray
  • Ray,

    Your screen shots are of VMlogix linked clones correct? It may be an issue based on how they create a linked clone - for example I noticed the Snapshot column showed data in some of the VMs. I've never used VMLogix so I'm not sure.
blog comments powered by Disqus
Hyper9 Cowabunga
Support VM /ETC
Support VMETC.com

Support VMETC.com

@rbrambley tweets
Advertisements
VMTN Roundtable Podcasts
Subscribe



Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to netvibes
Add to Plusmo