VMware Cloud Community
hirenshinde
Contributor
Contributor
Jump to solution

VDP SNAPSHOTS with forever retention

Hi,

I am stuck with a weird problem of VDP configuration. My previous VMAdmin has configured VDP with forever retention policy and the appliance contains very old snapshots of 2-3 years back. I want to remove those snapshots and want to keep snapshots of past two months only. Kindly suggest possible solution. I tried deleting snapshots from appliance but it doesn't affect storage i.e. my storage space remains as it is even after deleting snapshots. What is the best possible way to get rid of those snapshots please!

Regards,

Hiren Shinde.

Reply
0 Kudos
1 Solution

Accepted Solutions
SavkoorSuhas
Expert
Expert
Jump to solution

In SSH (putty) root login will not work directly. You will have to allow for root access in sshd.conf file.

In Putty, you use the username as "admin" and this user has the same password of your "root" account

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

View solution in original post

Reply
0 Kudos
19 Replies
daphnissov
Immortal
Immortal
Jump to solution

VDP is EoL and, that aside, a piece of junk. Take this opportunity to move on to something that has a future and works half-way decently.

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

Thanks for your honest answer.

But my issue is not about taking backup. I want to free up the space which has been occupied by those snapshots. I don't want to move VDP somewhere else. All i want is to free up the space.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

Possibly the GC task is not running.

When you delete a restore point from the Restore tab, you are only effectively marking it for deletion.

GC does the space reclamation.

Login to VDP as the admin user and run

status.dpn

Should show the GC status and how much space it has reclaimed.


# Suhas

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

Thanks for your reply Suhas.

But as i said snapshots are created with forever retention policy so are not getting deleted automatically.

I tried creating one test snapshot with 2 days retention and checked that the snapshot is getting deleted so appliance is working fine.

Also GC is working fine and showing it has recovered 170 MB recently. So the problem doesn't seem with functionality of VDP appliance.

And i have to remove the snapshots manually as there isn't any expiration date mentioned against the snapshots which are configured with forever retention policy.

Please guide.

Regards,

Hiren Shinde.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

Snapshots with forever retention are not going to be removed automatically, because they do not have an expiry date. You can modify it manually to have an expiry date.

I had one script written a while back when I was in VMware to play around retention period of a snapshot

https://github.com/happycow92/re/blob/master/retention-extend.sh

So yes, you would need to purge them manually otherwise.


# Suhas

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

Thank you very much. But i can't access the VDP appliance through putty to run the file. Root password is getting accepted through VM Console but same is not being accepted when tried via putty. Any option to copy the file on VM Appliance machine.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

Login with "admin" password same as root Then switch to root with sudo -i

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

if you are saying the same username password which is used to configure VDP then those are not getting accepted via putty.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

In SSH (putty) root login will not work directly. You will have to allow for root access in sshd.conf file.

In Putty, you use the username as "admin" and this user has the same password of your "root" account

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

Great.. I have logged into the console...

Thanks a tonne.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

Please implement the script at your own risk. It's not tested for wide clusters. It was just in my lab years ago. A lot would have changed.

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

what to mention in which client you want to edit! it's not accepting name of VM...

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

the script is executing but i am stuck when it asks for name of client because given name is not being accepted by the script.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

What's the name of the client when you run:

# mccli client show --recursive=true

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

Client

VDP Testing                     

VM 10 (TM optimizer)            

VM 11 TM Optimizer(AB1)         

VM 12 TM optimizer (AB2)        

VM 1 (Material Codification)    

VM 3 (HR Portal)_aks            

VM 4 (SAP Basis Consultant)     

VM 6 (Microsoft HyperV Manager) 

VM 7 (Primary Domain Controller)

VM 8 (VMware V Centre)          

This entries along with domain location and client type as virtual machine.

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

And you are selecting which one here? Can you enclose the name within double quotes and check?

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
hirenshinde
Contributor
Contributor
Jump to solution

Let's take the first one. I tried by using "VDP Testing" when it asks for client name and it's throwing in error

grep: Testing": No such file or directory

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

# Listing clients

clients=$(mccli client show --recursive=true | grep /$vCenterName/VirtualMachines | sed -r 's/([ \t]+[^ \t]*){4}$//')

echo "$clients"

Run this and Output of:

mccli client show --recursive=true | grep /$vCenterName/VirtualMachines | sed -r 's/([ \t]+[^ \t]*){4}$//'

Please.

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos
SavkoorSuhas
Expert
Expert
Jump to solution

DM me on slack if you are on slack. I can add you to a group.

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

Don't Backup. Go Forward!
Rubrik

Reply
0 Kudos