Solaris 8 Advanced Installation Guide

SPARC: To Create a Disk Configuration File

Disk configuration files enable you to use pfinstall(1M) from a single system to test profiles against different disk configurations. Follow this procedure to create single- or multiple-disk configuration files:

  1. Locate a SPARC based system with a disk you want to test.

  2. Become superuser.

  3. Create a single disk configuration file by redirecting the output of the prtvtoc(1M) command to a file:


    # prtvtoc /dev/rdsk/device_name >disk_config
    

    where /dev/rdsk/device_name is the device name of the system's disk (device_name must be in the form cwtxdys2 or cxdys2) and disk_config is the name of the disk configuration file.

  4. Do you want to test installing Solaris software on multiple disks?

    • If no, stop, you're done.

    • If yes, concatenate the single disk configuration files together and save the output in a new file:


      # cat disk_file1 disk_file2 >multi_disk_config
      

      The new file becomes the multiple-disk configuration file. For example:


      # cat 104_disk2 104_disk3 104_disk5 >multi_disk_test
      
  5. Are the target numbers in the disk device names unique in the multiple-disk configuration file you created in the previous step?

    • If yes, stop, you're done.

    • If no, open the file with the text editor of your choice and make them unique.

      If, for example, 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

SPARC: Example

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

You redirect the output of the prtvtoc command to a single disk configuration file named 104_test:


# prtvtoc /dev/rdsk/c0t3d0s2 >104_test

The contents of the 104_test file look like this:

* /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

You have completed creating disk configuration files for a SPARC based system. "Testing a Profile" contains information about using disk configuration files to test profiles.