- 论坛徽章:
- 0
|
本帖最后由 tonyzhou_cn 于 2013-09-23 18:50 编辑
版本:11.31,在测试替换镜像后的系统根盘,出现这样一个问题,替换的步骤是这样的:
1、pvchange -a N /dev/disk/disk80_p2
2、换盘(disk5)
3、scsimgr replace_wwid -D /dev/rdisk/disk80
4、ioscan -fn
5、idisk对新盘分区 idisk -wf /tmp/mirror/table /dev/rdisk/disk81
6、insf –e insf -e -H 64000/0xfa00/0x22
7、io_redirect_dsf -d /dev/disk/disk80 -n /dev/disk/disk81
8、vgcfgrestore -n /dev/vg00 /dev/rdisk/disk80_p2
9、mkboot -e -l /dev/rdisk/disk80
10、mkboot -a "hpux -lq" /dev/rdisk/disk80
11、vgsync /dev/vg00
12、setboot –h 1/0/1/1/0/4/1.0x6.0x0
13、测试:shutdown –ry 0 从新镜像的盘启动 ok
在第6步的时候,我参考手册上这样做之后,在vgcfgrestore 的时候就会报错,如果直接使用insf -e 或者insf -eC disk,就不会有问题,这是为什么呢?
使用带 -e 选项的 insf 命令创建所有分区的设备文件。#insf -e -H 0/1/1/0.0x1.0x0
就会如下错误:
# vgcfgrestore -n /dev/vg00 /dev/rdisk/disk80_p2
PV /dev/rdisk/disk80_p2 has the following bad block/s with allocated alternates
which resides inside the user data area. Please run pvcreate [-B]
before re-running vgcfgrestore. Should you wish to override this
operation, re-run the command with the -F argument. In doing so,
you may encounter data corruption.
Bad blocks: 8 1 8568 149504 268435455 268435455 70765733 592 278 2144 8 2728 2912 16384 70749024 0 128 128 6 71648837
|
|