HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
v
vgcfgrestore(1M) vgcfgrestore(1M)
does not match with the configuration backup file due to missing alternate physi-
cal volume links:
Mismatch between the backup file and the running kernel:
Kernel indicates X disks for /dev/vgname; /etc/lvmconf/vgname
indicates Y disks. Cannot proceed with the restoration.
Deactivate the Volume Group and try again.
In this case, the user is advised to deactivate the volume group first, then use
the vgcfgrestore command to restore configuration data when the volume
group is unavailable. But if the volume group has to stay available and the user
is absolutely sure the configuration file is correct, this option will restore data
from the configuration file when the volume group stays available.
RETURN VALUE
vgcfgrestore exits with one of the following values:
0 Successful completion.
>0 Failure. Errors occurred during the restore operation.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default to
"C" (see environ(5)).
EXAMPLES
Restore the LVM configuration information for the physical volume
/dev/rdsk/c0t7d0
that was saved
in the default file
/etc/lvmconf/vg00.conf
:
vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t7d0
Force to restore the LVM configuration data when volume group is still active
vgcfgrestore -R -n /dev/vg00 /dev/rdsk/c0t7d0
Restore the LVM configuration information to physical volume /dev/rdsk/c0t4d0
using alternate
configuration file
/tmp/vg00.backup
:
vgcfgrestore -f /tmp/vg00.backup /dev/rdsk/c0t4d0
List backup information saved in default configuration file /etc/lvmconf/vg00.conf
:
vgcfgrestore -n /dev/vg00 -l
Above command might display the following:
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c0t6d0 (Bootable)
/dev/rdsk/c0t5d0 (Non-bootable)
Restore LVM configuration information stored for /dev/rdsk/c0t7d0
in default configuration le
/etc/lvmconf/vg01.conf
to physical volume /dev/rdsk/c0t6d0:
vgcfgrestore -n /dev/vg01 -o /dev/rdsk/c0t7d0 /dev/rdsk/c0t6d0
WARNINGS
Preferably, the volume group should be made unavailable before executing vgcfgrestore by executing
the command
vgchange -a n vg_name
AUTHOR
vgcfgrestore was developed by HP.
HP-UX Release 11i: December 2000 2 Section 1M1007
___
___