Linux イメージは、Linux をサーバーブレードにインストールした後に作成できます。 Linux をサーバーブレードにインストールするには、Red Hat の Kickstart テクノロジを使用します。 Linux イメージプロセスの主な手順を以下に示します。
Red Hat AS 2.1 が動作しているサーバー (Kickstart サーバー) 上で Kickstart 環境を設定します。
詳細は、Linux のマニュアルを参照してください。
Kickstart サーバーを N1 Provisioning Server 設定の一部として構成します (「Sun Fire B1600 スイッチを構成する」を参照)。
Provisioning Server マシン上で、イメージウィザードを呼び出し、その指示に従って、Linux システムの手動オペレーティングシステムインストールを作成します (「イメージウィザードで Linux イメージを作成する」を参照)。
イメージウィザードに次のプロンプトが表示されたら、Linux をインストールします (「選択したリソースプールサーバーに Linux をインストールする 」を参照)。
Did the installation succeed [y/n] > |
イメージウィザードに戻って、作業を継続します。
Did the installation succeed [y/n] > y Issue the following commands on the sytem controller to boot the resource pool server from the disk sc> bootmode bootscript="boot disk" s<X> (where "s<X>" is provided in resource pool server information) then you can issue the following command to reset sc> reset -y s<X> Please enter y when the resource pool server has booted from disk > |
リソースプールサーバーをそのディスクからブートします。
システムコントローラ上で、次のコマンドを入力します。
sc>bootmode bootscript="boot disk" console-id sc>poweron console-id |
以下に例を示します。
sc>bootmode bootscript="boot disk" s5 S5: Boot script set. sc>poweron s5 S5: Poweron sequence started. |
イメージウィザードに戻り、その指示に従って、Linux を N1 Provisioning Server 環境に合わせてカスタマイズします。
Please enter y when the resource pool server has booted from disk > y You can customize your installation at this point in time. Please logon to the resource pool server and customize. Please enter y when your customization is completed > y Please shutdown the resource pool server by issuing the command For Solaris: # /usr/sbin/shutdown -y -g0 -i0 For Linux: # /sbin/shutdown -h now Once the resource pool server shuts down, for sparc blades set the OBP of resource pool server to boot using dhcp by issuing the following command in the OBP prompt (no changes are required for i86pc blades) ok> setenv boot-device net:dhcp Please enter y when the resource pool server has completed the shutdown and when you have configured the resource pool server to boot using dhcp > |
スナップショットできるようにディスクを準備します (「スナップショット用にディスクを準備する」)。
イメージウィザードウィンドウに戻って、前の箇所から継続します。
イメージウィザードのテキストには、「PES」という文字列が表示されます。 この「PES」はリソースプールサーバーを示す用語として従来から使用されているものです。
Please enter y when the resource pool server has completed the shutdown and when you have configured the resource pool server to boot using dhcp > y Creating image. This will take some time, please wait till the operation completes. Do not interrupt the operation. Please run farm -Lt <farm id> for more information. --------------- output of internal commands ---------------- Disabling monitoring on PES 50105 Powering off PES 50105 for a move to it's original VLAN Setting PES State to OFF Moving PES 50105 to its original VLAN Powering on PES 50105 in it's original VLAN Setting PES State to ON Activating farm 113 ... Request (id: 597) submitted. Waiting for request 597 to complete... .............. Taking snapshot of target 0 for host server for farm 113 to create final image ... Snapshot image size: 30000000000 Request (id: 601) submitted. Waiting for request 601 to complete... ........................................................ Snapshot was successful. Deactivating the farm 113 Request (id: 619) submitted. Waiting for request 619 to complete... ............... Farm 113 is deactivated. Image rh-as2.1-disk-image is ready for use. ---------------------- end of command ---------------------- Image creation completed. Updating image attributes. --------------- output of internal commands ---------------- Updated image: 18 ---------------------- end of command ---------------------- Image update completed. WARNING: The farm created for image creation has to be deleted manually. Use the farm -D <farm id> command to delete the farm. Please wait for the farm to be deactivated before you issue this command. IMAGE WIZARD ############ This Wizard can be used to : * create "image" and store the "image" on the image server (IS) and "image attributes" in the control plane database (CPDB). * import "image" and "image attribute information" into the image repository and control plane database (CPDB). * manage images and manage image attribute information in the image repository and control plane database (CPDB). Please read the N1 PS System Administration Guide before using this Wizard. Please select, 1) Create - Create a new image and store the image in the repository 2) Import - Import an image into the repository 3) List - List the images in the repository 4) Update - Update image attribute information in the repository 5) Delete - Delete an image in the repository 6) Validate - Validate imported images 7) Quit Enter your selection [1-7] > 7 |
無効な状態をクリーンアップします。
Provisioning Server マシン上で、以前作成した一時ファームを手動で削除します。 次のコマンドを使用します。
# farm -D farm-id |
ここで、farm-id は 手順 5 でウィザードが出力したファーム ID です。 以下に例を示します。
bash-2.03# farm -D 113 |
これで、新たに作成されたイメージ rh-as2.1-disk-image はいつでも配備できます。