This section describes how to create single-- and multiple-disk configuration files for a SPARC-based system. Disk configuration files enable you to test profiles against different disk configurations before actually installing Solaris software.
Disk configuration files enable you to use pfinstall from a single system to test profiles against different disk configurations. Follow this procedure to create single-- or multiple-disk configuration files for a SPARC-based system:
Locate a SPARC-based system with a disk that you want to test.
Become root.
Create a single disk configuration file by redirecting the output of the prtvtoc command to a file:
# prtvtoc /dev/rdsk/device_name > disk_config |
/dev/rdsk/device_name |
Is the device name of the system's disk. device_name must be in the form cwtxdys2 or cxdys2. |
disk_config |
Is the name of the disk configuration file. |
If you want to test installing Solaris software on multiple disks, concatenate single disk configuration files together and save the output to 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 |
If you've created a multiple-disk configuration file, and the target numbers in the disk device names are not unique, you must edit this file and make them unique.
For example, if you concatenated two disk configuration files together that each had target numbers of t0, you would have to change the second target number to t2 as shown:
* /dev/rdsk/c0t0d0s2 partition map ... * /dev/rdsk/c0t2d0s2 partition map |
You have completed creating disk configuration files for a SPARC-based system. To use disk configuration files to test profiles, see "Testing a Profile".
The following example creates a single disk configuration file, 104_test, on a SPARC-based system with a 104-Mbyte disk.
You would redirect the output of the prtvtoc command to a single disk configuration file named 104_test.
# prtvtoc /dev/rdsk/c0t3d0s2 > 104_test |
The 104_test file would 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 |