FS双机异常

发布时间:  2015-06-05 浏览次数:  391 下载次数:  0
问题描述
文件服务器VCS安装完毕后无法启动VCS程序。
FS1:~ # hastart
FS1:~ # hastatus -sum
VCS ERROR V-16-1-10600 Cannot connect to VCS engine
VCS WARNING V-16-1-11046 Local system not available
处理过程
1、 查看enginA.log日志,发现重复提示以下报错:
2015/03/17 19:34:51 VCS NOTICE V-16-1-11022 VCS engine (had) started
2015/03/17 19:34:51 VCS NOTICE V-16-1-11027 VCS engine startup arguments=-restart
2015/03/17 19:34:51 VCS NOTICE V-16-1-11050 VCS engine version=5.1
2015/03/17 19:34:51 VCS NOTICE V-16-1-11051 VCS engine join version=5.1.10.0
2015/03/17 19:34:51 VCS NOTICE V-16-1-11052 VCS engine pstamp=5.1.100.000-5.1SP1GA-2010-09-30_23.30.00
2015/03/17 19:34:51 VCS NOTICE V-16-1-10114 Opening GAB library
2015/03/17 19:34:51 VCS NOTICE V-16-1-10619 'HAD' starting on: FS1
2015/03/17 19:34:51 VCS INFO V-16-1-10196 Cluster logger started
2015/03/17 19:34:51 VCS INFO V-16-1-10125 GAB timeout set to 30000 ms
2015/03/17 19:34:51 VCS ERROR V-16-1-10116 GabHandle::open failed errno = 2
2015/03/17 19:34:51 VCS ERROR V-16-1-11033 GAB open failed. Exiting
2、 执行gabconfig –l,发现GAB不能打开。
# gabconfig -l
GAB gabconfig ERROR V-15-2-25022 gabconfig: open failed : unknown error
3、 发现问题原因为GAB损坏,将VCS卸载再重新安装进行尝试,故障未恢复,日志出现相同报错。
4、
从卸载日志看来,这些VCS的包并没有成功卸载。
.............
0 18:48:58 Veritas Cluster Server Uninstall did not complete successfully
0 18:48:58 VRTSamf rpm failed to uninstall on FS1
0 18:48:58 VRTSvxfen rpm failed to uninstall on FS1
0 18:48:58 VRTSgab rpm failed to uninstall on FS1
0 18:48:58 VRTSllt rpm failed to uninstall on FS1

安装日志信息:
17:25:48 Current VRTSvlic version 3.02.51.010 is installed on FS1
0 17:25:48 Current VRTSperl version 5.10.0.5 is installed on FS1
0 17:25:48 Current VRTSspt version 5.5.000.005 is installed on FS1
0 17:25:48 Current VRTSatClient version 5.0.32.0 is installed on FS1
0 17:25:48 Current VRTSatServer version 5.0.32.0 is installed on FS1
0 17:25:48 Current VRTSllt version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSgab version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSvxfen version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSamf version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSvcs version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTScps version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSvcsag version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSvcsdr version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSvcsea version 5.1.100.000 is installed on FS1
0 17:25:48 Current VRTSvlic version 3.02.51.010 is installed on FS2
0 17:25:48 Current VRTSperl version 5.10.0.5 is installed on FS2
0 17:25:48 Current VRTSspt version 5.5.000.005 is installed on FS2
0 17:25:48 Current VRTSatClient version 5.0.32.0 is installed on FS2
0 17:25:48 Current VRTSatServer version 5.0.32.0 is installed on FS2
0 17:25:48 Current VRTSllt version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSgab version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSvxfen version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSamf version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSvcs version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTScps version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSvcsag version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSvcsdr version 5.1.100.000 is installed on FS2
0 17:25:48 Current VRTSvcsea version 5.1.100.000 is installed on FS2
0 17:25:48 No rpms will be installed on all systems.

从上面的log看, 重复的安装并没有真正的安装。
5、 在服务器上查看VRTS开头的包:
FS1:/opt/VRTS/install # rpm -qa|grep VRTS*
VRTSvxfen-5.1.100.000-SP1GA_SLES11
VRTSgab-5.1.100.000-SP1GA_SLES11
VRTSllt-5.1.100.000-SP1GA_SLES11
VRTSamf-5.1.100.000-SP1GA_SLES11
6、 尝试卸载这四个包:
FS1:/opt/VRTS/install # rpm -e VRTSvxfen-5.1.100.000-SP1GA_SLES11
find: `/opt/VRTSvxfen': No such file or directory
error: %preun(VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64) scriptlet failed, exit status 1
FS1:/opt/VRTS/install # rpm -e VRTSgab-5.1.100.000-SP1GA_SLES11
error: Failed dependencies:
        VRTSgab is needed by (installed) VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64
FS1:/opt/VRTS/install # rpm -e VRTSllt-5.1.100.000-SP1GA_SLES11
error: Failed dependencies:
        liblltdb.so is needed by (installed) VRTSgab-5.1.100.000-SP1GA_SLES11.x86_64
        liblltdb.so is needed by (installed) VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64
        VRTSllt is needed by (installed) VRTSgab-5.1.100.000-SP1GA_SLES11.x86_64
FS1:/opt/VRTS/install # rpm -e VRTSamf-5.1.100.000-SP1GA_SLES11
find: `/opt/VRTSamf': No such file or directory
error: %preun(VRTSamf-5.1.100.000-SP1GA_SLES11.x86_64) scriptlet failed, exit status 1
7、 提示执行preun脚本失败,使用nopreun参数再次进行卸载:
FS1:/tmp # rpm -e  --nopreun VRTSvxfen-5.1.100.000-SP1GA_SLES11
/bin/rmdir: failed to remove `/opt/VRTSvxfen/modules': No such file or directory
/bin/rmdir: failed to remove `/opt/VRTS/messages/en': No such file or directory
/bin/rmdir: failed to remove `/opt/VRTSvcs/vxfen/bin': No such file or directory
/bin/rmdir: failed to remove `/opt/VRTS/man/man4': No such file or directory
error: %postun(VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64) scriptlet failed, exit status 1
8、 由于卸载提示找不到相应的包,考虑将程序重新安装后再卸载:
FS1:/opt/dvd2-suselinux/sles11_x86_64/rpms # rpm -Uvh VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64.rpm
Preparing...                ########################################### [100%]
        package VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64 is already installed
FS1:/opt/dvd2-suselinux/sles11_x86_64/rpms # rpm -e VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64.rpm
error: package VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64.rpm is not installed
FS1:/opt/dvd2-suselinux/sles11_x86_64/rpms # rpm -Uvh --force VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64.rpm
Preparing...                ########################################### [100%]
   1:VRTSvxfen              ########################################### [100%]
FS1:/opt/dvd2-suselinux/sles11_x86_64/rpms # rpm -e VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64.rpm
error: package VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64.rpm is not installed
9、 卸载提示rpm包未安装,使用rpm –qa命令进行查看:
FS1:/opt/dvd2-suselinux/sles11_x86_64/rpms # cd /
FS1:/ # rpm -qa|grep VRTS*
VRTSgab-5.1.100.000-SP1GA_SLES11
VRTSvxfen-5.1.100.000-SP1GA_SLES11
VRTSllt-5.1.100.000-SP1GA_SLES11
VRTSamf-5.1.100.000-SP1GA_SLES11
10、 发现在该目录下无法扫描到 rpm包,退至根目录才能扫描到。在根目录下再次尝试卸载该rpm包成功。
11、 使用该方法成功卸载三个包,在进行第四个包卸载时,出现报错:
FS1:/ # rpm -qa|grep VRTS*
VRTSllt-5.1.100.000-SP1GA_SLES11
FS1:/ # rpm -Uvh --force /opt/dvd2-suselinux/sles11_x86_64/rpms/VRTSllt-5.1.100.000-SP1GA_SLES11.x86_64.rpm
Preparing...                ########################################### [100%]
   1:VRTSllt                ########################################### [100%]
FS1:/ # rpm -e --nodeps VRTSllt-5.1.100.000-SP1GA_SLES11
/bin/rmdir: failed to remove directory `/opt'
/bin/rmdir: failed to remove `/opt/VRTS/bin': No such file or directory
error: %postun(VRTSllt-5.1.100.000-SP1GA_SLES11.x86_64) scriptlet failed, exit status 1
FS1:/ # rpm -qa|grep VRTS*
VRTSllt-5.1.100.000-SP1GA_SLES11
12、 提示执行postun脚本失败,加上-noscripts参数不运行预安装和后安装脚本程序,成功卸载该rpm包。
13、 重新安装VCS软件,启动成功。
根因
在第一次安装时,损坏了GAB文件,造成卸载脚本无法正常卸载所有VCS的包。而这些包已经损坏,重新安装时程序检查到这些包已经安装就会跳过,并不会覆盖安装这些包。这些包始终处于损坏状态,卸载和安装脚本不能对其进行重置,导致VCS应用始终不能正常使用。
建议与总结
1. 对应rpm包卸载时出现%preun报错的,例如
error: %preun(VRTSvxfen-5.1.100.000-SP1GA_SLES11.x86_64) scriptlet failed, exit status 1
可加上--nopreun参数进行尝试。
2. 对应rpm包安装时提示存在依赖关系的,可加上-- nodeps参数进行尝试。
3. 对应rpm包卸载时提示%postun的,可加上-noscripts参数进行尝试。
4. 某些目录下无法扫描到 rpm包时,可尝试退至根目录扫描。
5. 在某些时候使用安装和卸载脚本无法正常安装时,需要检查日志文件,查看需要卸载的项是否都卸载成功,安装时是否有跳过某些组件。然后进行手工卸载干净后,再次尝试安装。

END