分类:
2010-07-08 10:52:27
该实例中,c1t2d0和c2t2d0两个PV互为镜像,如下所示:现在c1t2d0的S/W State为NO_HW,准备更换硬盘。
#ioscan -funCdisk
Class
=====================================================================
disk
disk
disk
先拔掉H/W Path为0/0/1/1.2.0的硬盘,换上新的硬盘,并执行ioscan –fnCdisk,如下所示,c1t2d0的S/W State变为CLAIMED。
#ioscan -fnCdisk
Class
=====================================================================
disk
disk
disk
按照下面的步骤执行命令:
1、恢复VG信息:
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
Volume Group configuration has been restored to /dev/rdsk/c1t2d0
2、改变VG状态:
#vgchange -a y /dev/vg00
Volume group "/dev/vg00" has been successfully changed.
3、mkboot创建引导区信息:
来源:(http://blog.sina.com.cn/s/blog_4a68f770010004x8.html) - 在线更换Mirror盘_flybird0316_新浪博客#mkboot /dev/rdsk/c1t2d0
#mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0
4、创建swap和dump区:
#lvlnboot -R
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
5、同步VG:
#vgsync /dev/vg00
Resynchronized logical volume "/dev/vg00/lvol1".
Resynchronized logical volume "/dev/vg00/lvol2".
Resynchronized logical volume "/dev/vg00/lvol3".
Resynchronized logical volume "/dev/vg00/lvol4".
Resynchronized logical volume "/dev/vg00/lvol5".
Resynchronized logical volume "/dev/vg00/lvol6".
Resynchronized logical volume "/dev/vg00/lvol7".
Resynchronized logical volume "/dev/vg00/lvol8".
Resynchronized volume group "/dev/vg00".
6、查看boot信息:
#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
Boot: lvol1
Root: lvol3
Swap: lvol2
Dump: lvol2
这样就完成了mirror盘的更换和配置。