Solaris 10 10/08 インストールガイド (基本編)

Solaris 対話式テキストインストーラによる ZFS の初期インストール

この手順では、スタンドアロンの SPARC システムを CD または DVD メディアからインストールする方法について説明します。

ProcedureSPARC: ZFS ルートプールをインストールする方法

始める前に

DVD-ROM ドライブまたは CD-ROM ドライブが直接接続されていないマシンやドメインに Solaris OS をインストールする場合は、別のマシンに接続されている DVD-ROM ドライブまたは CD-ROM ドライブを使用できます。手順の詳細は、『Solaris 10 10/08 インストールガイド (ネットワークインストール)』の付録 B「リモートからのインストールまたはアップグレード (作業)」を参照してください。

次のメディアを用意してください。

既存のデータやアプリケーションを保持するには、システムのバックアップをとります。

  1. Solaris Operating System DVD (SPARC 版) または Solaris SOFTWARE - 1 CD (SPARC 版) を挿入します。

  2. システムをブートします。

    • 新しく購入したばかり (未使用) のシステムの場合は、システムの電源を入れます。

    • 稼働中のシステムのインストールを行う場合は、システムをシャットダウンします。

    ok プロンプトが表示されます。

  3. Solaris 対話式テキストインストーラを起動します。インストール GUI を実行して ZFS ルートプールをインストールすることはできません。ローカルの DVD または CD からブートし、テキストインストーラをデスクトップセッションで起動するには、次のコマンドを入力します。


    ok boot cdrom - text
    
    text

    テキストインストーラをデスクトップセッションで実行することを指定します。このオプションは、デフォルトの GUI インストーラよりも優先されます。

    オペレーティングシステムが自己識別キーボードを見つけられない場合は、次の画面にキー配列の選択情報が表示されます。


    注 –

    PS/2 キーボードは自己識別型ではありません。インストール時にキー配列を選択するように求められます。


  4. (省略可能) 下に示す画面から必要なキー配列を選択し、F2 キーを押して続行します。


    Configure Keyboard Layout
    +---------------------------------------------------------------------------+
    |   Please specify the keyboard layout from the list below.                 |
    |                                                                           |
    |   To make a selection, use the arrow keys to highlight the option and     |
    |   press Return to mark it [X].                                            |
    |                                                                           |
    |            Keyboard  Layout                                               |
    |            -----------------------                                        |
    |       [  ] Serbia-And Montenegro                                          |
    |       [  ] Slovenian                                                      |
    |       [  ] Slovakian                                                      |
    |       [  ] Spanish                                                        |
    |       [  ] Swedish                                                        |
    |       [  ] Swiss-French                                                   |
    |       [  ] Swiss-German                                                   |
    |       [  ] Taiwanese                                                      |
    |       [  ] TurkishQ                                                       |
    |       [  ] TurkishF                                                       |
    |       [  ] UK-English                                                     |
    |       [ X] US-English                                                     |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+

    システムでデバイスとインタフェースが構成され、構成ファイルが検索されます。言語の選択肢の一覧が表示される場合があります。この画面が表示されない場合は、手順 6 に進んでください。

  5. (省略可能) 言語の選択画面が表示される場合があります。インストール時に使用する言語を選択し、F2 キーを押します。


    Select a Language
    +---------------------------------------------------------------------------+
    |   Please specify the the language from the list below.                    |
    |                                                                           |
    |   To make a selection, use the arrow keys to highlight the option and     |
    |   press Return to mark it [X].                                            |
    |                                                                           |
    |       [  ] English                                                        |
    |       [  ] French                                                         |
    |       [  ] German                                                         |
    |       [  ] Italian                                                        |
    |       [  ] Japanese                                                       |
    |       [  ] Korean                                                         |
    |       [  ] Simplified Chinese                                             |
    |       [  ] Spanish                                                        |
    |       [  ] Swedish                                                        |
    |       [  ] Traditional Chinese                                            |
    |       [  ] UK-English                                                     |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+
  6. F2 キーを押してインストールを開始します。構成に関する残りの質問が表示される場合は、それらに答えます。

    構成の質問に答え、ルートパスワードを設定すると、Solaris の対話式インストール画面が表示されます。


    Solaris Interactive Installation
    +---------------------------------------------------------------------------+
    |On the following screens, you can accept the defaults or you can customize |
    | how Solaris software will be install by:                                  |
    |  - Selecting the type of Solaris software to install                      |
    |  - Selecting disks to hold the software you've selected                   |
    |  - Selecting unbundled products to be installed with Solaris              |
    |  - Specifying how file systems are laid out on the disks                  |
    |                                                                           |
    |After completing these tasks, a summary of your selections                 |
    |(called a profile) will be displayed.                                      |
    |                                                                           |
    |There are two ways to install your Solaris software:                       |
    |                                                                           |
    |  - "Standard" installs your system from a standard Solaris                |
    |     Distribution. Selecting "standard" allows you to choose               |
    |     between initial install and upgrade, if your system is upgradeable.   |
    |                                                                           |
    |  - "Flash" installs your system from one or more Flash Archives.          |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+
  7. システムのリブートとディスクの取り出しを自動的に行うかどうかを決定します。F2 キーを押します。

    システム上に ZFS ストレージプールがすでに存在する場合、それらは次のメッセージで認識されますが、既存のプールのディスクを選択して新しいストレージプールを作成する場合以外は変更されません。


    There are existing ZFS pools available on this system.  However, they can only be upgraded 
    using the Live Upgrade tools.  The following screens will only allow you to install a ZFS root system, 
    not upgrade one.

    ライセンス画面が表示されます。

  8. インストールを続行する場合は、ライセンス条項に同意します。F2 キーを押します。

    「「アップグレード」または「初期」インストールの選択」画面が表示される場合があります。アップグレード可能な UFS ファイルシステムがある場合は、この画面が表示されます。この画面が表示されない場合は、手順 10 に進んでください。

  9. ZFS のインストールを実行するには、F4 キーを押して初期インストールを行う必要があります。

    地域、ロケール、および追加の製品を選択する画面が表示されます。

  10. 地域、ロケール、および追加の製品を選択します。

    「ファイルシステムの種類の選択」画面が表示されます。

  11. ZFS ルートプールを作成するには、ZFS オプションを選択し、F2 キーを押します。


    Choose a Filesystem Type
    +---------------------------------------------------------------------------+
    |   Select the filesystem to use for your Solaris installation              |
    |                                                                           |
    |           [ ] UFS                                                         |
    |           [X] ZFS                                                         |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+

    「ソフトウェアの選択」画面が表示されます。

  12. 実行するインストールの種類を選択します。F2 キーを押します。

    デフォルトインストールを実行するには、表示されるデフォルト値をそのまま使用します。カスタムインストールを実行するには、テキストインストーラの画面で値を編集します。この例では、デフォルトの「全体ディストリビューション」のインストールが選択されています。

    ソフトウェアグループの詳細については、「ソフトウェアグループごとの推奨ディスク容量」を参照してください。


    Select Software
    +---------------------------------------------------------------------------+
    |Select the Solaris software to install on the system                       |
    |                                                                           |
    |Note: After selecting a software group, you can add or remove              |
    |software by customizing it. However this requires understanding of         |
    |software dependencies and how Solaris software is packaged.                |
    |                                                                           |
    |  [ ] Entire Distribution plus OEM support ......5838.00 MB                |
    |  [X] Entire Distribution........................5830.00 MB                |
    |  [ ] Developer System Support...................5695.00 MB                |
    |  [ ] End User System Support....................4747.00 MB                |
    |  [ ] Core System Support........................1558.00 MB                |
    |  [ ] Reduced Networking Core System Support.....1512.00 MB                |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+

    「ディスクの選択」画面が表示されます。

  13. インストールするソフトウェアを選択したあと、ZFS ストレージプールを作成するためのディスクの選択を求めるプロンプトが表示されます。この画面は以前の Solaris リリースと同様ですが、次のテキストが異なります。


    For ZFS, multiple disks will be configured as mirrors, so the disk you choose, 
    or the slice within the disk must exceed the Suggested Minimum value.

    ZFS ルートプールに使用するディスクとして、1 つまたは複数を選択できます。

    • 単一のディスクを選択した場合、あとでミラー化構成にするには、『Solaris ZFS 管理ガイド』「ZFS ストレージプール内のデバイスを管理する」zpool attach コマンドを参照してください。

    • 2 つのディスクを選択すると、ルートプールにはミラー化された 2 ディスク構成が設定されます。2 ディスクまたは 3 ディスクのミラー化プールが最適です。

    • 8 つのディスクがある場合に 8 つのディスクすべてを選択すると、ルートプールでは 8 つのディスクが単一の大規模なミラーとして使用されます。これは最適な構成ではありません。

    ルートプールでは RAID-Z プール構成はサポートされていません。ZFS ストレージプールの構成方法の詳細については、『Solaris ZFS 管理ガイド』「ZFS ストレージプールの複製機能」を参照してください。


    Select Disks
    +---------------------------------------------------------------------------+
    |On this screen you must select the disks for installing Solaris            |
    |software. Start by looking at the Suggested Minimum Field;                 |
    |this value is the approximate space needed to install the software         |
    |you've selected. For ZFS, multiple disks will be configured as mirrors,    |
    |so the disk you choose on the slice within the disk must exceed            |
    |the Suggested Minimum Value.                                               |
    |                                                                           |
    |  Note: xx denotes the current boot disk                                   |
    |                                                                           |
    |Disk Device                                        Available Space         |
    |========================================================================== |
    |                                                                           |
    |[X]xx c0t0d0                                        29164 MB (F4 to edit)  |
    |                                                                           |
    |                                 Maximum Root Size: 29164 MB               |
    |                                 Suggested Minimum: 5838 MB                |
    |                                                                           |
    |    F2_Continue      F6_Help                                               |
    +---------------------------------------------------------------------------+

    「データの保存」画面が表示されます。

  14. (省略可能) ソフトウェアをインストールするために選択したディスク上のデータを保存します。

    インストール用に選択したディスクに、ファイルシステムや命名されていないスライスが存在する場合、必要であればこの時点でそれらを保存できます。


    Preserve Data?
    +---------------------------------------------------------------------------+
    |Do you want to preserve existing data? At least one of the disks you've    |
    |selected for installing Solaris software has file systems or unnamed slices|
    |that you may want to save                                                  |
    |                                                                           |
    |                                                                           |
    |    F2_Continue      F4_Preserve    F6_Help                                |
    +---------------------------------------------------------------------------+

    データを保存する場合は F4 キーを押すと、データを保存するための画面が表示されます。

  15. (省略可能) 保存するデータを選択します。


    Preserve Data
    +---------------------------------------------------------------------------+
    |On this screen you can perserve the data on some or all disk slices. Any   |
    |slice you preserve will not be touched when Solaris software is installed  |
    |If  you preserve data on / (root), /usr, or /var you  must rename them     |
    |because new versions of these file systems are created when Solaris        |
    |software is installed.                                                     |
    |                                                                           |
    |Warning: Preserving an 'overlap' slice will not preserve any data within   |
    |it. To preserve this data, you must explicitly set the mount point name.   |
    |                                                                           |
    |Mount Point or Pool                   State    Disk/Slice             Size |
    |========================================================================== |
    |[ ] zfs: rpool                        Online    c0t0d0s0          27133 MB |
    |[ ]swap                                         c0t1d0s1           2047 MB |
    |[X]overlap                                      c0t2d0s2          29188 MB |
    |                                                                           |
    |                                                                           |
    |    F2_Continue                     F6_Help                                |
    +---------------------------------------------------------------------------+

    ZFS 設定を構成するための画面が表示されます。

  16. デフォルト値をそのまま使用できます。または、ZFS プールの名前、データセット名、プールサイズ、スワップ、およびダンプを変更できます。また、/var ファイルシステムの作成およびマウントの方法を変更することもできます。


    Configure ZFS Settings
    +-------------------------------------------------------------------------- -+
    |Specify the name of the pool to be created from the disk(s) you have chosen.|
    |Also specify the name of the dataset to be created within the pool that is  |
    |to be used as the root directory for the filesystem.                        |
    |                                                                            |
    |                                                                            |
    |              ZFS Pool Name: rpool                                          |
    |      ZFS Root Dataset Name: szboot_0507                                    |
    |          ZFS Pool Size in (MB): 17270                                      |
    |          Size of swap area in (MB): 1024                                   |
    |          Size of dump area in (MB): 1024                                   |
    |        (Pool size must be between 9472 MB and 17270 MB)                    |
    |                                                                            |
    |                         [X] Keep / and /var combined                       |
    |                         [ ] Put /var on a separate dataset                 |
    |                                                                            |
    |    F2_Continue      F6_Help                                                |
    +------------------------------------------------------------------------- --+

    リモートファイルシステムをマウントするための画面が表示されます。

  17. リモートファイルシステムをマウントするかどうかを決定します。


    Mount Remote File System
    +-------------------------------------------------------------------------- -+
    |Do you want to mount a software from a remote file server? This may         |
    |be necessary if you had to remove software because of disk space problems.  |
    |                                                                            |
    |                                                                            |
    |    F2_Continue      F6_Help                                                |
    +------------------------------------------------------------------------- --+

    最後のインストール画面が表示されます。

  18. 「プロファイル」画面で、インストールに選択した内容を確認します。必要に応じてインストールプロファイルを変更できます。次の例は、最後のインストールプロファイル画面です。


    Profile
    +-------------------------------------------------------------------------- -+
    |The information shown below is your profile for installing Solaris software.|
    |It reflects the choices you've made on previous screens.                    |
    |                                                                            |
    |============================================================================|
    |                                                                            |
    |                Installation Option: Initial                                |
    |                        Boot Device: c1t2d0                                 |
    |              Root File System Type: ZFS                                    |
    |                    Client Services: None                                   |
    |                                                                            |
    |                            Regions: North America                          |
    |                      System Locale: C ( C )                                |
    |                                                                            |
    |                           Software: Solaris 10, Entire Distribution        |
    |                          Pool Name: rpool                                  |
    |              Boot Environment Name: szboot_0507                            |
    |                          Pool Size: 17270 MB                               |
    |                    Devices in Pool: c1t2d0                                 |
    |                                                                            |
    |                                                                            |
    |    F2_Continue      F6_Help                                                |
    +------------------------------------------------------------------------- --+
  19. Solaris ソフトウェアをインストールするには、F2 キーを押します。画面の指示に従って、Solaris ソフトウェアをインストールします。

    Solaris 対話式テキストプログラムによる Solaris ソフトウェアのインストールが終了すると、システムは自動的にリブートするか、または手動でリブートするように促します。

    追加の製品をインストールする場合は、その製品の DVD または CD を挿入するように指示が表示されます。インストール手順については、該当するインストールマニュアルを参照してください。

    インストールが終了すると、インストールログがファイルに保存されます。インストールログは、/var/sadm/system/logs ディレクトリと /var/sadm/install/logs ディレクトリに作成されます。

    インストールが完了します。

  20. インストール時に自動リブートを選択しなかった場合は、システムをリブートします。


    # reboot
    

    インストールした ZFS ルートプールでシステムが起動します。

    boot コマンドに -L オプションを使用して、使用可能なブート環境のリストを表示できます。SPARC ベースのブートの詳細については、『Solaris のシステム管理 (基本編)』「SPARC システムで ZFS ルートファイルシステムからブートする」を参照してください。

  21. インストールが完了したら、結果として得られた ZFS ストレージプールとファイルシステムの情報を、次の例のように確認します。

    ZFS ルートプールは、管理を必要としない特殊なプールです。この例の zfs list の出力では、rpool/ROOT エントリなどルートプールのコンポーネントが識別されています。デフォルトでは、これらにはアクセスできません。


    # zpool status
      pool: rpool
     state: ONLINE
     scrub: none requested
    config:
    
            NAME        STATE     READ WRITE CKSUM
            rpool       ONLINE       0     0     0
            c1t2d0s0  ONLINE       0     0     0
    
    errors: No known data errors
    # zfs list
    NAME                     USED  AVAIL  REFER  MOUNTPOINT
    rpool                   6.83G  9.66G    62K  /rpool
    rpool/ROOT              5.82G  9.66G    18K  legacy
    rpool/ROOT/szboot_0507  5.82G  9.66G  5.82G  
    rpool/dump               512M  9.66G   512M  -
    rpool/swap               518M  9.66G   518M  -

    最初に単一のディスクで ZFS ストレージプールを作成した場合は、インストール後にこのディスクを ZFS ミラー化構成に変換できます。ディスクの追加または接続の詳細については、『Solaris ZFS 管理ガイド』「ZFS ストレージプール内のデバイスを管理する」を参照してください。

注意事項

インストール時に問題が発生する場合は、『Solaris 10 10/08 インストールガイド (カスタム JumpStart/ 上級編)』の付録 A「問題発生時の解決方法 (作業)」を参照してください。