JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 10 8/11 Installation Guide: Flash Archives (Creation and Installation)     Oracle Solaris 10 8/11 Information Library
search filter icon
search icon

Document Information

Preface

1.  Flash Archive (Overview)

2.  Flash Archive (Planning)

Planning Your Flash Archive Installation

Designing an Initial Installation of the Master System

Installing a Sun4U Flash Archive on a Sun4V Machine

Customizing the Oracle Solaris Installation on the Master System

Creating Archives for SPARC and x86 Systems

SPARC: Supporting Peripheral Devices Not Found on the Master System

How to Get the Support for Peripherals That You Need

Planning the Creation of a Flash Archive Archive

Planning to Create the Flash Archive Archive for an Initial Installation

Creating Flash Archive With RAID-1 Volumes

Creating an Archive That Contains Large Files

Planning to Create the Flash Archive Differential Archive for an Update

Customizing an Archive's Files and Directories

Customizing an Archive With Scripts

Guidelines for Creating a Custom Script

Flash Archive Sections

When to Create the Archive for an Initial Installation

Where to Store the Flash Archive

Compressing the Archive

Planning the Installation of Flash Archive

3.  Creating Flash Archive (tasks)

4.  Installing and Administering Flash Archive (Tasks)

5.  Creating and Using a Disaster Recovery Image

6.  Flash Archive (Reference)

Glossary

Index

Planning Your Flash Archive Installation

Before you create and install a Flash Archive, you must make some decisions about how you want to install the Oracle Solaris OS on your systems. The first time that you install a system, you install with a full archive that is an initial installation. After a system has been installed with an archive, the system can be updated with a differential archive. The differential archive installs only the differences between two archives.


Note - Starting with the Solaris 10 10/09 release, you can set up a JumpStart, a feature of Oracle Solaris, profile to identify a Flash archive of a ZFS root pool. See What's New in the Solaris 10 10/09 Release.


Review the following limitations before creating and installing a Flash Archive.

Table 2-1 Limitations When Creating and Installing a Flash Archive Archive

Limitation
Description
When installing the Oracle Solaris OS with a Flash Archive, the archive and the installation media must contain identical operating system versions.
For example, if the archive is a Oracle Solaris 10 operating system and you are using DVD media, then you must use Oracle Solaris 10 DVD media to install the archive. If the operating systems versions do not match, the installation on the target system fails.
A Flash Archive cannot be properly created when a non-global zone is installed.
The Solaris Flash feature is not compatible with the Oracle Solaris Zones partitioning technology. If you create a Flash Archive, the resulting archive is not installed properly when the archive is deployed under these conditions:
  • The archive is created in a non-global zone

  • The archive is created in a global zone that has non-global zones installed

Starting with the Solaris 10 10/08 release, if you are installing a Flash Archive from a release before the Solaris 10 10/08 release, the archive fails to install.
If you need to install a Flash Archive from a previous release, boot from the previous release and install the archive.

Designing an Initial Installation of the Master System

The first task in the Flash Archive installation process is to install a system, the master system, with the configuration that you want each of the clone systems to have. You can use any of the Oracle Solaris installation methods to install an archive on the master system. The installation can be a subset or a complete installation of the Oracle Solaris OS. After you complete the installation, you can add or remove software or modify any configuration files. Some limitations to installing the master system are the following:


Note - If you already have installed clone systems and want to update these systems with a new configuration, see Planning to Create the Flash Archive Differential Archive for an Update.


Installing a Sun4U Flash Archive on a Sun4V Machine

Before You Begin

Note the following limitations to this procedure:

  1. Create a Flash Archive on a Sun4U machine, so that the archive can be installed on a Sun4V machine. Use one of the following two options to add Sun4V as a supported architecture for the archive.

    Note - You must start with a Sun4U machine that has been installed with the Entire Plus OEM Software Group, so that all the driver packages are in the image, even if these packages are not in use. For further information about this requirement, see SPARC: Supporting Peripheral Devices Not Found on the Master System.

    Note that, in order for a Flash Archive to be installed on different system types, the Entire Plus OEM distribution needs to be installed on the master system.


    • Add the following information to the /var/sadm/system/admin/.platform file. Then, create the Flash Archive.
      PLATFORM_GROUP=sun4v

      Note - You can verify that the Sun4V platform group is supported by using the following command:


      # flar -i <path_to_hybrid>.flar | grep content_architectures

      This command should display the following results:

      content_architectures=sun4u,sun4v
    • Create the Flash Archive, using the -U option to add Sun4V as a supported architecture for the archive. See the following example:
      # flarcreate -n S10U5hybrid -U "content_architectures=sun4u,sun4v" \
      -c -x /data /data/S10U5hybrid.flar

      The above sample command provides /data for the -c option, to indicate the location for the archive. Your value for this -c option should reflect your file setup.


      Note - You can verify that the Sun4V platform group is supported by using the flar command again as shown in the previous step.


  2. Install the Flash Archive on the Sun4V machine. You can use JumpStart, a feature of Oracle Solaris, and a net image to deploy the Flash Archive.

    Note - At this point, the Sun4V machine may not boot. Do not try to patch the machine at this stage. If the machine is allowed to reboot after using JumpStart, you will probably see a message such as:


    Boot device: /pci@780/pci@0/pci@9/scsi@0/disk@0,0:a  File and args:
    Boot load failed.
    The file just loaded does not appear to be executable.
  3. Upgrade the Sun4V machine using either a network image or a DVD image.

    For example, you could use a Solaris 10 Update 6 JumpStart image. Then, you could boot the Sun4V image from that network image, selecting the upgrade option.

    In this example, the upgrade completes with the following issues:

    • Where both .u and .v versions of a package were available, both versions will be installed. See CR 6846077.

    • The /var/sadm/system/admin/.platform file contains incorrect information. See CR 6523030.

    • Any third party .v packages are not part of the Oracle Solaris image. So, third party packages will probably not be upgraded.

  4. Boot the Sun4V machine. You can now apply patches to the machine as needed.

Customizing the Oracle Solaris Installation on the Master System

After you install the Oracle Solaris OS on the master system by using any of the Oracle Solaris installation methods, you can add or delete software and modify system configuration information as necessary. To customize the master system's software, you can do the following:

Creating Archives for SPARC and x86 Systems

If you want to install Oracle Solaris software by using a Flash Archive archive on both SPARC and x86 systems, you must create a separate Flash Archive archive for each platform. Use the Flash Archive that was created from the SPARC master system to install SPARC systems. Use the Flash Archive that was created from the x86 master system to install x86 systems.

SPARC: Supporting Peripheral Devices Not Found on the Master System

Choosing the drivers to install on the master system has the following dependencies.

The Entire Plus OEM Software Group installs all drivers regardless of the hardware that is present on the system. Other software groups provide limited support. If you install another software group and the clone systems have different peripheral devices than the master system, you need to install the appropriate drivers on the master system before you create the archive.


Note - In order for a Flash Archive to be installed on different system types, the Entire Plus OEM distribution needs to be installed on the master system.


How to Get the Support for Peripherals That You Need

You can install support for peripherals on clone systems that are different from the master system in by installing the Entire Plus OEM Software Group or installing selected packages.

Type of Installation
Description
Install the Entire Plus OEM Software Group
The Entire Plus OEM Software Group is the largest Software Group available. This group contains every package that is found in the Oracle Solaris OS. The Entire Plus OEM Software Group installs all drivers regardless of the hardware that is present on the system. A Flash Archive that is created with the Entire Plus OEM Software Group works on any clone system that has peripheral devices supported by the installed release of the Oracle Solaris OS.

Note - In order for a Flash Archive to be installed on different system types, the Entire Plus OEM distribution needs to be installed on the master system.


Installing master systems with the Entire Plus OEM Software Group guarantees compatibility with other peripheral configurations. However, the Entire Plus OEM Software Group requires at least 2.9 GB of disk space. The clone systems might not have the space that is required to install the Entire Plus OEM Software Group.

Install other software groups
If you install the master system with the following software groups, you are limiting the support for peripherals. The master system supports only the peripheral devices that are attached to the master system at the time of installation.
  • Reduced Networking Software Group

  • Core Software Group

  • End User Software Group

  • Developer Software Group

  • Entire Software Group

Installing these software groups could result in your clone systems failing to have all the drivers needed. For example, if you install the Entire Software Group on a master system that has a GX CG6 frame buffer, only the GX CG6 frame buffer driver is installed. This situation is not a problem if all the clone systems that you want to install have the GX CG6 frame buffer or no frame buffer.

Install selected packages
When you install the master system, you can install only the packages that you need for the master system and the clone systems. By selecting specific packages, you can install only support for the peripherals that you know exist on the master system or clone systems.

Planning the Creation of a Flash Archive Archive

You can create an archive from the master system for an initial installation. Or, if you have already installed an archive on clone systems, you can create a differential archive from two system images. The differential archive installs only the differences between the two images.

Planning to Create the Flash Archive Archive for an Initial Installation

After you install the master system, the next task in the Flash Archive installation process is to create a Flash Archive. Files on the master system are copied to a Flash Archive along with various pieces of identification information. You can create a Flash Archive while the master system is running in multiuser mode or single-user mode. You can also create a Flash Archive after you boot from one of the following:


Caution

Caution - A Flash Archive cannot be properly created when a non-global zone is installed. The Solaris Flash feature is not compatible with the Oracle Solaris Zones partitioning technology. If you create a Flash Archive, the resulting archive is not installed properly when the archive is deployed under these conditions:

  • The archive is created in a non-global zone

  • The archive is created in a global zone that has non-global zones installed


Creating Flash Archive With RAID-1 Volumes

You can create a Flash Archive archive when you have Solaris Volume Manager RAID-1 volumes configured. The Flash Archive creation software removes all RAID-1 volume information from the archive to keep the integrity of the clone system. With custom JumpStart you can rebuild the RAID-1 volumes by using a JumpStart profile. With Live Upgrade, a feature of Oracle Solaris, you create a boot environment with RAID-1 volumes configured and install the archive. The Oracle Solaris installation program cannot be used to install RAID-1 volumes with a Flash Archive.


Note - Veritas VxVM stores configuration information in areas not available to Flash Archive. If Veritas VxVM file systems have been configured, you should not create a Flash Archive. Also, Oracle Solaris install, including JumpStart and Live Upgrade do not support rebuilding VxVM volumes at installation time. Therefore, if you are planning to deploy Veritas VxVM software using a Flash Archive, the archive must be created prior to configuring the VxVM file systems. The clone systems must be then configured individually after the archive has been applied and the system rebooted.


Creating an Archive That Contains Large Files

The default copy method that is used when you create a Flash Archive is the cpio utility. Individual file sizes cannot be over 4 GB. If you have large individual files, you can create an archive with the pax copy method. The flarcreate command with the -L pax option uses the pax utility to create an archive without limitations on individual file sizes. Individual file sizes can be greater than 4 GB.

Planning to Create the Flash Archive Differential Archive for an Update

If you have a clone system that is already installed with an archive and want to update it, you can create a differential archive that contains only the differences between two images, the unchanged master image and an updated master image. The differences between these two images is the differential archive.

After you update a clone system with a differential archive, only the files that are in the differential archive are changed on the clone system. Scripts can be used to customize the archive before or after installation, which is especially helpful for reconfiguration.

You can install a Flash Archive differential archive with the custom JumpStart installation method. Or, you can use Live Upgrade to install a differential archive on an inactive boot environment.

An unchanged master image should be saved after the initial installation so this image can be accessed by any of the following methods.

For step-by-step instructions, see To Create a Flash Archive Differential Archive With an Updated Master Image.

Customizing an Archive's Files and Directories

When you create a Flash Archive, some files and directories that are to be copied from the master system can be excluded. If you have excluded a directory, you can also restore specified files or subdirectories under that directory. For example, you could create an archive that excludes all files and directories in /a/aa/bb/c. The content of the bb subdirectory could be included. The only content would then be in the bb subdirectory.


Caution

Caution - Use the flarcreate file-exclusion options with caution. If you exclude some directories, others that you were unaware of might be left in the archive, such as system configuration files. The system would then be inconsistent and the installation would not work. Excluding directories and files is best used with data that can easily be removed without disrupting the system, such as large data files.


The following table lists the flarcreate command options that can exclude files and directories and restore files and subdirectories.

How Specified?
Options That Exclude
Options That Include
Specify the name of the directory or file
-x exclude_dir/filename
-y include_dir/filename
Use a file that contains a list
-X list_filename

-z list_filename

-f list_filename

-z list_filename

For descriptions of these options, see Table 6-7.

For examples of customizing an archive, see Creating a Flash Archive and Customizing Files (Examples).

Customizing an Archive With Scripts

After the software is installed on the master system, special scripts can be run during creation, installation, postinstallation and first reboot. These scripts enable you to do the following:

Guidelines for Creating a Custom Script

When creating scripts other than the reboot script, following these guidelines to assure the script does not corrupt the OS or otherwise disrupt the system. These guidelines enable the use of Live Upgrade, which creates a new boot environment for installation of the OS. The new boot environment can be installed with an archive while the current system is running.


Note - These guidelines are not for reboot scripts that are allowed to run daemons or make other types of modification to the root (/) file system.


For an overview of Live Upgrade, see Chapter 2, Live Upgrade (Overview), in Oracle Solaris 10 8/11 Installation Guide: Live Upgrade and Upgrade Planning.

Flash Archive Sections

Flash Archive contains the following sections. Some sections can be used by you to identify and customize the archive and view status information on the installation. For a further description of each section, see Chapter 6, Flash Archive (Reference).

Table 2-2 Flash Archive Sections

Section Name
Informational Only
Description
Archive cookie
X
The first section contains a cookie that identifies the file as a Flash Archive.
Archive identification
The second section contains keywords with values that provide identification information about the archive. Some identification information is supplied by the archive software. Other specific identification information can be added by you with options to the flarcreate command.
User-defined
This section follows the archive identification section. You can define and insert these sections to customize the archive. The Flash Archive does not process any sections that you insert. For example, a section could contain a description of the archive or perhaps a script to check the integrity of an application.
Manifest
X
This section is produced for a Flash Archive differential archive and is used for validating a clone system. The manifest section lists the files on a system to be retained, added to, or deleted from the clone system. This section is informational only, lists the files in an internal format, and cannot be used for scripting.
Predeployment, Postdeployment, Reboot
X
This section contains internal information that the Flash software uses before and after installing an OS image. Any scripts that you have provided are included in this section.
Summary
This section contains messages about the archive creation. The section also records the activities of predeployment and postdeployment scripts. You can view the success of the installation in this section by writing a script to send output to this section.
Archive files
X
The archive files section contains the files that have been gathered from the master system.

When to Create the Archive for an Initial Installation

Create the archive when the system is in as static a state as possible. Create the archive after software is installed on the master system and before software is configured.

Where to Store the Flash Archive

After you create the Flash Archive, you can save the archive on the hard disk of the master system or on a tape. After you save the archive, you can copy this archive to any file system or media that you choose.

Compressing the Archive

When you create the Flash Archive, you can specify that the archive be saved as a compressed file by using the compress(1) utility. An archive that is compressed requires less disk storage space and creates less congestion when you install the archive over a network.

Planning the Installation of Flash Archive

The final task in the Flash Archive installation process is to install Flash Archive on clone systems. You can use any of the Oracle Solaris installation methods to install Flash Archive on clone systems.


Note - Starting with the Oracle Solaris 10 9/10 release, Auto Registration, a feature of Oracle Solaris, is enabled by default. The impact of Auto Registration on your work with Flash Archive varies depending on which installation method is used. See What's New in the Oracle Solaris 10 9/10 Release.

If you are using a pre-Oracle Solaris 10 9/10 archive, there is no Auto Registration impact.


Installation Program
Archives Storable on This Media
For Step-by-Step Instructions
Solaris installation program
  • NFS server
  • HTTP server

  • FTP server

  • Local tape

  • Local device, including DVD or CD

  • Local file

Custom JumpStart installation program
  • NFS server
  • HTTP or HTTPS server

  • FTP server

  • Local tape

  • Local device, including DVD or CD

  • Local file

Live Upgrade
  • NFS server
  • HTTP server

  • FTP server

  • Local tape

  • Local device, including DVD or CD

  • Local file