故障现象:一块S85硬盘在errpt中报错:
[root:/]errpt
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
49A83216 0111232508 T H hdisk2 DISK OPERATION ERROR
处理过程:
1,errpt -a查看有关hdisk2故障的详细报告;
2,现场观察hdisk2状态灯为不正常状态;
3,lspv hdisk2查看hdisk2磁盘的从属关系:
[root:/]lspv hdisk2
PHYSICAL VOLUME: hdisk2 VOLUME GROUP: rootvg
PV IDENTIFIER: 000d202d530d2928 VG IDENTIFIER 000d202d00004c0000000101ba50e580
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 32 megabyte(s) LOGICAL VOLUMES: 10
TOTAL PPs: 542 (17344 megabytes) VG DESCRIPTORS: 1
FREE PPs: 194 (6208 megabytes) HOT SPARE: no
USED PPs: 348 (11136 megabytes)
FREE DISTRIBUTION: 86..00..00..00..108
USED DISTRIBUTION: 23..108..108..108..01
经查,hdisk2为hdisk0(系统启动盘)的镜像;
4,插入一块同样大小(73GB)硬盘到另外插槽,cfgmgr识别出为hdisk4;
5,chdev -a pv=yes -l hdisk4让磁盘变得可用;
6,extendvg rootvg hdisk4将hdisk4加入卷组rootvg当中;
7,migratepv hdisk2 hdisk4将hdisk2中所有信息移动到hdisk4中:
root:/]migratepv hdisk2 hdisk4
0516-1011 migratepv: Logical volume hd5 is labeled as a boot logical volume.
0516-1246 migratepv: If hd5 is the boot logical volume, please run 'chpv -c hdisk2'
as root user to clear the boot record and avoid a potential boot
off an old boot image that may reside on the disk from which this
logical volume is moved/removed.
8,chpv -c hdisk2移除hdisk2中启动信息;
9,bosboot -ad /dev/hdisk4在hdisk4中加入启动信息;
10,reducevg rootvg hdisk2将hdisk2从rootvg中去除;
11,rmdev -l hdisk2 -d将hdisk2所有信息从系统中删除;
12,取出hdisk2;
13,bootlist -m normal hdisk0 hdisk4对原有启动顺序进行更改,将hdisk4取代hdisk2;
14,bootlist -m normal -o查看更改后的启动顺序是否生效:
[root:/]bootlist -m normal -o
hdisk0
hdisk4
整个过程完成。