Solaris 11


Solaris11について

 Oracle Document

Solaris Express 11からのUpdate手順。

http://docs.oracle.com/cd/E23824_01/html/E23811/glpgv.html#scrolltoc

 無保証無理矢理Solaris Express 11 から Solaris 11 への Update

上記の方法ではないけど、仮想環境上で試してみた。一応Updateは普通にできた。
ドキュメントに書いてあるように、Solaris Express 11からのアップデートはSRU12以降からアップデートしろって書いてるが、
Oracle Premium Supportなんて入ってないので、特にUpdateしていないものをUpdateした。
やった手順
publisherの確認

root@solaris11:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                               origin   online   http://pkg.oracle.com/solaris/release/

上記のようになってなかったら、変更を。
pkgコマンドの更新

# pkg update pkg:/package/pkg

pkgを書き換えた環境を有効にする

# reboot

最新のpkg (Solaris 11)のパッケージに書き換えた後に、バージョン確認後にアップデート

root@solaris11:~# pkg version
a6782843ee0c
root@solaris11:~# pkg update --accept

時間がかかるのでまったり待ちましょう。
Updateが終わったら、再度再起動

root@solaris11:~# reboot

起動時のメッセージが、

SunOS Release 5.11 Version 11.0 64-bit

になってれば成功
最初の起動は色々再設定されるのでちょっと待つ事が。

 インストール前に

とりあえず、Oracleのサイトでこのドキュメントは読んでおきましょう。

 普通にインストール

(ry

 ローカルリポジトリサーバの構築と設定

社内で複数のSolaris11 機を動かすような場合にはこの方法が比較的楽。
Opracle Premium Support入っていれば、ちょっと設定変るかも。
ローカルにリポジトリサーバを構築してUpdate先を変更する手順
・CDのイメージをサーバへコピーして、解凍&結合する。

solaris11:~$ unzip sol-11-1111-repo-full-iso-a.zip ; unzip sol-11-1111-repo-full-iso-b.zip
Archive:  sol-11-1111-repo-full-iso-a.zip
  inflating: sol-11-1111-repo-full.iso-a
Archive:  sol-11-1111-repo-full-iso-b.zip
  inflating: sol-11-1111-repo-full.iso-b
solaris11:~$ cat sol-11-1111-repo-full.iso-a sol-11-1111-repo-full.iso-b > sol-11-1111-repo-full.iso

・CDの中身をコピーする先を作成

root@solaris11:~# zfs create rpool/export/repoSolaris11
root@solaris11:~# zfs set atime=off rpool/export/repoSolaris11

・CDのイメージをマウント

root@solaris11:~# lofiadm -a ~yourhome/sol-11-1111-repo-full.iso
/dev/lofi/1
root@solaris11:~# lofiadm
Block Device             File                           Options
/dev/lofi/1              /home/yourhome/sol-11-1111-repo-full.iso       -
root@solaris11:~# mount -F hsfs /dev/lofi/1 /mnt
root@solaris11:~# df -k /mnt
Filesystem           1024-blocks        Used   Available Capacity  Mounted on
/dev/lofi/1              6778178     6778178           0   100%    /mnt

・イメージの中のレポジトリをコピー

root@solaris11:~# rsync -aP /mnt/repo /export/repoSolaris11

それなりに時間かかるのでまったり待つ

repo/publisher/solaris/tmp/
repo/publisher/solaris/tmp/lock
           0 100%    0.00kB/s    0:00:00 (xfer#290179, to-check=0/294736)
repo/publisher/solaris/trans/

sent 6572418485 bytes  received 5531645 bytes  9554030.69 bytes/sec
total size is 6545760958  speedup is 1.00

・マウントしてたイメージの解除

root@solaris11:~# umount /mnt
root@solaris11:~# lofiadm
Block Device             File                           Options
/dev/lofi/1              /home/yourhome/sol-11-1111-repo-full.iso       -
root@solaris11:~#  lofiadm -d /dev/lofi/1
root@solaris11:~#  lofiadm
Block Device             File                           Options
root@solaris11:~#

・コピーした先をリポジトリサーバへ登録

root@solaris11:~# pkgrepo -s  /export/repoSolaris11/repo/ refresh
Initiating repository refresh.

・リポジトリサーバの設定&起動

root@solaris11:~# svccfg -s application/pkg/server setprop pkg/inst_root=/export/repoSolaris11/repo
root@solaris11:~# svccfg -s application/pkg/server setprop pkg/readonly=true
root@solaris11:~# svcprop -p pkg/inst_root application/pkg/server
/export/repoSolaris11/repo
root@solaris11:~# svccfg -s application/pkg/server setprop pkg/port=90  // 待ち受けポートの指定
root@solaris11:~# svccfg -s pkg/server editprop

select svc:/application/pkg/server

# Property group "pkg"
# delprop pkg
# addpg pkg application
# setprop pkg/address = net_address:
# setprop pkg/cfg_file = astring:
# setprop pkg/content_root = astring: usr/share/lib/pkg
# setprop pkg/debug = astring:
# setprop pkg/file_root = astring:
# setprop pkg/log_access = astring: none
# setprop pkg/log_errors = astring: stderr
# setprop pkg/mirror = boolean: false
# setprop pkg/pkg_root = astring: /
# setprop pkg/proxy_base = astring:
# setprop pkg/socket_timeout = count: 60
# setprop pkg/sort_file_max_size = astring:
# setprop pkg/ssl_cert_file = astring:
# setprop pkg/ssl_dialog = astring: smf
# setprop pkg/ssl_key_file = astring:
# setprop pkg/threads = count: 60
# setprop pkg/writable_root = astring:
# setprop pkg/inst_root = astring: /export/repoSolaris11/repo
# setprop pkg/readonly = boolean: true
# setprop pkg/port = count: 90

# Property group "pkg_bui"
# delprop pkg_bui
# addpg pkg_bui application
# setprop pkg_bui/feed_description = ustring:
# setprop pkg_bui/feed_icon = ustring: web/_themes/pkg-block-icon.png
# setprop pkg_bui/feed_logo = ustring: web/_themes/pkg-block-logo.png
# setprop pkg_bui/feed_name = ustring: "package repository feed"
# setprop pkg_bui/feed_window = count: 24

# Property group "pkg_secure"
# delprop pkg_secure
# addpg pkg_secure application
# setprop pkg_secure/read_authorization = astring: solaris.smf.read.pkg-server
# setprop pkg_secure/ssl_key_passphrase = astring:

# Property group "fs"
# delprop fs
# addpg fs dependency
# setprop fs/entities = fmri: svc:/system/filesystem/local
# setprop fs/grouping = astring: require_all
# setprop fs/restart_on = astring: none
# setprop fs/type = astring: service

# Property group "autofs"
# delprop autofs
# addpg autofs dependency
# setprop autofs/entities = fmri: svc:/system/filesystem/autofs
# setprop autofs/grouping = astring: optional_all
# setprop autofs/restart_on = astring: none
# setprop autofs/type = astring: service

# Property group "ntp"
# delprop ntp
# addpg ntp dependency
# setprop ntp/entities = fmri: svc:/network/ntp
# setprop ntp/grouping = astring: optional_all
# setprop ntp/restart_on = astring: none
# setprop ntp/type = astring: service

# Property group "network"
# delprop network
# addpg network dependency
# setprop network/entities = fmri: svc:/milestone/network
# setprop network/grouping = astring: require_all
# setprop network/restart_on = astring: none
# setprop network/type = astring: service

# Property group "manifestfiles"
# delprop manifestfiles
# addpg manifestfiles framework
# setprop manifestfiles/lib_svc_manifest_application_pkg_pkg-server_xml = astring: /lib/svc/manifest/application/pkg/pkg-server.xml

# Property group "general"
# delprop general
# addpg general framework
# setprop general/entity_stability = astring: Unstable

# Property group "start"
# delprop start
# addpg start method
# setprop start/exec = astring: "%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m"
# setprop start/timeout_seconds = count: 0
# setprop start/type = astring: method

# Property group "stop"
# delprop stop
# addpg stop method
# setprop stop/exec = astring: "%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m %{restarter/contract}"
# setprop stop/timeout_seconds = count: 30
# setprop stop/type = astring: method

# Property group "tm_common_name"
# delprop tm_common_name
# addpg tm_common_name template
# setprop tm_common_name/C = ustring: "image packaging repository"


select svc:/application/pkg/server

# Property group "pkg"
# delprop pkg
# addpg pkg application
# setprop pkg/address = net_address:
# setprop pkg/cfg_file = astring:
# setprop pkg/content_root = astring: usr/share/lib/pkg
# setprop pkg/debug = astring:
# setprop pkg/file_root = astring:
# setprop pkg/log_access = astring: none
# setprop pkg/log_errors = astring: stderr
# setprop pkg/mirror = boolean: false
# setprop pkg/pkg_root = astring: /
# setprop pkg/proxy_base = astring:
# setprop pkg/socket_timeout = count: 60
# setprop pkg/sort_file_max_size = astring:
# setprop pkg/ssl_cert_file = astring:
# setprop pkg/ssl_dialog = astring: smf
# setprop pkg/ssl_key_file = astring:
# setprop pkg/threads = count: 60
# setprop pkg/writable_root = astring:
# setprop pkg/inst_root = astring: /export/repoSolaris11/repo
# setprop pkg/readonly = boolean: true
# setprop pkg/port = count: 90

# Property group "pkg_bui"
# delprop pkg_bui
# addpg pkg_bui application
# setprop pkg_bui/feed_description = ustring:
# setprop pkg_bui/feed_icon = ustring: web/_themes/pkg-block-icon.png
# setprop pkg_bui/feed_logo = ustring: web/_themes/pkg-block-logo.png
# setprop pkg_bui/feed_name = ustring: "package repository feed"
# setprop pkg_bui/feed_window = count: 24

# Property group "pkg_secure"
# delprop pkg_secure
# addpg pkg_secure application
# setprop pkg_secure/read_authorization = astring: solaris.smf.read.pkg-server
# setprop pkg_secure/ssl_key_passphrase = astring:

# Property group "fs"
# delprop fs
# addpg fs dependency
# setprop fs/entities = fmri: svc:/system/filesystem/local
root@solaris11:~#

起動

root@solaris11:~# svcadm refresh application/pkg/server
root@solaris11:~# svcadm enable -r application/pkg/server

・pkg publisherの登録されてるサーバを自分のサーバへ変更
うちだとlocalhost:90で上げてるのでそれを設定。

# pkg set-publisher -G '*' -g http://localhost:90/ solaris

中身の確認

# pkgrepo info -s /export/repoSolaris11

root@solaris:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (preferred)  origin   online   http://pkg.oracle.com/solaris/release/
root@solaris:~# pkg set-publisher -P -g http://localhost:90/ solaris
root@solaris:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (preferred)  origin   online   http://localhost:90/
solaris                  (preferred)  origin   online   http://pkg.oracle.com/solaris/release/
root@solaris:~# pkg set-publisher -G http://pkg.oracle.com/solaris/release/ solaris
root@solaris:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (preferred)  origin   online   http://localhost:90/

 ベンチマーク

ディスク系のベンチはfioに移行。RandomでReadとWriteを同時に発行してる。

特に設定弄らずのzfs設定でのraidz (SSDx3)

  • iostatの状況(数T書いた後の状態、同期書込モード)

SSDが恐ろしく劣化してる状態です。速度1/3くらいまで落ちますね。

                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3     1032.4  175.8 65901.6 86803.0  1.9  6.9    7.3   3 122    0 1004
sd13    350.2   55.0 22327.2 28990.0  1.3  5.4   16.4  39  87
sd14    357.3   60.4 22846.7 28897.6  0.3  0.8    2.6   8  18
sd15    324.7   60.4 20713.7 28897.0  0.3  0.8    2.8   8  18
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        2.6    1.5  118.6   31.2  0.0  0.0   16.7   1   2
sd0       2.6    1.5  118.6   31.2  0.0  0.0   16.7   1   2
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3     6147.5  700.2 393440.4 361599.5  4.9 11.9    2.5   9 288    0   90
sd13   2052.1  162.4 131336.7 79662.9  2.2  3.5    2.6  47  97
sd14   2134.3  261.5 136598.2 139320.4  1.3  4.3    2.3  46  96
sd15   1961.0  276.3 125505.5 142616.4  1.3  4.2    2.5  45  95
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3       75.0  129.0 4800.5 77264.3  5.3  5.9   54.5   7 116    0    0
sd13     24.0   55.0 1536.2 37068.0  5.0  5.0  126.5 100 100
sd14     22.0   41.0 1408.2 21762.3  0.2  0.5    9.9   5   8
sd15     29.0   33.0 1856.2 18434.0  0.1  0.4    8.2   4   7
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3       76.0   55.0 4864.0 26690.5  5.0  5.0   76.5   6 102    0   91
sd13     24.0   55.0 1536.0 26690.5  5.0  5.0  126.5 100 100
sd14     27.0    0.0 1728.0    0.0  0.0  0.0    0.4   0   1
sd15     25.0    0.0 1600.0    0.0  0.0  0.0    0.4   0   1
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3       44.0  190.0 2816.0 20883.9  3.9  5.0   38.1   5 102    0   83
sd13     16.0   60.0 1024.0 19033.4  3.9  4.9  116.5  87 100
sd14     16.0   65.0 1024.0  925.5  0.0  0.0    0.5   0   1
sd15     12.0   65.0  768.0  925.0  0.0  0.0    0.4   0   1
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3      118.0  197.0 7552.0 2332.0  2.9  5.0   25.0   5 104    0   83
sd13     43.0   56.0 2752.0  778.0  2.9  4.9   78.8  81 100
sd14     40.0   72.0 2560.0  777.0  0.0  0.0    0.4   0   3
sd15     35.0   69.0 2240.0  777.0  0.0  0.0    0.3   0   2
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3      455.0   23.0 29119.9  144.0  0.1  4.2    9.0   1 111    0   83
sd13    155.0   11.0 9919.9  136.0  0.1  4.0   25.0   8 100
sd14    156.0    6.0 9983.9    4.0  0.0  0.1    0.4   0   6
sd15    144.0    6.0 9216.0    4.0  0.0  0.1    0.4   0   5
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6       13.0  140.0   27.5 1252.5  0.0  0.3    1.9   0  11
sd0      13.0  140.0   27.5 1252.5  0.0  0.3    1.9   0  11
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3      707.0    0.0 45248.2    0.0  0.0  4.1    5.8   0 117    0   87
sd13    236.0    0.0 15104.1    0.0  0.0  3.9   16.4   0 100
sd14    254.0    0.0 16256.1    0.0  0.0  0.1    0.4   0   9
sd15    217.0    0.0 13888.0    0.0  0.0  0.1    0.4   0   8
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    6.0    0.0    4.0  0.0  0.0    0.3   0   0
sd0       0.0    6.0    0.0    4.0  0.0  0.0    0.3   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3     6983.0  268.0 446914.3 71516.4  0.8  6.3    1.0   1 222    0   87
sd13   2339.0   84.0 149696.8 23978.1  0.4  3.0    1.4   9  97
sd14   2411.0   95.0 154304.8 24856.1  0.2  1.7    0.8   7  63
sd15   2233.0   89.0 142912.7 22682.1  0.2  1.6    0.8   8  62
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
                 extended device statistics                    tty
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout
c3       71.0 1007.0 4544.0 347934.0  5.8 13.7   18.2  12 200    0   91
sd13     26.0  170.0 1664.0 60987.8  4.0  6.0   51.0 100 100
sd14     21.0  416.0 1344.0 142386.1  0.9  3.9   11.1  48  50
sd15     24.0  421.0 1536.0 144560.1  0.9  3.9   10.7  47  50
sd16      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
c6        0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd0       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0

 カード類で動作したもの

ネットワーク

  • Intel 82574L (Intel 1000CT)
  • Intel 82579L (C204内蔵LAN)

ストレージ

  • IBM M1015(LSI 9220-8i)
  • IBM M1015(LSI 9210-8i)