veritas sf4.1 for linux 无法安装

2793阅读 0评论2007-10-28 blue_stone
分类:LINUX

一直以来比较喜欢Veritas,觉得他们的东西支持很多平台,并且做的很底层的东东,今天在一个athlon cpu 的rhel4上测试了一把,看看传说中的vxvm & vxfs,没想到被拒之门外了。

在安装过程中,提示:

    Installing VRTSvxvmcommon 4.1.20.00 on sf4 .............................................................. ERROR 4 of 20 steps
error: %pre(VRTSvxvm-common-4.1.20.00-MP2_RHEL4.i686) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping VRTSvxvm-common-4.1.20.00-MP2_RHEL4
error: %pre(VRTSvxvm-common-4.1.20.00-MP2_RHEL4.i686) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping VRTSvxvm-common-4.1.20.00-MP2_RHEL4
error: %pre(VRTSvxvm-common-4.1.20.00-MP2_RHEL4.i686) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping VRTSvxvm-common-4.1.20.00-MP2_RHEL4


除vxvmcommon外,还有两个软件包vxvm-platform, lvmconv无法安装,原因是依赖于vxvmcommon.

进入rpms目录收工安装vxvmcommon

[root@sf4 tmp]# rpm -ivh VRTSvxvm-common-4.1.20.00-MP2_RHEL4.i686.rpm
Preparing...                ########################################### [100%]
This package is not built for athlon processors. Exiting.
error: %pre(VRTSvxvm-common-4.1.20.00-MP2_RHEL4.i686) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping VRTSvxvm-common-4.1.20.00-MP2_RHEL4

提示这个包不是用于athlon的, 使用rpm -ivvh安装包,可以得到更详细的错误信息.

将该包使用alien 转换成dpkg格式,然后用ar解开可以看到完整的脚本内容。

blueice2:/tmp# alien --scripts VRTSvxvm-common-4.1.20.00-MP2_RHEL4.i686.rpm
vrtsvxvm-common_4.1.20.00-1_i386.deb generated
blueice2:/tmp# ar -x vrtsvxvm-common_4.1.20.00-1_i386.deb
blueice2:/tmp# mkdir vxvm
blueice2:/tmp# cd vxvm
blueice2:/tmp/vxvm# ls
blueice2:/tmp/vxvm# tar zxvf ../control.tar.gz
./
./md5sums
./postinst
./conffiles
./preinst
./control
./prerm
./postrm
blueice2:/tmp/vxvm# ls -al
总计 112
drwxr-xr-x  2 root root  4096 2007-10-28 21:12 .
drwxrwxrwt 13 root root  4096 2007-10-28 21:13 ..
-rw-r--r--  1 root root  3587 2007-10-28 21:12 conffiles
-rw-r--r--  1 root root   352 2007-10-28 21:12 control
-rw-r--r--  1 root root 15232 2007-10-28 21:12 md5sums
-rwxr-xr-x  1 root root 60338 2007-10-28 21:12 postinst
-rwxr-xr-x  1 root root  2894 2007-10-28 21:12 postrm
-rwxr-xr-x  1 root root  6201 2007-10-28 21:12 preinst
-rwxr-xr-x  1 root root  3029 2007-10-28 21:12 prerm

preinst即为vxvm-common安装前的检查脚本,有兴趣的朋友可以改一下, 然后打包回rpm安装试下.
上一篇:PPLive on Linux ?!
下一篇:Linux下OEM无法保存首选认证方式