cfgadm_scsi(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

cfgadm_scsi(8)

cfgadm_scsi(8)          System Administration Commands          cfgadm_scsi(8)

NAME
       cfgadm_scsi - SCSI hardware specific commands for cfgadm

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(8)  command.
       cfgadm operates on attachment points, which are locations in the system
       where  hardware resources can be dynamically reconfigured. For informa‐
       tion regarding attachment points, see the cfgadm(8) man page.


       For SCSI hot-plugging, each SCSI controller is represented  by  an  at‐
       tachment  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 logi‐
       cal 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:

         c0::dsk/c0t0d0



       where dsk/c0t0d0 identifies the specific device. In general, the device
       identifier is derived from the corresponding logical link for  the  de‐
       vice  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.


       When  a controller is capable of supporting the Oracle Solaris I/O mul‐
       tipathing feature (formerly known as MPxIO or the Sun StorEdge  Traffic
       Manager  [STMS])  and  is  enabled, the controller provides a path to a
       scsi_vhci(4D) multipath device. If a device attached  to  such  a  con‐
       troller is supported by scsi_vhci(4D), its ap_id can be:

         c0::0,0



       ...where  0,0  uniquely identifies the target and logical unit informa‐
       tion. The Type field for a path of such ap_ids indicates if  it  repre‐
       sents  a  path  to  the scsi_vhci(4D) multipath devices, along with the
       type of device that is connected to through the path.


       A simple listing of attachment points in the system  will  include  at‐
       tachment  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:

         # cfgadm -l
           Ap_Id             Type        Receptacle     Occupant     Condition
           c0                scsi-bus    connected      configured   unknown
           sysctrl0:slot0    cpu/mem     connected      configured   ok
           sysctrl0:slot1    sbus-upa    connected      configured   ok



       To list SCSI devices in addition to SCSI controllers:

         # cfgadm -al
         Ap_Id                Type         Receptacle   Occupant     Condition
         c0                   scsi-bus     connected    configured   unknown
         c0::dsk/c0t14d0      disk         connected    configured   unknown
         c0::dsk/c0t11d0      disk         connected    configured   unknown
         c0::dsk/c0t8d0       disk         connected    configured   unknown
         c0::dsk/c0t0d0       disk         connected    configured   unknown
         c0::rmt/0            tape         connected    configured   unknown
         sysctrl0:slot0       cpu/mem      connected    configured   ok
         sysctrl0:slot1       sbus-upa     connected    configured   ok



       If the controller c0 was enabled with the  Oracle  Solaris  I/O  multi‐
       pathing  and  the  connected disk and tape devices are supported by the
       Oracle Solaris I/O multipathing the output would be:

         # cfgadm -al
         Ap_Id               Type         Receptacle   Occupant     Condition
         c0                  scsi-bus     connected    configured   unknown
         c0::11,0            disk-path    connected    configured   unknown
         c0::14,0            disk-path    connected    configured   unknown
         c0::8,0             disk-path    connected    configured   unknown
         c0::0,0             disk-path    connected    configured   unknown
         c0::a.0             tape-path    connected    configured   unknown
         sysctrl0:slot0      cpu/mem      connected    configured   ok
         sysctrl0:slot1      sbus-upa     connected    configured   ok



       Refer to cfgadm(8) man page for more information regarding listing  at‐
       tachment  points.  The  receptacle  and  occupant  state for attachment
       points at the SCSI controller have the following meanings:

       empty

           not applicable


       disconnected

           bus quiesced (I/O activity on bus is suspended)


       connected

           bus active


       configured

           one or more devices on the bus is configured


       unconfigured

           no device on the bus is configured



       The corresponding states for individual SCSI devices are:

       empty

           not applicable


       disconnected

           bus to which the device is attached is quiesced


       connected

           bus to which device is attached is active


       configured

           device or path to a multipath SCSI device is configured


       unconfigured

           device or path to a multipath SCSI device is not configured


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 configu‐
       ration administration help messages (-h).

       -c function

           The  following  generic  commands are defined for the SCSI hardware
           specific library:

           For SCSI controller attachment points, the following  configuration
           state change operations are supported:


           connect

               Unquiesce the SCSI bus.


           disconnect

               Quiesce the bus (suspend I/O activity on bus).

               Incorrect use of this command can cause the system to hang. See
               NOTES.


           configure

               Configure new devices on SCSI bus.


           unconfigure

               Unconfigure all devices connected to bus.

           The following generic commands are defined for SCSI devices and for
           paths to multipath SCSI devices:

           configure

               Configure  a  specific device or a specific path to a multipath
               SCSI device.


           unconfigure

               Unconfigure a specific device or a specific path to a multipath
               SCSI device.



       -f

           When used with the disconnect command, forces a quiesce of the SCSI
           bus, if supported by hardware.

           Incorrect use of this command can cause the  system  to  hang.  See
           NOTES.


       -h ap_id

           SCSI  specific  help  can be obtained by using the help option with
           any SCSI attachment point.


       -o hardware_option

           No hardware specific options are currently defined.


       -s listing_option

           Attachment points of class scsi can be listed by using  the  select
           sub-option. Refer to the cfgadm(8) man page for additional informa‐
           tion.


       -t ap_id

           No test commands are available at present.


       -x hardware_function

           Some  of  the  following  commands  can only be used with SCSI con‐
           trollers and some only with SCSI devices.

           In the following, controller_ap_id refers to an ap_id  for  a  SCSI
           controller,  for example, c0. device_ap_id refers to an ap_id for a
           SCSI device, for example: c0::dsk/c0dt3d0.

           The following hardware specific functions are defined:

           insert_device controller_ap_id

               Add a new device to the SCSI controller, controller_ap_id.

               This command is intended for interactive use only.


           remove_device device_ap_id

               Remove device device_ap_id.

               This command is intended for interactive use only.


           replace_device device_ap_id

               Remove device device_ap_id and replace it with  another  device
               of the same kind.

               This command is intended for interactive use only.


           reset_device device_ap_id

               Reset device_ap_id.


           reset_bus controller_ap_id

               Reset  bus  controller_ap_id  without resetting any devices at‐
               tached to the bus.


           reset_all controller_ap_id

               Reset bus controller_ap_id and all devices on the bus.


           locator [=on|off] device_ap_id

               Sets or gets the hard disk locator LED, if it  is  provided  by
               the  platform.  If the [on|off] suboption is not set, the state
               of the hard disk locator is printed.


           led[=LED,mode=on|off|blink] device_ap_id

               If no sub-arguments are set, this function print a list of  the
               current  LED  settings. If sub-arguments are set, this function
               sets the mode of a specific LED for a slot.



EXAMPLES
       Example 1 Configuring a Disk



       The following command configures a disk attached to controller c0:


         # cfgadm -c configure c0::dsk/c0t3d0


       Example 2 Unconfiguring a Disk



       The following command unconfigures a disk attached to controller c0:


         # cfgadm -c unconfigure c0::dsk/c0t3d0


       Example 3 Adding a New Device



       The following command adds a new device to controller c0:


         # cfgadm -x insert_device c0




       The system responds with the following:


         Adding device to SCSI HBA: /devices/pci@8,700000/scsi@1
         This operation will suspend activity on SCSI bus c0
         Continue (yes/no)?




       Enter:


         y




       The system responds with the following:


         SCSI bus quiesced successfully.
         It is now safe to proceed with hotplug operation.
         Enter y if operation is complete or n to abort (yes/no)?




       Enter:


         y


       Example 4 Replacing a Device



       The following command replaces a device attached to controller c0:


         # cfgadm -x replace_device c0::dsk/c0t3d0




       The system responds with the following:


         Replacing SCSI device: /devices/pci@8,700000/scsi@1/sd@3,0
         This operation will suspend activity on SCSI bus: c0
         Continue (yes/no)?




       Enter:


         y




       The system responds with the following:


         SCSI bus quiesced successfully.
         It is now safe to proceed with hotplug operation.
         Enter y if operation is complete or n to abort (yes/no)?




       Enter:


         y


       Example 5 Encountering a Mounted File System While Unconfiguring a Disk



       The following command illustrates encountering a  mounted  file  system
       while unconfiguring a disk:


         # cfgadm -c unconfigure c1::dsk/c1t0d0




       The system responds with the following:


         cfgadm: Component system is busy, try again: failed to offline:
         /devices/pci@1f,4000/scsi@3,1/sd@1,0
              Resource              Information
         ------------------  --------------------------
         /dev/dsk/c1t0d0s0   mounted filesystem "/mnt"


       Example 6 Displaying the Value of the Locator for a Disk



       The  following  command  displays  the value of the locator for a disk.
       This example is specific to the SPARC Enterprise Server family:


         # cfgadm -x locator c0::dsk/c0t6d0




       The system responds with the following:


         Disk                    Led
         c0t6d0                  locator=on


       Example 7 Setting the Value of the Locator for a Disk



       The following command sets the value of the locator for  a  disk.  This
       example is specific to the SPARC Enterprise Server family:


         # cfgadm -x locator=off c0::dsk/c0t6d0




       The system does not print anything in response.

       Example 8 Configuring a Path to a Multipath SCSI Disk



       The  following  command  configures a path connected through controller
       c0:


         # cfgadm -c configure c0::2,0


       Example 9 Unconfiguring a Path to a Multipath SCSI Disk



       The following command unconfigures a path connected through  controller
       c0:


         # cfgadm -c unconfigure c0::2,0


FILES
       /usr/lib/cfgadm/scsi.so.1

           hardware-specific library for generic SCSI hot-plugging


       /usr/platform/sun4v/lib/cfgadm/scsi.so.1

           platform-specific library for generic SCSI hot-plugging


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/dynamic-reconfiguration


SEE ALSO
       config_admin(3CFGADM), libcfgadm(3LIB),  scsi_vhci(4D),  attributes(7),
       cfgadm(8)

NOTES
       The  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  opera‐
       tion  should  be  used with caution. A controller should be kept in the
       disconnected state for the minimum period of time  required  to  accom‐
       plish  the DR operation. The disconnect command is provided only to al‐
       low 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.

WARNINGS
       The 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.

Oracle Solaris 11.4               23 Jun 2025                   cfgadm_scsi(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3