免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2353 | 回复: 0
打印 上一主题 下一主题

Solaris 手动安装package过程的一些疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-26 13:58 |只看该作者 |倒序浏览
本帖最后由 shyjack 于 2011-08-26 13:59 编辑

最近工作中的一个任务是将全部系统都做个一flar archive,当系统出现问题的时候,我们可以用这个flar进行jumpstart 恢复。

系统是用solaris 10 u5 (SUNWCreq) 方式安装的,后来又装了 2010 Jan 的patch cluster。
居然发现 /usr/sbin/flarcreate 命令不存在。

于是在另外一台机器上查看
ted:/ # grep flarcreate /var/sadm/install/contents
/usr/sbin/flarcreate f none 0755 root bin 39828 34479 1179250311 SUNWinst
/usr/share/man/man1m/flarcreate.1m f none 0644 root root 14396 5049 1179538528 SUNWman
ted:/ #
原来是在SUNWinst包里面,在目标机器上查看 SUNWinst,确实包不存在,看来得手工安装。
又查了2010 Jan 的patch cluster, 只有2个patch需要重新安装。 119081-25  124630-33。
跟Oracle 开了一个case,确认重新安装完package后,这两个patch会变成partitally installed, 不需要卸载,直接patchadd即可。

我最初的想法很简单,把SUNWinst 包从solaris 10的DVD中tar出来,手动安装这个包到目标系统上,然后在patchadd那两个patch,到目前还没有问题。

等我准备从DVD里面tar SUNWinst这个包的时候,才发现, 坑爹啊,SUNWinst/reloc 下面居然是空的, 什么文件也没有。
ted:/jumpstart/install/media/Solaris_10_05_08_sparc/Solaris_10/Product/SUNWinst # ls -ltr
total 12
-rw-r--r--   1 root     root         947 Mar 25  2008 pkginfo
drwxr-xr-x   2 root     root         512 Mar 25  2008 reloc
-rw-r--r--   1 root     root        1724 Mar 25  2008 pkgmap
drwxr-xr-x   2 root     root         512 Mar 25  2008 install
drwxr-xr-x   2 root     root         512 Mar 25  2008 archive
ted:/jumpstart/install/media/Solaris_10_05_08_sparc/Solaris_10/Product/SUNWinst # ls -ltrR
.:
total 12
-rw-r--r--   1 root     root         947 Mar 25  2008 pkginfo
drwxr-xr-x   2 root     root         512 Mar 25  2008 reloc
-rw-r--r--   1 root     root        1724 Mar 25  2008 pkgmap
drwxr-xr-x   2 root     root         512 Mar 25  2008 install
drwxr-xr-x   2 root     root         512 Mar 25  2008 archive

./reloc:
total 0

./install:
total 10
-rw-r--r--   1 root     root         989 Jan 10  2005 depend
-rw-r--r--   1 root     root          93 Jan 10  2005 copyright
-rw-r--r--   1 root     root        2369 Mar 25  2008 i.none

./archive:
total 256
-rw-r--r--   1 root     root      114988 Mar 25  2008 none.7z
ted:/jumpstart/install/media/Solaris_10_05_08_sparc/Solaris_10/Product/SUNWinst #

但是看pkgmap介绍,flarcreate 就应该出自这个包
ted:/jumpstart/install/media/Solaris_10_05_08_sparc/Solaris_10/Product/SUNWinst # grep flarcreate pkgmap
1 f none usr/sbin/flarcreate 0755 root bin 39828 34479 1190425564
ted:/jumpstart/install/media/Solaris_10_05_08_sparc/Solaris_10/Product/SUNWinst #

其实 flarcreate 在 Tools/Boot中
ted:/jumpstart/install/media/Solaris_10_05_08_sparc # find . -name flarcreate
./Solaris_10/Tools/Boot/usr/sbin/flarcreate
ted:/jumpstart/install/media/Solaris_10_05_08_sparc #

这些彻底糊涂了, 我要如何才能手工安装 SUNWinst 这个包呢?

多谢了,希望大家帮忙。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP