This document describes how to restore a savevg image without preserving mirrors.
Information in this document is valid for AIX Versions 4.1.x and 4.2.x only.
WARNING: This procedure is valid only with a savevg image and will not work with a Sysback 6000 system backup.
If the ability to rerun the savevg is available, the following procedure will allow you to create a savevg without preserving mirroring.
mkvgdata <vgname>
<vgname> is the name of the volume group to be backed up.
cd /tmp/vgdata/<vgname> vi <vgname>.data
To view and edit the file, using your favorite editor, open <vgname>.data:
Example 1 lv_data: VOLUME_GROUP= <vgname> LV_SOURCE_DISK_LIST= hdisk1 LV_IDENTIFIER= 00000001113f3c62.5 LOGICAL_VOLUME= lv00 VG_STAT= active/complete TYPE= jfs MAX_LPS= 512 --> COPIES = 2 LPs = 70 STALE_PPs= 0 INTER_POLICY= minimum INTRA_POLICY= center MOUNT_POINT= /apps MIRROR_WRITE_CONSISTENCY= on LV_SEPARATE_PV= yes PERMISSION= read/write LV_STATE= opened/syncd WRITE_VERIFY= off PP_SIZE= 4 SCHED_POLICY= parallel --> PP = 140 BB_POLICY= relocatable RELOCATABLE= yes UPPER_BOUND= 32 LABEL= /apps MAPFILE= LV_MIN_LPS= 68 Example 2 lv_data: VOLUME_GROUP= <vgname> LV_SOURCE_DISK_LIST= hdisk1 LV_IDENTIFIER= 00000001113f3c62.5 LOGICAL_VOLUME= lv00 VG_STAT= active/complete TYPE= jfs MAX_LPS= 512 --> COPIES = 1 LPs = 70 STALE_PPs= 0 INTER_POLICY= minimum INTRA_POLICY= center MOUNT_POINT= /apps MIRROR_WRITE_CONSISTENCY= on LV_SEPARATE_PV= yes PERMISSION= read/write LV_STATE= opened/syncd WRITE_VERIFY= off PP_SIZE= 4 SCHED_POLICY= parallel --> PP = 70 BB_POLICY= relocatable RELOCATABLE= yes UPPER_BOUND= 32 LABEL= /apps MAPFILE= LV_MIN_LPS= 68
NOTE: In Example 2, the COPIES value has been changed to 1, and the PP value is set equal to the LPs value. Make these changes to each of the lv_data stanzas in the <vgname>.data file. Once you make the changes, save the file and exit.
savevg -f /dev/rmtX <vgname>
X is the number of your tape device.
WARNING: Do not run the savevg in SMIT because this will update the <vgname>.data file and overwrite any changes made.
WARNING: Do not run the savevg with the -i flag because this will update the <vgname>.data file as well.
If another savevg cannot be run, the following procedure can be used to restore a savevg without mirroring.
All references to the tape device in the next section are as rmt0.
rm -r /tmp/vgdata
cd / restore -xqvdf /dev/rmt0 ./tmp/vgdata
To view and edit the file, using your favorite editor, open /tmp/vgdata/<vgname>/<vgname>.data:
Example 3 lv_data: VOLUME_GROUP= <vgname> LV_SOURCE_DISK_LIST= hdisk1 LV_IDENTIFIER= 00000001113f3c62.5 LOGICAL_VOLUME= lv01 VG_STAT= active/complete TYPE= jfs MAX_LPS= 512 --> COPIES = 2 LPs = 120 STALE_PPs= 0 INTER_POLICY= minimum INTRA_POLICY= center MOUNT_POINT= /apps2 MIRROR_WRITE_CONSISTENCY= on LV_SEPARATE_PV= yes PERMISSION= read/write LV_STATE= opened/syncd WRITE_VERIFY= off PP_SIZE= 4 SCHED_POLICY= parallel --> PP = 240 BB_POLICY= relocatable RELOCATABLE= yes UPPER_BOUND= 32 LABEL= /apps2 MAPFILE= LV_MIN_LPS= 68 Example 4 lv_data: VOLUME_GROUP= <vgname> LV_SOURCE_DISK_LIST= hdisk0 LV_IDENTIFIER= 00000001113f3c62.5 LOGICAL_VOLUME= lv01 VG_STAT= active/complete TYPE= jfs MAX_LPS= 512 --> COPIES = 1 LPs = 120 STALE_PPs= 0 INTER_POLICY= minimum INTRA_POLICY= center MOUNT_POINT= /apps2 MIRROR_WRITE_CONSISTENCY= on LV_SEPARATE_PV= yes PERMISSION= read/write LV_STATE= opened/syncd WRITE_VERIFY= off PP_SIZE= 4 SCHED_POLICY= parallel --> PP = 120 BB_POLICY= relocatable RELOCATABLE= yes UPPER_BOUND= 32 LABEL= /apps2 MAPFILE= LV_MIN_LPS= 120
NOTE: In Example 4 the COPIES value has been changed to 1, and the PP value is set equal to the LPs value. Make these changes to each of the lv_data stanzas in the <vgname>.data file. Once you make the changes, save the file and exit.
cd / find ./tmp/vgdata -print |backup -iqvf /tmp/vg.back
This should back up the following files:
./tmp/vgdata ./tmp/vgdata/vgdata.files ./tmp/vgdata/<vgname> ./tmp/vgdata/<vgname>/filesystems ./tmp/vgdata/<vgname>/<vgname>.data
<vgname> is the name of your volume group.
restore -Tqvf /tmp/vg.back
restvg -f /tmp/vg.back hdisk# hdisk#
lsvg -l <vgname>
And verify the file systems mounted:
mount
cd / restore -xqvdf /dev/rmt0
[ Doc Ref: 9174565467548 Publish Date: May. 25, 2000 4FAX Ref: 4260 ]