这次教训很深刻,也是第一次碰到这样的情况,所以觉得有必要记录于此,也给后来者提醒提醒。
环境:
HP rx8640小型机
hpux 11.23操作系统
Integrity VM
要求:
在nPar0上新建四个VM,用其他分区上备份出来的磁带进行系统恢复。
故障现象:
系统恢复一切正常,四个VM成功恢复,重启nPar之后发现含有四个VM所用到磁盘的卷组vgvm无法激活,导致VM一个也起不来,报错信息如下:
#vgchange -a y vgvm
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c6t0d0":
Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t3d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c5t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c5t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c5t2d0":
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: Couldn't activate volume group "vgvm":
Quorum not present, or some physical volume(s) are missing.
简单描述一下操作过程,在新建的四个VM中,每个VM分配了2C 3GB、一块磁盘以及两块网卡,一块独立,一块共享,通过在线添加/删除磁带机的方式来依次还原四个VM的系统。
在还原系统的时候发现,一块磁盘不足以满足系统的安装,所以临时添加了一块磁盘给每个VM,这样安装就能顺利进行。
NOTE:这个地方磁盘的分配决定了错误的发生。
在nPar0中,磁盘柜里磁盘的路径分别为:c5t0d0,c5t1d0,c5t2d0,c5t3d0,c6t0d0,c6t1d0,c6t2d0,c6t3d0
通过把这六块磁盘加入新建的卷组vgvm中来进行对VM资源的分配,如下所示:
#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0s2
/dev/vgvm
/dev/dsk/c6t0d0
/dev/dsk/c6t1d0
/dev/dsk/c6t2d0
/dev/dsk/c6t3d0
/dev/dsk/c5t0d0
/dev/dsk/c5t1d0
/dev/dsk/c5t2d0
/dev/dsk/c5t3d0
之所以要重启nPar0,是因为起初vgvm中并未添加/dev/dsk/c5t3d0这块磁盘,在恢复最后一个VM的时候发现磁盘数不够,所以决定临时添加c5t3d0到vgvm中,但使用命令“vgextend /dev/dsk/c5t3d0 vgvm“始终不成功,而换一个卷组,用“vgextend /dev/dsk/c5t3d0 vg00”就一点问题没有。
在这样的情况下,决定重启nPar0,看重启之后添加c5t3d0到vgvm中是否正常。这个时候,四个VM已经装好三个,第四个等待实施。
不幸的事情发生了,在nPar0重启之后,发现卷组vgvm激活的时候有问题,这就出现了上面的报错信息。
阅读(5939) | 评论(0) | 转发(0) |