- 论坛徽章:
- 0
|
本帖最后由 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 这个包呢?
多谢了,希望大家帮忙。 |
|