ITPub博客

首页 > 数据库 > 数据库开发技术 > hp-rp2405磁阵无法激活

hp-rp2405磁阵无法激活

原创 数据库开发技术 作者:dengxinjian 时间:2013-06-22 00:21:52 0 删除 编辑

系统宕机后,无法识别磁阵

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 2 0/0/1/0.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 1 0/0/2/1.15.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c3t15d0 /dev/rdsk/c3t15d0
disk 3 0/4/0/0.8.0.255.0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753FC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 4 0/4/0/0.8.0.255.0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336752FC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 5 0/4/0/0.8.0.255.0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336752FC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0
disk 6 0/4/0/0.8.0.255.0.3.0 sdisk CLAIMED DEVICE HP 36.4GST336752FC
/dev/dsk/c4t3d0 /dev/rdsk/c4t3d0
disk 7 0/4/0/0.8.0.255.0.4.0 sdisk CLAIMED DEVICE HP 36.4GST336752FC
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 8 0/4/0/0.8.0.255.0.5.0 sdisk CLAIMED DEVICE HP 36.4GST336752FC
/dev/dsk/c4t5d0 /dev/rdsk/c4t5d0
You have mail in /var/mail/root
# diskinfo /dev/rdsk/c4t3d0
SCSI describe of /dev/rdsk/c4t3d0:
vendor: HP 36.4G
product id: ST336752FC
type: direct access
size: 0 Kbytes
bytes per sector: 0
# vgchange -a y -q n /dev/vgsybase
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t3d0":
Device busy
vgchange: Device busy
vgchange: Activation mode requested for the volume group "/dev/vgsybase" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t3d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
#


The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vgsybase".
pvdisplay: Cannot display physical volume "/dev/dsk/c4t5d0".
# vgcfgrestore -n /dev/vgsybase /dev/rdsk/c4t0d0
Volume Group configuration has been restored to /dev/rdsk/c4t0d0
# vgcfgrestore -n /dev/vgsybase /dev/rdsk/c4t1d0
Volume Group configuration has been restored to /dev/rdsk/c4t1d0
# vgcfgrestore -n /dev/vgsybase /dev/rdsk/c4t2d0
Volume Group configuration has been restored to /dev/rdsk/c4t2d0
# vgchange -a y /dev/vgsybase
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t3d0":
Device busy
vgchange: Device busy
vgchange: Activation mode requested for the volume group "/dev/vgsybase" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t3d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
# vgchange -a y -q n /dev/vgsybase
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t3d0":
Device busy
vgchange: Device busy
vgchange: Activation mode requested for the volume group "/dev/vgsybase" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t3d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.

[@more@]

#cmruncl -n hspcs1 --启动双机软件后,将包停掉,因为包无法启动。

#cmviewcl

#vgdisplay vgsybase

如果vg没有自动激活,继续执行下面命令:

#vgchange -a e -q n vgsybase --执行此命令后,激活巻组,但无法mount 文件系统,发现问题如下:

--- Logical volumes ---

LV Name /dev/vgsybase/sybdev6

VG Name /dev/vgsybase

LV Permission read/write

LV Status available/stale

......

--- Distribution of logical volume ---

PV Name LE on PV PE on PV

/dev/dsk/c4t1d0 1024 1024

--- Logical extents ---

LE PV1 PE1 Status 1 PV2 PE2 Status 2

00000 /dev/dsk/c4t1d0 04375 stale ??? 04375 current

00001 /dev/dsk/c4t1d0 04376 stale ??? 04376 current

00002 /dev/dsk/c4t1d0 04377 stale ??? 04377 current

丢失的PV的状态是current,当前PV c4t1d0的状态是stale的,所以这个LV现在无法使用.

解决办法是用lvunstale工具把c4t1d0置位current,把丢失的PV置位stale.

步骤:

把附件中的lvunstale工具用二进制模式ftp上传到/tmp目录下,然后执行以下命令:

#cd /tmp

#chmod 744 lvunstale

#./lvunstale /dev/vgsybase/sybdev6

其它LV如果有相同问题也同样操作.-操作完成后,lv识别正常。业务恢复正常。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23493047/viewspace-1060614/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: mksysb备份
下一篇: aix查找大文件
请登录后发表评论 登录
全部评论
  • 博文量
    46
  • 访问量
    121017