N1 Provisioning Server 3.1, Blades Edition システム管理ガイド

Procedureイメージを作成する

手順
  1. /opt/terrasprin/sbin/imagewizard と入力し、イメージウィザードのメインダイアログにアクセスします。

  2. イメージウィザードのメインダイアログで 1 と入力して、イメージを作成します。

    次の中からどのようにイメージを作成するかに応じて、次のダイアログから選択します。

    イメージ形式 

    ソース 

    アーキテクチャー 

    ディスク 

    既存のディスクイメージ 

    Solaris SPARC 

    フラッシュ 

    既存のディスクイメージ 

    Solaris SPARC 

    ディスク 

    既存のディスクイメージ 

    Solaris x86 

    フラッシュ 

    既存のディスクイメージ 

    Solaris x86 

    ディスク 

    既存のフラッシュイメージ 

    Solaris SPARC 

    フラッシュ 

    既存のフラッシュイメージ 

    Solaris SPARC 

    ディスク 

    既存のフラッシュイメージ 

    Solaris x86 

    フラッシュ 

    既存のフラッシュイメージ 

    Solaris x86 

    ディスク 

    JumpStart インストール 

    Solaris SPARC 

    フラッシュ 

    JumpStart インストール 

    Solaris SPARC 

    ディスク 

    JumpStart インストール 

    Solaris x86 

    フラッシュ 

    JumpStart インストール 

    Solaris x86 

    ディスク 

    手動インストール 

    Solaris SPARC 

    フラッシュ 

    手動インストール 

    Solaris SPARC 

    ディスク 

    手動インストール 

    Solaris x86 

    フラッシュ 

    手動インストール 

    Solaris x86 

    ディスク 

    既存のディスクイメージ 

    Linux x86 

    ディスク 

    手動インストール 

    Linux x86 

    次のダイアログは、既存のイメージからイメージを作成する場合の選択の例です。

  3. オペレーティング環境を選択します。


    Following are the operating systems supported:
    
    1) Solaris
    2) Linux
    3) Return to previous option
    
    
    Please enter your selection [1-3] > 1
  4. アーキテクチャーを選択します。


    Following architectures are supported:
    
    1) sun4ublade
    2) i86pc
    3) Return to previous option
    
    Please enter your selection [1-3] > 1
  5. イメージのソースを指定します。


    You can start creating a new image from:
    
    1) Existing image in the repository
    2) JumpStart installation server
    3) Manual OS installation
    4) Return to previous option
    
    Enter your selection [1-4] > 1
  6. イメージの種類を選択します。


    Please select among the following images
    
    --------------------------------------------------------------------------
    Sel#    Image Name                   Image Id    Image Description
    --------------------------------------------------------------------------
    
    1) solaris9u5-sun4ublade-flash        : 7 : solaris9 update 5 flash image 
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  7. 1 を入力して、イメージのデバイス属性のメニューを選択します。


    Please provide the following information for the new image
    
    1) Device Selection Attributes for the New Image
    2) Image Attributes Of the New Image
    3) Continue to create the New Image
    4) Return to previous option
    
    Enter your selection [1-4] > 1
  8. 1 を入力して、サーバーの種類を選択します。


    Please enter the following device selection information
    
    1) Server Type: 
    2) Disk Type: 
    3) Disk Controller Type: 
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 1
  9. サーバーの種類を指定します。


    Please select the server type
    1) sunfireb100x-96-blade
    2) sunfireb100s-95-blade
    3) Return to previous option
    
    Please enter your selection [1-3] > 2
  10. 2 を入力して、ディスクの種類を選択します。


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: 
    3) Disk Controller Type: 
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 2
  11. ディスクの種類を指定します。


    Please select the disk type
    1) local
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  12. 3 を入力して、ディスクコントローラを選択します。


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: local
    3) Disk Controller Type: 
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 3
  13. ディスクコントローラを指定します。


    Please select the disk controller type
    
    1) ide
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  14. 4 を入力して、ディスクサイズを選択します。


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: local
    3) Disk Controller Type: ide
    4) Disk Size: Not specified
    5) Return to previous option
    
    Please enter your selection [1-5] > 4
  15. ディスクサイズを指定します。


    Please select the disk size
    
    1) 30000000000
    2) Return to previous option
    
    Please enter your selection [1-2] > 1
  16. 5 を入力して、手順 5 のメインのイメージ情報のメニューに戻ります。


    Please enter the following device selection information
    
    1) Server Type: sunfireb100s-95-blade
    2) Disk Type: local
    3) Disk Controller Type: ide
    4) Disk Size: 30000000000 Bytes
    5) Return to previous option
    
    Please enter your selection [1-5] > 5
  17. 2 を入力して、イメージ属性のメニューを選択します。


    Please provide the following information for the new image
    
    1) Device Selection Attributes for the New Image
    2) Image Attributes Of the New Image
    3) Continue to create the New Image
    4) Return to previous option
    
    Enter your selection [1-4] > 2
  18. イメージ名を指定します。


    Please enter the following image attribute information
    
    1) Image name: 
    2) Image description: 
    3) Image archive type: 
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    Please enter your selection [1-6] > 1
    
    Please enter the image name > s9u5-customized-test
  19. 2 を入力して、イメージの説明を選択および指定します。


    Please enter the following image attribute information
    
    1) Image name: s9u5-customized-test
    2) Image description: 
    3) Image archive type: 
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    
    Please enter your selection [1-6] > 2
    Please enter the image description > created from s9u5 preconfigured image with customizations
  20. 3 を入力して、アーカイブの種類を選択します。


    Please enter the following image attribute information
    
    
    1) Image name: s9u5-customized-test
    2) Image description: created from s9u5 preconfigured image with customizations
    3) Image archive type: 
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    Please enter your selection [1-6] > 3
  21. アーカイブの種類を指定します。


    Following image archive types are supported:
    
    1) disk_image
    2) flash
    3) Return to previous option
    
    
    Please enter your selection [1-3] > 2
  22. 6 を入力して、手順 5 のメインのイメージ情報のメニューに戻ります。


    注 –

    イメージウィザードで作成できるのはグローバルイメージのみであるため、次のメニューから 4 を選択して修正することはできません。



    Please enter the following image attribute information
    
    1) Image name: s9u5-customized-test
    2) Image description: created from s9u5 preconfigured image with customizations
    3) Image archive type: flash
    4) Image type: Global Image
    5) Image size: Not specified
    6) Return to previous option
    
    Please enter your selection [1-6] > 6
  23. 3 を入力して、イメージの作成を継続します。


    Please provide the following information for the new image
    
    1) Device Selection Attributes for the New Image
    2) Image Attributes Of the New Image
    3) Continue to create the New Image
    4) Return to previous option
    
    Enter your selection [1-4] > 3
    Following is the information you have entered
    
    Create from existing image: solaris9u5-sun4ublade-flash
    Operating system: solaris
    Architecture: sun4ublade
    Image name: s9u5-customized-test
    Image description: created from s9u5 preconfigured image with customizations
    Image archive type: flash
    Image type: Global Image
    Image size: Not specified
    Server Type: sunfireb100s-95-blade
    Disk Type: local
    Disk Controller Type: ide
    Disk Size: 30000000000 Bytes
  24. y を入力して、イメージ作成手順を継続します。


    Enter y to continue and n to return to previous option > y
  25. イメージサーバーに新しいイメージ用の十分な容量があることを確認してから、y を入力します。


    Please ensure that you have enough space on the image server
    to hold the new image that will be created.
    The path on image server where the image will be created is:
            /images/master-images
    
    Enter y to continue and n to return to previous option > y
  26. N1 Provisioning Server から NFS 共有を使用する場合は、y を入力します。 N1 Provisioning Server から NFS 共有を使用しない場合は、n を入力します。


    Specify whether you want to use NFS
    shares from N1 Provisioning Server [default n] > n
    
    Preparing farm for image creation/validation.
    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.

例 3–1 イメージ作成の出力

次の出力例には、イメージを準備してリソースプールサーバーに対してリリースする方法に関する指示も含まれています。 「構成済みイメージからの Solaris イメージの作成」「JumpStart からの手動での Solaris イメージの作成」「JumpStart 設定の作成」、および「JumpStart ブートおよび構成サーバーのカスタマイズ」を参照してください。

image -r コマンドを起動した後である場合、replaceFailedDevice 要求がキューに入ります。 イメージ作成プロセスを正しく完了するには、この要求を削除する必要があります。 request -l コマンドを実行して要求 ID を取得してから、request -d request_ID コマンドを使用して要求を削除します。


Creating farm 'ImageTool1076361866520-751' ...
Request (id: 335) submitted.
Waiting for request 335 to complete...
.
Farm ImageTool1076361866520-751 is created. Farm id = 108
Activating farm 108 ...
Request (id: 336) submitted.
Waiting for farm request 336 to complete or
farm to reach state 50 ...
...........................................................
Farm 108 is ready for image creation/update.
Please proceed to PES 50101, disk 2 and install/update the software.

After you are finished with the image, please execute the following to release the image:
    image -r [-S image_size] [-T image_archive_type] -f 108 -i <new-image-name>


Completed preparing farm for image creation/validation
Farm ID is: 108

The following resource pool server has been
selected for creating an image.
Resource Pool Server Device ID: 50101

Following is the information on how you can gain console
access to this machine.

In an another window, telnet to the specified system controller (SC)
based on the IP address provided below.

Login into the SC using the username and password of the SC and type

console <id>

The <id> is the id printed below,
(for e.g., sc> console s5)
 
 Console Information
 ====================
 IP address of Terminal-Server(Service Controller): 10.5.136.20
 Port(Blade) ID: s1



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 > 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 > 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.

Disabling monitoring on PES 50101
Powering off PES 50101 for a move to it's original VLAN
Setting PES State to OFF
Moving PES 50101 to its original VLAN
Powering on PES 50101 in it's original VLAN
Setting PES State to ON
Activating farm 108 ...
Request (id: 397) submitted.
Waiting for request 397 to complete...
..
Taking snapshot of target 0 for host server for farm 108 to create final image ...
Request (id: 400) submitted.
Waiting for request 400 to complete...
.....................................................................................
Snapshot was successful.
Deactivating the farm 108
Request (id: 456) submitted.
Waiting for request 456 to complete...
.............................................................................
Farm 108 is deactivated.
Image s9u5-customized-test is ready for use.

Image creation completed.


Updating image attributes.


Updated image: 14


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.