疾风狼 发表于 2014-1-8 09:15:28

虚拟机添加votedisk异常,寻求帮助

操作系统环境:
Linux redhat 4
Linux node1 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
数据版本:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
集群软件: oracleasm-2.6.9-67.ELsmp-2.0.3-1.i686.rpm
oracleasmlib-2.0.4-1.el4.i386.rpm
oracleasm-support-2.1.4-1.el4.i386.rpm
问题介绍:我在虚拟机上安装10G的双节点RAC。在安装时候orc盘一个,votingdisk 盘一个。后期维护votingdiks盘时,出现了以下混乱。
裸设备:
# cd mapper/
# ll
brw-rw----  1 root disk 253,  2 Jan  4 06:46 racvg-lv_vote1
brw-rw----  1 root disk 253,  3 Jan  4 06:46 racvg-lv_vote2
brw-rw----  1 root disk 253,  4 Jan  4 06:46 racvg-lv_vote3
#
# cd ../raw
# ll
crw-rw----  1 oracle dba 162, 3 Jan  4 06:47 raw3
crw-rw----  1 oracle dba 162, 4 Jan  4 06:47 raw4
crw-rw----  1 oracle dba 162, 5 Jan  4 06:47 raw5
# vi /etc/sysconfig/rawdevices
/dev/raw/raw3 /dev/mapper/racvg-lv_vote1
/dev/raw/raw4 /dev/mapper/racvg-lv_vote2
/dev/raw/raw5 /dev/mapper/racvg-lv_vote3

查询votedisk盘
# crsctl query  css votedisk
0.     0    /dev/raw/raw3

located 1 votedisk(s).

关闭CRS:
# crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.

添加VOTE DISK盘
# crsctl add css votedisk /dev/raw/raw4 -force
Now formatting voting disk: /dev/raw/raw4
successful addition of votedisk /dev/raw/raw4.
--这里显示正常:
# crsctl query css votedisk
0.     0    /dev/raw/raw3
1.     0    /dev/raw/raw4

located 2 votedisk(s).

再次添加一个VOTEDISK盘
# crsctl add css votedisk /dev/raw/raw5 -force
Now formatting voting disk: /dev/raw/raw5
successful addition of votedisk /dev/raw/raw5.
# crsctl query css votedisk
0.     0    /dev/raw/raw3
1.     0    /dev/raw/raw5
2.     0    /dev/raw/raw5

located 3 votedisk(s).
]发现:裸设备raw4备份覆盖了!!
我删除:raw5
# crsctl delete css votedisk /dev/raw/raw5 -force
successful deletion of votedisk /dev/raw/raw5.
# crsctl query css votedisk
0.     0    /dev/raw/raw3
1.     0    /dev/raw/raw5

located 2 votedisk(s).
添加:raw4
# crsctl add css votedisk /dev/raw/raw4 -force
Now formatting voting disk: /dev/raw/raw4
successful addition of votedisk /dev/raw/raw4.
# crsctl query css votedisk
0.     0    /dev/raw/raw3
1.     0    /dev/raw/raw4
2.     0    /dev/raw/raw4

located 3 votedisk(s).
发现:裸设备raw5备份覆盖了!!

请问造成上述裸设备前一个被后一个覆盖,并造成混乱是什么原因引起的,有办法解决上述问题没有?

xifenfei 发表于 2014-1-8 09:38:27

你使用的是raw,没有实现磁盘的持久化,在磁盘名称发生改变的时候,就发生你这样类似情况

建议使用asmlib or md实现持久化

北京郝非非 发表于 2014-1-8 09:42:31

原来是磁盘名发生改变导致这种情况啊,我上次也碰到过这种情况,没弄明白怎么回事,学习了。
楼主可以删除两次/dev/raw/raw4后再添加应该就可以了。
页: [1]
查看完整版本: 虚拟机添加votedisk异常,寻求帮助