C H A P T E R  3

Controller and Disk Commands

This chapter provides the available controller and disk commands with sample code. Topics covered in this chapter include:



Note - To prevent unauthorized access to administrative functions of the RAID controller, the Sun StorEdge CLI requires superuser or system administrator privileges for inband access, and uses the controller password to authorize users of the out-of-band interface.




Note - If no command is entered on the command line, the Sun StorEdge CLI enters an interactive mode, prompting you to enter commands until the quit command is entered. All commands operate on the currently selected device.



Controller Commands

The following commands are explained in this section:

For details on downloading controller firmware, see download controller-firmware.



Note - The secondary controller in dual-controller configurations does not support any administrative functions. In active/active configurations where LUNs are assigned to both the primary and secondary controllers, a Sun StorEdge CLI command can be used only with those LUNs assigned to the primary controller.


download controller-configuration

Description

The download controller-configuration command restores controller configuration information previously saved using the upload controller-configuration command. The configuraton file includes channel settings; host and drive side parameters; array parameters; network port setup; controller general parameters; logical drive, logical volume, and physical drive information; partition information and mappings on host channels.

A logical drive or logical volume create operation might be required to completely restore the saved configuration. However, creating a logical drive might take a long time, and block other operations. The command provides an option to specify whether to build the logical drive.



caution icon Caution - The download controller-configurationcommand unmaps all existing logical drives if they do not match the configuration file that is being downloaded.




Note - Optimally, rebuild any logical drives before running this command.


Syntax


download controller-configuration [-b | --build] filename

Arguments


TABLE 3-1 Arguments for download controller-configuration

Argument

Description

-b, --build

Rebuild RAID sets specified in the saved configuration. If this option is not specified, RAID sets are not created, and the configuration will not be completely restored.




caution icon Caution - All reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers. After running a resetcommand, to stay in prompt mode, run the selectcommand to reselect the device.


fail

Description

The fail command simulates a controller failure and causes all the LUNs assigned to the specified controller to fail over to the redundant controller, if it is configured for failover. If the controller is configured for failover, the inter-controller link is not disconnected with this command.



Note - Before running this command, perform a show redundancy-mode command to make sure a secondary controller exists. For details, see show redundancy-mode.




Note - This command prompts the user to confirm the failure, unless the --yes option is specified.


Syntax


fail {primary | secondary}

Arguments


TABLE 3-2 Arguments for fail

Argument

Description

primary

Fails the logical drive to the primary controller.

secondary

Fails the logical drive to the secondary controller.


Examples

The following example fails the secondary controller if Y is specified at the prompt. Specify N to cancel the failure.


sccli> fail secondary
Are you sure?

The following example fails the primary controller and uses the -yes option so no prompt is displayed before the controller fails.


# sccli c2t0d0 -yes fail primary

mute

Description

The mute command silences the controller’s audible alarm. After the fault condition that caused the alarm to sound is cleared, the next fault condition causes the alarm to sound again. For details on alarms, refer to the Sun StorEdge 3000 Family Installation, Operation, and Service Guide for your array.



Note - This command works on RAID subsystems. It does not work on JBODs. To manually silence a JBOD alarm, push the Reset button on the right ear of the array.


Syntax


mute [controller]

password

Description

Use the password command in scripts to specify the password assigned to the array controller when the user is not available to respond to password prompts. The correct password must be supplied when issuing potentially dangerous commands to the array over a network connection. For interactive sessions, the Sun StorEdge CLI prompts the user for this password only when necessary. No password is required when accessing the array using inband SCSI. For details on setting the password, see set controller-password.

Syntax


password password



Note - Use quotation marks around password strings that contain spaces or apostrophes.


Examples

The following example supplies the controller password, test password.


sccli> password “test password”

reset controller

Description

The reset controller command shuts down the controller, flushes its cache to disk, and then restarts the controller. This temporarily causes the array to go offline, which might affect applications running on any hosts connected to the array. After running a reset command, to stay in prompt mode, run the select command to reselect the device.



caution icon Caution - All reset commands are potentially dangerous. Reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers.


Syntax


reset controller

Examples

The following example resets the controller for the specified device.


# sccli /dev/rdsk/c0t5d0s2 reset controller
WARNING: This is a potentially dangerous operation. The controller will go offline for several minutes. Data loss may occur if the controller is currently in use. 
Do you want to reset the controller now? y
sccli: resetting controller...
sccli: controller has been reset
sccli: /dev/rdsk/c0t5d0s2: waiting for device to be ready
sccli: /dev/rdsk/c0t5d0s2: device reset
sccli: /dev/rdsk/c0t5d0s2: device is ready

set cache-parameters

Description

The set cache-parameters command sets cache policy (write-back or write-through), optimization mode (sequential or random), and a periodic cache synchronization value.



caution icon Caution - Data inconsistency can occur when a controller configured with one optimization mode is used to replace a failed controller with a different mode.




caution icon Caution - In a single-controller configuration, if you set the cache policy to write-back, data corruption might occur in the event of a controller failure. To avoid the possibility of data corruption, set the write policy to write-through.


The controller must be reset for this command to take effect.



caution icon Caution - All reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers.


Cache Policy

The cache policy determines when cached data is written to the disk drives. The ability to hold data in cache while it is being written to disk can increase storage device speed during sequential reads.

Using write-through cache, the controller writes the data to the disk drive before signaling the host OS that the process is complete. Write-through cache has lower write operation and throughput performance than write-back cache, but it is the safer strategy, with minimum risk of data loss on power failure. Because a battery module is installed, power is supplied to the data cached in memory and the data can be written to disk when power is restored.

Using write-back cache, the controller receives the data to write to disk, stores it in the memory buffer, and immediately sends the host OS a signal that the write operation is complete, before the data is actually written to the disk drive. Write-back caching improves the performance of write operations and the throughput of the controller card. Write-back cache is enabled by default.

The controller cache write policy is the default setting for all logical drives. When you create a logical drive, if you do not specify a write policy, the logical drive uses the write policy specified by the set cache-parameters command. If the write policy changes for the controller, the write policy automatically changes for the logical drive as well. If you specify write-back or write-through for individual logical drives, the write policy for those drives remains the same regardless of any changes to the global write policy. For details about setting individual logical drive cache policy, see set logical-drive.

You can also configure the write policy to automatically change from write-back cache to write-through cache when certain environmental events, such as a fan failure, occur. For details, see set auto-write-through-trigger.

For more information on cache policy, refer to the Sun StorEdge 3000 Family RAID Firmware User’s Guide.

Optimization Mode

Before creating or modifying logical drives, determine the appropriate optimization mode for the RAID array. The controller supports two optimization modes, sequential I/O and random I/O. Sequential I/O is the default mode.

The RAID array’s cache optimization mode determines the cache block size used by the controller for all logical drives:

An appropriate cache block size improves performance when a particular application uses either large or small stripe sizes:

Since the cache block size works in conjunction with the default stripe size set by the cache optimization mode for each logical drive you create, these default stripe sizes are consistent with the cache block size setting. You can, however, specify a different stripe size for any logical drive at the time you create it. For more information, create logical-drive.

Once logical drives are created, you can use the set cache-parameters command to change the optimization mode while logical drives exist. However, using the Sun StorEdge CLI set cache-parameters command to change optimization mode can result in a pre-existing logical drive having a stripe size that, because it is inappropriate for that optimization mode, could not have been selected at the time the logical drive was created. This combination will not yield the best performance possible, but there is no risk of data loss or other data-related problems. You can avoid this inefficiency by choosing stripe sizes and an optimization mode that are appropriate for your applications.

For information on stripe size and optimization modes, refer to the Sun StorEdge 3000 Family RAID Firmware User’s Guide.

Syntax


set cache-parameters [random | sequential] [write-policy] [sync-period value]

Arguments


TABLE 3-3 Arguments for set cache-parameters

Argument

Description

random

Optimizes for random access. Random I/O indicates small blocks of data are written across each drive.

sequential

Optimizes for sequential access. Sequential I/O indicates large blocks of data are written across each drive.

write-policy

Specify when cached data is written to the disk drives. The controller cache write policy is the default setting for all logical drives. When you create a logical drive, if you do not specify a write policy option, the logical drive uses the write policy specified by the set cache-parameters command. Then, if the write policy changes for the controller, the write policy automatically changes for the logical drive as well. Valid values: write-back, write-through.

sync-period value

Specify the periodic cache synchronization value in seconds. Valid values: 0 (continuous syncing), 30s, 60s, 120s, 300s, 600s, disabled (default value)


Examples

The following example sets the cache mode to write-back.


sccli> set cache-parameters write-back

The following example sets the cache mode to write-back, the optimization to sequential, and the sync period to 30 seconds.


sccli> set cache-parameters sequential write-back sync-period 30s

set controller-date

Description

The set controller-date command sets a controller date, time, and time zone which enables you to reference and correlate messages and errors.

Syntax


set controller-date month day hh:mm:ss year time-zone

Arguments


TABLE 3-4 Arguments for set controller-date

Argument

Description

month

Specify the month in abbreviated format. Valid values: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.

day

Specify the day of the month. Valid values: 1-31.

hh:mm:ss

Specify the controller time based on a 24-hour system.

hh: Specify the hour. Valid values: 0-23.

mm: Specify the minute. Valid values: 1-59.

ss: Specify the seconds. Valid values: 1-59.

year

Specify the year. If you do not specify the year, it is automatically set to the year set in the RAID firmware.

time zone

Specify the time zone based on Greenwich Mean Time (GMT) followed by a plus (+) or minus (-) sign and the number of hours earlier or later your location is from the Greenwich mean time. For instance, the time zone setting for Japan is GMT +9 and the time zone for New York is GMT -4 or -5 depending on daylight savings. If you do not specify the time zone, it is automatically set to the time zone set in the RAID firmware.


Examples

The following example sets the controller time and date to September 22, 2004 at 1:43 pm in the Pacific Standard time zone during daylight savings time.


# sccli c2t0d0 set controller-date sep 22 13:43:00 gmt -7

set controller-name

Description

The set controller-name command specifies a name for the array.



Note - The controller password and controller name share a 32-character space. Because the minimum length of the controller password is 1 (when the controller password is empty), the maximum length for the controller name is 31. When the controller name occupies 31 characters, there is only one character left for the controller password, and vice versa.


Syntax


set controller-name controller-name

Examples

The following example sets the controller name as testname.


# sccli c2t0d0 set controller-name “testname”

To remove an existing controller name, specify a zero-length string with a pair of double-quote characters. For example:


# sccli c2t0d0 set controller-name ““

set controller-password

Description

The set controller-password command specifies a password that protects the RS-232 character interface, telnet, and FTP services from unauthorized use.



Note - The controller password and controller name share a 32-character space. Because the minimum length of the controller name is 1 (when the controller name is empty), the maximum length for the controller password is 31. When the controller password occupies 31 characters, there is only one character left for the controller name, and vice versa.


Syntax


set controller-password password

Examples

The following example sets the controller password as test123.


# sccli c2t0d0 set controller-password “test123”

The following example shows how the password length is checked. If you enter a maximum length for the password that exceeds the maximum allowed based on the length of the controller name, you will get an error. As shown in this example, the controller name has been set to 1023456789 (10 characters), so the maximum length of the password allowed is 22:


# sccli c2t0d0 set controller-password “1234567890abcdef1234567890abcdef”
controller current acceptable max length of password: 22
sccli> get/set operation: error: failed to check/set password

To remove an existing password, specify a zero-length string with a pair of double-quote characters. For example:


# sccli c2t0d0 set controller-password ““

set rs232-configuration

Description

The set rs232-configuration command specifies the speed, in bits per second, for the specified RAID controller port. Single-controller configurations have a single RS-232 port (port 1). Redundant controllers have a second port (port 2). Usually, both ports are connected to support controller failover, so both should be set to the same speed. The default speed is 38400. The controller must be reset for this change to take effect.



caution icon Caution - All reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers. After running a resetcommand, to stay in prompt mode, run the selectcommand to reselect the device.


Syntax


set rs232-configuration port-number speed

Arguments


TABLE 3-5 Arguments for set rs232-configuration

Argument

Description

port-number

Specify the controller RS-232 port number. Port 1 is external. Valid values: 1, 2

speed

Specify the controller RS-232 baud-rate parameter. Valid values: 2400, 4800, 9600, 19200, 38400


Examples

In the following example, the RAID controller RS-232 port 1 band rate is set to 38400.


# sccli c2t0d0 set rs232-configuration 1 38400

set unique-identifier

Description



caution icon Caution - This value is used to construct unique values for the Ethernet address, FC WWNs, and other identifiers, and changing it unnecessarily might cause the logical units to become inaccessible to hosts.


The set unique-identifier command specifies the unique identifier for the array subsystem as a six-digit hexadecimal number from 0 to 0xfffff. This identifier is initialized from the chassis serial number automatically, and should not be changed unless the chassis is replaced. The controller must be reset for this change to take effect.



caution icon Caution - All reset commands cause the array to stop responding to I/O requests from the host for a period of time. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers. After running a resetcommand, to stay in prompt mode, run the selectcommand to reselect the device.




Note - If the value 0 is specified, it is interpreted as a request to set the controller unique ID to match the chassis serial number, which is obtained from the enclosure services device in the chassis.


Syntax


set unique-identifier number

Examples

The following example sets the controller unique identifier as 0x1234.


# sccli c2t0d0 set unique-identifier 0x1234

The following example sets the controller unique identifier to the default value based on the chassis serial number. This command must be followed by the reset controller command before the change takes effect.


# sccli c2t0d0 set unique-identifier 0

show cache-parameters

Description

The show cache-parameters command displays the RAID controller parameters that influence the performance of the read/write cache. Returned values include write policy (write-through or write-back), optimization mode (random or sequential), periodic cache synchronization period, and current global write policy (write-through or write-back). For details on setting the cache parameters, see set cache-parameters.

Syntax


show cache-parameters 

Examples

The following example shows all the cache settings for a Sun StorEdge 3510 FC device.


sccli> show cache-parameters
 mode: write-back
 optimization: sequential
 sync-period: 30s
 current-global-write-policy: write-back

show controller-date

Description

The show controller-date command displays the boot time and date, current time and date, and time zone of the RAID controller.

Syntax


show controller-date

Examples

The following example shows the controller boot time and date, current time and date, and time zone.


sccli> show controller-date
 Boot time    : Thu Sep 16 02:37:36 2004
 Current time : Wed Sep 22 13:43:06 2004
 Time Zone    : GMT -07:00

show controller-name

Description

The show controller-name command displays the RAID controller name. If the RAID controller name is not set, the command returns ““ (an empty set of quotation marks).

Syntax


show controller-name

Examples

The following example shows the controller name is test.


sccli> show controller-name
 controller-name: test

show inquiry-data

Description

The show inquiry-data command displays the data returned by the array controller including the inquiry vendor ID, product ID, firmware revision, and if applicable, IP address. The output of this command varies from one product to another, and from one channel to another.

When addressing a primary controller, the Ethernet address is also displayed. A “Serial Number” field is also displayed; this may contain a RAID controller unique ID value, which defaults to the RAID enclosure’s serial number, or a JBOD serial number, depending on the type of device selected.

When inband communication is used with the array, additional data derived from Vital Product Data are also displayed. The additional data may vary from one invocation to the next, even if the same device is selected, depending on the type of HBA that is used to communicate with the array, whether HBA load-balancing software is used, and which LUN received the command.

Syntax


show inquiry-data



Note - The abbreviation inquiry can be substituted for the show inquiry-data command.


Examples

The following example shows an inband Sun StorEdge 3310 SCSI array inquiry.


sccli> show inquiry-data
 Vendor: SUN
 Product: StorEdge 3310
 Revision: 411G
 Peripheral Device Type: 0x0
 NVRAM Defaults: 411G 3310 S415S
 Bootrecord version: 1.31G
 Serial Number: 000001
 Page 80 Serial Number: 000001250FF1DC00
 Page 83 Logical Unit Device ID: 600C0FF000000000000001250FF1DC00
 IP Address: 206.1.111.111
 Page D0 Target ID: 0
 Ethernet Address: 00:C0:FF:80:00:01
 Device Type: Primary

The following example shows an inband Sun StorEdge 3510 FC array inquiry.


sccli> inquiry
 Vendor: SUN
 Product: StorEdge 3510
 Revision: 411G
 Peripheral Device Type: 0x0
 NVRAM Defaults: 411G01 3510 S410F
 Bootrecord version: 1.31H
 Serial Number: 003CE3
 Page 80 Serial Number: 003CE3161637C100
 Page 83 Logical Unit Device ID: 600C0FF000000000003CE3161637C100
 Page 83 Target Device ID: 206000C0FF003CE3
 IP Address: 206.1.111.111
 Page D0 Fibre Channel Address: A7 (id 40)
 Page D0 Node Name: 206000C0FF003CE3
 Page D0 Port Name: 216000C0FF803CE3
 Ethernet Address: 00:C0:FF:00:3C:E3
 Device Type: Primary

The following example shows an out-of-band Sun StorEdge 3510 FC array inquiry.


# sccli 206.1.111.111 inquiry
sccli: selected se3000://206.1.111.111:58632 [SUN StorEdge 3510 SN#004DE2]
 Vendor: SUN
 Product: StorEdge 3510
Revision: 411G
 NVRAM Defaults: 411G 3510 S415F
 Bootrecord Version: 1.31H
 Serial Number: 004DE2
 IP Address: 206.1.111.111
 Ethernet Address: 00:C0:FF:00:4D:E2

show redundancy-mode

Description

The show redundancy-mode command shows whether the two controllers are operating correctly as a redundant pair. Returned values include Active-Active, disabled, enabled, failed, scanning, detected, and primary or secondary.

You can also use the show redundancy-mode command to monitor the status of an automatic firmware update. The Sun StorEdge CLI will display the progression of “Failed,” “Scanning,” “Detected,” and “Enabled” states. Returned values include:

1. Initial Failed Status Response: This is the response to the command upon a controller failure and is shown for completeness.

2. Scanning Status: Install Controller FRU. The installed controller is performing self-test and scanning disk channels. This is also the state where the controller updates the firmware on the newly installed controller if it is not identical to the running firmware version. The controllers can remain in this state for up to 10 minutes depending upon system activity.

3. Detected Status: Redundant Controller Process Starts. The installed controller has completed the scanning of the disk channels, updated installed controller firmware as required, and communicated to the primary controller. This status is transitional and normally cannot be detected unless repetitive operations are executed.

4. Enabled State: Redundant Controller Procedure Completed. The installed controller has completed the redundant controller procedure enabling the active-active operation.

Syntax


show redundancy-mode

Examples

The following example shows the redundancy status is Enabled and the mode is Active-Active for a Sun StorEdge 3510 FC array.


sccli> show redundancy-mode
 Primary controller serial number: 8009328
 Primary controller location: Lower
 Redundancy mode: Active-Active
 Redundancy status: Enabled
 Secondary controller serial number: 8009200



Note - The primary controller location displays as “N/A” for Sun StorEdge 3000 family SCSI arrays. The controller location is provided only for Sun StorEdge 3510 FC arrays and Sun StorEdge 3511 SATA arrays.


show redundant-controller

Description

The show redundant-controller command displays the redundant-controller information.

Syntax


show redundant-controller

Examples

The following example shows the redundant-controller information.


sccli> show redundant-controller
  Redundant Controller Configuration:         primary
  Cache Synchronization:                      enabled
  Host Channel Failover Mode:                 shared
  Local/Remote Redundant Mode:                local
  Write-Through Data Synchronization:         enabled
  Secondary RS-232 Port Status:               disabled
  Communication Channel Type:                 SCSI

show shutdown-status

Description

The show shutdown-status command displays the controller shutdown status.

Syntax


show shutdown-status

Examples

The following example shows the controller shutdown is complete.


sccli> shutdown controller
WARNING: This is a potentially dangerous operation.
The array will remain offline until it is reset.
Data loss may occur if the controller is currently in use.
Do you want to reset the controller now? y
sccli: shutting down controller...
sccli: controller is shut down
sccli> show shutdown-status
        Controller shutdown complete.

Status values include:

show unique-identifier

Description

The show unique-identifier command displays the RAID controller unique identifier. A valid controller unique identifier is a hexidecimal number from 0 to 0xfffff. It is displayed as a six-digit value, where the first digit is always 0 for consistency with the presentation of FRU serial numbers. The default value for the unique ID is the FRU serial number of the midplane/chassis in which the controller resides.

Syntax


show unique-identifier

Examples

The following example shows the unique identifier is 00476F.


sccli> show unique-identifier
 unique-identifier: 00476F

shutdown controller

Description

The shutdown controller command shuts down the RAID controller and stops I/O processing. This temporarily causes the array to go offline, which might affect applications running on any hosts connected to the array. Data in the controller cache is flushed to logical drives. After issuing this command, issue the reset controller command.



caution icon Caution - The shutdown command causes the array to stop responding to I/O requests from the host. This might result in data loss unless all I/O activity is suspended by halting all applications that are accessing the array, and unmounting any file systems that are mounted from the array. In redundant-controller configurations, these commands affect all LUNs on both controllers.




Note - Use this command whenever the RAID array is powered off. It ensures that all data is written to disk, and that the backup battery (if present) is not drained by the cache memory.




Note - A controller shutdown does not generate an event message. To view the status of the shutdown, use the show shutdown-status command. For details, see show shutdown-status.


Syntax


shutdown controller

Examples

The following example shows the message prompts that are displayed when you run the shutdown controller command.


# sccli /dev/rdsk/c0t5d0s2 shutdown controller
WARNING: This is a potentially dangerous operation. The controller will go offline for several minutes. Data loss may occur if the controller is currently in use. 
Do you want to reset the controller now? y
sccli: shutting down controller...
sccli: controller is shut down

unfail

Description

The unfail command restores the controller pair to redundant operation. When a primary controller fails, the secondary controller becomes the primary controller. The unfail command makes the initial primary controller the secondary controller.



Note - The unfail command reverses the fail secondary command, permitting the secondary controller to resume operation and restore the controller pair to redundant operation.


Syntax


 unfail

Examples

The following example reverses the fail secondary command.


sccli> unfail
Are you sure? y

upload controller-configuration

Description

The upload controller-configuration command saves a description of the configuration of the array to a user-specified file. The file can be used to restore the same configuration to the array at a later date, or to copy the configuration to another array. The file includes channel settings; host and drive side parameters; array parameters; network port setup; controller general parameters; logical drive, logical volume, and physical drive information; partition information and mappings on host channels. For details on downloading the controller configuration file, see download controller-configuration.



Note - The file contains binary data and cannot be viewed with a text editor.


Syntax


upload controller-configuration file

Examples

The following example saves the RAID configuration into the binary file raidcfg.bin.


# sccli c2t0d0 upload controller-configuration raidcfg.bin


Disk Commands

The following commands are explained in this section:

For details on downloading disk firmware, see download disk-firmware.

abort clone

Description

The abort clone command stops the cloning of the specified disk drive.

To clone a disk, use the clone command. For details, see clone.

To view the progress of a clone, use the show clone command. For details, see show clone.

Syntax


abort clone disk-dest 

Arguments


TABLE 3-6 Arguments for abort clone

Argument

Description

disk-dest

Specify the disk to stop cloning.


Examples

The following example aborts the clone disk drive operation for ID 5 on channel 2.


# sccli c2t0d0 abort clone d2.5 

clone

Description

The clone command uses a destination disk to copy and replace a drive that is suspected of failing. The disk that you are replacing must be a member of a logical drive. The clone command is not supported for NRAID arrays.

The clone command might be issued in response to a self-monitoring analysis and reporting technology (SMART) warning. To enable SMART, see set drive-parameters.



Note - You cannot create a logical drive composed of Sun StorEdge 3510 FC drives and Sun StorEdge 3511 SATA drives. If you try to mix drive types in a logical drive, by cloning a disk with a different drive type, an error is displayed. For more information, refer to the Sun StorEdge 3000 Family RAID Firmware User’s Guide.


Syntax


clone source-disk dest-disk [priority]

Arguments


TABLE 3-7 Arguments for clone

Argument

Description

source-disk

Specify the disk to copy and replace. For example, specify the source disk with target ID 1 on channel 2 as 2.1.

dest-disk

Specify the disk to use as the replacement. For example, specify the destination disk with target ID 3 on channel 2 as 2.3.

priority

Specify the priority of the disk replacement. Valid values: low, normal, improved, high. The higher the priority selected, the greater amount of system resources required to perform the clone. For example, specify low to have the replacement occur using minimal system resources.


Examples

The following example copies and replaces disk drive ID 5 on channel 2 with disk drive ID 0 on channel 3.


# sccli c2t0d0 clone d2.5 d3.0

configure global-spare

Description

The configure global-spare command specifies a global spare disk. The disk drive status is set to standby.



Note - If you connect one or more Sun StorEdge 3511 SATA expansion units to a Sun StorEdge 3510 FC array, configure an FC drive and a SATA drive as global spares. Then, if a drive fails in the RAID chassis, a FC global spare is used to replace the failed drive. Or, if a drive fails in the SATA expansion unit, a SATA global spare is used to replace the failed drive. If a failure occurs and the appropriate drive type is not available as a global spare, the failed drive will not be replaced automatically. For more information, refer to the Sun StorEdge 3000 Family RAID Firmware User’s Guide.


Syntax


configure global-spare disk

Arguments


TABLE 3-8 Arguments for configure global-spare

Argument

Description

disk

Specify the disk to configure. For example, specify the disk with target ID 1 on channel 2 as 2.1. When you assign a global spare, the system automatically assigns global spare status to the unassigned drive with the lowest drive ID. This enables the array to use the global spare to rebuild a logical drive automatically without user intervention when a failing drive needs to be replaced.


Examples

The following example configures disk drive ID 5 on channel 2 as a global spare.


# sccli c2t0d0 configure global-spare 2.5

scan disk

Description

The scan disk command scans and makes available a hard drive without having to shut down the array. When a Sun StorEdge 3000 family SCSI array is powered on, the controller scans all physical drives that are connected through drive channels. Unlike Sun StorEdge 3000 FC and SATA arrays, if a Sun StorEdge 3000 family SCSI array has completed initialization and then a physical drive is connected, the controller does not automatically recognize the new drive until the next controller reset. This difference in behavior is due to differences between Fibre Channel and SCSI architectures and protocols.



Note - This command is supported on Sun StorEdge 3000 SCSI arrays only.


Syntax


scan disk [disk-list]

Arguments


TABLE 3-9 Arguments for scan disk

Argument

Description

disk-list

Scans specific disks. Use any of the following formats: ch.id, ch.idm-n.

ch is physical device channel, id is the SCSI ID of the device, and m to n represents a contiguous range of IDs on the same channel. For example, 2.0, 2.3 or 2.2-5.


Examples

The following example scans disk 2.


sccli> scan disk d2.11

set disk-array

Description

The set disk-array command sets disk array parameters including the background logical drive rebuilding priority and hard drive data verification.

Syntax


set disk-array [normal-verify value| rebuild-verify value | init-verify value] [rebuild-priority value]

Arguments


TABLE 3-10 Arguments for set disk-array

Argument

Description

normal-verify

{enabled | disabled}

Specify whether to perform Verify-after-Write during normal I/O requests. This method affects write performance during normal use.

rebuild-verify

{enabled | disabled}

Specify whether to perform Verify-after-Write during the rebuilding process.

init-verify

{enabled | disabled}

Specify whether to perform Verify-after-Write while initializing the logical drive.

rebuild-priority

Specify the priority of the logical drive rebuild process. Valid values: low, normal, improved, high. The higher the priority selected, the greater amount of system resources required. For example, specify low to perform the rebuild after other firmware processes complete.


Examples

The following example specifies that data is verified during the rebuilding process and when initializing logical drives.


sccli> set disk-array rebuild-verify enabled init-verify enabled

set led

Description

The set led command changes the drive LED for the specified disk (or slot) from green to amber. For Sun StorEdge 3000 family SCSI JBODs, specify a disk device using a Solaris device name such as sd31 or c1t0d0s2, or specify a slot number. Use the show led-status command to show the status of the identified disk drive.



Note - This command does not support Sun StorEdge 3510 FC JBODs or Sun StorEdge 3511 SATA JBODs.




Note - Selecting a slot by disk name is not supported in split-bus enclosure configurations because the enclosure services processor resides on only one of the internal buses and the Sun StorEdge CLI might not be able to determine the slot location of a particular device. In such configurations, use the show enclosure-status command and the disk documentation provided with your enclosure to determine the correct slot number instead.


Syntax

To change a specific drive LED in a RAID array from green to amber, use the following parameters.


set led disk ch.id {on | off}

To change a specific drive LED in a Sun StorEdge 3000 family SCSI JBOD from green to amber, use the following parameters.


set led {slot n | disk sdn | disk cXtYdZ} {on | off}

Arguments


TABLE 3-11 Arguments for set led

Argument

Description

slot n

Changes the drive LED from green to amber for the specified disk drive slot.

disk sdn

Changes the drive LED from green to amber for the specified Solaris disk drive slot.

disk cXtYdZ

Changes the drive LED from green to amber for the specified Solaris disk drive slot.

ch.id

Changes the drive LED from green to amber for the specified drive within a RAID subsystem.

{on | off}

Specify whether to change the LED from green to amber.


Examples

The following example changes the drive with SCSI address 8 from green to amber in the enclosure associated with the enclosure device /dev/es/ses0.


sccli> set led disk 0.8 on
 (enclosure sn 005362) led-slot-0: on

show clone

Description

The show clone command displays the progress of disk cloning.

Syntax


show clone 

Examples

The following example returns information for the disks being cloned on the specified device.


sccli> clone d2.5 d0.5
sccli: start clone 2.5 to 0.5
sccli> show clone
 Ch  ID  Status
-------------------
 0   5   2% complete

show disk-array

Description

The show disk-array command displays the disk array parameters including the logical drive rebuild priority and the hard drive settings for verifying the written data for initializing, rebuilding, and writing normal I/O data.

Syntax


show disk-array

Examples

The following example returns the disk array parameter information.


sccli> show disk-array
 init-verify: disabled
 rebuild-verify: disabled
 normal-verify: disabled
 rebuild-priority: low

show disks

Description

The show disks command displays information about the disk drives in the array enclosure and any expansion chassis. Information returned includes the following: channel and ID, negotiated speed, associated logical drive, capacity (size), status, vendor information, mirror output, and worldwide node name (WWNN).



Note - Mirror output is valid only for RAID 1 logical drives.


Syntax


show disks [disk-list | channel {ch} | free | all] [-b | --buffer-size] 

Arguments


TABLE 3-12 Arguments for show disks

Argument

Description

disk-list

Shows specific disks. Use any of the following formats: ch.id, ch.idm-n.

ch is physical device channel, id is the SCSI ID of the device, and m to n represents a contiguous range of IDs on the same channel. For example, 2.0, 2.3, or 2.2-5.

channel ch

Shows all disks on the specified channel.

all

Shows all disk drives.

free

Shows all unassigned disks.

-b, --buffer-size

Shows the disk buffer size.


Examples

The following example returns information for disks ID 0, ID 3, and ID 7 on channel 2.


# sccli c2t0d0 show disks 2.0,2.3,2.7

The following example returns information for disks on channel 2 for disks 3 through 7, and for channel 1 disk 4.


# sccli c2t0d0 show disks 2.3-7,1.4

The following example shows all disk information.


sccli> show disks
Ch     Id      Size   Speed  LD     Status     IDs                      Rev
----------------------------------------------------------------------------
2(3)   3   33.92GB   200MB  NONE   FRMT       SEAGATE ST336752FSUN36G  0205
                                               S/N 3ET0N0V000007303
                                               WWNN 20000004CFAB138F
                                               Mirror (2.3)
2(3)   6   33.92GB   200MB  ld0    ONLINE     SEAGATE ST336753FSUN36G  0349
                                               S/N 3HX0YEJT00007349
                                               WWNN 2000000C50332BFD
                                               Mirror (2.6)
2(3)   7   33.92GB   200MB  ld0    ONLINE     SEAGATE ST336753FSUN36G  0349
                                               S/N 3HX0Y6J300007349
                                               WWNN 2000000C503335DC
                                               Mirror (2.7)
2(3)   8   33.92GB   200MB  ld0    ONLINE     SEAGATE ST336753FSUN36G  0349
                                               S/N 3HX0YC1Y00007349
                                               WWNN 2000000C503334AE
                                               Mirror (2.8)
2(3)   9   33.92GB   200MB  ld0    ONLINE     SEAGATE ST336753FSUN36G  0349
                                               S/N 3HX0Y7W100007349
                                               WWNN 2000000C50332BBE
                                               Mirror (2.9)
2(3)  10   33.92GB   200MB  NONE   FRMT       SEAGATE ST336753FSUN36G  0349
                                               S/N 3HX0YAQF00007349
                                               WWNN 2000000C50333AB8
                                               Mirror (2.10)



Note - All device capacity is displayed in powers of 1024. For details, see Device Capacity.


Returned Values

Returned values include channel number, disk SCSI ID, size, speed (megabytes per second), logical drive assignment, status, drive model ID, firmware revision, serial number, and device node name. If the -b option is specified, the drive buffer size and drive serial number are displayed.

Logical drive assignment values include:

Speed values include:

Status values include:

show led-status

Description

The show led-status command displays the status of the LED adjacent to the specified disk drive slot in the array enclosure or expansion chassis. Returned values include on and off. If the value is on, the LED of the specified drive is amber. If the value is off, the LED of the specified drive is green if it is working properly.



Note - This command does not support Sun StorEdge 3510 FC JBOD devices or Sun StorEdge 3511 SATA JBOD devices.


Syntax


show led-status

To display the status of LEDs in LVD RAID enclosures, use the following syntax.


show led-status disk ch.id

To show the status of LVD JBOD enclosures, use the following syntax.


show led-status {slot n | disk sdn | disk cXtYdZ}

Arguments


TABLE 3-13 Arguments for show led-status

Argument

Description

slot n

Shows the status for the LED adjacent to the specified disk drive slot. This argument is not accepted for RAID controllers.

disk sdn

Shows the status for the LED adjacent to the specified Solaris disk drive slot. This argument is not accepted for split-bus configurations.

disk cXtYdZ

Shows the status for the LED adjacent to the specified Solaris disk drive slot. This argument is not accepted for split-bus configurations.

ch.id

Shows the status for the LED adjacent to the specified drive within a RAID array.


Examples

The following example shows the status of the LED adjacent to the disk assigned to drive slot 3 for an expansion chassis.


sccli> show led-status slot 3
(enclosure sn 002A4C) led-slot-3: on

The following example shows the status of the LED adjacent to the disk assigned to drive slot 2 for the RAID array.


sccli> show led-status disk 2.0
 (enclosure sn 002A4C) led-slot-0: off

unconfigure global-spare

Description

The unconfigure global-spare command unconfigures a global spare disk.

Syntax


unconfigure global-spare disk

Arguments


TABLE 3-14 Arguments for unconfigure global-spare

Argument

Description

disk

Specify the disk to unconfigure. For example, specify the disk with target ID 1 on channel 2 as 2.1.


Examples

The following example unconfigures disk drive ID 5 on channel 2 as a global spare.


# sccli c2t0d0 unconfigure global-spare 2.5