Solaris 补丁的安装方法

weixin_38048553 2005-09-08 03:59:59

近日看到很多朋友在询问solaris补丁的安装方法,刚好这两天我也安装了一下,
所以拿出来和大家共享。
希望对大家有用。
(关键是要以但用户模式启动)
这是一个转载的solaris789PTF的安装方法摘要。
---------------------------
PTF Installation Procedure:
---------------------------

PTF Installation on PRIMEPOWER 200/250/400/450/600/650/850 and
GP7000F model 200/200R/400/400A/400R/600/600R:
------------------------------------------------------

  In the Console window of the system to be patched, become superuser and
  shutdown the system.
  +---------------------------------------------------------------------------+
  |% su                                                                       |
  |Password:<password>;                                                        |
  |# /usr/sbin/shutdown -y -i0                                                |
  +---------------------------------------------------------------------------+
  Boot the system in single-user mode.
  +---------------------------------------------------------------------------+
  |{0} ok boot -s                                                             |
  | .                                                                         |
  | .                                                                         |
  | .                                                                         |
  |INIT: SINGLE USER MODE                                                     |
  |Type Ctrl-d to proceed with normal startup,                                |
  |(or give root password for system maintenance):<password>;                  |
  +---------------------------------------------------------------------------+
  Mount all file systems.
  +---------------------------------------------------------------------------+
  |# /usr/sbin/mountall -l                                                    |
  +---------------------------------------------------------------------------+
  Start Volume Management
  +---------------------------------------------------------------------------+
  |# /etc/init.d/volmgt start                                                 |
  +---------------------------------------------------------------------------+
  Insert the correct Solaris OS level PTF CD-ROM for your operating system or
  the Unbundled PTF CD-ROM in the CD-ROM drive.

  Install all patches from the SOLOS list by running the Rpatchadd command.
  For more information on the command refer to the Rpatchadd(1M) man page in
  the PTF Guide section 4.1.
  The below is an example of the installation of all Solaris 7 OS patches on
  a PRIMEPOWER 200, 400, 600.
  +---------------------------------------------------------------------------+
  |# cd /cdrom/cdrom0/bin                                                     |
  |# ./Rpatchadd -P SOLOS                                                     |
  |                                                                           |
  |Hardware Platform: FJSV,GPUS    PRIMEPOWER 200,400,600 / GP7000F model 200,|
  |400,600                                                                    |
  |CPU              : FJSV,SPARC64-III  SPARC64-III(less than 360MHz)         |
  |OS Version       : 5.7          Solaris 7(SunOS5.7)                        |
  |Cluster          : 7                                                       |
  |Sub Cluster      : SOLOS        SOLOS contains all patches                 |
  |Patch List       : .FUS_SOLOS                                              |
  |                                                                           |
  |CD-ROM      : Solaris7                                                     |
  |PTF         : R05081                                                       |
  |                                                                           |
  |Type 'y' to continue, 'n' to break: y                                      |
  | .                                                                         |
  | .                                                                         |
  | .                                                                         |
  |Rpatchadd completed.                                                       |
  |See on line 1 of /var/sadm/ptf/log1 for more details                       |
  |#                                                                          |
  +---------------------------------------------------------------------------+

  Install any required unbundled patches by running the Rpatchadd command.
  For more information on the command refer to the Rpatchadd(1M) man page in
  the PTF Guide section 4.1.
  For a list of all unbundled patches refer to Appendix A in the "TF Guide
  Solaris Unbundled PTF for Solaris OS" of "README".
  The below is an example of the installation of the unbundled patches for
  pgx32-2.1 software.
  +---------------------------------------------------------------------------+
  |# ./Rpatchadd pgx32-2.1                                                    |
  |                                                                           |
  |CD-ROM      : Unbundled2                                                   |
  |PTF         : R05081                                                       |
  |                                                                           |
  |Type 'y' to continue, 'n' to break: y                                      |
  | .                                                                         |
  | .                                                                         |
  | .                                                                         |
  |Rpatchadd completed.                                                       |
  |See on line 3676 of /var/sadm/ptf/log1 for more details                    |
  |#                                                                          |
  +---------------------------------------------------------------------------+

  Check patch installation log files in /var/sadm/ptf directory for warnings
  and errors. For more information on messages in the log files refer to
  section 2.6(each OS) or section 2.7 (Unbundled) in each PTF Guide.
  Check the installed patch information by executing the Rpatchinfo command.
  +---------------------------------------------------------------------------+
  |# ./Rpatchinfo -i -L                                                       |
  |ID   S NAME         VERSION     CLUSTER    PATCH-LIST     TIME             |
  |0001 a Solaris7     R05081      7          .7             050729:09:19:00  |
  |0002 a Unbundled2   R05081      pgx32-2.1  .pgx32-2.1     050729:11:33:00  |
  +---------------------------------------------------------------------------+

  Change directory to /, eject the CD-ROM, and reboot the system.
  +---------------------------------------------------------------------------+
  |# cd /                                                                     |
  |# eject cdrom                                                              |
  |# /usr/sbin/shutdown -y -i6 -g0                                            |
  +---------------------------------------------------------------------------+


PTF Installation on PRIMEPOWER 800/900/1000/1500/2000/2500/HPC2500 and
GP7000F model 800/1000/2000:
----------------------------------------------------------------------

  In the RC2000 window for the partition to be patched, become superuser and
  shutdown the partition.
  +---------------------------------------------------------------------------+
  |partition# su                                                              |
  |Password:<password>;                                                        |
  |partition# /usr/sbin/shutdown -y -i0                                       |
  +---------------------------------------------------------------------------+
  Boot the partition in single-user mode.
  +---------------------------------------------------------------------------+
  |{0} ok boot -s                                                             |
  | .                                                                         |
  | .                                                                         |
  | .                                                                         |
  |INIT: SINGLE USER MODE                                                     |
  |Type Ctrl-d to proceed with normal startup,                                |
  |(or give root password for system maintenance):<password>;                  |
  +---------------------------------------------------------------------------+
  Mount all file systems.
  +---------------------------------------------------------------------------+
  |partition# /usr/sbin/mountall -l                                           |
  +---------------------------------------------------------------------------+
  Activate the network.
  +---------------------------------------------------------------------------+
  |partition# /etc/init.d/inetinit start                                      |
  +---------------------------------------------------------------------------+
  Start the RPC service.
  +---------------------------------------------------------------------------+
  |partition# /etc/init.d/rpc start                                           |
  +---------------------------------------------------------------------------+
  Activate the network interface.
  +---------------------------------------------------------------------------+
  |partition# /etc/init.d/inetsvc start                                       |
  +---------------------------------------------------------------------------+
  Start the NFS client.
  +---------------------------------------------------------------------------+
  |partition# /etc/init.d/nfs.client start                                    |
  +---------------------------------------------------------------------------+

  Insert the correct Solaris OS level PTF CD-ROM for your operating system or
  the Unbundled PTF CD-ROM in the System Management Console (SMC) CD-ROM drive.

  NFS Mount the CD-ROM on the partition to be patched.
  +---------------------------------------------------------------------------+
  |partition# /usr/sbin/mount -F nfs -o ro <SMC hostname>;:/cdrom/cdrom0 /mnt  |
  +---------------------------------------------------------------------------+

  Install all patches from the SOLOS list by running the Rpatchadd command.
  For more information on the command refer to the Rpatchadd(1M) man page,
  section 4.1 in each PTF Guide.
  The below is an example of the installation of all Solaris 7 OS patches on
  a PRIMEPOWER model 800, 1000, or 2000.
  +---------------------------------------------------------------------------+
  |partition# cd /mnt/bin                                                     |
  |partition# ./Rpatchadd -P SOLOS                                            |
  |                                                                           |
  |Hardware Platform: FJSV,GPUSK   PRIMEPOWER 800,1000,2000 / GP7000F model 10|
  |00,2000                                                                    |
  |CPU              : FJSV,SPARC64-IV   SPARC64-IV(equal or more than 360MHz) |
  |OS Version       : 5.7          Solaris 7(SunOS5.7)                        |
  |Cluster          : 7                                                       |
  |Sub Cluster      : SOLOS        SOLOS contains all patches                 |
  |Patch List       : .FUKK_SOLOS                                             |
  |                                                                           |
  |CD-ROM      : Solaris7                                                     |
  |PTF         : R05081                                                       |
  |                                                                           |
  |Type 'y' to continue, 'n' to break: y                                      |
  | .                                                                         |
  | .                                                                         |
  | .                                                                         |
  |Rpatchadd completed.                                                       |
  |See on line 1 of /var/sadm/ptf/log1 for more details                       |
  |partition#                                                                 |
  +---------------------------------------------------------------------------+

  Install any required unbundled patches by running the Rpatchadd command.
  For a list of all unbundled patches refer to Appendix A in the "TF Guide
  Solaris Unbundled PTF for Solaris OS" of "README".
  The below is an example of the installation of the unbundled patches for
  ESF1.6 software.
  +---------------------------------------------------------------------------+
  |partition# ./Rpatchadd ESF1.6                                              |
  |                                                                           |
  |CD-ROM      : Unbundled1                                                   |
  |PTF         : R05081                                                       |
  |                                                                           |
  |Type 'y' to continue, 'n' to break: y                                      |
  | .                                                                         |
  | .                                                                         |
  | .                                                                         |
  |Rpatchadd completed.                                                       |
  |See on line 3676 of /var/sadm/ptf/log1 for more details                    |
  |partition#                                                                 |
  +---------------------------------------------------------------------------+

  Check patch installation log files in /var/sadm/ptf directory for warnings
  and errors. For more information on messages in the log files refer to
  section 2.6(each OS) or section 2.7(Unbundled) in each PTF Guide.
  Check the installed patch information by executing the Rpatchinfo command.
  +---------------------------------------------------------------------------+
  |partition# ./Rpatchinfo -i -L                                              |
  |ID   S NAME         VERSION     CLUSTER    PATCH-LIST     TIME             |
  |0001 a Solaris7     R05081      7          .7             050729:09:19:00  |
  |0002 a Unbundled1   R05081      ESF1.6     .ESF1.6        050729:11:33:00  |
  +---------------------------------------------------------------------------+

  Change directory to /, unmount the shared CD-ROM, and reboot the partition.
  +---------------------------------------------------------------------------+
  |partition# cd /                                                            |
  |partition# /usr/sbin/umount /mnt                                           |
  |partition# /usr/sbin/shutdown -y -i6 -g0                                   |
  +---------------------------------------------------------------------------+
  On the SMC, change directory to / and eject the CD-ROM.
  +---------------------------------------------------------------------------+
  |smc# cd /                                                                  |
  |smc# eject cdrom                                                           |
  +---------------------------------------------------------------------------+
...全文
24 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复

477

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧