3流プログラマのメモ書き

元開発職→社内SE→派遣で営業支援の三流プログラマのIT技術メモ書き。 このメモが忘れっぽい自分とググってきた技術者の役に立ってくれれば幸いです。(jehupc.exblog.jpから移転中)

(SunRay)SunRayServerSoftware4.0→4.1、SunRayConnector for Windows2.0→2.1アップデート

自前で構築したSunRayServerSoftwareの4.0から4.1、SunRayConnector for Windows2.0から2.1へのアップデートメモです。

SunRayServerSoftware4.0→4.1

Sun Ray Server Software 4.1 インストールおよび構成マニュアルを参考にしました。

CDがないので、コピーしてたバイナリ(srss_4.1_solaris.zip)をサーバにUPします。
(このZIPファイルはWindows上で解凍するとエラーになりました。Solaris上で解凍したほうが良さそうです。)

後は、以下のようにコマンドを実行します。

# unzip ./srss_4.1_solaris.zip
# cd srss_4.1
# /opt/SUNWut/sbin/utadm -r  ←SunRayサーバをインターコネクトから切断
Sun Ray interconnect framework is not configured
# ./utpreserve  ←SunRay構成を保存
About to carry out the following operations:
Preserve [ data for Sun Ray Data Store ]
Preserve [ data for Admin GUI ]
Preserve [ Kiosk Mode 4.0 configuration ]
Preserve [ data for Authmanager ]
Preserve [ data for utsettings ]
Preserve [ data for utslaunch ]
WARNING: all daemons/services will be stopped now

Continue? ([Y]/N): y

Stopping Sun Ray services, please wait ...
/etc/opt/SUNWut/utadmin.pw
/etc/opt/SUNWut/utadmin.conf
/etc/opt/SUNWut/webadmin/webadmin.conf
/etc/opt/SUNWut/kioskuser.preserved
/etc/opt/SUNWut/policy/utpolicy
/etc/opt/SUNWut/gmSignature
/etc/opt/SUNWut/auth.props
/etc/opt/SUNWut/token.equiv
/etc/opt/SUNWut/auth.permit
/etc/opt/SUNWut/utslaunch_defaults.properties
/etc/opt/SUNWut/utslaunch_mandatory.properties
Creating tarball of preserved files

Compressing tarball of preserved files

********************************************************************
Preservation of Sun Ray Server Software data has completed.  Please
check the log file, /var/adm/log/utpreserve.2014_12_26_16:54:30.log,
for errors.
Please use NFS, FTP, or other media/means to move:
/var/tmp/SUNWut.upgrade/preserve_4.0.tar.gz
to a safe location on another server before performing any OS install.
*********************************************************************

# ./utinstall  ←アップデートシェルスクリプトを実行
(省略)
Accept (Y/N): y
(省略)
<SUNWuti> のインストールに成功しました。
# utinstall   Version: 4.1     2014年xx月xx日 (金) xx時xx分xx秒 JST

Found 4.0 preserved file "/var/tmp/SUNWut.upgrade/preserve_4.0.tar"
directory.

Do you want to restore from this file ([Y]/N): y

In addition to the tarfile /var/tmp/SUNWut.upgrade/preserve_4.0.tar, we
also found the following files/directories under the
/var/tmp/SUNWut.upgrade directory.
/var/tmp/SUNWut.upgrade/USE_OLD_PRESERVED
/var/tmp/SUNWut.upgrade/preserve

Do you want to remove these files/directories ([Y]/N): y
Sun Ray Server Software 4.0              installed
Sun Ray Data Store 3.0                   installed - upgrade required
Kiosk Mode 4.0                           installed

Enter Java v1.5 (or later) location [/usr/java]:  ←そのままEnter

About to carry out the following operations:

Restoring data from 4.0 preserved files.
Upgrade  [ Sun Ray Server Software 4.0 to 4.1  ]
Migrate  [ Sun Ray Data Store 3.0 to 3.1 ]
Migrate  [ Configuration for Sun Ray Admin Server 2.0 ]
Upgrade  [ data for Admin GUI ]
Upgrade  [ Sun Ray Server Software 4.0 French Admin GUI to 4.1 ]
Upgrade  [ Sun Ray Server Software 4.0 Japanese Admin GUI to 4.1 ]
Upgrade  [ Sun Ray Server Software Localized user files 4.0 to 4.1 ]
Upgrade  [ Kiosk Mode 4.0 to 4.1  ]
Install  [ Kiosk Mode 4.1 localized files ]
Upgrade  [ data for Authmanager ]
Upgrade  [ data for utsettings ]
Upgrade  [ data for utslaunch ]
Upgrade  [ Sun Ray Server Software utsunmc modules 4.0 to 4.1 ]

Continue? ([Y]/N): y

Stopping Sun Ray services, please wait ...
(省略  既存のパッケージが一旦削除され、新たなパッケージがインストールされます)
Restoring Kiosk Mode user accounts ...
Validating new user ids.
Validating new user accounts.
Creating kiosk group utkiosk
Configuring new kiosk user accounts:   ←ここの処理に結構時間がかかりました
............................................................................................................................................................................................................................
220 users configured
Restoration of Kiosk Mode data complete
Restoration of Authmgr data complete
Restoration of Utslaunch data complete
(省略)
Installation of Sun Ray Server Software has completed.
The system must be rebooted in order to complete this installation and
before starting the Sun Ray Server Software.
Please check for errors/warnings in
    /var/adm/log/utinstall.2014_12_26_17:22:17.log
+++ Done.

Kioskの設定のところで結構時間がかかりましたが、うまくいきました。

SunRayConnector for Windows2.0→2.1

インストールバイナリを/Desktopにアップします。後は以下のコマンドでアップデートします。

# cd /Desktop
# unzip ./srwc_2.1_solaris.zip
# cd srwc_2.1
# ./installer
Accept (Y/N): y

Sun Ray Connector 2.0 is currently installed.
Do you want to uninstall it
and install Sun Ray Connector 2.1?
Accept (Y/N): y
(省略)
Sun Ray Connector for Microsoft Windows Operating Systems (opt)(i386) 2.1_25
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Enter the name of a pre-existing group for use by the Sun Ray Connector:
srwc     ←最初にインストールした時のグループ名を入力
Using group name srwc..
(省略)
<SUNWuttsc-kiosk> のインストールに成功しました。

その後のアップデートの適用

手元にSunRay関係の139549-05(SunRayCoreServices4.1のパッチ)、139726-03(SunRayConnector for RDS2.1のパッチ)、141177-01(SunRayKioskServices4.1のパッチ) があったのでそれらも適用しました。
(これらのパッチをあてないとフェイルオーバー環境でSunRayConnectorWindows使用時に、既にSunRayセッションができている状態で、別DTUでセッションをつくろうとした時、既存のセッションを引きつかず、新規にセッションを張ってしまう現象が解決されません)
/Deskopに上記アップデートのZIPファイルをアップロードします。
後は以下のようにアップデートを実行します。

# cd /Desktop
# unzip 139549-05.zip
# patchadd 139549-05
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
139549-05
インストールされたパッチを確認中...
Executing prepatch script...
ファイルシステムの容量が十分であることを確認中 (dry run 方法)...
パッチパッケージをインストール中...
パッチ 139549-05 のインストールに成功しました。
See /var/sadm/patch/139549-05/log for details
Executing postpatch script...
パッチパッケージがインストールされました:
  SUNWlibusbut
  SUNWuta
  SUNWutfw
  SUNWutgsm
  SUNWutm
  SUNWuto
  SUNWutps
  SUNWutr
  SUNWutref
  SUNWutscr
  SUNWutsto
  SUNWutxsun

# unzip ./141177-01.zip
# patchadd 141177-01
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
141177-01
インストールされたパッチを確認中...
ファイルシステムの容量が十分であることを確認中 (dry run 方法)...
パッチパッケージをインストール中...
パッチ 141177-01 のインストールに成功しました。
See /var/sadm/patch/141177-01/log for details
パッチパッケージがインストールされました:
  SUNWkio

# unzip ./139726-03.zip
# patchadd 139726-03
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
139726-03
インストールされたパッチを確認中...
ファイルシステムの容量が十分であることを確認中 (dry run 方法)...
パッチパッケージをインストール中...
パッチ 139726-03 のインストールに成功しました。
See /var/sadm/patch/139726-03/log for details

パッチパッケージがインストールされました:
  SUNWuttsc
  SUNWuttsc-kiosk