Platform Notes: Using the Standard SPARCstorage Array Software
只搜寻这本书
以 PDF 格式下载本书

Using the Standard SPARCstorage Array Software

2

This chapter gives the procedures for using the standard SPARCstorage Array software. The following tasks are covered in this chapter:
Reserving and Releasing Drivespage 2-1
Setting Fast Writespage 2-4
Spinning Up and Spinning Down Disk Drivespage 2-5
Displaying Properties of a SPARCstorage Arraypage 2-7
Displaying Properties of a SPARCstorage Array Diskpage 2-9
Displaying Activity Levels on SPARCstorage Array Diskspage 2-10

2.1 Reserving and Releasing Drives

The reserve command allows a host system to reserve individual drives or all the drives in a SPARCstorage Array so that no other host systems can use those drives. This is useful if you have more than one host system connected to a SPARCstorage Array but you want only one system to be able to access certain drives. The release command releases these drives from their reserved state. These commands implement the reserve and release functions as defined by the industry standard SCSI-2 specification.

2.1.1 Reserving and Releasing All Drives in a SPARCstorage Array

Following are the instructions for reserving and releasing all drives in a SPARCstorage Array.

2.1.1.1 Reserving All Drives in a SPARCstorage Array

The reserve option reserves all drives in a SPARCstorage Array for exclusive use by the issuing host.
* Enter the following command at the prompt:

  ssaadm reserve controller  

where controller is the logical name of the controller, given in the form c#. If any of the drives had previously been reserved by another system, this command will fail.

Note - For more information on the ssaadm command, see the ssaadm(1M) man page.

2.1.1.2 Releasing All Drives in a SPARCstorage Array

The release option releases all drives in a SPARCstorage Array from exclusive use by the issuing host. You would use this option if you had previously reserved all drives for exclusive use using the instructions given in the section entitled "Reserving All Drives in a SPARCstorage Array."
* Enter the following command at the prompt:

  ssaadm release controller  

where controller is the logical name of the controller, given in the form c#. This command will have no affect on drives that were not reserved earlier.

2.1.2 Reserving and Releasing Single Disks

Following are the instructions for reserving and releasing a single disk.

2.1.2.1 Reserving a Physical Disk

The reserve option reserves a physical disk for exclusive use by the issuing host.
* Enter the following command at the prompt:

  ssaadm reserve drive  

where drive is the logical disk address for the drive, given in the form /dev/rdsk/c#t#d#s#. If the drive had previously been reserved by another system, this command will fail.

2.1.2.2 Releasing a Physical Disk

The release command releases a physical disk from exclusive use by the issuing host. You would use this option if you had previously reserved the physical disk for exclusive use using the instructions given in the section entitled Reserving a Physical Disk."
* Enter the following command at the prompt:

  ssaadm release drive  

where drive is the logical disk address for the drive, given in the form /dev/rdsk/c#t#d#s#. This command will have no affect on a drive that was not reserved earlier.

2.2 Setting Fast Writes

You can set fast writes from either the controller level, which would set fast writes for all the drives in the SPARCstorage Array, or from the drive level, which would set fast writes only for one specific drive.

2.2.1 Setting Fast Writes at the Controller Level

To set fast writes at the controller level:
* Enter the following command at the prompt:

  ssaadm fast_write [-s] -e controller  

The -s option causes the SPARCstorage Array to save the fast write option across power cycles. Your SPARCstorage Array is now set up so that all the drives within the array take advantage of the fast write option.
If at any point you want to stop fast writes for all the drives in the SPARCstorage Array, follow these instructions:
* Enter the following command at the prompt:

  ssaadm fast_write [-s] -d controller  

2.2.2 Setting Fast Writes at the Drive Level

To set fast writes at the drive level:
* Enter the following command at the prompt:

  ssaadm fast_write [-s] -e drive  

The -s option causes the SPARCstorage Array to save the fast write option across power cycles. The disk drive you selected is now set up so that it takes advantage of the fast write option. You can repeat this procedure for other drives, if you want set more than one drive for fast writes.
If at any point you want to stop fast writes for a single drive, follow these instructions:
* Enter the following command at the prompt:

  ssaadm fast_write [-s] -d drive  

2.3 Spinning Up and Spinning Down Disk Drives

You can spin up or spin down the physical disk drives in your SPARCstorage Array at three levels:

2.3.1 Spinning Up and Spinning Down All Drives in an Array

To spin up all drives in a SPARCstorage Array:
* Enter the following command at the prompt:

  ssaadm start controller  

where controller is the logical name of the controller, given in the form c#.

Note - For more information on the ssaadm command, see the ssaadm(1M) man page.

To spin down all drives in a SPARCstorage Array:
* Enter the following command at the prompt:

  ssaadm stop controller  

2.3.2 Spinning Up and Spinning Down All Drives in a Disk Tray

To spin up all drives in a disk tray:
* Enter the following command at the prompt:

  ssaadm start -t tray_number controller  

where tray number is the number of the disk tray containing the drives and controller is the logical name of the controller, given in the form c#. For example, to start all drives in tray 3 on controller c2, you would enter:

  ssaadm start -t 3 c2  

To spin down all drives in a disk tray:
* Enter the following command at the prompt:

  ssaadm stop -t tray_number controller  

2.3.3 Spinning Up and Spinning Down Individual Disk Drives

To spin up individual disk drives:
* Enter the following command at the prompt:

  ssaadm start drive  

where drive is the logical disk address for the drive, given in the form /dev/rdsk/c#t#d#s#.
To spin down individual disk drives:
* Enter the following command at the prompt:

  ssaadm stop drive  

2.4 Displaying Properties of a SPARCstorage Array

* Enter the following command at the prompt:

  ssaadm display controller  

where controller is the logical name of the controller, given in the form c#.
You will see output similar to the following:

                      SPARCstorage Array Configuration  
  Controller  
  path:/devices/iommu@f,e0000000/sbus@f,e0001000/SUNW,soc@0,0/SUN  
  W,pln@a0005012,55200065:ctlr  
                            DEVICE STATUS  
        TRAY 1                 TRAY 2                 TRAY 3  
  slot  
  1     Drive: 0,0             Drive: 2,0             Drive: 4,0  
  2     Drive: 0,1             Drive: 2,1             Drive: 4,1  
  3     Drive: 0,2             Drive: 2,2             Drive: 4,2  
  4     Drive: 0,3             Drive: 2,3             Drive: 4,3  
  5     Drive: 0,4             Drive: 2,4             Drive: 4,4  
  6     Drive: 1,0             Drive: 3,0             Drive: 5,0  
  7     Drive: 1,1             Drive: 3,1             Drive: 5,1  
  8     Drive: 1,2             Drive: 3,2             Drive: 5,2  
  9     Drive: 1,3             Drive: 3,3             Drive: 5,3  
  10    Drive: 1,4             Drive: 3,4             Drive: 5,4  
  
                            CONTROLLER STATUS  
  Vendor:        SUN  
  Product ID:    SSA100  
  Product Rev:   1.0  
  Firmware Rev:  1.9  
  Serial Num:    501255200065  
  Accumulate Performance Statistics: Enabled  


Note - For more information on the ssaadm command, see the ssaadm(1M) man page.

2.5 Displaying Properties of a SPARCstorage Array Disk

* To display the properties of a SPARCstorage Array disk, enter:

  ssaadm display drive  

where drive is the logical disk address for the drive, given in the form /dev/rdsk/c#t#d#s#.
You will see output similar to the following:

  DEVICE PROPERTIES for device /dev/rdsk/c1t5d0s0  
   SCSI Port 5  Target 0  
   Status:        O.K.  
   Vendor:        CONNER  
   Product ID:    CP30548  SUN0535  
   Product Rev:   AEBX  
   Firmware Rev:  9308  
   Serial Num:    28QB  
   Unformatted Capacity: 532956 KByte  
   Fast Writes:   Disabled  

Following are the different messages you could see on the status line:
  • No Drive Found
  • Drive did not respond to Select
  • Drive not Ready
  • Could not Read from Drive
  • Drive Spun Down
  • No UNIX Label
  • O.K.

Note - For more information on the ssaadm command, see the ssaadm(1M) man page.

2.6 Displaying Activity Levels on SPARCstorage Array Disks

* To display the activity level on SPARCstorage Array disks, enter:

  ssaadm -p display controller  

where controller is the logical name of the controller, given in the form c#.
You will see output similar to the following:

  PERFORMANCE Log  
  BUSY: 84% IOPS: 1102  
                     DEVICE IOPS  
  slot      TRAY 1          TRAY 2          TRAY 3  
  1         254             20              103  
  2         120             348             348  
  3         41              20              123  
  4         34              20              10  
  5         26              20              13  
  6         254             20              43  
  7         72              348             0  
  8         50              20              0  
  9         31              0               0  
  10        7               11              46  


Note - For more information on the ssaadm command, see the ssaadm(1M) man page.