This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2008-218136, filed on Aug. 27, 2008, the entire contents of which are incorporated herein by reference.
The present invention relates to an abnormality detection method for an electronic device, so that the electronic device connected to a loop transmission line, such as FC_AL, detects being bypassed from the loop transmission line, and an electronic device, and more particularly to an abnormality detection method for an electronic device, so that the electronic device detects being bypassed from the loop transmission line and failure analysis can be simplified, and an electronic device.
A loop transmission line is widely used lately for connecting a host device and peripheral devices. For example, FC_AL (Fibre Channel Arbitrated Loop) is known as a loop transmission line.
In particular, in storage systems connected to a host device, a configuration of connecting a storage controller and many magnetic disk devices via FC_AL is widely used.
Each magnetic disk device is connected to a port bypass circuit (PBC) disposed on this loop transmission line. The PBC not only connects each magnetic disk device to the loop transmission line, but also bypasses (disconnects) each connected magnetic disk device based on instructions from the storage controller. The loop transmission line and PBC are installed on the back plane (back board), and a magnetic disk device is removably installed on the back plane (e.g. Japanese Patent Application Laid-Open No. 2003-158526, Japanese Patent Application Laid-Open No 2001-45035 and Japanese Patent Application Laid-Open No 2000-59414).
In this storage system connected via FC-AL, having a port bypass circuit (PBC) on the back plane, a magnetic disk device on the loop may be bypassed for any reason. For example, if a response is not received from a magnetic disk device to an inquiry or command from the controller, or if the response time is long, or if an error keeps returning, the controller sets the PBC, to which this magnetic device is connected, to bypass state, so as to disconnect this magnetic disk device.
In order to specify a cause of this bypass state, both the system (controller, transmission line) and the magnetic disk device must be checked so that failure of the system or of the magnetic disk device can be discerned. However, in the case of prior art, the controller recognizes the bypass of the magnetic disk device, but the magnetic disk device does not recognize being bypassed on the back plane.
Therefore the magnetic disk device cannot find a trigger to perform logging the internal information required for subsequent failure analysis, and it often takes a long time to detect the cause of bypass in the investigation of the magnetic disk device.
With the foregoing in view, it is an object of the present invention to provide an abnormality detection method for an electric device, so that an electronic device connected via a loop transmission line detects being bypassed from the loop transmission line, and the electronic device.
It is another object of the present invention to provide an abnormality detection method for an electronic device, so that an electronic device connected via a loop transmission line detects being bypassed from the loop transmission line, and collects information required for failure analysis, and the electronic device.
It is still another object of the present invention to provide an abnormality detection method for an electronic device, so that an electronic device connected via a loop transmission line detects being bypassed from the loop transmission line by using a protocol of the loop transmission line, and the electronic device.
An abnormality detection method for an electronic device connected by a loop in one mode of the invention to attain the above objects includes the steps of: receiving a positioning map frame for registering an address on the loop transmission line from the loop transmission line by each one of a plurality of electronic devices connected to a loop transmission line via a bypass circuit constructing a loop configuration; storing and updating an own address in the received positioning map frame by said each of the electronic devices; sending the updated positioning map frame to the loop transmission line via the bypass circuit to construct a loop configuration by said each of the electronic devices; receiving the positioning map frame updated after one round of the loop transmission line with the electronic device; judging whether the stored own address exists in the received positioning map by the electronic device; and judging being bypassed from the loop transmission line by the bypass circuit when the electronic device judges that the stored local address does not exist in the received positioning map.
An electronic device connected to a loop transmission line via a bypass circuit, in one mode of the present invention to attain the above objects includes: a receive circuit which receives a signal from the loop transmission line; a transmission circuit which sends a signal to the bypass circuit; and a control circuit which executes loop initialization processing for receiving a positioning map frame for registering an address on the transmission line, storing and updating an own address in the received positioning map frame, and sending the updated positioning map frame to the loop transmission line via the bypass circuit, wherein the control circuit receives the positioning map frame updated after one round of the loop transmission line, judges whether the stored own address exists in the received positioning map, and determines being bypassed from the loop transmission line by the bypass circuit when judging that the stored own address does not exist in the received positioning map.
Since the electronic device receives the positioning map in which the own address is registered in the loop initialization processing of the loop transmission line, and judges whether the own address is still registered, the looped electronic device can determines whether this electronic device is being bypassed from the loop transmission line by the bypass circuit using a conventional sequence.
Embodiments of the present invention will now be described in the sequence of a system using a loop transmission line, electronic device, first embodiment of abnormality detection processing, and second embodiment of abnormality detection processing, but the present invention is not limited to these embodiments.
(System Using Loop Transmission Line)
As
As
As
Each PBC 6-1 to 6-N is constituted by a switch having two inputs and one output. Each PBC 6-1 to 6-N selects either the FC loop 5 or each FC_AL device 1-1 to 1-N, as an input, and outputs it to the FC loop 5.
(Electronic Device)
As
The actuator 12 is constituted by a voice coil motor (VCM) which rotates around the rotation axis. The magnetic head 14 is constituted by a read element and a write element.
In the print circuit assembly (control circuit unit), a hard disk controller (HDC) 20, a microprocessor (MPU) 24, a signal processing circuit (read channel circuit: RDC) 16, a servo control circuit 18, a data buffer (RAM) 22, a ROM (Read Only Memory) 26 and RAM 28 are disposed.
The read channel circuit (RDC) 16 includes a preamplifier, and controls the data read and data write of the magnetic head 14. In other words, RDC 16 performs data modulation, data demodulation and signal amplification. The servo control circuit (SVC) 18 drives and controls the spindle motor, and also drives and controls the VCM 12.
The hard disk controller (HDC) 20 has an interface control circuit 30 which controls the interface, a command control circuit 34 which performs control according to a command from the host, a data buffer control circuit 32 which controls the data buffer 22, and a disk control circuit 36 which controls disk format. The data buffer (RAM) 22 temporarily stores read data and write data.
The micro processor (MPU) 24 controls the HDC 36, and manages the RAM 28 and ROM 26. The ROM 26 stores various programs and parameters. The RAM 28 stores various data required for processing by the MPU 24.
As
Under the FC_AL environment, an initialization procedure (Loop Initialize) is performed for constructing a loop configuration. When Loop Initialize (loop construction) completes, a positioning map frame (LIRP: Loop Initialization Report Position and LILP: Loop Initialization Loop Position) which stores a physical address for identifying a node (AL-PA: Arbitrated Loop Physical Address) is transferred between nodes (magnetic disk devices to be an initiator and a target) on the loop.
As
The transfer processing of each node will now be described with reference to
(S10) A predetermined loop master sends the positioning map for reporting LIRP in
(S12) The command control unit 34 registers (stores) the own AL_PA in a byte position after the blank for the number of nodes from the loop master of the LIRP (
(S14) The command control unit 34 sends the edited LIRP to the FC loop 5, via the transmitter TX of the interface control unit 30. And the reporting processing ends.
In this way, AL-PA is registered in the positioning map frame (LIRP) in the sequence of connected nodes, with the loop master first, and the positioning map frame is sent to the next node. When the LIRP frame returns to the loop master, (all the nodes complete registration of AL_PA), the loop master resends this frame as the LILP frame.
If the FC_AL device 1-1 is not bypassed on the back plane as shown in
If the FC_AL device is bypassed on the back plane as shown in
The bypassed node receives the LIRP frame and updates the positioning map, but cannot send the updated LIRP frame to the FC loop 5. Therefore the LIRP which returned to the loop master shows that the position where the own AL-PA should be registered is replaced with the AL_PA of another node, or is still in an unregistered state (0xFF is written), as shown in
In the case of the example in
Since the updated LIRP frame is resent from the loop master as the LILP frame, the magnetic disk device which received the LILP frame checks whether the own AL_PA exists in the positioning map in the frame, and if it does not exist, the magnetic disk device judges that this magnetic disk device is being bypassed on the back plane, and performs processing required for subsequent failure analysis.
(S20) When the FC_AL node (magnetic disk device 1 in
(S22) If the received frame is LILP, the command control unit 34 transfers the received LILP frame to the MPU 24. The MPU 24 confirms whether the own AL-PA exists in the same position of the positioning map registered when the LIRP frame is received. If it exists, the MPU 24 ends this confirmation processing.
(S24) If it is judged that the own AL_PA does not exist in the LILP frame (abnormality), the MPU 24 confirms whether the required processing (data collection) for checking has already been performed. This processing is for maintaining the state immediately after the bypassing. If data collection has been performed, the MPU 24 ends this confirmation processing.
(S26) If the required processing has not yet been performed, the MPU 24 performs this processing, and prepares for the subsequent check. In the case of this example, data collection processing is performed, and the data shown in
In
When this processing ends, the MPU 24 sends the LIRP frame received from the command control unit 34 and the interface control unit 30 to the FC loop 5.
In this way, the positioning map is updated with the own address, and when the updated positioning map is retransmitted, it is judged whether this own address exists in the positioning map, thereby it can be judged whether this device is bypassed from the FC loop or not. This means that it can be judged whether the device is bypassed or not using a conventional initialization sequence.
Since bypass is detected and the data required for failure analysis is collected in advance, the data required for analysis can be easily acquired when the magnetic disk device is disconnected from the back plane, and is analyzed using a failure diagnosis device, as shown in
Therefore the cause of bypass can be analyzed by a magnetic disk device alone, and a check to discern whether the cause is the system or the disk can be easily performed.
In summary, an abnormality detection method for a looped electronic device, so that an electronic device connected via a loop transmission line detects being bypassed from the loop transmission line by using a protocol of the loop transmission line, and the electronic device.
An abnormality detection method for an electronic device connected by a loop includes the steps of: receiving a positioning map frame for registering an address on the loop transmission line from the loop transmission line by each one of a plurality of electronic devices connected to a loop transmission line via a bypass circuit constructing a loop configuration; storing and updating an own address in the received positioning map frame by said each of the electronic devices; sending the updated positioning map frame to the loop transmission line via the bypass circuit to construct a loop configuration by said each of the electronic devices; receiving the positioning map frame updated after one round of the loop transmission line with the electronic device; judging whether the stored own address exists in the received positioning map by the electronic device; and judging being bypassed from the loop transmission line by the bypass circuit when the electronic device judges that the stored local address does not exist in the received positioning map.
The abnormality detection method for a looped electronic device further includes a step of saving internal data required for failure analysis when the electronic device judges being bypassed from the loop transmission line by the bypass circuit.
The loop transmission line is constructed as FC_AL, and the positioning map frame is sent from the loop master on the loop transmission line.
The saving step further has a step of judging whether the internal data required for failure analysis has already been saved, when it is judged that the electronic device is bypassed from the loop transmission line by the bypass circuit, and a step of saving the internal data, when the electronic device judges that the internal data has not yet been saved.
The electronic device is constructed as a storage device for storing data. The storage device is constructed as a magnetic disk device.
A second embodiment of an abnormality detection processing according to the present invention will now be described. In the first embodiment, this magnetic disk device can recognize being bypassed only when Loop Initialize is generated.
A magnetic disk device recognizing its bypass state promptly is effective for early diagnosis. According to the second embodiment, another disk device monitors the state and issues LIP (generates Loop Initialize) when bypass is detected, so that the magnetic disk device can recognize the situation without fail at an early stage.
(S30) The MPU 24 of the magnetic disk device 1 judges whether Loop Initialize was generated. In other words, it is judged whether the LIRP frame was received. If it is judged that Loop Initialize was generated, the MPU 24 sets the next magnetic disk device upstream as the monitoring target, based on the LILP frame when Loop Initialize completes, and stores the AL_PA of this magnetic disk.
(S32) When a predetermined time elapses, each magnetic disk device 1 on the FC loop periodically sends an open (OPN) primitive to the monitoring target magnetic disk device from the FC loop 5. The open primitive is a communication start primitive which is transferred to the FC loop 5 with specifying a transmission source and a transmission destination, and only the transmission source and transmission destination nodes can filter (receive) the open primitive.
(S34) After each magnetic disk device sends the OPN primitive, each magnetic disk device sends a close (CLS) primitive to the monitoring target magnetic disk device via the FC loop 5. The close primitive is a communication completion primitive to be transferred to the FC loop 5, with specifying a transmission source and a transmission destination, and only the transmission source and transmission destination nodes can filter (receive) the close primitive.
(S36) The magnetic disk device which sent the OPN primitive judges whether the OPN primitive, sent by this magnetic disk device, is received from the FC loop 5.
(S38) If this magnetic disk device receives the OPN primitive sent by this magnetic disk device from the FC loop 5 (OPN primitive returned from the FC loop 5), the magnetic disk device which sent the OPN primitive determines that the monitoring target magnetic disk device is bypassed, and issues LIP (Loop Initialize Primitive) to the FC loop 5.
By this, each magnetic disk device connected to the FC loop 5 moves to the loop initialization sequence. In the loop initialization sequence, a loop master is determined and the procedure in the first embodiment is executed. In other words, an LIRP frame is sent from the master node to the FC loop 5, the positioning map of the LIRP frame is updated by each node on the loop, and when the positioning map is returned to the loop master, this positioning map is sent from the loop master to the FC loop 5 as an LILP frame.
Just like the first embodiment, this magnetic disk device detects being bypassed by this LILP frame according to the processing flow in
(S40) The magnetic disk device which sent the OPN primitive judges that the CLS primitive sent by this magnetic disk device is received (the CLS primitive is returned from the FC loop 5), when the OPN primitive sent by this magnetic disk is not received from the FC loop 5. In other words, it is judged whether the CLS primitive returned first.
If it is judged that the CLS primitive is received, it is judged that the monitoring target magnetic disk device is not bypassed (exists on the loop), and the monitoring processing ends, and processing returns to step S30.
Since only the transmission source and transmission destination nodes can filter the OPN primitive, the transmission destination does not return the OPN primitive to the FC loop if the OPN primitive is received.
If the transmission destination is bypassed, however, the OPN primitive is returned from the FC loop 5 to the transmission source. Hence whether the transmission destination node exists on the loop or not can be judged depending on whether the OPN primitive is returned.
The FC loop is not continuously occupied since the occupation of the FC loop is released by sending the CLS primitive, thereby interfering with the communication of other nodes can be prevented.
Such monitoring processing is repeated by each magnetic disk device with a predetermined interval, so as to monitor another magnetic disk device on the loop respectively. As a result, the bypass state of the magnetic disk device can be detected soon by itself, and effective diagnosis and analysis is implemented.
In summary, the electronic device sends an open primitive, which can be used only by a transmission source and transmission destination, to another electronic device on the loop transmission line, via the loop transmission line, judges whether the open primitive is received from the loop transmission line, and judges that the other electronic device is bypassed from the loop transmission line by the bypass circuit, and starts the loop initialization processing when it is judged that the open primitive is received from the loop transmission line.
The monitoring step includes a step of sending a close primitive to the other electronic device after sending the open primitive, and a step of judging that the other electronic device is not bypassed from the loop transmission line by the bypass circuit when it is judged that the close primitive is received without receiving the open primitive from the loop transmission line.
In the above embodiments, the electronic device was described using the magnetic disk device as an example, but the present invention can also be applied to another device connected to a loop transmission line (e.g. other media storage devices, such as an optical disk device, communication device, display device and printer). The loop transmission line was described using FC_AL, but the present invention can also be applied to other loop transmission lines.
As described above, embodiments of the present invention were explained, however, it should be understood that we intend to cover by the appended claims all modifications falling within the true spirit and scope of the invention.
Since the positioning map in which a own address is registered is received in the loop initialization processing of the loop transmission line, and it is judged whether the own address is still registered, the looped electronic device can judge whether this electronic device is being bypassed from the loop transmission line by the bypass circuit using a conventional sequence.
Number | Date | Country | Kind |
---|---|---|---|
2008-218136 | Aug 2008 | JP | national |