Using vxconfigbackup and vxprivutil to back up up the disk group configuration of the Veritas private region
Problem
Using vxconfigbackup and vxprivutil to back up up the disk group configuration of the Veritas private region
Solution
This article is a part of a set on troubleshooting failed, or failing, disks. Click here to start at the beginning: https://www.veritas.com/docs/000087431 |
Table of Contents
Introduction
Using vxconfigbackup
Using vxprivutil
Verifying the integrity of a configuration database backup
More information on vxconfigbackup
Introduction
(Back to top)
The Veritas private region stores information about the disk group, including records of the disks are contained by the disk group, volume structures, plexes and subdisks. This can be contrasted with the public region, which contains the actual data that is stored within the volumes.
In some cases, an I/O error may cause a disk to become detached from a disk group, or even cause corruption within the Veritas private region. If this occurs, a backup copy of the private region can be restored to the disks to recover the disk group.
Vxconfigbackup is the most common tool for backing up the Veritas private region for a disk group. In older versions, vxconfigbackup may not be available and vxprivutil may be used instead. These tools do not back up the actual data that is contained within the volumes. Instead, they back up the Veritas private region configuration database that resides on the disks. Vxconfigbackup also gathers information about the properties of the disks themselves.
Using vxconfigbackup
(Back to top)
By default, Volume Manager automatically uses vxconfigbackup to create periodic backups of the private region to /etc/vx/cbr/bk.
Review the man pages for vxconfigbackup for additional documentation about this utility.
Table 1 - Using vxconfigbackup to back up the Veritas private regions of the remaining disks
Backing up the configuration of a specific disk group | Syntax: vxconfigbackup -l /directory <disk_group> Example, with typical output: # vxconfigbackup -l /tmp/privbackup testdg |
Backing up the configuration of all imported disk groups |
Syntax: vxconfigbackup -l /directory Example, with typical output: # vxconfigbackup -l /tmp/privbackup |
Using vxprivutil
(Back to top)
If vxconfigbackup is unavailable, vxprivutil may be used to generate a dump of the private region.
Using vxprivutil to generate a dump of the Veritas configuration database
https://www.veritas.com/docs/000087574
Verifying the integrity of a configuration database backup
(Back to top)
Before running vxconfigrestore, verify the integrity of the configuration database backup to ensure that the data being restored is correct. The integrity of the backup can be verified with vxprint.
Note: See this article for details on verifying the integrity of a configuration database backup
Verifying the integrity of a configuration database backup
https://www.veritas.com/docs/000087566
More information on vxconfigbackup
(Back to top)
Note: More information about vxconfigbackup, as well as vxconfigrestore, can be found in this article:
Additional details about vxconfigbackup
https://www.veritas.com/docs/000026380