Removing a VxVM volume clone
A VxVM volume clone is a form of snapshot that might need manual deletion. For a description of disk clones, see the NetBackup Snapshot Client Configuration document:
http://www.veritas.com/docs/000081320
Major system interruptions, such as a system crash or unexpected restart, can prevent NetBackup from removing the clone. If the clone is not removed, subsequent backups of the client's data fail. Examine the /usr/openv/netbackup/logs/bpfis log for text such as the following:
19:13:07.686 [14981] <2> onlfi_vfms_logf: INF - do_cmd: Command failed with status=20: /usr/openv/netbackup/bin/bpdgclone -g wil_test -n vol01 -f /var/tmp/HDSTFCAAs7aOqD </dev/null >/var/tmp/VfMSAAAq7aOqD 2>/var/tmp/VfMSBAAr7aOqD 19:13:07.687 [14981] <2> onlfi_vfms_logf: INF - --- Dumping file /var/tmp/VfMSAAAq7aOqD (stdout): 19:13:07.687 [14981] <2> onlfi_vfms_logf: INF - --- End of file /var/tmp/VfMSAAAq7aOqD 19:13:07.687 [14981] <2> onlfi_vfms_logf: INF - --- Dumping file /var/tmp/VfMSBAAr7aOqD (stderr): 19:13:07.687 [14981] <2> onlfi_vfms_logf: INF - clone group and volume already exists 19:13:07.688 [14981] <2> onlfi_vfms_logf: INF - --- End of file /var/tmp/VfMSBAAr7aOqD
In this case, you must use the bpdgclone command with the -c option to remove the clone. Then resynchronize the mirror disk with the primary disk.
The following commands should be run on the client or alternate client, depending on the type of backup.
To remove a VxVM volume clone
- When no backups are running, use the following VxVM command to list any clones.
vxdg list
If a backup configured with an array-specific snapshot method is currently running, a clone for that backup appears in the vxdg output. Do not delete the clone; NetBackup deletes it when the backup completes.
Example vxdg output:
NAME STATE ID rootdg enabled 983299491.1025.turnip VolMgr enabled 995995264.8366.turnip wil_test_clone enabled 1010532924.21462.turnip wil_test enabled 983815798.1417.turnipIn this example, the name suffix indicates wil_test_clone was created for a snapshot backup that was configured with an array-specific snapshot method. If a backup failed with log entries similar to those in this example, the clone must be manually deleted.
- To remove the clone, enter the following:
/usr/openv/netbackup/bin/bpdgclone -g disk_group -n volume -c clone
For the previous example, you would enter:
/usr/openv/netbackup/bin/bpdgclone -g wil_test -n vol01 -c wil_test_clone
where wil_test is the name of the disk group, vol01 is the name of the VxVM volume, and wil_test_clone is the name of the clone. Use the Volume Manager vxprint command to display volume names and other volume information.
For more information, refer to the bpdgclone man page.
For assistance with vxprint and other Volume Manager commands, refer to the Veritas Volume Manager Administrator's Guide.
- To verify that the clone has been removed, re-enter vxdg list.
Sample output:
NAME STATE ID rootdg enabled 983299491.1025.turnip VolMgr enabled 995995264.8366.turnip wil_test enabled 983815798.1417.turnip
The clone no longer appears in the list.