N1 Provisioning Server 3.1, Blades Edition, System Administration Guide

Upgrading Images

You might want to upgrade an image with patches or software packages. This section describes how to upgrade images. Upgrading images involves the same steps and commands as are used for creating images, except that you use the -i image_name option with the image -p command.


Note –

When you upgrade an image, a copy of the original image is placed onto a new disk to allow you to upgrade the newly copied image. Before releasing the new image using the image -r command, you must give the new image a unique name.


ProcedureTo Upgrade Images

Steps
  1. Obtain a list of the images using the command:


    image -ls
    IMAGE_ID  IMAGE_NAME        CUSTOMER    DISK_VOL_ID  SIZE    OS
    2	         solaris	           __grid__   22001/5       8631   Solaris
    1087      solaris_dhcpfix    __grid__   22001/22      8631   Solaris
  2. Type the following command:


    image –p [-z] [-i image_name] server_type disk_type controller_typ disk_size
    

    For example:


    image -p –z –i master_image sun_svr_420R local ide 30004789248

    Note –

    If access to the N1 Provisioning Server DVD or other shared media is required for software installation, use the -z option to specify this.


  3. Logon to the resource pool server.

  4. Modify the image according to your requirements, such as updating the N1 Provisioning Server monitoring package. See Upgrading the N1 Provisioning Server Agent of an Image for more information.

  5. Run the image —r command from the control plane server.

    This command releases the farm you created with the image —p command. Releasing the farm includes the following:

    • Taking a snapshot of the image. The snapshot serves as the new image you have just created.

    • Releasing the resource pool server to the resource pool.

    • Updating the N1 Provisioning Server database with a reference to the image.


    image -r -f farm_ID [-S image_size] -i image_name
    

    For example:


    image -r -f 171 -S 9050849280 -i image_name

    The value of the farm-ID option is the ID of the farm you created using the image —p command in step 3.

  6. Delete the farm by typing:

    farm -Df farm-ID