HPUX更换故障硬盘及系统引导区损坏故障恢复过程
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
HPUX更换故障硬盘及系统引导区损坏故障恢复过程一、故障前现象
服务器操作系统中VG00卷组中一个磁盘报错,不能识别,信息如下:vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t6d0":The specified path does not correspond to physical volume attached to this volume group vgdisplay: Warning: couldn't query all of the physical volumes.
根据该信息查找磁盘路径为:1/0/0/3/0.6.0,对应官方文档图片可知需要该故障硬盘为左上角位置:
并且查看物理服务器外观,可见CELL1板卡上的HBA卡状态灯未亮,初步判断为HBA 卡故障,需要更换。
二、更换步骤
1、关闭主机rac节点
2、关闭HA上的包,先确认包名
scgf-l[/]#cmviewcl
CLUSTER STATUS
GFZF_RAC up
NODE STATUS STATE
scgf-k up running
PACKAGE STATUS STATE AUTO_RUN NODE
gfzf1 up running enabled scgf-k
NODE STATUS STATE
scgf-l up running
PACKAGE STATUS STATE AUTO_RUN NODE
gfzf2 up running enabled scgf-l
关闭包:
#cmhaltpkg gfzf2
再次确认双机运行情况cmviewcl
3、确认/dev/dsk/c4t6d0物理位置:1/0/0/3/0.6.0
#ioscan –funC disk
disk 2 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC /dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
4、根据官方图片确认实际物理硬盘位置为左上。
5、确认pv上的lv,如下:
#pvdisplay –v /dev/dsk/c4t6d0(由于该PV已经故障,不能使用该命令查看)
通过一下命令逐个核对lv信息,确认该lv是否存在镜像在故障PV上:
scgf-l[/]#lvdisplay -v /dev/vg00/lvol*|more
scgf-l[/]#lvdisplay -v /dev/vg00/oracle|more
scgf-l[/]#lvdisplay -v /dev/vg00/swap |more
6、查看引导信息,无法列出
#lvlnboot –v
7、摘除分区
#lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol6 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol7 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/lvol8 /dev/dsk/c4t6d0
#lvreduce -m 0 /dev/vg00/oracle /dev/dsk/c4t6d0
-----------------------------------------------------------------------------------------------------------------------------------
由于该PV已经故障,VG无法识别,使用以上命令删除时不能成功,需要用一下强制删除方式进行:
执行一下命令,查看故障磁盘PV的key,然后通过key进行删除:
scgf-l[/bea/bea815]#lvdisplay -v -k /dev/vg00/lvol1|more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t6d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1024
Current LE 32
Allocated PE 64
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t5d0 32 32
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2 00000 0 00000 stale 2 00000 current 00001 0 00001 stale 2 00001 current 00002 0 00002 stale 2 00002 current 00003 0 00003 stale 2 00003 current
scgf-l[/bea/bea815]#lvdisplay -v /dev/vg00/lvol1 |more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t6d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1