Vmware / 3PAR (T10 Unmap)

Post Reply
BigKiwiSteve
Posts: 1
Joined: Tue Jun 11, 2013 8:53 am

Vmware / 3PAR (T10 Unmap)

Post by BigKiwiSteve »

As many of you will have experienced, we've been battling with reclaiming zero space on our 3PAR especially where we've been performing storage vMotions / deletion of disks from guests for some time now.

As such, we've written the attached powershell to run a 'zeroing' process within our VMware / 3PAR environment which in effect:
a) connects with the specified vCenter server
b) locates all datastores which match any input parameters (will select all by default)
c) creates a new VM guest with a name aligned with the datastore and a random number
d) creates 50GB disks (EagerZeroThick) attached to this guest until the required space is filled (to a minimum 'space' level determined at runtime)
e) deletes the guest (and disks) returning the space to the 3PAR for re-use

I've got this working in serial i.e. one datastore after another which seems to work nicely for us in our environment (100TB useable)

Please use ZeroDatastores.ps1 -? for details on how to use

Let me know if this is any use to the community.

Cheers

Steve
Attachments
ZeroDatastores.zip
(4.5 KiB) Downloaded 3510 times
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Vmware / 3PAR (T10 Unmap)

Post by Richard Siemers »

Thanks for sharing! Good stuff!
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
viama
Posts: 1
Joined: Tue Aug 13, 2013 10:07 am

Re: Vmware / 3PAR (T10 Unmap)

Post by viama »

Post Reply