JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 10 1/13 Installation Guide: JumpStart Installations     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

1.  Where to Find Oracle Solaris Installation Planning Information

2.  JumpStart (Overview)

3.  Preparing JumpStart Installations (Tasks)

4.  Using Optional JumpStart Features (Tasks)

Creating Begin Scripts

About Begin Scripts

Creating Derived Profiles With a Begin Script

Tracking Installation Duration With a Begin Script and Finish Script

Creating Finish Scripts

About Finish Scripts

Adding Files With a Finish Script

Adding Packages or Patches With a Finish Script

Customizing the Root Environment With a Finish Script

Non-Interactive Installations With Finish Scripts

Creating a Compressed Configuration File

How to Create a Compressed Configuration File

Creating Disk Configuration Files

SPARC: How to Create a Single-Disk Configuration File

SPARC: How to Create a Multiple-Disk Configuration File

x86: How to Create a Single-Disk Configuration File

x86: How to Create a Multiple-Disk Configuration File

Using a Site-Specific Installation Program

5.  Creating Custom Rule and Probe Keywords (Tasks)

6.  Performing a JumpStart Installation (Tasks)

7.  Installing With JumpStart (Examples)

8.  JumpStart Keyword Reference

9.  Installing a ZFS Root Pool With JumpStart

Glossary

Index

Creating Disk Configuration Files

This section describes how to create single-disk and multiple-disk configuration files. Disk configuration files enable you to use pfinstall(1M) from a single system to test profiles against different disk configurations.

SPARC: How to Create a Single-Disk Configuration File

  1. Locate a SPARC based system with a disk you want to test.
  2. 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.

  3. Redirect the output of the prtvtoc(1M) command to a file.
    # prtvtoc /dev/rdsk/device-name >disk-config-file
    /dev/rdsk/device-name

    The device name of the system's disk. device-name must be in the form cwtxdys2 or cxdys2.

    disk-config-file

    The name of the disk configuration file.

Example 4-9 SPARC: Creating a Disk Configuration File

The following example shows how to create a single–disk configuration file, 104_test, on a SPARC based system with a 104 MB disk.

Redirect the output of the prtvtoc command to a single-disk configuration file that is named 104_test:

# prtvtoc /dev/rdsk/c0t3d0s2 >104_test

The contents of the 104_test file resemble the following example:

* /dev/rdsk/c0t3d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      72 sectors/track
*      14 tracks/cylinder
*    1008 sectors/cylinder
*    2038 cylinders*    2036 accessible cylinders
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       1      2    00          0     164304   164303   /
       2      5    00          0    2052288  2052287  
       3      0    00     164304     823536   987839   /disk2/b298
       5      0    00     987840     614880  1602719   /install/298/sparc/work
       7      0    00    1602720     449568  2052287   /space

See Also

Testing a Profile contains information about using disk configuration files to test profiles.

SPARC: How to Create a Multiple-Disk Configuration File

  1. Locate a SPARC based system with a disk you want to test.
  2. 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.

  3. Redirect the output of the prtvtoc(1M) command to a file.
    # prtvtoc /dev/rdsk/device-name >disk-config-file
    /dev/rdsk/device-name

    The device name of the system's disk. device-name must be in the form cwtxdys2 or cxdys2.

    disk-config-file

    The name of the disk configuration file.

  4. Concatenate the single–disk configuration files and save the output in a new file.
    # cat disk-file1 disk-file2 >multi-disk-config-file

    The new file becomes the multiple-disk configuration file, as in the following example.

    # cat 104_disk2 104_disk3 104_disk5 >multi_disk_test
  5. If the target numbers in the disk device names are not unique in the multiple-disk configuration file, make the target numbers unique in the disk device names.

    For example, assume that the file contains the same target number, t0, for different disk device names, as shown here.

    * /dev/rdsk/c0t0d0s2 partition map
    ...
    * /dev/rdsk/c0t0d0s2 partition map

    Change the second target number to t2, as shown here:

    * /dev/rdsk/c0t0d0s2 partition map
    ...
    * /dev/rdsk/c0t2d0s2 partition map

x86: How to Create a Single-Disk Configuration File

  1. Locate an x86 based system that contains a disk that you are testing.
  2. 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.

  3. Create part of the single-disk configuration file by saving the output of the fdisk(1M) command in a file.
    # fdisk -R -W disk-config-file -h /dev/rdsk/device-name
    disk-config-file

    The name of a disk configuration file.

    /dev/rdsk/device-name

    The device name of the fdisk layout of the entire disk. device-name must be in the form cwtxdys0 or cxdys0.

  4. Append the output of the prtvtoc(1M) command to the disk configuration file:
    # prtvtoc /dev/rdsk/device-name >>disk-config
    /dev/rdsk/device-name

    The device name of the system's disk. device-name must be in the form cwtxdys2 or cxdys2.

    disk-config

    The name of the disk configuration file.

Example 4-10 x86: Creating a Disk Configuration File

The following example shows how to create a single-disk configuration file, 500_test, on an x86 based system that contains a 500 MB disk.

First, save the output of the fdisk command to a file that is named 500_test:

# fdisk -R -W 500_test -h /dev/rdsk/c0t0d0p0

The 500_test file looks like the following:

 * /dev/rdsk/c0t0d0p0 default fdisk table
* Dimensions:
*     512 bytes/sector
*      94 sectors/track
*      15 tracks/cylinder
*    1455 cylinders
*
*  HBA Dimensions:
*     512 bytes/sector
*      94 sectors/track
*      15 tracks/cylinder
*    1455 cylinders
*
* systid:
*  1:    DOSOS12
*  2:    PCIXOS
*  4:    DOSOS16
*  5:    EXTDOS
*  6:    DOSBIG
*  86:   DOSDATA
*  98:   OTHEROS
*  99:   UNIXOS
* 130:   SUNIXOS
*
* Id  Act Bhead Bsect   Bcyl  Ehead  Esect  Ecyl Rsect  Numsect
 130  128 44    3       0     46    30     1001 1410   2050140

Append the output of the prtvtoc command to the 500_test file:

# prtvtoc /dev/rdsk/c0t0d0s2 >>500_test

The 500_test file is now a complete disk configuration file:

* /dev/rdsk/c0t0d0p0 default fdisk table    
* Dimensions:
*     512 bytes/sector
*      94 sectors/track
*      15 tracks/cylinder
*    1455 cylinders
*
*  HBA Dimensions:
*     512 bytes/sector
*      94 sectors/track
*      15 tracks/cylinder
*    1455 cylinders
*
* systid:
*  1:    DOSOS12
*  2:    PCIXOS
*  4:    DOSOS16
*  5:    EXTDOS
*  6:    DOSBIG
*  86:   DOSDATA
*  98:   OTHEROS
*  99:   UNIXOS
*  130:  SUNIXOS
*
* Id  Act Bhead Bsect Bcyl  Ehead  Esec  Ecyl Rsect  Numsect
 130  128 44    3     0     46    30    1001 1410   2050140
* /dev/rdsk/c0t0d0s2 partition map
*
* Dimensions:
*      512 bytes/sector
*       94 sectors/track
*       15 tracks/cylinder
*     1110 sectors/cylinder
*     1454 cylinders
*     1452 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*                          First    Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01       1410   2045910   2047319
       7      6    00       4230   2043090   2047319  /space
       8      1    01          0      1410     1409
       9      9    01       1410      2820     422987

See Also

Testing a Profile contains information about using disk configuration files to test profiles.

x86: How to Create a Multiple-Disk Configuration File

  1. Locate an x86 based system that contains a disk that you are testing.
  2. 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.

  3. Create part of the single-disk configuration file by saving the output of the fdisk(1M) command in a file.
    # fdisk -R -W disk-config-file -h /dev/rdsk/device-name
    disk-config-file

    The name of a disk configuration file.

    /dev/rdsk/device-name

    The device name of the fdisk layout of the entire disk. device-name must be in the form cwtxdys0 or cxdys0.

  4. Append the output of the prtvtoc(1M) command to the disk configuration file:
    # prtvtoc /dev/rdsk/device-name >>disk-config
    /dev/rdsk/device-name

    The device name of the system's disk. device-name must be in the form cwtxdys2 or cxdys2.

    disk-config

    The name of the disk configuration file.

  5. Concatenate the single-disk configuration files and save the output in a new file.
    # cat disk-file1 disk-file2 >multi-disk-config-file

    The new file becomes the multiple-disk configuration file, as in the following example.

    # cat 104_disk2 104_disk3 104_disk5 >multi_disk_test
  6. If the target numbers in the disk device names are not unique in the multiple-disk configuration file, make the target numbers unique.

    For example, the file might contain the same target number, t0, for different disk device names as shown here:

    * /dev/rdsk/c0t0d0s2 partition map
    ...
    * /dev/rdsk/c0t0d0s2 partition map

    Change the second target number to t2, as shown here:

    * /dev/rdsk/c0t0d0s2 partition map
    ...
    * /dev/rdsk/c0t2d0s2 partition map