After you create a profile, use the pfinstallcommand to test the profile. Test the profile before installing or upgrading a system. Testing a profile is especially useful when you are creating upgrade profiles that reallocate disk space.
Review the installation output that is generated by pfinstall to determine if the profile works as you intended. For example, use the profile to determine if a system has enough disk space for installing a new release of the Solaris software before you perform the installation on that system.
The pfinstall command enables you to test a profile against the following:
The system's disk configuration where pfinstall is being run.
Other disk configurations. You use a disk configuration file that represents a structure of a disk, for example, a disk's bytes/sector, flags, and slices.
You cannot use a disk configuration file to test a profile you intend to use for installing a system. Instead, you must test the profile against the system's actual disk configuration and the software that is currently installed on that system.
Locate a system on which to test the profile.
Test an initial installation profile on a system that is running at least the Solaris 10 1/06 software.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Create a temporary mount point.
# mkdir /tmp/mnt |
Mount the directory that contains the profile or profiles that you want to test. Type the instructions that apply.
To test the profile with a specific system memory size, set SYS_MEMSIZE to the specific memory size in MB.
# SYS_MEMSIZE=memory-size # export SYS_MEMSIZE |
Depending on whether you mounted a directory in Step 4, do one of the following:
Test the profile.
# /usr/sbin/install.d/pfinstall -D:-d disk-config-file -c path profile |
You must include the -d option or the -D option when using the pfinstall command. If you do not include one of these options, the command uses the profile you that specify for installing the Solaris software. As a result, all of the system data is overwritten.
pfinstall uses the current system's disk configuration to test the profile.
pfinstall uses the disk configuration file, disk-config-file, to test the profile. If disk-config-file is not located in the directory where pfinstall is run, you must specify the path.
You cannot use the -d disk-config-file option with an upgrade profile, install_type upgrade. You must always test an upgrade profile against a system's disk configuration, that is, you must use the -D option.
The path to the Solaris software image. You use this option, for example, if the system is using Solaris Volume Manager to mount the Solaris Software - 1 CD for your platform.
The -c option is not required if you booted from at least the Solaris 10 1/06 DVD or the Solaris 10 1/06 Software - 1 CD image for your platform. The DVD or CD image is mounted on /cdrom as part of the booting process.
The name of the profile to test. If profile is not in the directory where pfinstall is being run, you must specify the path.
The following example shows how to use pfinstall to test a profile that is named basic_prof. The profile is tested against the disk configuration on a system on which the Solaris software is installed. The basic_prof profile is located in the /jumpstart directory, and the path to the Solaris 10 1/06 Software for x86 Platforms - 1 CD image is specified because Solaris Volume Manager is being used.
# cd /jumpstart # /usr/sbin/install.d/pfinstall -D -c /cdrom/path-name basic_prof |
The following example shows how to use pfinstall to test the profile that is named basic_prof on a Solaris 10 1/06 system. The test is performed against the 535_test disk configuration file. The test checks for 64 MB of system memory. This example uses a Solaris 10 1/06 Software for x86 Platforms - 1 CD image that is located in the /export/install directory.
# SYS_MEMSIZE=64 # export SYS_MEMSIZE # /usr/sbin/install.d/pfinstall -d 535_test -c /export/install basic_prof |