Remove volumes not seeing space reclaimed

Post Reply
evan631
Posts: 23
Joined: Wed Jan 30, 2013 11:34 am

Remove volumes not seeing space reclaimed

Post by evan631 »

I recently removed a few volumes, but I am not seeing the space as reclaimed. Do I have to wait for the 3par F400 to run some sort of maintenance?

Regarding the command compactcpg will this perform this for me? Do I need any switches? Any effect running this command during business hours?

Thanks for the help!

-Evan
c.uvaraja@gmail.com
Posts: 8
Joined: Sun Mar 02, 2014 4:23 am

Re: Remove volumes not seeing space reclaimed

Post by c.uvaraja@gmail.com »

hi,

Is this volumes were used by vmware datastore ? if this is the case then you may need to run vmkfstools tool to reclaim the blocks.

thanks
Uv
Uvi
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Remove volumes not seeing space reclaimed

Post by Richard Siemers »

Yes, after you delete volumes, it will return the space to the CPG... you should see more free space inside the CPG.... if you want that free space moved from the CPG to the system, compactcpg will do the trick.
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
trarun0483
Posts: 18
Joined: Thu Nov 27, 2014 1:42 pm

Re: Remove volumes not seeing space reclaimed

Post by trarun0483 »

Hi
just try below dry run command and it will show you amount of space you will gain fater running compactcpg for required CPG

compactcpg -dr SQL_FC_SS6
Compacting CPG SQL_FC_SS6
Initial trim would reclaim 0 MB SA space, 0 MB SD space, and 0 MB USR space.
Would move 0 MB SA space, 0 MB SD space, and 0 MB USR space.
Final trim would reclaim 0 MB SA space, 0 MB SD space, and 0 MB USR space.
JohnMH
Posts: 505
Joined: Wed Nov 19, 2014 5:14 am

Re: Remove volumes not seeing space reclaimed

Post by JohnMH »

It depends on where you're looking for the space to be returned to.
When you delete volumes the chunklets first need to be cleaned before they are returned for use by the system, this is especially true for fpvv's as every chunklet is allocated upfront and so must be cleaned (zero's out) on deletion, you can see this by running the below.
CLI% showsys -space

If the uninitialized value is >0 it’s likely a large amount of data has been deleted and the blocks are in the process of being zero’d out before being returned to the system free pool. This process takes time and for non thin volumes every block allocated regardless of whether it was written needs to be zero’s out. There's no way to increase the speed of this process but it's only usually encountered during testing when large fully provisioned volumes are created, torn down and then recreated.

To view the cleaning process you can use :

CLI% showpdch –cng Specifies that information for chunklets that are being cleaned (reclaimed and zero’d after deletion) by the system are displayed, you can also use CLI% showpd –c

Once they're all clean a compactcpg which you should schedule will return these to the pool.
Post Reply