[SOLVED] Ghost VVol volumes after completely removing VVol

Post Reply
godosh
Posts: 8
Joined: Thu Jan 05, 2017 11:43 am

[SOLVED] Ghost VVol volumes after completely removing VVol

Post by godosh »

Hello,
We tested VVol for a few weeks with VMware, and created a few VMs, and decided to completely remove it from the 3PAR. Now, a few months later, I still have a bunch of stale VVs linked to VMs that used to be on the VVol storage container, and I couldn't find a way to remove them.

showcpg:

Code: Select all

                                            ----------------------(MB)-----------------------
                    ----Volumes---- -Usage- ------ Usr ------ ------ Snp ------ ---- Adm ----
Id Name       Warn% VVs TPVVs TDVVs Usr Snp    Total     Used    Total     Used  Total   Used
 1 FC_r5          -  38    28     0  38   1  2734464  2718080   140928    82944  32768   9600
 0 FC_r6_ss12     -  31    31     0  27  31 29294080 29294080 20237696 20228352  71680  59392
 2 SSD_r5_ss4     -   3     1     2   3   0   756352   756352    11648        0  49152  35456
 3 SSD_r5_ss9     -   1     1     0   1   0  1097216  1097216    16896        0   8192   1152
---------------------------------------------------------------------------------------------
 4 total                             69  32 33882112 33865728 20407168 20311296 161792 105600


It shows 38 VVs for CPG FC_r5, although I really only have 1 VV on that CPG!

showvv -cpg FC_r5

Code: Select all

                                                             ----Rsvd(MB)----- -(MB)-
Id Name            Prov Type CopyOf BsId Rd -Detailed_State-  Adm   Snp    Usr  VSize
41 some_vv         tpvv base ---      41 RW normal           1280 82944 243328 409600
-------------------------------------------------------------------------------------
 1 total                                                     1280 82944 243328 409600


Now the "showvvolsc" command shows I have no storage container because I deleted it when removing VVol from the system:

Code: Select all

                       -------(MB)-------
Name Num_VMs Num_VVols In_Use Provisioned
------------------------------------------
total       0         0      0           0


What do you think?
Last edited by godosh on Tue Jul 16, 2019 8:56 am, edited 1 time in total.
MammaGutt
Posts: 1578
Joined: Mon Sep 21, 2015 2:11 pm
Location: Europe

Re: Ghost VVol volumes after completely removing VVol

Post by MammaGutt »

what about "showvvcpg" and "showvvolvm -sc sys:all" ?

If there are any ghost volumes they should also be in a vvset so showvvset should also display them.
The views and opinions expressed are my own and do not necessarily reflect those of my current or previous employers.
godosh
Posts: 8
Joined: Thu Jan 05, 2017 11:43 am

Re: Ghost VVol volumes after completely removing VVol

Post by godosh »

"showvvolvm -sc sys:all" shows all the ghost VMs, but there are no more Storage Container on this system, and the vvol vvset has also been deleted.

All the ghost VMs are in the state "unbound".

There is absolutely no signs of the previous vvol vvset or storage container, only the vvol VMs are there. Also, the CPG in which the vvol vvset used to be still contains the ghost vvol VMs, because it counted towards the number of volumes in the CPG.

What would be the next step?
MammaGutt
Posts: 1578
Joined: Mon Sep 21, 2015 2:11 pm
Location: Europe

Re: Ghost VVol volumes after completely removing VVol

Post by MammaGutt »

If there is no storage container and no vvset, there should be no vluns (exports). So you can just delete the VVs. Not sure if you have any options in SSMC but you can do it from CLI.

help removevv
Would be your place to start.
The views and opinions expressed are my own and do not necessarily reflect those of my current or previous employers.
godosh
Posts: 8
Joined: Thu Jan 05, 2017 11:43 am

Re: Ghost VVol volumes after completely removing VVol

Post by godosh »

That solved it! Thank you so much for saving my day.

I had to set this environment variable first to see the vvol VMs:

Code: Select all

setclienv matchbulkobjs 1


Then I've been able to do "removevv" for each vvol VM volumes.
i3laze
Posts: 4
Joined: Tue Nov 19, 2019 10:32 am

Re: Ghost VVol volumes after completely removing VVol

Post by i3laze »

godosh wrote:Then I've been able to do "removevv" for each vvol VM volumes.
Wasn't that simple for me, as my orphaned vvols were part of a storage container vvset:

Code: Select all

cli% removevv -f cfg-VVolTest-a927508d dat-VVolTest-0d195835
Removing vv cfg-VVolTest-a927508d
Removing vv dat-VVolTest-0d195835
Could not remove any VV from the VV list.

Attempt to delete vv cfg-VVolTest-a927508d which is a member of vv set Backend
Attempt to delete vv dat-VVolTest-0d195835 which is a member of vv set Backend

What did the extra job was:

Code: Select all

removevvset vvsetname volume_name
Grabbed this hint here:
https://cloud-land.com/removing-a-3par- ... n-a-vvset/
Post Reply