US 20050182874 A1
A disk array controller detects whether each drive it is connected to is an ATA drive or a SCSI drive, and communicates with that disk drive using the corresponding protocol. Preferably, the disk array controller supports both the Serial ATA interface specification and the Serial Attached SCSI interface specification, allowing either or both types of disk drives to be included within a RAID or other disk array configuration. The disk array controller may be incorporated into a storage server having hot swap drive carriers that accommodate both types of disk drives.
2. A disk array controller that supports mixing and matching of Serial ATA (SATA) and Serial Attached SCSI (SAS) disk drives, the disk array controller comprising:
a plurality of ports for connecting disk drives to the disk array controller;
a plurality of controllers for controlling said disk drives, each controller being capable of detecting whether a disk drive to which it is connected is a SATA disk drive or a SAS disk drive, and being capable of communicating with the disk drive using either a SATA protocol or a SAS protocol; and
a processor which communicates with the plurality of controllers over a bus to initiate transfers of data to and from the disk drives;
wherein the disk array controller is capable of operating the plurality of disk drives as a disk array that includes a combination of SAS and SATA disk drives.
3. A disk array controller as in
4. A disk array controller as in
5. A disk array controller as in
6. A disk array controller as in
7. A disk array controller as in
8. A method of communicating with a disk drive, the method comprising:
during an initialization phase, communicating with the disk drive over a connector to determine whether the disk drive is a Serial Advanced Technology Attachment (SATA) disk drive versus a Serial Attached Small Computer System Interface (SAS) disk drive;
based on an outcome of the determination, selecting at least one physical layer parameter to be used to communicate with the disk drive so as to account for a difference between physical layer interfaces of SATA and SAS disk drives; and
communicating with the disk drive over said connector using the selected physical layer parameter.
9. The method of
10. The method of
11. The method of
12. The method of
13. A controller that implements the method of
14. A disk array controller that implements the method of
15. The method of
16. A controller, comprising:
a detection circuit capable of detecting a type of a disk drive that is connected to the controller, wherein the detection circuit is capable of distinguishing between a Serial Advanced Technology Attachment (SATA) disk drive and a Serial Attached Small Computer System Interface (SAS) disk drive;
an ATA protocol engine that is used to communicate with the disk drive if the disk drive is determined by the detection circuit to be a SATA disk drive; and
a SCSI protocol engine that is used to communicate with the disk drive if the disk drive is determined by the detection circuit to be a SAS disk drive.
17. A controller as in
18. A controller as in
19. A controller as in
20. A controller as in
21. A controller as in
This application is a continuation of U.S. patent appl. Ser. No. 10/378,028, filed Feb. 28, 2003, the disclosure of which is hereby incorporated by reference.
The present invention relates to data storage systems, and more particularly, relates to disk array systems.
Two competing disk drive interface standards currently exist within the storage industry: the ATA (Advanced Technology Attachment) standard and the SCSI (Small Computer System Interface) standard. These standards define both the physical interface and the protocol used to communicate with a disk drive. Both standards have evolved over time through the release of new ATA and SCSI specifications. For example, advancements in disk interface technology have recently led to the development of the Serial ATA specification and the Serial Attached SCSI specification, both of which use a common physical and electrical interface.
Because neither the ATA standard nor the SCSI standard has clearly prevailed over the other, the storage industry continues to expend significant resources supporting both standards. For example, a storage integrator wishing to manufacture and sell a disk array system generally must design the system to support either ATA disk drives or SCSI disk drives. If the storage integrator wishes to also provide a disk array solution that supports the other standard (to cater to customer loyalties to a particular standard), it generally must maintain and support a separate product line that uses a different disk array controller and other hardware components.
The present invention seeks to address this and other problems.
The present invention provides a disk array controller that is capable of detecting and controlling both ATA and SCSI disk drives. The disk array controller preferably supports both the Serial ATA (“SATA”) specification and the Serial Attached SCSI (“SAS”) specification, and is capable of controlling an array of SATA disk drives, an array of SAS disk drives, or a mixed array of both SATA and SAS disk drives. The disk array controller may be incorporated into a storage server that supports both types of disk drives.
In one embodiment, the disk array controller communicates with each disk drive to determine the drive's type (SATA or SAS). The type of each disk drive may alternatively be determined based upon an attribute of the corresponding hot-swap drive carrier, such as the position of a physical drive type indicator switch. Once the type of a given disk drive has been determined, the disk array controller uses a corresponding protocol (ATA or SCSI) to communicate with that disk drive. The disk array controller may also appropriately conform to the features, functions and capabilities of the disk drives to which it is currently connected.
An important benefit of the disk array controller, in the preferred embodiment, is that it reduces or eliminates the need for system integrators to provide separate ATA and SCSI storage solutions. For example, the disk array controller may be provided as part of a disk array system/storage server that can be populated with SATA drives, SAS drives, or a combination thereof, without the need to change any other hardware components. This system may be provided with hot-swap drive carriers that accommodate both SATA and SAS disk drives, or alternatively, may be provided with separate hot-swap drive carriers for each of these drive types. In one embodiment, the system supports the hot swappability of SATA drives with SAS drives, and vice versa, allowing users to flexibly change from one drive type to the other over time.
Neither this summary nor the following detailed description is intended to define the invention. The invention is defined by the claims.
An example system that embodies the invention will now be described with reference to
Each disk drive 32 is connected to the disk array controller by a respective cable 34 or other connector. Because both SAS and SATA disk drives will use the same physical interface, the same type of cable 34 or other electrical connector may be used with both drive types. In the illustrated embodiment, each disk drive 32 is connected to and controlled by a respective controller 40 via a respective disk drive port 31 and cable 34. Each controller 40 includes logic for implementing both the host side of the ATA protocol and the host side of the SCSI (SAS) protocol. This logic may be implemented in automated circuitry, firmware, or a combination of both. Although some details of the SAS specification have not yet been finalized, the task of incorporating the SAS protocol into the controllers 40 will be well within the scope of those skilled in the art.
Each controller 40 also includes drive type detection logic 42 for automatically detecting the type of drive (SATA or SAS) currently connected to the corresponding port 31. This detection logic 42 may determine the drive type by communicating with the drive, or as described below, by detecting a particular attribute of the drive's carrier. Although separate drive type detection logic 42 is shown for each disk drive port 31, a single circuit or firmware program may be used to detect the types of all of the drives 32. The number of disk drive ports 31 and controllers 40 included on the disk array controller may, for example, be eight, twelve, or any other appropriate number.
The disk array controller 30 is housed within an enclosure 46 that also houses the disk drives 32, although the disk drives 32 may alternatively be mounted in separate enclosure. The enclosure 46 may, for example, be the enclosure of a host PC or workstation for which the disk array controller 30 provides storage services. Alternatively, the enclosure 46 may be that of a dedicated storage server that provides virtualized storage services to many different host computers on a computer network, as disclosed in U.S. Appl. Ser. No. 09/927,894, filed Aug. 10, 2001, the disclosure of which is hereby incorporated by reference. The disk array controller may present the disk drives 32 to the host computer or computers as a single SCSI drive.
Each disk drive 32 is preferably mounted within a respective hot-swap drive carrier 48 that slides into a corresponding bay or socket (not shown) of the enclosure 46. Well known hot swap carrier designs and circuitry may be used for this purpose. As depicted by the dashed arrows between the drive type detection logic 42 and the carriers 48, each drive carrier 48 may optionally include a drive indicator switch that may be tested or monitored by the drive type detection logic 42 to determine the type of drive present. This switch may be manually set to the correct position (SATA or SAS) at the time of drive insertion, or may alternatively be designed to automatically assume the proper position based on the physical configuration of the disk drive.
More preferably, however, the types of the disk drives 32 are determined by directly communicating each disk drive. This may be accomplished, for example, by initially attempting to communicate with a given disk drive 32 using one protocol (e.g., an ATA protocol), and if the disk drive does not respond properly, attempting to communicate with the disk drive using the other protocol (e.g., a SAS protocol). Yet another approach may be to measure the impedance, voltage levels, and/or other parameters on selected signal lines that interconnect the controller 40 and the disk drive 32.
The disk array system may support the ability for users to hot swap SATA disk drives with SAS disk drives, and vice versa. Administrators can thus replace disk drives without having to worry about the type (SATA or SAS) of the new disk drive. In one embodiment, the disk array controller 30 accepts the swapped-in disk drive 32 as long as its capacity equals or exceeds that of the disk drive being replaced.
In the illustrated embodiment, each SATA/SAS controller 40 communicates with an input/output (I/O) processor 50 via an I/O data bus 52. The I/O data bus 52 carries all I/O data that is read from or written to a disk drive 32. More specifically, data read from a disk drive 32 flows over the I/O bus 52 from the corresponding controller 40 to the I/O processor 50, and data being written to a disk drive flows over the I/O bus 52 from the I/O processor to the drive's controller 40. The I/O bus 52 may use a protocol that allocates timeslots to controllers 40 and drives 32 according to a least-recently-used or other arbitration scheme, as described in U.S. Pat. No. 6,134,630, the disclosure of which is hereby incorporated by reference. The I/O processor 50 accesses a cache memory 54 that is used to perform various types of I/O operations, as is conventional.
The controllers 40 also communicate with a microcontroller (IC) 56 via an address/control bus 58. The microcontroller 56 executes a firmware program that is stored in a non-volatile read-only memory (ROM) 60. This firmware program is responsible, among other things, for dividing host I/O operations into constituent disk drive commands according to the currently selected disk array configuration (e.g., RAID 0, RAID 4, RAID 5, etc.). The microcontroller 56 dispatches these disk drive commands over the address/control bus 58 to specific controllers 40 for execution by the corresponding disk drives. The microcontroller 56 may also read status information from each controller 40 to determine the type of drive (SAS or SATA) connected to each port 31, and may vary its operation accordingly. The types of the disk drives 32 may be reported or exposed by the disk array controller 30 to a host computer to facilitate remote administration of the disk array system.
The format of the disk drive commands passed over the address/control bus 58 to a particular controller 40 may optionally depend on the type of the corresponding disk drive 32. For example, the microcontroller 56 may send disk drive commands formatted according to the SATA specification to a controller 40 that controls a SATA drive 32, but may send disk drive commands formatted according to the SAS specification to a controller 40 that controls a SAS disk drive 32. Alternatively, the microcontroller 56 may dispatch similarly formatted commands to all controllers 40, and the controllers 40 may be responsible for appropriately translating such commands, as necessary, to the proper drive format.
Although separate buses 52, 58 are used in the illustrated embodiment for I/O data versus control information, a single, shared bus may alternatively be used to handle both types of transfers.
During an initialization phase (e.g., during boot-up or following a hot-swap event), each controller 40 in the illustrated embodiment is responsible for detecting whether it is connected to a SATA disk drive or an SAS disk drive (or possibly to no disk drive), and reporting this information to the microcontroller 56. Each controller 40 also enters into a mode in which it uses either an ATA protocol or a SCSI protocol to communicate with its disk drive 32, depending on whether the disk drive is a SATA drive or a SAS drive, respectively. Each controller 40 may also conform to the features and functions of the drive to which it is connected. For example, when a SAS drive 32 is connected, the controller may support block-level locking and other SCSI features that are not currently supported by SATA drives. In addition, full duplex operation (i.e., concurrent bi-directional communications with the disk drive) may be used when a SAS drive is connected, while half-duplex operation (i.e., data flow in only one direction at a time) may be used when a SATA drive is connected.
Once the disk array controller determines the types of all of the disk drives 32, it may optionally select an I/O bus protocol (for the I/O bus 52) that is best suited for the particular set of drives. For example, when only SATA drives are connected, an I/O bus protocol that is optimized for SATA drives may be used; and when only SAS drives are present, an I/O bus protocol that is optimized for SAS drives may be used. Yet another I/O bus protocol may be used when a mix of SATA and SAS drives exists. Rather than selecting between different protocols, the disk array controller 30 may vary one or more parameters, such as timeslot length, of a protocol that accommodates both types of disk drives. The functionality for selecting between I/O bus protocols and/or varying protocol parameters may, for example, be embodied within the firmware program executed by the microcontroller 56.
An important benefit of the disk array controller 30, in the preferred embodiment, is that it reduces or eliminates the need for system integrators to develop and support separate ATA and SCSI storage solutions. For example, the disk array controller 30 may be incorporated into a storage server/enclosure that may be populated with either SAS or SATA drives (or both), without the need to change any other hardware or software components. A storage integrator may populate each such storage server as needed to sell SCSI storage solutions and ATA storage solutions. In addition, purchasers of such systems can change from one drive type to the other over time, if desired.
Each link layer module 75, 76 is connected to a common physical (PHY) layer circuit 80 that generates and receives electrical signals on the cable or other connector 34. As illustrated, the physical layer circuit 80 may optionally include programmable drivers 82 that can be controlled to accommodate differences between the SATA and SAS specifications, such the different maximum cable lengths (currently 1 meter for SATA and 10 meters for SAS). These drivers 82 may be controlled so as to adjust the slew rate, current drive, impedance, and/or other parameters for communicating on the cable 34, depending upon whether the controller 40 is currently connected to a SATA disk drive versus a SAS disk drive.
The controller 40 also includes a shared FIFO (first-in-first-out) buffer 74 that is used by the currently-selected protocol engine 70 or 72 to temporarily store I/O read and write data. The FIFO buffer 74 may optionally be divided into separate read and write FIFO buffers, and may be configured differently depending upon whether the controller 40 is currently controlling a SATA drive versus a SAS drive. In one embodiment, for example, the FIFO buffer 74 is subdivided into separate read and write FIFO buffers when the controller 40 is operating in SAS mode (to accommodate full duplex operation), and is maintained as a single read/write FIFO buffer when the controller is operating in SATA mode.
The controller 40 also includes a detection/control circuit 42 that is responsible for detecting the type of the corresponding disk drive 32, and for maintaining the controller in the appropriate mode (SATA or SAS) when the drive type in known. In one embodiment, this circuit 42 controls the ATA and SAS protocol engines 70, 72 during an initialization phase to cause the controller to initially try communicating with the disk drive using one protocol (SATA or SATA), and to then try the other protocol if the initial attempt is unsuccessful. The controller 40 may also read identifying information from the disk drive, such as the drive's IDENT string, to determine or confirm the type of the drive. Once the type of the drive is known, detection/control circuit 42 selects the corresponding protocol engine 70 or 72 and link layer 75 or 76 for use, and configures the programmable drivers 82 accordingly.
The controller 40 also includes a common microcontroller interface 90 for communicating with the microcontroller 56 (
Although this invention has been described in terms of certain preferred embodiments, other embodiments that are apparent to those of ordinary skill in the art, including embodiments that do not provide all of the features and benefits described herein, are also within the scope of this invention. Accordingly, the scope of the present invention is defined only by the appended claims.