Installing a ZFS Root File
System (Flash Archive Installation)
In the Solaris 10 10/09 release, a Flash archive can be created on a
system that is running a UFS root file system or a ZFS root file system. A
Flash archive of a ZFS root pool contains the entire pool hierarchy, except
for the swap and dump volumes, and any excluded datasets. The swap and dump
volumes are created when the Flash archive is installed. You can use the Flash
archive installation method as follows:
-
Generate a Flash archive that can be used to install and boot
a system with a ZFS root file system
-
Perform a JumpStart installation of a system by using a ZFS
Flash archive. Creating a ZFS Flash archive clone an entire root pool, not
individual boot environments. Individual datasets within the pool can be excluded
using the flarcreate and flar command's -D option.
Review the following limitations before you consider installing a system
with a ZFS Flash archive:
-
Only a JumpStart installation of a ZFS Flash archive is supported.
You cannot use the interactive installation option of a Flash archive to install
a system with a ZFS root file system. Nor can you use a Flash archive to install
a ZFS BE with Solaris Live Upgrade.
-
You can only install a system of the same architecture with
a ZFS Flash archive. For example, an archive that is created on a sun4u system
cannot be installed on a sun4v system.
-
Only a full initial installation of a ZFS Flash archive is
supported. You cannot install differential Flash archive of a ZFS root file
system nor can you install a hybrid UFS/ZFS archive.
-
Existing UFS Flash archives can still only be used to install
a UFS root file system. The ZFS Flash archive can only be used to install
a ZFS root file system.
-
Although the entire root pool, minus any explicitly excluded
datasets, is archived and installed, only the ZFS BE that is booted when the
archive is created is usable after the Flash archive is installed. However,
pools that are archived with the flar or flarcreate command's -R rootdir option can be used to archive
a root pool other than the one that is currently booted.
-
A ZFS root pool name that is created with a Flash archive
must match the master root pool name. The root pool name that is used to create
the Flash archive is the name that is assigned to the new pool created. Changing
the pool name is not supported.
-
The flarcreate and flar command
options to include and exclude individual files are not supported in a ZFS
Flash archive. You can only exclude entire datasets from a ZFS Flash archive.
-
The flar info command is not supported
for a ZFS Flash archive. For example:
# flar info -l zfs10u8flar
ERROR: archive content listing not supported for zfs archives.
|
After a master system is installed with or upgraded to the Solaris 10
10/09 release, you can create a ZFS Flash archive to be used to install a
target system. The basic process is as follows:
-
Install or upgrade to the Solaris 10 10/09 release on the
master system. Add any customizations that you want.
-
Create the ZFS Flash archive with the flarcreate command
on the master system. All datasets in the root pool, except for the swap and
dump volumes, are included in the ZFS Flash archive.
-
Create a JumpStart profile to include the flash archive information
on the installation server.
-
Install the ZFS Flash archive on the target system.
The following archive options are supported for installing a ZFS root
pool with a Flash archive:
-
Use the flarcreate or flar command
to create a Flash archive from the specified ZFS root pool. If not specified,
a Flash archive of the default root pool is created.
-
Use flarcreate -D dataset to exclude the specified datasets from the Flash archive.
This option can be used multiple times to exclude multiple datasets.
After a ZFS Flash archive is installed, the system is configured as
follows:
-
The entire dataset hierarchy that existed on the system where
the Flash archive was created is recreated on the target system, minus any
datasets that were specifically excluded at the time of archive creation.
The swap and dump volumes are not included in the Flash archive.
-
The root pool has the same name as the pool that was used
to create the archive.
-
The boot environment that was active at the time the Flash
archive was created is the active and default BE on the deployed systems.
Example 5–2 Installing a System with a ZFS Flash Archive
After the master system is installed or upgraded to the Solaris 10 10/09
release, create a Flash archive of the ZFS root pool. For example:
# flarcreate -n zfs10u8BE zfs10u8flar
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
The archive will be approximately 4.94GB.
Creating the archive...
Archive creation complete.
Running postcreation scripts...
Postcreation scripts done.
Running pre-exit scripts...
Pre-exit scripts done.
|
On the system that will be used as the installation server, create a
JumpStart profile as you would for installing any system. For example, the
following profile is used to install the zfs10u8flar archive.
install_type flash_install
archive_location nfs system:/export/jump/zfs10u8flar
partitioning explicit
pool rpool auto auto auto mirror c0t1d0s0 c0t0d0s0
|