Using vxprivutil to generate a dump of the Veritas configuration database
| Article:TECH201980 | | | Created: 2013-01-24 | | | Updated: 2013-03-01 | | | Article URL http://www.symantec.com/docs/TECH201980 |
Problem
If vxconfigbackup is unavailable, vxprivutil may be used to generate a dump of the 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 |
1. Use vxdisk to get a listing of disk groups, along with the disks that they contain (Figure 1).
Figure 1 - An example of using vxdisk to get a listing of disk groups
|
Syntax: vxdisk -o alldgs list Example, with typical output: # vxdisk -o alldgs list
|
2. Use the "for" script to generate a list of disks that have an "enabled" copy of the configuration (Figure 2).
Figure 2 - An example of using a "for" script to find an enabled copy of the configuration
|
Syntax:
for i in `vxdisk -o alldgs list | awk '{print $1}'`; do echo $i; vxdisk list $i | grep config | grep enabled; done Example, with typical output: # for i in `vxdisk -o alldgs list | awk '{print $1}'`; do echo $i; vxdisk list $i | grep config | grep enabled; done
|
3. Use vxprivutil to dump a copy of the configuration from one of the remaining disks in the disk group that have an "enabled" copy of the configuration (Figure 3).
By default, vxprivutil is located in /etc/vx/diag.d.
Figure 3 - Using vxprivutil to dump a copy of the configuration
|
Syntax:
vxprivutil dumpconfig /dev/vx/rdmp/<disk_media> > /directory/filename Example, with typical output:
# /etc/vx/diag.d/vxprivutil dumpconfig /dev/vx/rdmp/ams_wms0_60 > /tmp/ams_wms0_60.cfgrec
|
|
|
Article URL http://www.symantec.com/docs/TECH201980
Terms of use for this information are found in Legal Notices









Thank you.