Solaris のシステム管理 (基本編)

ディスクレスクライアントの OS パッチの追加方法

  1. サーバーでスーパーユーザーになるか、同等の役割を引き受けます。

    詳細については、スーパーユーザー (ルート) になるか役割を引き受ける方法を参照してください。

  2. ディスクレスクライアントシステムにログインし、シャットダウンします。


    # init 0
    
  3. パッチをスプールディレクトリに追加します。


    # /usr/sadm/bin/smosservice patch -- -a /var/patches/patch-ID-revision
    Authenticating as user: root
    
    Type /? for help, pressing <enter> accepts the default denoted by [ ]
    Please enter a string value for: password :: 
    Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
    Login to starbug as user root was successful.
    Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug 
    was successful.

    追加するパッチが別のパッチに依存する場合は、次のメッセージが表示され、パッチを追加できません。


    The patch patch-ID-revision could not be added 
    because it is dependent on other patches which have not yet been spooled. 
    You must add all required patches to the spool first.

  4. パッチがスプールされたことを確認します。


    # /usr/sadm/bin/smosservice patch -- -P
    
  5. スプールされたパッチをディスクレスクライアントにプッシュします。


    # /usr/sadm/bin/smosservice patch -- -m -U
    Authenticating as user: root
    
    Type /? for help, pressing <enter> accepts the default denoted by [ ]
    Please enter a string value for: password :: 
    Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
    Login to starbug as user root was successful.
    Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug 
    was successful.

    注 –

    パッチをディスクレスクライアントにプッシュおよび同期させるには、1 パッチあたり最大 90 分ほどかかることがあります。


  6. パッチがディスクレスクライアントに適用されたことを確認します。


    # /usr/sadm/bin/smosservice patch -- -P
    Authenticating as user: root
    
    Type /? for help, pressing <enter> accepts the default denoted by [ ]
    Please enter a string value for: password :: 
    Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
    Login to starbug as user root was successful.
    Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug 
    was successful.
    Patches In Spool Area
    Os Rel Arch   Patch Id  Synopsis
    -------------------------------------------------------------------------
    8      sparc  111879-01 SunOS 5.8: Solaris Product Registry patch SUNWwsr  
    
    Patches Applied To OS Services
    Os Service                              Patch
    -------------------------------------------------------------------------
    Solaris_8                               
    
    Patches Applied To Clone Areas
    Clone Area                              Patch
    -------------------------------------------------------------------------
    Solaris_8/sun4m           

例 — ディスクレスクライアントの OS パッチを追加する

この例では、Solaris 8 パッチ (111879-01) をサーバーのディスクレスクライアントの OS サービスに追加する方法を示します。


# /usr/sadm/bin/smosservice patch -- -a /var/patches/111879-01
Authenticating as user: root
.
.
.
# /usr/sadm/bin/smosservice patch -- -P
Patches In Spool Area
Os Rel Arch   Patch Id  Synopsis
----------------------------------------------------------------------------
8      sparc  111879-01 SunOS 5.8: Solaris Product Registry patch SUNWwsr   
.
.
.
# /usr/sadm/bin/smosservice patch -- -m -U
Authenticating as user: root
.
.
.
# /usr/sadm/bin/smosservice patch -- -P
Authenticating as user: root
.
.
.
Patches In Spool Area
Os Rel Arch   Patch Id  Synopsis
----------------------------------------------------------------------------
8      sparc  111879-01 SunOS 5.8: Solaris Product Registry patch SUNWwsr   

Patches Applied To OS Services
Os Service                              Patch
----------------------------------------------------------------------------
Solaris_8                               

Patches Applied To Clone Areas
Clone Area                              Patch
----------------------------------------------------------------------------
Solaris_8/sun4m