Thursday, January 12, 2012

Performing a Reconfiguration Boot in Solaris

For example, you can use a boot process to add a new device to a newly generated /etc/path_to_inst file and to the /dev and /devices directories.

The following steps reconfigure a system to recognize a new disk.

  1. Create the /reconfigure file. This file causes the system to check for the presence of any newly installed devices the next time it is powered on or booted.

    # touch /reconfigure
  2. Shut down the system by using the init 5 command. This command safely powers off the system, allowing for addition or removal of devices. (If the device is already attached to your system, you can shut down to the ok prompt with the command init 0.)

    # init 5
  3. Install the peripheral device. Make sure that the address of the device being added does not conflict with the address of other devices on the system.
  4. Turn on the power to all external devices.
  5. Verify that the peripheral device has been added by issuing either the prtconf command or the format command.

    After the disk is recognized by the system, begin the process of defining disk slices.

    Note: I
    f the /reconfigure file was not created before the system was shut down, you can invoke a manual reconfiguration boot with the programmable read-only memory (PROM) level command: boot -r
Many systems are running critical customer applications on a 24-hour, 7-day-a-week basis. It might not be possible to perform a reconfiguration boot on these systems. In this situation, you can use the devfsadm command.

The devfsadm command performs the device reconfiguration process and updates the /etc/path_to_inst file and the /dev and /devices directories during reconfiguration events.
The devfsadm command attempts to load every driver in the system and attach all possible device instances.  It then creates the device files in the /devices directory and the logical links in the /dev directory.  In addition to managing these directories, the devfsadm command also maintains the /etc/path_to_inst file.

# devfsadm

To restrict the operation of the devfsadm command to a specific device class, use the -c option.

# devfsadm -c device_class

The values for device_class include disk, tape, port, audio, and pseudo.  For example, to restrict the devfsadm command to the disk device class, perform the command:

# devfsadm -c disk

Use the -c option more than once on the command line to specify multiple device classes. For example, to specify the disk, tape, and audio device classes, perform the command:

# devfsadm -c disk -c tape -c audio

To restrict the use of the devfsadm command to configure only devices for a named driver, use the -i option.

# devfsadm -i driver_name

The following examples use the -i option.

  • To configure only those disks supported by the dad driver, perform the command:

# devfsadm -i dad
  • To configure only those disks supported by the sd driver, perform the command:
# devfsadm -i sd
  • To configure devices supported by the st driver, perform the command:
# devfsadm -i st

For a verbose output of changes to the device tree, perform the command:

# devfsadm -v

To invoke cleanup routines that remove unreferenced symbolic links for devices, perform the command:

# devfsadm -C

No comments:

Post a Comment