Using vxconfigbackup and vxprivutil to back up up the disk group configuration of the Veritas private region

Article:TECH201329  |  Created: 2013-01-03  |  Updated: 2013-08-05  |  Article URL http://www.symantec.com/docs/TECH201329
Article Type
Technical Solution


Issue



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: http://www.symantec.com/docs/TECH200618

 


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.

 


Note: When using vxconfigbackup to manually create a backup, add the "-l" argument and specify an alternate location. This is recommended to avoid overwritting older, and potentially useful, backups that may contain a information about the disks from before an outage occured. By default, vxconfigbackup only maintains five backups at the default location before overwritting the oldest copy.


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

Start backing up diskgroup proddg to /tmp/privbackup/proddg.1355421310.44.server1 ...

VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: proddg

 

Backing up the configuration of all imported disk groups

Syntax:

vxconfigbackup -l /directory


Example, with typical output:

# vxconfigbackup -l /tmp/privbackup

Start backing up diskgroup proddg to /tmp/privbackup/proddg.1355421310.44.server1 ...

VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: proddg
Start backing up diskgroup testdg to /tmp/privbackup/testdg.1356367862.26.server1 ...

VxVM  NOTICE V-5-2-3100 Backup complete for diskgroup: testdg

 





Using vxprivutil
(Back to top)


If vxconfigbackup is unavailable, vxprivutil may be used to generate a dump of the private region.

 


Note: More information about vxprivutil, including syntax and examples, can be found in this article:

"Using vxprivutil to generate a dump of the Veritas configuration database"
http://www.symantec.com/docs/TECH201980





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"
http://www.symantec.com/docs/TECH201925






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"
http://www.symantec.com/docs/TECH29081



 




Article URL http://www.symantec.com/docs/TECH201329


Terms of use for this information are found in Legal Notices