Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Administration: Devices and File Systems Oracle Solaris 11.1 Information Library |
1. Managing Removable Media (Tasks)
2. Writing CDs and DVDs (Tasks)
4. Dynamically Configuring Devices (Tasks)
Dynamic Reconfiguration and Hot-Plugging
Detaching PCI or PCIe Adapter Cards
Attaching PCI or PCIe Adapter Cards
PCIe Hot-Plugging With the (hotplug) Command
Troubleshooting PCI Hot Plug Operations (hotplug)
SCSI Hot-Plugging With the cfgadm Command (Task Map)
SCSI Hot-Plugging With the cfgadm Command
How to Display Information About SCSI Devices
How to Unconfigure a SCSI Controller
How to Configure a SCSI Controller
How to Configure a SCSI Device
How to Disconnect a SCSI Controller
SPARC: How to Connect a SCSI Controller
SPARC: How to Add a SCSI Device to a SCSI Bus
SPARC: How to Replace an Identical Device on a SCSI Controller
SPARC: How to Remove a SCSI Device
PCI or PCIe Hot-Plugging With the cfgadm Command (Task Map)
PCI or PCIe Hot-Plugging With the cfgadm Command
How to Display PCI Slot Configuration Information
How to Remove a PCI Adapter Card
Troubleshooting PCI Configuration Problems
SATA Hot-Plugging With the cfgadm Command
How to Unconfigure a SATA Device
How to Configure a SATA Device
Reconfiguration Coordination Manager (RCM) Script Overview
How Does the RCM Script Process Work?
RCM Script Processing Environment
Application Developer RCM Script (Task Map)
System Administrator RCM Script (Task Map)
Installing or Removing an RCM Script
Tape Backup RCM Script Example
What the Tape Backup RCM Script Does
Outcomes of the Tape Backup Reconfiguration Scenarios
Example--Tape Backup RCM Script
5. Managing USB Devices (Tasks)
6. Using InfiniBand Devices (Overview/Tasks)
9. Administering Disks (Tasks)
11. Configuring Storage Devices With COMSTAR (Tasks)
12. Configuring and Managing the Oracle Solaris Internet Storage Name Service (iSNS)
13. The format Utility (Reference)
14. Managing File Systems (Overview)
15. Creating and Mounting File Systems (Tasks)
16. Configuring Additional Swap Space (Tasks)
17. Copying Files and File Systems (Tasks)
This section describes various SCSI hot-plugging procedures that you can perform with the cfgadm command.
Note - The SCSI framework generally supports hot-plugging of SCSI devices. However, you should consult your hardware documentation to confirm whether hot-plugging is supported for your SCSI devices.
These procedures use specific devices as examples to illustrate how to use the cfgadm command to hot-plug SCSI components. The device information that you supply, and that the cfgadm command displays, depends on your system configuration.
All of the procedures in this section require administrative privileges that are not generally granted to user accounts. For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
The following procedure uses SCSI controllers c2 and c3 and the devices that are attached to them in the examples of the type of device configuration information that you can display with the cfgadm command.
Note - If the SCSI device is not supported by the cfgadm command, the device does not display in the cfgadm command output.
# cfgadm -l Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c3 scsi-sas connected configured unknown
In this example, c2 and c3 represent two SCSI controllers.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
Note - The cfgadm -l commands displays information about SCSI HBAs but not SCSI devices. Use the cfgadm -al command to display information about SCSI devices such as disk and tapes.
The following procedure uses SCSI controller c2 in the example of unconfiguring a SCSI controller.
# cfgadm -c unconfigure c2
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected unconfigured unknown c2::dsk/c2t0d0 unavailable connected uncconfigured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
Notice that the Occupant column for c2 specifies unconfigured, indicating that the SCSI bus has no configured occupants.
If the unconfigure operation fails, see How to Resolve a Failed SCSI Unconfigure Operation.
The following procedure uses SCSI controller c2 in the example of configuring a SCSI controller.
# cfgadm -c configure c2
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 unavailable connected unconfigured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
The previous unconfigure procedure removed all devices on the SCSI bus. Now all the devices are configured back into the system.
The following procedure uses SCSI disk c2t0d0 in the example of configuring a SCSI device.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 unavailable connected unconfigured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
# cfgadm -c configure c2::dsk/c2t0d0
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
The following procedure uses SCSI controller c2 in the example of disconnecting a SCSI device.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
# cfgadm -c disconnect c2 WARNING: Disconnecting critical partitions may cause system hang. Continue (yes/no)? y
Caution - This command suspends all I/O activity on the SCSI bus until the cfgadm -c connect command is used. The cfgadm command does some basic checking to prevent critical partitions from being disconnected, but it cannot detect all cases. Inappropriate use of this command can result in a system hang and could require a system reboot. |
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 unavailable disconnected configured unknown c2::dsk/c2t0d0 unavailable disconnected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
The controller and all the devices that are attached to it are disconnected from the system.
The following procedure uses SCSI controller c2 in the example of connecting a SCSI controller.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 unavailable disconnected configured unknown c2::dsk/c2t0d0 unavailable disconnected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
# cfgadm -c connect c2
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
SCSI controller c3 is used in the example of how to add a SCSI device to a SCSI bus.
Note - When you add devices, you specify the Ap_Id of the SCSI HBA (controller) to which the device is attached, not the Ap_Id of the device itself.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown
For example:
# cfgadm -x insert_device c3 Adding device to SCSI HBA: /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 This operation will suspend activity on SCSI bus: c3
Continue (yes/no)? y SCSI bus quiesced successfully. It is now safe to proceed with hotplug operation.
I/O activity on the SCSI bus is suspended while the hot-plug operation is in progress.
Enter y if operation is complete or n to abort (yes/no)? y
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
A new disk has been added to controller c3.
The following procedure uses SCSI disk c3t3d0 in the example of replacing an identical device on a SCSI controller.
Review the following conditions when attempting to replace an identical device on a SCSI controller:
If you are replacing a mirrored or unmirrored boot device that is part of a ZFS root pool, see the following reference:
If the device is controlled by legacy volume management software, consult your volume management documentation for the specific steps to replace a device. If you have an active Oracle support plan, see the following references:
If you are using Solaris Volume Manager (SVM), see MOS document 1010753.1.
If you are using Veritas Volume Manager (VxVM), see MOS document 1003122.1, 1011782.1, and 1002285.1.
# cfgadm -al c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
For example:
# cfgadm -x replace_device c3::dsk/c3t3d0 Replacing SCSI device: /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0 This operation will suspend activity on SCSI bus: c3
I/O activity on the SCSI bus is suspended while the hot-plug operation is in progress.
Continue (yes/no)? y SCSI bus quiesced successfully. It is now safe to proceed with hotplug operation.
The replacement device should be of the same type and at the same address (target and LUN) as the device to be removed.
Enter y if operation is complete or n to abort (yes/no)? y
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
The following procedure uses SCSI disk c3t3d0 in the example of removing a device on a SCSI controller.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown c3::dsk/c3t3d0 disk connected configured unknown
For example:
# cfgadm -x remove_device c3::dsk/c3t3d0 Removing SCSI device: /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0 This operation will suspend activity on SCSI bus: c3
Continue (yes/no)? y SCSI bus quiesced successfully. It is now safe to proceed with hotplug operation.
I/O activity on the SCSI bus is suspended while the hot-plug operation is in progress.
Enter y if operation is complete or n to abort (yes/no)? y
Note - This step must be performed if you are removing a SCSI RAID device from a SCSI RAID array.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c2 scsi-bus connected configured unknown c2::dsk/c2t0d0 CD-ROM connected configured unknown c3 scsi-sas connected configured unknown c3::dsk/c3t0d0 disk connected configured unknown c3::dsk/c3t1d0 disk connected configured unknown c3::dsk/c3t2d0 disk connected configured unknown
This section provides error messages and possible solutions for troubleshooting SCSI configuration problems. For more information on troubleshooting SCSI configuration problems, see cfgadm(1M).
cfgadm: Component system is busy, try again: failed to offline: device-path Resource Information ------------------ -------------------------- /dev/dsk/c1t0d0s0 mounted filesystem "/file-system"
You attempted to remove or replace a device with a mounted file system.
Unmount the file system that is listed in the error message and retry the cfgadm operation.
cfgadm: Component system is busy, try again: failed to offline: device-path Resource Information ------------------ -------------------------- /dev/dsk/device-name swap area
If you use the cfgadm command to remove a system resource, such as a swap device or a dedicated dump device, a similar error message is displayed if the system resource is still active.
Unconfigure the swap areas on the device that is specified and retry the cfgadm operation.
cfgadm: Component system is busy, try again: failed to offline: device-path Resource Information ------------------ -------------------------- /dev/dsk/device-name dump device (swap)
You attempted to remove or replace a dump device that is configured on a swap area.
Unconfigure the dump device that is configured on the swap area and retry the cfgadm operation.
cfgadm: Component system is busy, try again: failed to offline: device-path Resource Information ------------------ -------------------------- /dev/dsk/device-name dump device (dedicated)
You attempted to remove or replace a dedicated dump device.
Unconfigure the dedicate dump device and retry the cfgadm operation.
Use this procedure if one or more target devices are busy and the SCSI unconfigure operation fails. Otherwise, future dynamic reconfiguration operations on this controller and target devices will fail with a dr in progress message.