InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (8966 KB)
cfgadm_scsi(1M)Name | Synopsis | Description | Options | Examples | Files | Attributes | See Also | Notes | Warnings Name
Synopsis
/usr/sbin/cfgadm [-f] [-y | -n] [-v] [-o hardware_option]
-c function ap_id...
/usr/sbin/cfgadm [-f] [-y | -n] [-v] [-o hardware_option]
-x hardware_function ap_id...
/usr/sbin/cfgadm [-v] [-a] [-s listing_option] [-o hardware_option]
[-l [ap_id | ap_type ... ]]
/usr/sbin/cfgadm [-v] [-o hardware_option] -t ap_id... /usr/sbin/cfgadm [-v] [-o hardware_option] -h [ap_id]... Description
The SCSI hardware specific library /usr/lib/cfgadm/scsi.so.1 provides the functionality for SCSI hot-plugging through the cfgadm(1M) command. cfgadm operates on attachment points, which are locations in the system where hardware resources can be dynamically reconfigured. Refer to cfgadm(1M) for information regarding attachment points. For SCSI hot-plugging, each SCSI controller is represented by an attachment point in the device tree. In addition, each SCSI device is represented by a dynamic attachment point. Attachment points are named through ap_ids. Two types of ap_ids are defined: logical and physical. The physical ap_id is based on the physical pathname, whereas the logical ap_id is a shorter more user-friendly name. For SCSI controllers, the logical ap_id is usually the corresponding disk controller number. For example, a typical logical ap_id would be c0. SCSI devices are named relative to the controller ap_id. Thus if a disk device is attached to controller c0, its ap_id can be:
where dsk/c0t0d0 identifies the specific device. In general, the device identifier is derived from the corresponding logical link for the device in /dev. For example, a SCSI tape drive logical ap_id could be c0::rmt/0. Here c0 is the logical ap_id for the SCSI controller and rmt/0 is derived from the logical link for the tape drive in /dev/rmt. If an identifier can not be derived from the link in /dev, a unique identifier will be assigned to it. For example, if the tape device has no link in /dev, it can be assigned an ap_id of the form c0::st3 where st3 is a unique internally generated identifier. A simple listing of attachment points in the system will include attachment points at SCSI controllers but not SCSI devices. Use the -a flag to the list option (-l) to list SCSI devices as well. For example:
To list SCSI devices in addition to SCSI controllers:
Refer to cfgadm(1M) for more information regarding listing attachment points. The receptacle and occupant state for attachment points at the SCSI controller have the following meanings: The corresponding states for individual SCSI devices are: Options
cfgadm defines several types of operations besides listing (-l).These operations include testing, (-t), invoking configuration state changes, (-c), invoking hardware specific functions (-x), and obtaining configuration administration help messages (-h). ExamplesExample 1 Configuring a DiskThe following command configures a disk attached to controller c0:
Example 2 Unconfiguring a DiskThe following command unconfigures a disk attached to controller c0:
Example 3 Adding a New DeviceThe following command adds a new device to controller c0:
The system responds with the following:
Enter:
The system responds with the following:
Enter:
Example 4 Replacing a DeviceThe following command replaces a device attached to controller c0:
The system responds with the following:
Enter:
The system responds with the following:
Enter:
Example 5 Encountering a Mounted File System While Unconfiguring a DiskThe following command illustrates encountering a mounted file system while unconfiguring a disk:
The system responds with the following:
Example 6 Display the Value of the Locator for a DiskThe following command displays the value of the locator for a disk. This example is specific to the SPARC Enterprise Server family:
The system responds with the following:
Example 7 Set the Value of the Locator for a DiskThe following command sets the value of the locator for a disk. This example is specific to the SPARC Enterprise Server family:
The system does not print anything in response. Files
AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoNotesThe disconnect (quiesce) operation is not supported on controllers which control disks containing critical partitions such as root (/), /usr, swap, or /var. The disconnect operation should not be attempted on such controllers. Incorrect usage can result in a system hang and require a reboot. When a controller is in the disconnected (quiesced) state, there is a potential for deadlocks occurring in the system. The disconnect operation should be used with caution. A controller should be kept in the disconnected state for the minimum period of time required to accomplish the DR operation. The disconnect command is provided only to allow the replacement of the SCSI cables while the system is running. It should not be used for any other purpose. The only fix for a deadlock (if it occurs) is to reboot the system. Hotplugging operations are not supported by all SCSI controllers. WarningsThe connectors on some SCSI devices do not conform to SCSI hotplug specifications. Performing hotplug operations on such devices can cause damage to the hardware on the SCSI bus. Refer to your hardware manual for additional information. Name | Synopsis | Description | Options | Examples | Files | Attributes | See Also | Notes | Warnings |
||||||||||||||||||||||||