If you upgrade an image, the image attributes should reflect any upgrades you have made.
With the image -u command, you can update the following attributes:
Image name
Image size
Architecture
Operating environment
Image description
Archive type
Image configuration file
Command usage: image -u -N image name -S image size -A architecture- O operating sytem -U image description -T image archive type -P configuration file image ID
For any image, except for a disk image, if you specify the -T option, you must also specify the -P option.
image -u -S 3000000000 101 |
You can specify a new disk layout for a global flash image using the image -u command. You can view the default disk layout in the output of the image -lV command:
image -lV 16 IMAGE_ID IMAGE_NAME CUSTOMER SIZE OS TYPE STATE 16 solaris9u5-sun4ublade-flash __grid__ 3200000000 solaris flash READY LOCATON: nfs://3001//images/master-images/solaris9u5-sun4ublade-flash Description: solaris9 update 5 flash image for sun4ublade with Cassini NIC Architecture: sun4ublade Last Updated: 2004-02-13 23:35:53.0 Image Locations: ID STATE SIZE LOCATION 16 done 759291924 nfs://3001//images/master-images/solaris9u5-sun4ublade-flash Image Contents: =============================================== partitioning explicit filesys any free / =============================================== |
Create a new layout file with the following contents:
/var/tmp/newdisklayout.sun4ublade partitioning explicit filesys any 8096 / filesys any free /export |
Then run the command:
image -u -P /var/tmp/newdisklayout.sun4ublade 16 Updated image: 16 image -lV 16 IMAGE_ID IMAGE_NAME CUSTOMER SIZE OS TYPE STATE 16 solaris9u5-sun4ublade-flash __grid__ 3200000000 solaris flash READY LOCATION: nfs://3001//images/master-images/solaris9u5-sun4ublade-flash Description: solaris9 update 5 flash image for sun4ublade with Cassini NIC Architecture: sun4ublade Last Updated: 2004-02-13 23:35:53.0 Image Locations: ID STATE SIZE LOCATION 16 done 759291924 nfs://3001//images/master-images/solaris9u5-sun4ublade-flash Image Contents: =============================================== partitioning explicit filesys any 8096 / filesys any free /export =============================================== |
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 |
Run the image -u command with the options of the attributes you want to update.
image -l 22 IMAGE_ID IMAGE_NAME CUSTOMER SIZE OS TYPE STATE 22 js-sample __grid__ 30000000000 unknown disk_image NOT READY LOCATION: nfs://3001/images/master-images/js-sample image -u -S 40000000000 22 Updated image: 22 image -l 22 IMAGE_ID IMAGE_NAME CUSTOMER SIZE OS TYPE STATE 22 js-sample __grid__ 40000000000 unknown disk_image NOT READY LOCATION: nfs://3001/images/master-images/js-sample |