VSC for VMware – How to manually remove a backup job

VSC for VMware – How to manually remove a backup job

VSC for VMware – How to manually remove a backup job

VSC for VMware – How to manually remove a backup job

 

KB ID: 1014396 Version: 2.0 Published date: 06/20/2014 Views: 1177

Description

In certain instances, it might be necessary to remove backup jobs manually from the Virtual Storage Console (VSC) for VMware configuration files, either due to stuck jobs or inconsistent data within the files.

Procedure

Caution: Mistakes in editing the configuration files can have negative consequences. It is important to always create backups of these files before making changes.

Perform the following steps:

  1. Stop the ‘SnapManager for Virtual Infrastructure’ (SMVI) service.
  2. Create backups of the following files:
    %INSTALL%\netapp\Virtual Storage Console\smvi\server\repository\backups.xml
    %INSTALL%\netapp\Virtual Storage Console\smvi\server\repository\scheduledBackups.xml
  3. Open the following file:
    %INSTALL%\netapp\Virtual Storage Console\smvi\server\repository\scheduledBackups.xml

Important Note: Do not open this file with default Windows Notepad.  Edit with WordPad, Notepad++, etc.

  1. Search the xml document for the name of the backup job.
    In this example, searching for a backup job named ‘hourly all’ results in the following:
    <backupJob>
    <jobId>9a819990-0e73-49bf-aa09-3645125d1ebd</jobId>
    <entities>
    <entity>
    <uuid>netfs://10.101.103.120//vol/sw</uuid>
    <type>DATASTORE</type>
    <name>p1-filera-nfs-prod1</name>
    </entity>
    <entity>
    <uuid>netfs://10.100.100.28//vol/swdist</uuid>
    .
    .
    .
    </entities>
    <hourlySchedule>
    <startHour>2</startHour>
    <startMinute>0</startMinute>
    <startDate>2012-10-03T00:00:00-04:00</startDate>
    <recurrence>1</recurrence>
    </hourlySchedule>
    <retention>
    <count>1</count>
    <type>TIME</type>
    </retention>
    <notification>
    <addresses/>
    <type>NO_NOTIFICATION</type>
    </notification>
    <scripts/>
    <jobname>hourly all</jobname>
    <noVmSnaps>true</noVmSnaps>
    <updateMirror>false</updateMirror>
    <jobState>ACTIVE</jobState>
    <includeIndependentDisks>false</includeIndependentDisks>
    <excludeDatastores/>
    </backupJob>
  2. Copy the string in the <jobId></jobId> field, then delete text from the first <backupJob> tag to the last </backupJob> tag for that specific job.
    Note: Using Notepad++ for this might be the best option, you can collapse that <backupJob> and delete the entire entity at once.
    <backupJob>       <– Delete from and including this line
    <jobId>9a819990-0e73-49bf-aa09-3645125d1ebd</jobId>
    <entities>
    .
    .
    .
    <excludeDatastores/>
    </backupJob>    
    <–Down to and including this line
  3. Save the changes and close the file.
  4. Open the following file:
    %INSTALL%\netapp\Virtual Storage Console\smvi\server\repository\backups.xml
  5. Search for all occurrences of <jobId> copied from scheduledBackups.xml
    In this example, searching for ‘9a819990-0e73-49bf-aa09-3645125d1ebd‘ results in the following:
    Note: These sections can be very long. These entries are 1800+ lines each.
    2 backups for that job:
    <backup uuid="ef8a06bd-78ca-4b5d-9208-78e64d089923" smviVersion="3">
    <name>backup_hourly all_20121023090001</name>
    <status>FAILURE</status>
    <backupJobId>9a819990-0e73-49bf-aa09-3645125d1ebd</backupJobId>
    <startTime>2012-10-23T09:00:01.656-04:00</startTime>
    <endTime>2012-10-23T09:08:17.113-04:00</endTime>
    <datastores>
    <nfsDatastore name="eet_lsr_vapps" uuid="netfs://10.101.103.120//vol/eet_lsr_vapps">
    <virtualMachines>
    .
    .
    .
    </datastores>
    <snapshots/>
    <noVmSnaps>true</noVmSnaps>
    <includeIndependentDisks>false</includeIndependentDisks>
    </backup>

    <backup uuid="ef8a06bd-78ca-4b5d-9208-78e64d089923" smviVersion="3">
    <name>backup_hourly all_20121023090001</name>
    <status>FAILURE</status>
    <backupJobId>9a819990-0e73-49bf-aa09-3645125d1ebd</backupJobId>
    <startTime>2012-10-23T09:00:01.656-04:00</startTime>
    <endTime>2012-10-23T09:08:17.113-04:00</endTime>
    <datastores>
    <nfsDatastore name="eet_lsr_vapps" uuid="netfs://10.101.103.120//vol/eet_lsr_vapps">
    .
    .
    .
    </datastores>
    <snapshots/>
    <noVmSnaps>true</noVmSnaps>
    <includeIndependentDisks>false</includeIndependentDisks>
    </backup>
  6. For all backups matching that job, delete everything between the <backup> and </backup> tags.
    For example:
    <backup uuid="ef8a06bd-78ca-4b5d-9208-78e64d089923" smviVersion="3">       <– Delete from and including this line
    <name>backup_hourly all_20121023090001</name>
    .
    .
    .
    <includeIndependentDisks>false</includeIndependentDisks>
    </backup>    
    <–Down to and including this line
  7. Save the changes to the backups.xml file and close it.
  8. Open the following folder:
    %INSTALL%\netapp\Virtual Storage Console\smvi\server\repository\backup\jobs
  9. In that location, look for a file containing the backup job ID. The format will be: job-<jobID>.xml
    For example:
    A file named: job-9a819990-0e73-49bf-aa09-3645125d1ebd.xml
  10. Rename the file from .xml file to .old (or another identifying non-xml file extension).
  11. Restart the SMVI service.
Comments are closed.