VERITAS Volume Manager 4.1 Troubleshooting Guide
Backing Up and Restoring Disk Group Configurations
Restoring a Disk Group Configuration
Chapter 562
Restoring a Disk Group Configuration
You can use the vxconfigrestore utility to restore or recreate a disk group from its
configuration backup. The restoration process has two stages: precommit and commit. In the
precommit stage, you can examine the configuration of the disk group that would be restored
from the backup. The actual disk group configuration is not permanently restored until you
choose to commit the changes.
NOTE None of the disks or VxVM objects in the disk group may be open or in use by
any application while the restoration is being performed.
You can choose whether or not any corrupted disk headers are to be reinstalled at this stage.If
any of the disks’ private region headers are invalid, restoration may not be possible without
reinstalling the headers for the affected disks.
The following command performs a precommit analysis of the state of the disk group
configuration, and reinstalls the disk headers where these have become corrupted:
# /etc/vx/bin/vxconfigrestore -p [-l directory]{diskgroup | dgid}
The disk group can be specified either by name or by ID.
The -l option allows you to specify a directory for the location of the backup configuration files
other than the default location, /etc/vx/cbr/bk. See "Backing Up a Disk Group
Configuration" on page 44xxxxxxxxxxxxxxxx for details.
To specify that the disk headers are not to be reinstalled, use this form of the command:
# /etc/vx/bin/vxconfigrestore -n [-l directory]{diskgroup | dgid}
At the precommit stage, you can use the vxprint command to examine the configuration that
the restored disk group will have. You can choose to proceed to commit the changes and
restore the disk group configuration. Alternatively, you can cancel the restoration before any
permanent changes have been made.
To abandon restoration at the precommit stage, use this command:
# /etc/vx/bin/vxconfigrestore -d [-l directory]{diskgroup | dgid}
To commit the changes that are required to restore the disk group configuration, use the
following command:
# /etc/vx/bin/vxconfigrestore -c [-l directory]{diskgroup | dgid}
If no disk headers are reinstalled, the configuration copies in the disks’ private regions are
updated from the latest binary copy of the configuration that was saved for the disk group.