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
Remove volumes not seeing space reclaimed
-
- Posts: 8
- Joined: Sun Mar 02, 2014 4:23 am
Re: Remove volumes not seeing space reclaimed
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
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
- Richard Siemers
- Site Admin
- Posts: 1333
- Joined: Tue Aug 18, 2009 10:35 pm
- Location: Dallas, Texas
Re: Remove volumes not seeing space reclaimed
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.
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
-
- Posts: 18
- Joined: Thu Nov 27, 2014 1:42 pm
Re: Remove volumes not seeing space reclaimed
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.
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.
Re: Remove volumes not seeing space reclaimed
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.
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.