1. Field of the Invention
The present invention relates to a storage device, a storage-device management system, and a storage-device management method.
2. Description of the Related Art
Prolonged use of a magnetic disk device leads to a high risk of physical failure such as damage to the disk surface or error in the signal circuit. In recent times, magnetic disk devices are equipped with a self-repairing mechanism for repairing minor defects and thereby enabling their continuous use.
Even so, as the condition of the disk surface worsens, it becomes impossible to repair the damage, which causes a sudden fatal error, i.e., crash, without any warnings. Because the crash happens suddenly, a user cannot backup data from the magnetic disk device and all the data is lost.
To avoid such a problem, some magnetic disk devices are equipped with self monitoring analysis and reporting technology (S.M.A.R.T.) that enables checking the condition of the magnetic disk devices and warning the user through a host computer about possibility of disk crash when the rate of occurrence of errors increases.
On the other hand, Japanese Patent Application Laid-Open No. 2001-266452 discloses a conventional technology in which index information of data stored in a magnetic disk is associated with operating condition of the magnetic disk, and stored in a random access memory (RAM). The information stored in the RAM is then used for efficient access to the magnetic disk data.
The magnetic disk is sometimes kept in standby mode for power saving. However, in the conventional technology, when the host computer requests for information such as rate of occurrence of errors on the magnetic disk (hereinafter, “diagnostic information”), it is necessary to activate the magnetic disk to read the diagnostic information stored in it. This is an obstacle to effectively achieving power saving.
Because the host computer frequently needs to request the magnetic disk device for the diagnostic information to enhance reliability of the data stored in the magnetic disk, it is virtually impossible to keep the magnetic disk in standby mode. Such continuous use of the magnetic disk significantly increases power consumption.
It is an object of the present invention to at least partially solve the problems in the conventional technology.
According to an aspect of the present invention, a storage device that reads data from and writes data to a magnetic disk while rotating the magnetic disk, includes a diagnostic unit that diagnoses physical and functional condition of the storage device to acquire diagnostic information about the storage device, a storage unit that stores therein the diagnostic information, and a notification processor that receives a request for the diagnostic information, determines whether the magnetic disk is in standby mode, acquires the diagnostic information from the storage unit if the magnetic disk is in standby mode, and notifies the diagnostic information to source of the request.
According to another aspect of the present invention, a storage-device management system that manages physical and functional condition of a storage device that reads data from and writes data to a magnetic disk while rotating the magnetic disk, includes a host terminal that is configured to be connected to the storage device to read data from and write data to the storage device. The host terminal includes an acquisition unit that acquires diagnostic information on the physical and functional condition of the storage device and operational information about operating condition of the storage device, a storage unit that stores therein the diagnostic information and the operational information, and a notification unit that receives a request for the diagnostic information, determines whether the storage device is in standby mode based on the operational information, acquires the diagnostic information from the storage unit if the storage device is in standby mode, and notifies the diagnostic information to source of the request.
A storage-device management method applied to a storage device that reads data from and writes data to a magnetic disk while rotating the magnetic disk, includes diagnosing physical and functional condition of the storage device to acquire diagnostic information about the storage device, storing in a storage unit the diagnostic information, receiving a request for the diagnostic information, determining whether the magnetic disk is in standby mode, acquiring the diagnostic information from the storage unit if the magnetic disk is in standby mode, and notifying the diagnostic information to source of the request.
The above and other objects, features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings.
Exemplary embodiments of the present invention are described in detail below with reference to the accompanying drawings. The present invention is not limited to these exemplary embodiments.
The concept of a storage device according to an embodiment of the present invention is explained below. In the storage device, diagnostic information about the condition of the storage device is stored in a magnetic disk and a storage unit such as a random access memory (RAM). The diagnostic information includes such items as internal temperature of the storage device, rate of occurrence of errors in accessing (reading and writing) the magnetic disk, and seek rate and spinup time of the magnetic disk.
Upon receiving a notification request for the diagnostic information from a host computer, the storage device determines whether the magnetic disk is rotating or in standby mode for power saving. If the magnetic disk is in standby mode, the storage device acquires the diagnostic information from the storage unit, and notifies the host computer of the diagnostic information.
Therefore, even if the magnetic device is in standby mode, the storage device can notify the host computer of the diagnostic information stored in the storage unit without spinning up the magnetic disk from standby mode, thus reducing power consumption.
The magnetic disk 110 can be any thin disk-shaped storage medium made of resin and coated with a magnetic substance. The spindle motor 120 rotates the magnetic disk 110.
The head 130 is fixed to an arm, and performs read-write-delete operations of data on the magnetic disk 110. The voice coil motor 140 moves the head 130 to a predetermined position on the magnetic disk 110. The motor driving unit 150 operates or stops the spindle motor 120 and the voice coil motor 140.
In response to a request from a host computer (not shown), the HDC 160 diagnoses read-write operations of data, controlling of the motor driving unit 150, and rate of occurrence of errors in the storage device 100. The HDC 160 includes a read-write processor 160a, a S.M.A.R.T. information processor 160b, and a driver controlling unit 160c.
The read-write processor 160a receives data to be written to the magnetic disk 110 (write data) from the host computer through the interface 170. The read-write processor 160a temporarily stores the write data in the storage unit 180, and then writes it to the magnetic disk 110.
The interface 170 communicates with the host computer using predetermined communication protocols. The storage unit 180 receives data from the HDC 160 and stores therein the received data.
Upon receiving a read data request from the host computer through the interface 170, the read-write processor 160a reads corresponding data from the magnetic disk 110. The read-write processor 160a temporarily stores the data read from the magnetic disk 110 (read data) in the storage unit 180, and then transmits the read data to the host computer.
The S.M.A.R.T. information processor 160b periodically diagnoses condition of the storage device 100, and stores in the magnetic disk 110 and in the storage unit 180 the diagnostic information as a result of the diagnosis. Upon receiving a request for the diagnostic information from the host computer, the S.M.A.R.T. information processor 160b acquires the diagnostic information from the magnetic disk 110 if the magnetic disk 110 is rotating or from the storage unit 180 if the magnetic disk 110 is in standby mode, and then transmits the diagnostic information to the host computer.
To diagnose the condition of the storage device 100, the S.M.A.R.T. information processor 160b acquires information about temperature from a temperature detector (not shown), rate of occurrence of errors for read-write operations by using the head 130, and seek time and spinup time from the driver controlling unit 160c.
The driver controlling unit 160c controls the motor driving unit 150. When there is no request for read-write operations on the magnetic disk 110 for a predetermined period of time, the driver controlling unit 160c stops the spindle motor 120, so that the magnetic disk 110 enters power saving mode. The driver controlling unit 160c then notifies the S.M.A.R.T. information processor 160b that magnetic disk 110 is in the power saving mode.
The S.M.A.R.T. information processor 160b thus determines from where to acquire the diagnostic data depending on the operating condition of the magnetic disk 110. Hence, there is no need to activate the magnetic disk 110 from standby mode, and the power consumption can be efficiently reduced.
The S.M.A.R.T. information processor 160b continuously monitors the usage of data stored in the storage unit 180, and can alter the time interval for diagnosing the condition of the storage device 100 based on the data usage. When there is enough available space in the storage unit 180 (when the user data area is not in much use), the S.M.A.R.T. information processor 160b shortens the time interval for diagnosis and stores the diagnostic information in the available space.
When there is not much available space in the storage unit 180, the S.M.A.R.T. information processor 160b prolongs the time interval for diagnosis and saves the storage capacity of the storage unit 180.
The S.M.A.R.T. information processor 160b also prioritizes the items included in the diagnostic information (internal temperature of the storage device, rate of occurrence of errors in accessing the magnetic disk, and seek rate and spinup time of the magnetic disk) and stores in the storage unit 180 only items with high priority so that the storage unit 180 can be used efficiently.
A criterion for prioritization can be the number of requests the host computer makes for each item. For example, if the host computer frequently requests for information about internal temperature of the storage device 100, the S.M.A.R.T. information processor 160b sets high priority to that particular information of internal temperature of the storage device 100.
When the spindle motor 120 is in standby mode (Yes at step S103), the S.M.A.R.T. information processor 160b acquires the diagnostic information from the storage unit 180 (step S104), and transmits the diagnostic information to the host computer (step S106).
When the spindle motor 120 is in operation (No at step S103), the S.M.A.R.T. information processor 160b acquires the diagnostic information from the magnetic disk 110 (step S105), and transmits the diagnostic information to the host computer (step S106).
In this way, the S.M.A.R.T. information processor 160b determines from where to acquire the data depending on the operating condition of the spindle motor 120, which efficiently reduces the power consumption.
As described above, according to the embodiment, the storage device 100 includes the S.M.A.R.T. information processor 160b that periodically diagnoses the condition of the storage device 100 and stores the diagnostic information in the magnetic disk 110 and in the storage unit 180. Upon receiving a request for the diagnostic information from the host computer, the S.M.A.R.T. information processor 160b acquires the diagnostic information from the magnetic disk 110 if the magnetic disk 110 is rotating or from the storage unit 180 if the magnetic disk 110 is in standby mode, and then transmits the diagnostic information to the host computer. In this way, the power consumption of the storage device 100 can be efficiently reduced.
According to the embodiment, the diagnostic information is stored in the storage unit 180 of the storage device 100. When the magnetic disk 110 is in standby mode, the diagnostic information is acquired from the storage unit 180 and transmitted to the host computer without spinning up the magnetic disk 110 from standby mode. However, the present invention is not limited to this particular embodiment. For example, the host computer can manage the diagnostic information of the storage device 100.
The host computer 200 is connected to the storage device 100 and includes an application processor 210, a disk access processor 220, an interface 230, and a storage unit 240. The application processor 210 requests the disk access processor 220 to perform read-write operations of data and acquire the diagnostic information.
Upon receiving a request from the application processor 210, the disk access processor 220 reads or writes data from or to the storage device 100. The interface 230 communicates with the storage device 100 using predetermined communication protocols.
The disk access processor 220 communicates with the storage device 100, acquires disk-condition information and the diagnostic information, and stores in the storage unit 240 the disk-condition information and the diagnostic information. The disk-condition information includes standby-mode setting information, access information, and diagnosis-timing information of the storage device 100.
The standby-mode setting information is about a time period (in hours, minutes, or seconds), after which, from the last access to the storage device 100, the storage device 100 enters standby mode. The access information is about the time of last access to the storage device 100. The diagnosis-timing information is about the time when the storage device 100 acquires the diagnostic information.
Upon receiving a request for the diagnostic information from the application processor 210, the disk access processor 220 determines, based on a disk-condition information 240a, whether the storage device 100 is in standby mode. If the storage device 100 is in standby mode, the disk access processor 220 feeds diagnostic information 240b stored in the storage unit 240 to the application processor 210. If the storage device 100 is in operation, the disk access processor 220 acquires the diagnostic information from the storage device 100 and feeds the diagnostic information to the application processor 210.
In this way, when the storage device 100 is in standby mode, the disk access processor 220 feeds the application processor 210 with the diagnostic information 240b stored in the host computer 200, thus eliminating any need to activate the storage device 100 and substantially reducing power consumption.
The host computer 200 can also be connected to the storage device 100 through a network and then manage the diagnostic information of the storage device 100.
According to an embodiment of the present invention, power consumption related to a storage device can be efficiently reduced.
Although the invention has been described with respect to a specific embodiment for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth.
This is a continuation filed under 35 U.S.C. §111(a), of International Application No. PCT/JP2005/005163, filed Mar. 22, 2005.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2005/005163 | Mar 2005 | US |
Child | 11899079 | Sep 2007 | US |