Veritas Volume Manager 5.0 Troubleshooting Guide, HP-UX 11i v3, First Edition, May 2008
49Backing up and restoring disk group configurations
Restoring a disk group configuration
Here diskgroup is the name of the disk group, and dgid is the disk group ID. If a
disk group is to be recreated on another system, copy these files to that system.
Caution: Take care that you do not overwrite any files on the target system that
are used by a disk group on that system.
To back up a disk group manually, use this command:
# /etc/vx/bin/vxconfigbackup
diskgroup
To back up all disk groups, use this version of the command:
# /etc/vx/bin/vxconfigbackup
For more information, see the vxconfigbackup(1M) manual page.
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 48 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}