Troubleshooting
Problem
0516-1981 mklv: Bad block relocation policy of a volume group is not supported on a volume group that is created with 4KB block disks.
Symptom
restvg operation fails
Resolving The Problem
Restore the vgname.data file from the backup file when the savevg operation was performed.
Edit the vgname.data file and change the values of the following attributes:
BIGVG= svg
BB_POLICY= non-relocatable
RELOCATABLE= no
The BIGVG attribute is listed in the vg_data stanza of the vgname.data file.
The BB_POLICY and RELOCATABLE attributes are listed in every lv_data stanza of the vgname.data file.
Below are examples of vg_data and lv_data stanzas:
vg_data:
VGNAME= datavg
PPSIZE= 512
VARYON= yes
VG_SOURCE_DISK_LIST= hdisk2
QUORUM= 2
ENH_CONC_CAPABLE= no
CONC_AUTO= no
BIGVG= svg
TFACTOR= 2
lv_data:
VOLUME_GROUP= datavg
LV_SOURCE_DISK_LIST= hdisk2
LV_IDENTIFIER= 00f6946f00004c00000001531f2bbd45.1
LOGICAL_VOLUME= loglv00
VG_STAT= active/complete
TYPE= jfs2log
MAX_LPS= 512
COPIES= 1
LPs= 1
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= middle
MOUNT_POINT=
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 512
SCHED_POLICY= parallel
PP= 1
BB_POLICY= non-relocatable
RELOCATABLE= no
UPPER_BOUND= 16
LABEL=
MAPFILE=
LV_MIN_LPS= 1
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
LV_USERID= 0
LV_GROUPID= 0
LV_MODES= 0
** End of Examples **
Once the attributes has been assigned the proper values, then use the 'modified' vgname.data file along with the restvg command.
Use the -d flag to indicate another vgname.data should be used when performing the restvg operation.
The specified file will be used as the vgname.data file instead of the one contained in the backup image that is being restored.
Example:
restvg -d /tmp/modified_vgname.data -f /dev/rmt0 hdisk2
Please consult the IBM Knowledge Center for additional information.
https://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.cmds4/restvg.htm
Thank you.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1025054