This document describes how to restore a savevg image with a larger PPsize. Information in this document is valid for AIX Versions 4.1.x and 4.2.x.
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 allows you to create a savevg with a larger PPsize.
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, execute:
vi <vgname>.data
Example 1
vg_data: VGNAME= <vgname> --> PPSIZE= 4 VARYON= yes VG_SOURCE_DISK_LIST= hdisk1 QUORUM= 2 CONC_CAPABLE= no CONC_AUTO= no
Example 2
vg_data: VGNAME= <vgname> --> PPSIZE= 8 VARYON= yes VG_SOURCE_DISK_LIST= hdisk1 QUORUM= 2 CONC_CAPABLE= no CONC_AUTO= no
Example 3
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
Example 4
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 = 35 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= 8 SCHED_POLICY= parallel --> PP = 35 BB_POLICY= relocatable RELOCATABLE= yes UPPER_BOUND= 32 LABEL= /apps MAPFILE= --> LV_MIN_LPS= 34
NOTE: In example 2, the PPsize has been changed from 4 to 8. In example 4, the LPs (logical partitions) have been divided by two, the PP_SIZE has been changed to 8, the PP (physical partitions) has been divided by two, and the LV_MIN_LPS has also been divided by two. The division of the LPs, PP, and LV_MIN_LPS is necessary so that the logical volume is created at the same size. The following is a division table to use as a reference:
Original PPsize New PPsize Divide the LPs, LV_MIN_LPS by 4 8 2 4 16 4 4 32 8 8 16 2 8 32 4 16 32 2
If, when you are dividing, a half number is achieved, simply round up to the nearest whole number. So if the LPs and PP are at 51 and you divide this by 2 (51/2 = 25.5), round up the result to 26.
Once all the changes have been made, 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 with a larger PPsize.
All references to the tape device in the next section are as rmt0.
rm -r /tmp/vgdata
cd / restore -xqvdf /dev/rmt0 ./tmp/vgdata
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#
Verify that the volume group and file systems were recreated. Enter:
lsvg -l <vgname>
Verify the file systems mounted. Enter:
mount
cd / restore -xqvdf /dev/rmt0
[ Doc Ref: 91745667913562 Publish Date: May. 08, 2000 4FAX Ref: 2483 ]