1.rootvg镜像:
1). 添加新硬盘到rootvg
#extendvg rootvg hdisk1
2). 镜像rootvg
#mirrorvg -c 2 rootvg hdisk1
3). 重新生成 boot image
#bosboot -ad /dev/hdisk0
4). 更新bootlist
#bootlist -m normal hdisk0 hdisk1 cd0
5). 重起系统
#shutdown -Fr
2、保证卷组自动下线。
3、有必要。。。
1.损坏的磁盘为rootvg磁盘
1.1 没有做raid和mirror
如发生上述情况,唯一的办法就是磁带恢复
1.2 有做mirror(假设hdisk0和hdisk1做了mirror,现在要更换hdisk0),以下是我所写的更换步骤:
unmirrorvg rootvg hdisk0;
reducevg rootvg hdisk0;
bosboot –ad hdisk1;
bootlist –m normal hdisk1 cd0;
rmdev –l disk0 –d;
cfgmgr;
更换新的磁盘;
cfgmgr;
extendvg rootvg hdisk0;
mirrorvg –c 2 rootvg ;
bosboot –ad hdisk0;
bosboot –ad hdisk1;
bootlist –m normal hdisk0,hdisk1 cd0
1.3 有做raid的情况(假设hdisk0和hdisk1做了raid1,现在要更换hdisk0)
假如根盘做了raid1,那么是不是只要拔下损坏的hdisk0,然后更换新的磁盘就可以?还是需要删除原来的raid信息,然后删除原有的hdisk0的信息再更换新的磁盘,重新做RAID?请前辈们指教。
2.损坏的磁盘为非rootvg磁盘
2.1 没有做raid和mirror
若发生上除情况,是否只能更换磁盘后,重建卷组信息或从磁带恢复?
2.2 有做mirror(假设hdisk2和hdisk3做了mirror属于backvg,现在要更换hdisk2),一下是我所写的步骤,请前辈指教:
unmirrorvg backvg hdisk2;
reducevg backvg hdisk2;
rmdev –l disk2 –d;
cfgmgr;
更换新的磁盘;
cfgmgr;
extendvg backvg hdisk2;
mirrorvg –c 2 backtvg ;
2.3 有做raid(假设hdisk2和hdisk3做了raid1,现在要更换hdisk2)
若遇到此情况是不是也和上述1.3所述的情况一样?
Disk Replacement (Local rootvg hot-swapped SCSI disk)
When a failed local disk is detected, the SA should open a hardware call with IBM support (with the pSeries S/N prtconf ), and run diagnostics to determine the disk is real failed.
a) Check the error log for relevant errors.
errpt |more
errpt –aN hdiskname | more
b) Check and record disk attribute (S/N and location )
lscfg –vl hdiskname
c) Check VG membership for disk
lspv –L hdiskname
d) Check VG
lsvg –L rootvg
lsvg –p rootvg
e) Check LV on the disk
lspv –l hdiskname
lsvg –l rootvg
f) Remove any unmirrored LV on the disk
rmlv lvname
g) Unmirror rootvg from disk
Unmirrorvg rootvg hdiskname
h) Remove disk from VG
reducevg rootvg hdiskname
i) Use # diag to physically identify the disk in the server (LED blink )
diag->task selection ->hot plug task -> SCSI and SISC RAID hot plug manage -> identify a device attached to a SCSI hot swap enclosure device
j) Remove device definitions for disk
rmdev –d –l hdiskname
lspv | more (check)
k) Physical replace the disk, same or larger size than the failed disk, check S/N
l) add new disk in rootvg
cfgmgr –v Create the newdisk device definition
lspv Check
extendvg rootvg newdisk Add the disk to rootvg
lspv Check
mirrorvg rootvg newdisk Mirror VG
syncvg –v rootvg Sync VG
bosboot –a –d /dev/ newdisk
Chvg –a’y’ –Q’n’ –x’n’ rootvg
bootlist –m normal -o
m) recreate the removed LV
n) check final configuration
boot_check -y verify your work done
阅读(2964) | 评论(0) | 转发(0) |