This section provides the procedure for using Solaris Live Upgrade to install Solaris Flash archives that are stored on the following:
HTTP server
FTP server - Use this path from the command line only
NFS server
Local file
Local tape
Local device, including DVD or CD
For examples of the correct syntax for paths that are associated with archive storage, see archive_location Keyword.
Installing a Solaris Flash archive overwrites all files on the new boot environment except for shared files.
To use the Solaris Flash installation feature, you need to have installed the master system and to have created the Solaris Flash archive. For more information about Solaris Flash, see Chapter 16, Solaris Flash Installation Feature (Topics).
To upgrade or install a Solaris Flash archive on a new boot environment, the device must be a physical slice. If you have a boot environment that has a file system that is mounted either on a Solaris Volume Manager metadevice or a Veritas file system (VxFS) volume, the upgrade or installation of a archive fails. To upgrade or install an archive on such a boot environment, you must manually change the boot environment so that all slices are physical disk slices. You could use the lucreate command to create another boot environment or you could tear down the metadevices or volumes.
To use the lucreate command to make a copy of the boot environment, you would place the boot environment copy on physical disk slices. For example, suppose your current boot environment's disk configuration is the following:
root (/) |
Mounted on /dev/md/dsk/d10 |
/usr |
Mounted on /dev/md/dsk/d20 |
/var |
Mounted on /dev/dsk/c0t3d0s0 |
Free slice |
c0t4d0s0 |
Free slice |
c0t4d0s3 |
Free slice |
c0t4d0s4 |
You could then use the following lucreate command to copy the boot environment on physical disk slices. The boot environment could then be upgraded or be installed with an archive. In this example, the current boot environment is named currentBE and the new boot environment is named nextBE.
# lucreate -s currentBE -n nextBE -m /:/dev/dsk/c0t4d0s0:ufs \ -m /usr:/dev/dsk/c0t4d0s3:ufs -m /var:/dev/dsk/c0t4d0s4:ufs |
You would then be able to upgrade or install a archive on the new boot environment, activate it, and then re-mirror or encapsulate it manually.
If you choose to manually tear down the metadevice or volume, you would need to do the following:
Manually mount the boot environment
Edit the /etc/vfstab file to change all metadevices or volumes to physical disk slices
Use the Solaris Volume Manager or Veritas software to tear down the metadevices or volumes
Unmount the boot environment
From the Solaris Live Upgrade main menu, select Flash.
The Flash an Inactive Boot Environment menu is displayed.
Type the name of the boot environment where you want to install the Solaris Flash archive and the location of the installation media:
Name of Boot Environment: solaris_9 Package media: /net/install-svr/export/s9/latest |
Press F1 to add an archive.
An Archive Selection submenu displays an empty list, the name of a single archive, or a list of a number of archives.
You can add and remove archives from the list. The following example shows an empty list.
Location - Retrieval Method <No Archives added> - Select ADD to add archives |
To install the list with no changes, proceed to Step 4.
If the Solaris Flash archives list is empty or contains an archive that you do not want to install, proceed to Step a.
You can add or remove archives.
On the Select Retrieval Method menu, select the location of the Solaris Flash archive.
Media Selected |
Prompt |
---|---|
HTTP |
Specify the URL and proxy information that is needed to access the Solaris Flash archive. |
NFS |
Specify the path to the network file system where the Solaris Flash archive is located. You can also specify the archive file name. |
Local file |
Specify the path to the local file system where the Solaris Flash archive is located. |
Local tape |
Specify the local tape device and the position on the tape where the Solaris Flash archive is located. |
Local device |
Specify the local device, the path to the Solaris Flash archive, and the type of file system on which the Solaris Flash archive is located. |
A Retrieval submenu is displayed, similar to the following example, which depends on the media you selected.
NFS Location: |
Type the path to the archive, as in the following example.
NFS Location: host:/path/to archive.flar |
Press F3 to add the archive to the list.
When the list contains the archives that you want to install, press F6 to exit.
Press F3 to install one or more archives.
The Solaris Flash archive is installed on the boot environment. All files on the boot environment are overwritten, except for shareable files.
The boot environment is ready for activation. See To Activate a Boot Environment (Character Interface).
Log in as superuser.
Type:
# luupgrade -f -n BE_name -s os_image_path -a archive |
-f |
Indicates to install an operating system from a Solaris Flash archive. |
-n BE_name |
Specifies the name of the boot environment that is to be installed with an archive. |
-s os_image_path |
Specifies the path name of a directory that contains an operating system image. This directory can be on an installation medium, such as a DVD-ROM, CD-ROM, or it can be an NFS or UFS directory. |
-a archive |
Path to the Solaris Flash archive when the archive is available on the local file system. The operating system image versions specified with the -s option and the -a option must be identical. |
In this example, an archive is installed on the second_disk boot environment. The archive is located on the local system. The operating systems versions for the -s and -a options are both Solaris 9 releases. All files are overwritten on second_disk except shareable files.
# luupgrade -f -n second_disk \ -s /net/installmachine/export/solaris9/OS_image \ -a /net/server/archive/solaris9 |
The boot environment is ready to be activated.
This procedures provides the steps to install a Solaris Flash archive by using a profile.
If you added locales to the profile, make sure that you have created a boot environment with additional disk space.
Log in as superuser.
Create a profile.
See Table 33–2 for a list of keywords that can be used in a Solaris Live Upgrade profile.
Type:
# luupgrade -f -n BE_name -s os_image_path -j profile_path |
-f |
Indicates to install an operating system from a Solaris Flash archive. |
-n BE_name |
Specifies the name of the boot environment that is to be upgraded. |
-s os_image_path |
Specifies the path name of a directory that contains an operating system image. This directory can be on an installation medium, such as a DVD-ROM, CD-ROM, or it can be an NFS or UFS directory. |
-j profile_path |
Path to a profile that is configured for a flash installation. The profile must be in a directory on the local machine. |
The boot environment is ready to be activated.
In this example, an archive is installed on the second_disk boot environment. The -j option is used to access the profile. The boot environment is then ready to be activated. To create a profile, see To Create a Profile to be Used by Solaris Live Upgrade.
# luupgrade -f -n second_disk \ -s /net/installmachine/export/solarisX/OS_image \ -j /var/tmp/profile |
This procedure enables you to install a Solaris Flash archive and use the archive_location keyword at the command line rather than from a profile file. You can quickly retrieve an archive without the use of a profile file.
Type:
# luupgrade -f -n BE_name -s os_image_path -J 'profile' |
-f |
Indicates to upgrade an operating system from a Solaris Flash archive. |
-n BE_name |
Specifies the name of the boot environment that is to be upgraded. |
-s os_image_path |
Specifies the path name of a directory that contains an operating system image. This directory can be on an installation medium, such as a DVD-ROM, CD-ROM, or it can be an NFS or UFS directory. |
-J 'profile' |
Specifies the archive_location profile keyword. For the keyword values, see archive_location Keyword. |
The boot environment is ready to be activated.
In this example, an archive is installed on the second_disk boot environment. The -J option and the archive_location keyword is used to retrieve the archive. All files are overwritten on second_disk except shareable files.
# luupgrade -f -n second_disk \ -s /net/installmachine/export/solarisX/OS_image \ -J 'archive_location http://example.com/myflash.flar' |