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.
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
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.
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.
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
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.
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
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.
Login with "admin" password same as root Then switch to root with sudo -i
if you are saying the same username password which is used to configure VDP then those are not getting accepted via putty.
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
Great.. I have logged into the console...
Thanks a tonne.
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.
what to mention in which client you want to edit! it's not accepting name of VM...
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.
What's the name of the client when you run:
# mccli client show --recursive=true
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.
And you are selecting which one here? Can you enclose the name within double quotes and check?
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
# 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.
DM me on slack if you are on slack. I can add you to a group.