Determine the server type, disk type, disk size, and disk controller by using the following commands:
/opt/terraspring/sbin/disk -l
/opt/terraspring/sbin/disk -lv
/opt/terraspring/sbin/device -l
The output of these commands is used as a parameter to the image command in subsequent steps.
Obtain a list of images using the image -ls command.
Run the image -p -i command from the N1 Provisioning Server.
The command creates a farm with one disk on a resource pool server that contains an appropriate-sized disk.
The image -p -i command for such an image creation procedure takes the form:
image -p -i image_name server_type disk_type controller_type disk_size |
For example:
image -p -i solaris9u5sun4ublade-flash sunfire100s-95-blade local ide 30000000000 |
For more detailed information, see the image man page.
In addition, if access to the N1 Provisioning Server DVD or another shared medium is required for software installation, use the -z option to specify this. You can also specify this option to have access to these shared media during new image creation.
The image -p command creates a new farm to be used in creating a new image. The image -p tool exits with information regarding the allocated resource pool server and the farm ID of the farm created. The farm ID is required for the eventual release of the allocated resources using the image -r command (see below). The image -r command releases the image, reactivates the farm, and completes the image creation process.
Logon to the resource pool server selected by the image -p -i command.
Customize the image with applications and services according to your requirements.
To find out which resource pool server is mapped to the farm that was created by the image -p command, type device -l.
Verify that the N1 Provisioning Server agent is running by typing from the resource pool server:
ps -aef | grep tspragt IP-address-of-server-used-to-create-image "tsprnop IP-address-of-server-used-to-create-image" |
The output from the ps command should look similar to the following:
root 361 1 1 00:37:41 ? 0:01 java-Dsun.net.inetaddr.ttl=0 com.terraspring.mon.client.tspragt start 220.240 |
Stop the resource pool server by typing:
/usr/sbin/shutdown -y -g0 -i0 for Solaris
/sbin/shutdown —h now for Linux
Configure the server blade to boot from DHCP.
Run the image -r command from the N1 Provisioning 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 -T archive-type |
For example:
image -r -f 171 -S 3000000000 -i new_solaris_image -T flash-image |
If, after starting the image -r command, a replaceFailedDevice request is queued. You must delete this request for the image creation process to complete successfully. Run the request -l command to get the request ID, then use the request -d request_ID command to do delete the request.
Optionally, you can update the image attributes by using the image -u command.
Delete the farm by typing farm -Df farm-ID.
Example:
farm -Df 171 |