Backup & Recovery

 View Only
Expand all | Collapse all

VDP SNAPSHOTS with forever retention

  • 1.  VDP SNAPSHOTS with forever retention

    Posted Feb 15, 2019 03:49 AM

    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.



  • 2.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 17, 2019 02:28 PM

    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.



  • 3.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 18, 2019 06:54 AM

    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.



  • 4.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 04:02 AM

    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



  • 5.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 04:10 AM

    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.



  • 6.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 04:31 AM

    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



  • 7.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 07:51 AM

    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.



  • 8.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 08:05 AM

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



  • 9.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 08:37 AM

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



  • 10.  RE: VDP SNAPSHOTS with forever retention
    Best Answer

    Posted Feb 19, 2019 08:39 AM

    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



  • 11.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 08:41 AM

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

    Thanks a tonne.



  • 12.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 08:46 AM

    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.



  • 13.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 19, 2019 08:59 AM

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



  • 14.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 20, 2019 04:02 AM

    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.



  • 15.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 21, 2019 03:48 AM

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

    # mccli client show --recursive=true



  • 16.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 21, 2019 03:59 AM

    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.



  • 17.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 21, 2019 04:00 AM

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



  • 18.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 21, 2019 04:09 AM

    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



  • 19.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 21, 2019 04:19 AM

    # 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.



  • 20.  RE: VDP SNAPSHOTS with forever retention

    Posted Feb 21, 2019 04:19 AM

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