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: https://www.veritas.com/docs/000080622 |
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
|