KR100216365B1 - Disk error detection and recovery method in electronic exchange - Google Patents

Disk error detection and recovery method in electronic exchange Download PDF

Info

Publication number
KR100216365B1
KR100216365B1 KR1019960006018A KR19960006018A KR100216365B1 KR 100216365 B1 KR100216365 B1 KR 100216365B1 KR 1019960006018 A KR1019960006018 A KR 1019960006018A KR 19960006018 A KR19960006018 A KR 19960006018A KR 100216365 B1 KR100216365 B1 KR 100216365B1
Authority
KR
South Korea
Prior art keywords
data
error
scsi adapter
damaged
maintenance processor
Prior art date
Application number
KR1019960006018A
Other languages
Korean (ko)
Other versions
KR970066825A (en
Inventor
이근호
이동준
Original Assignee
윤종용
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자주식회사 filed Critical 윤종용
Priority to KR1019960006018A priority Critical patent/KR100216365B1/en
Publication of KR970066825A publication Critical patent/KR970066825A/en
Application granted granted Critical
Publication of KR100216365B1 publication Critical patent/KR100216365B1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1833Error detection or correction; Testing, e.g. of drop-outs by adding special lists or symbols to the coded information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1076Parity data used in redundant arrays of independent storages, e.g. in RAID systems
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2508Magnetic discs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/55Aspects of automatic or semi-automatic exchanges related to network data storage and management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

1. 청구범위에 기재된 발명이 속한 기술 분야 : 전전자교환기에서 하드디스크 에러 검출 및 복구방법.1. The technical field to which the invention described in the claims belongs: Hard disk error detection and recovery method in all electronic switch.

2. 발명이 해결하려고 하는 기술적 과제: 외부로부터 제공되는 데이터에 따라 유지보수프로세서는 스카시어뎁터를 제어하게 되며, 이에 따라 상기 스카시어뎁터는 HDD를 구동하여 입력되는 데이터를 기록하거나 독출하여 상기 유지보수프로세서에 제공하였다. 그러나 교환기가 운용중 상기 HDD의 특정 영역이 손상을 입었을 경우 사용자가 상기 HDD에서 손상된 영역의 데이터를 읽거나, 또는 손상된 영역에 데이터를 기록하고자 할 때 독출에러 또는 기록에러가 발생하여 원하는 작업을 하지 못하였다. 그리고 만약, 상기 HDD의 수퍼 블럭(Super Blok) 영역이 손상을 입게되면 시스템 운용 프로그램 또는 과금데이타를 사용할 수 없기 때문에 시스템 운용에 큰 장애를 초래할 수 있었다.2. The technical problem to be solved by the invention: the maintenance processor controls the SCSI adapter in accordance with the data provided from the outside, accordingly, the SCSI adapter drives the HDD to record or read the input data to the maintenance processor Provided in. However, if a specific area of the HDD is damaged while the exchange is in operation, a read error or a recording error occurs when the user reads the data of the damaged area or writes the data in the damaged area. I couldn't. In addition, if the Super Blok area of the HDD is damaged, a system operation program or billing data cannot be used, which may cause a big obstacle in system operation.

3. 발명의 해결방법의 요지 : 운용중인 디스크의 특정 섹터가 손상되어 데이터 기록이 이루어지지 않을 경우 손상된 섹터의 위치를 파악하여 디스크의 예비 매체에 동일한 어드레스를 할당하여 파손된 영역의 데이터를 부분적으로 덤프(dump)하여 초기에 기록되어진 동일한 어드레스를 가지도록 하여 재 저장한다.3. Summary of Solution of the Invention: If a particular sector of the operating disk is damaged and data cannot be recorded, the location of the damaged sector is identified and the same address is assigned to the spare medium of the disk to partially recover the data of the damaged area. Dump and resave with the same address that was initially recorded.

4. 발명의 중요한 용도 : 전전자교환기4. Significant Uses of the Invention: Electron Exchanger

Description

전전자교환기에서 디스크 에러 검출 및 복구방법Disk error detection and recovery method in electronic switchboard

제1도는 일반적인 전전자교환기의 블록 구성을 도시한 도면.1 is a block diagram showing a general electronic switch.

제2도는 본 발명의 일 실시 예에 따른 디스크 에러를 검출 및 복구하기 위한 제어 흐름을 도시한 도면.2 is a diagram illustrating a control flow for detecting and recovering a disk error according to an embodiment of the present invention.

본 발명은 전전자교환기에서 디스크 에러 검출 및 복구방법에 관한 것으로, 특히 디스크에서 에러가 발생한 섹터를 검출하여 복구하는 방법에 관한 것이다.The present invention relates to a disk error detection and recovery method in an electronic switchboard, and more particularly, to a method for detecting and recovering a sector in which an error has occurred in a disk.

전전자교환기에서 데이터를 관리하기 위한 시스템의 일반적인 구성은 제1도와 같은 구성을 가진다.The general configuration of the system for managing data in the electronic switchboard has the configuration as shown in FIG.

상기 제1도에 도시된 데이터 관리시스템의 구성을 살펴보면, HDD(114)는 일반적으로 고용량의 하드디스크(Hard Disk)와 상기 하드디스크의 구동을 제어하는 드라이버(Driver)로 구성되며, 전전자교환기의 초기프로그램, 과금데이타 및 통계데이타를 저장하여 스카시어뎁터(SCSI ADAPTOR)(112)의 제어에 따라 데이터를 기록하거나 독출한다.Looking at the configuration of the data management system shown in Figure 1, the HDD 114 is generally composed of a high capacity hard disk (Hard Disk) and a driver (Driver) for controlling the drive of the hard disk, The initial program, billing data and statistical data of the data is stored or read out according to the control of the SCSI adapter (SCSI ADAPTOR) 112.

상기 스카시어뎁터(112)는 유지보수프로세서(110)의 제어를 받아 상기 HDD(114)의 제어를 수행한다.The SCSI adapter 112 is controlled by the maintenance processor 110 to control the HDD 114.

상기 유지보수프로세서(110)는 상기 디스크(114)에 저장된 데이터를 관리하고, 상기 디스크(114)에 데이터를 기록하거나 독출하기 위한 제어를 수행한다.The maintenance processor 110 manages data stored in the disk 114 and performs control for writing or reading data to the disk 114.

상기와 같은 구성을 가지는 전전자교환기에서 데이터를 관리하는 종래의 동작을 설명하면, 외부로부터 제공되는 데이터에 따리 유지보수프로세서(110)는 스카시어뎁터(112)를 제어하게 되며, 이에 따라 상기 스카시어뎁터(112)는 HDD(114)를 구동하여 입력되는 데이터를 기록하거나 독출하여 상기 유지보수프로세서(110)에 제공하였다.Referring to the conventional operation of managing data in the electronic switch having the above configuration, the maintenance processor 110 controls the SCSI adapter 112 in accordance with the data provided from the outside, accordingly the SCSI adapter Reference numeral 112 indicates that the HDD 114 is driven to record or read data inputted to the maintenance processor 110.

하지만, 교환기가 운용중 상기 HDD(114)에서 손상된 영역의 데이터를 읽거나, 또는 손상된 영역에 데이터를 기록하고자 할 때 독출에러 또는 기록에러가 발생하여 원하는 작업을 하지 못하였다. 그리고, 만약 상기HDD(114)의 수퍼 블럭(Super Blok) 영역이 손상을 입게되면 시스템 운용 프로그램 또는 과금데이타를 사용할 수 없기 때문에 시스템 운용에 큰 장애를 초래할 수 있었다.However, when the exchange reads or records data in the damaged area from the HDD 114 or records data in the damaged area while the exchange is in operation, a read error or a recording error occurs, thereby failing to perform a desired operation. In addition, if the Super Blok area of the HDD 114 is damaged, a system operation program or billing data cannot be used, which may cause a big obstacle in system operation.

상기한 바와 같이 종래에는 HDD(114)에 저장된 데이터를 보다 효율적으로 읽어내거나, 기록하는 것에 주안점을 둠으로 인하여, 실제운용중인 시스템에서의 HDD 에러에 대한 이유를 분석하거나 에러 발생시 복구하는데 한계가 있다는 문제점이 있었다.As described above, the prior art focuses on more efficiently reading or writing data stored in the HDD 114, and thus, there is a limit in analyzing the reason for the HDD error in the system in operation or recovering the error. There was a problem.

따라서 상기한 바와 같은 문제점을 해결하기 위한 본 발명의 목적은 특정 데이터의 기록 또는 독출 명령이 입력되면 해당 영역이 에러 상태인가를 검출하는 방법을 제공하는데 있다.Accordingly, an object of the present invention for solving the above problems is to provide a method for detecting whether a corresponding region is in an error state when a write or read command of specific data is input.

본 발명의 다른 목적은 발생된 에러 내역을 분석하여 에러 발생영역의 사용을 중지시키고 정상적인 영역으로 데이터를 무브(Move)하는 방법을 제공하는데 있다.Another object of the present invention is to provide a method of stopping the use of an error occurrence area and moving data to a normal area by analyzing the generated error history.

본 발명에 따른 목적을 달성하기 위하여, 운용중인 디스크의 특정 섹터가 손상되어 테이터 기록이 이루어지지 않을 경우 손상된 섹터의 위치를 파악하여 디스크의 예비 매체에 동일한 어드레스를 할당하여 파손된 영역의 데이터를 부분적으로 덤프(dump)하여 초기에 기록되어진 동일한 위치에 기록함을 특징으로 한다.In order to achieve the object according to the present invention, when a particular sector of a disk in operation is damaged and data recording is not performed, the location of the damaged sector is identified and the same address is assigned to a spare medium of the disk to partially recover data of the damaged area. It is characterized in that the dump (dump) to write to the same location that was initially recorded.

이하 본 발명의 바람직한 일 실시 예를 첨부된 도면인 제1, 2도를 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to FIGS. 1 and 2.

본 발명을 수행하는 전전자교환기에서 데이터를 관리하기 위한 시스템의 일반적인 구성은 상기한 제1도와 동일한 구성을 가지며, 참조 부호도 동일하게 사용한다.The general configuration of the system for managing data in the all-electronic switchboard according to the present invention has the same configuration as that in FIG. 1 and the same reference numerals are used.

제2도는 이러한 본 발명의 목적을 달성하기 위해서 데이터를 독출하거나 저장하기 위한 제어명령을 받아 디스크로 제어데이터를 전송하는 과정과, 데이터를 독출하거나 저장시 디스크 자체에 에러가 발생하였을 경우 디스크로부터 상세한 에러발생 내역을 통보 받는 과정과, 상기 수신된 에러발생 내역을 분석하여 디스크 사용을 중지시키는 과정과, 에러가 발생한 섹터의 위치를 변경하여 제공하여 상기 제공된 명령에 대응하여 정상응답이 수신되면 디스크를 재 사용하도록 하는 과정으로 이루어진다.2 is a diagram illustrating a process of transmitting control data to a disk by receiving a control command for reading or storing data to achieve the object of the present invention, and detailed information from the disk when an error occurs in the disk itself when reading or storing data. Receiving a notification of error occurrence, analyzing the received error occurrence, stopping the use of the disc, changing the position of the sector where the error occurred, and receiving a normal response in response to the provided command. It is a process of reusing it.

이하 상기 제2도를 참조하여 본 발명의 일 실시 예에 따른 동작을 상세히 설명하면 다음과 같다.Hereinafter, an operation according to an embodiment of the present invention will be described in detail with reference to FIG. 2.

210단계에서 유지보수프로세서(110)는 사용자로부터 기록명령(write)이 입력되는가를 검출한다. 상기 기록명령이 검출되면, 상기 유지보수프로세서(110)는 212단계에서 CDB(Command Descriptor Block)테이블 내부에 포함되는 CPB테이블을 구성한다.In operation 210, the maintenance processor 110 detects whether a write command is input from the user. When the write command is detected, the maintenance processor 110 configures a CPB table included in a Command Descriptor Block (CDB) table in step 212.

그리고 상기 유지보수프로세서(110)는 214단계에서 스카시어뎁터(112)로 전송할 정보(CPB)를 가지는 상기 CPB테이블을 구성한다. 상기 CPB는 기록할 디스크의 I.D, 리턴된 데이터를 기록할 내부 메모리의 시작 어드레스 포인터, 디스크의 사이즈를 나타내는 정보 및 상기 스카시어뎁터(112)와의 프로토콜을 지정하는 정보를 가진다.In operation 214, the maintenance processor 110 configures the CPB table having information CPB to be transmitted to the SCSI adapter 112. The CPB has an I.D of a disc to be recorded, a start address pointer of an internal memory to record the returned data, information indicating the size of the disc, and information specifying a protocol with the SCSI adapter 112.

상기 CPB테이블의 구성이 완료되면, 상기 유지보수프로세서(110)는 216단계로 진행하여 상기 유지보수프로세서(110)와 스카시어뎁터(112)간에 프로토콜을 수행한 후 상기 구성된 CDB테이블을 구비한 CPB테이블을 전송한다.When the configuration of the CPB table is completed, the maintenance processor 110 proceeds to step 216 to perform a protocol between the maintenance processor 110 and the SCSI adapter 112, the CPB table having the configured CDB table Send it.

상기 프로토콜의 수행 및 테이블 전송이 종료되면, 218단계에서 상기 스카시어뎁터(112)는 상기 유지보수프로세서(110)의 제어를 받아 RCB테이블의 명령어 시작을 알리는 영역인 명령 시작비트를 세트한다. 그리고 상기 스카시어뎁터(112)는 220단계에서 상기 RCB테이블의 명령시작 비트가 세트되어 있으면 222단계로 진행하여 수신된 CPB테이블이 설정된 포맷과 일치하는가를 판단한다.When the execution of the protocol and the transmission of the table are terminated, the SCSI adapter 112 may control the maintenance processor 110 to set an instruction start bit, which is an area indicating the start of the instruction of the RCB table, in step 218. If the command start bit of the RCB table is set in step 220, the SCSI adapter 112 determines whether the received CPB table matches the set format.

상기 222단계에서 일치하지 않는다고 판단되면, 상기 스카시어뎁터(112)는 224단계로 진행하여 상기 유지보수프로세서(110)로 재 전송을 요구하는 데이터를 전송한다. 상기 스카시어뎁터(112)는 226단계에서 상기 재 전송 요구에 응답하여 CDB테이블을 포함한 CPB테이블이 재 수신하게 되면, 228단계로 진행하여 재 수신된 테이블이 설정된 포맷과 일치하는가를 판단한다.If it is determined in step 222 does not match, the SCSI adapter 112 proceeds to step 224 to transmit the data requesting retransmission to the maintenance processor (110). In step 226, if the CPB table including the CDB table is re-received in response to the retransmission request, the SCSI adapter 112 proceeds to step 228 to determine whether the re-received table matches the set format.

상기 222단계 또는 상기 228단계에서 테이블이 설정된 포맷과 일치할 경우에 상기 스카시어뎁터(112)는 230단계로 진행하여 수신돈 CPB테이블에 등록된 정보를 분석한다.If the table matches the format set in step 222 or step 228, the SCSI adapter 112 proceeds to step 230 and analyzes the information registered in the received CPB table.

그리고 상기 스카시어뎁터(112)는 상기 230단계에서 분석된 정보를 232단계에서 HDD(114)로 전송한다. 상기 프로토콜에 맞추어 전송되는 단계는 버스대기단계, 조정단계, 선택(비선택)단계, 정보전송단계(명령단계, 데이터출력단계, 메시지출력단계, 상태단계, 데이터입력단계, 메시지입력단계)로 이루어진다.The SCSI adapter 112 transmits the information analyzed in step 230 to the HDD 114 in step 232. The transmission in accordance with the protocol consists of a bus standby step, adjustment step, selection (non-selection) step, information transmission step (command step, data output step, message output step, status step, data input step, message input step) .

상기 HDD(114)는 234단계에서 수신된 정보에 따른 기록 또는 독출명령을 수행한다. 상기 명령처리가 완료되면, 상기 HDD(114)는 236단계에서 처리결과에 해당하는 상태값을 상기 스카시어뎁터(112)로 전송한다.The HDD 114 performs a write or read command according to the information received in step 234. When the command processing is completed, the HDD 114 transmits the state value corresponding to the processing result to the SCSI adapter 112 in step 236.

상기 스카시어뎁터(112)는 처리결과 상태값이 수신되면, 238단계에서 상기 상태값을 분석하여 에러가 검출되었는가를 검색한다.When receiving the processing result state value, the SCSI adapter 112 analyzes the state value in step 238 to search whether an error is detected.

상기 238단계에서 에러가 검출되지 않으면(0x00), 240단계에서 정상적인 처리 결과를 데이터화하여 상기 유지보수프로세서(110)로 전송한 후 서비스를 종료한다.If no error is detected in step 238 (0x00), the normal processing result is converted into data and transmitted to the maintenance processor 110 in step 240, and the service is terminated.

그렇지만 상기 238단계에서 에러가 검출되면(0x02), 상기 스카시어뎁터(112)는 242단계에서 해당 디스크의 비정상적인 원인을 확인하기 위한 리쿼스트센스(Request Sense) 데이터를 구성한다. 그리고, 상기 구성된 리쿼스트센스(Request Sense) 데이터를 244단계에서 상기 HDD(114)로 전송한다.However, if an error is detected in step 238 (0x02), the SCSI adapter 112 configures request sense data for identifying an abnormal cause of the corresponding disk in step 242. In step 244, the configured request sense data is transmitted to the HDD 114.

이에 따라 상기 HDD(114)는 246단계에서 에러 확인명령을 수행한다. 즉, 디스크에서 에러가 검출된 섹터의 영역을 검색한다. 상기 검색이 종료되면 상기 HDD(114)는 수행 결과에 따른 14바이트의 센스 결과데이터를 248단계에서 상기 스카시어뎁터(112)로 전송한다.Accordingly, the HDD 114 performs an error checking command in step 246. That is, the area of the sector where an error is detected in the disk is searched. When the search is completed, the HDD 114 transmits 14 bytes of sense result data according to the execution result to the SCSI adapter 112 in step 248.

상기 스카시어뎁터(112)는 수행결과가 수신되면, 250단계에서 수신된 데이터의 3번째 바이트를 체크하여 에러가 검출되는가를 분석한다. 상기 에러가 분석되지 않으면, 252단계에서 정상 결과데이터를 상기 유지보수프로세서(110)로 전송한 후 서비스를 종료한다.When the execution result is received, the SCSI adapter 112 checks the third byte of the received data in step 250 and analyzes whether an error is detected. If the error is not analyzed, the service is terminated after transmitting normal result data to the maintenance processor 110 in step 252.

하지만 상기 250단계에서 에러가 검출되면, 상기 스카시어뎁터(112)는 254단계와 256단계에서 카운터를 하나 증가시켜 카운트된 값을 체크한다. 그리고 상기 242단계로 진행하여 에러체크를 재실행한다. 그렇지 않고 상기 256단계에서 카운트 값이 설정된 값일 경우에는 상기 스카시어뎁터(112)는 258단계에서 상기 유지보수프로세서(110)로 에러데이터를 전송한다. 상기 에러데이터는 장치의 명칭과, 에러가 발생한 블럭의 위치와, 에러가 발생한 어드레스 정보를 가진다.However, if an error is detected in step 250, the SCSI adapter 112 checks the counted value by incrementing the counter by one in steps 254 and 256. In step 242, the error check is executed again. Otherwise, when the count value is set in step 256, the SCSI adapter 112 transmits error data to the maintenance processor 110 in step 258. The error data has a name of a device, a location of a block in which an error occurs, and address information in which an error occurs.

상기 유지보수프로세서(110)는 상기 에러데이타가 입력되면, 260단계에서 상기 에러데이터를 인터럽트로 받아서 에러복구모드로 전환한다. 그리고 상기 유지보수프로세서(110)는 262단계에서 상기 258단계에서 수신된 에러데이터를 분석하여 에러가 발생된 디스크의 영역에 저장된 데이터를 재 저장할 영역을 설정한다.When the error data is input, the maintenance processor 110 receives the error data as an interrupt in operation 260 and switches to the error recovery mode. In operation 262, the maintenance processor 110 analyzes the error data received in operation 258 to set an area for re-storing data stored in an area of the disk where an error occurs.

상기 설정이 완료되면, 상기 유지보수프로세서(110)는 264단계와 266단계에서 재 저장할 디스크인 I.D, 재 저장할 데이터가 기록된 내부 메모리의 시작 어드레스 포인터, 프로토콜 지정 및 명령어 파일시 동기를 기록할 영역을 지정하는 CPB테이블과 상기 CPB테이블 내부에 구비된 재 저장 명령을 가지는 CDB테이블을 구성한다.When the setting is completed, the maintenance processor 110 records the ID, which is the disk to be restored, the start address pointer of the internal memory in which the data to be stored, the protocol designation, and the command file synchronization are recorded in steps 264 and 266. And a CDB table having a CPB table for specifying a message and a resave command provided in the CPB table.

상기 테이블 구성이 완료되면, 상기 유지보수프로세서(110)는 268단계에서 상기 구성된 CDB테이블을 가지는 CPB테이블을 상기 스카시어뎁터(112)로 전송한다. 상기 CPB테이블 전송이 종료되면 270단계에서 상기 스카시어뎁터(112)는 상기 유지보수프로세서(110)의 제어를 받아 RCB테이블의 명령어 시작을 알리는 영역을 세트한다. 그리고 상기 스카시어뎁터(112)는 272단계에서 상기 RCB테이블의 명령 시작 비트가 세트되어 있으면 274단계로 진행하여 수신된 CPB테이블이 설정된 포맷에 합당한가를 판단한다. 설정된 포맷의 형태가 아닌 경우에는 276단계와 278단계에서 상기 CDB테이블을 포함하는 CPB테이블을 재 전송받는다.When the table configuration is completed, the maintenance processor 110 transmits the CPB table having the configured CDB table to the SCSI adapter 112 in step 268. When the transmission of the CPB table is terminated, the SCSI adapter 112 sets an area indicating the start of the instruction of the RCB table under the control of the maintenance processor 110 in step 270. If the instruction start bit of the RCB table is set in step 272, the SCSI adapter 112 proceeds to step 274 to determine whether the received CPB table is suitable for the set format. If the format is not set, the CPB table including the CDB table is retransmitted in steps 276 and 278.

상기 재 전송된 CPB테이블이 280단계에서 설정된 포맷의 형태라 판단되면, 상기 스카시어뎁터(112)는 282단계에서 상기 수신된 CPB테이블을 분석한다. 상기 282단계에서 분석이 완료되면, 상기 스카시어뎁터(112)는 284단계에서 CDB테이블을 상기 HDD(114)로 전송한다.If it is determined that the retransmitted CPB table is in the format set in step 280, the SCSI adapter 112 analyzes the received CPB table in step 282. When the analysis is completed in step 282, the SCSI adapter 112 transmits the CDB table to the HDD 114 in step 284.

상기 HDD(114)는 286단계에서 상기 수신된 CDB테이블에 등록된 명령에 따라 재 할당하고자 하는 블록 데이터가 있는 어드레스를 억세스하여 억세스된 데이터를 독출한다. 상기 독출된 데이터는 288단계에서 상기 HDD(114)의 제어에 따라 상기 스카시어뎁터(112)로 전송된다. 또한 상기 스카시어뎁터(112)는 290단계에서 상기 288단계에서 상기 HDD(114)로부터 제공된 데이터를 재 등록하고자 하는 디스크의 영역에 해당하는 어드레스를 억세스하여 전송한다. 한편, 상기 스카시어뎁터(112)에는 상기 재 등록하고자 하는 데이터를 일시적으로 저장하여야 할 메모리가 요구되는데, 이는 상기 스카시어뎁터(112) 내부에 구비된 내부 메모리를 이용함으로서 구현이 가능하다. 상기 스카시어뎁터(112)에 소정 메모리가 구비됨은 자명할 것이다.The HDD 114 reads the accessed data by accessing an address including block data to be reassigned according to a command registered in the received CDB table in step 286. The read data is transmitted to the SCSI adapter 112 in step 288 under the control of the HDD 114. In addition, in step 290, the SCSI adapter 112 accesses and transmits an address corresponding to an area of a disk to which data provided from the HDD 114 is to be re-registered. On the other hand, the SCSI adapter 112 is required to temporarily store the data to be re-registered, which can be implemented by using an internal memory provided in the SCSI adapter 112. It will be apparent that the SCSI adapter 112 has a predetermined memory.

그리고 상기 HDD(110)는 292단계에서 수신된 데이터를 엑세스된 디스크의 영역에 재 저장한 후 처리 결과에 따른 상태를 상기 스카시어뎁터(112)로 전송한다.The HDD 110 re-stores the data received in operation 292 in the area of the accessed disk and transmits the state according to the processing result to the SCSI adapter 112.

상기 스카시어뎁터(112)는 294단계에서 상기 수신된 상태가 비정상이라 판단되면, 298단계에서 센스값을 요구하는 명령을 전송한다. 그리고 300단계에서 상기요구 명령에 응답하여 상기 HDD(114)로부터 수신되는 정보를 302단계에서 CPB테이블에 기록한다.If it is determined in step 294 that the received state is abnormal, the SCSI adapter 112 transmits a command for requesting a sense value. In step 300, the information received from the HDD 114 in response to the request command is recorded in the CPB table.

하지만 상기 294단계에서 정상상태라 판단되면, 상기 스카시어뎁터(112)는 296단계에서 정상 결과를 CPB테이블에 기록한다. 상기 CPB테이블에 기록이 완료되면, 상기 스카시어뎁터(112)는 304단계에서 CPB테이블을 구성하며, 306단계로 진행하여 상기 유지보수프로세서(110)로 전송한다. 상기 유지보수프로세서(110)는 308단계에서 수신되는 CPB테이블을 분석하고 서비스를 종료한다.However, if it is determined that the steady state in step 294, the SCSI adapter 112 records the normal result in the CPB table in step 296. When writing to the CPB table is completed, the SCSI adapter 112 configures the CPB table in step 304, and proceeds to step 306 to transmit the maintenance to the maintenance processor 110. The maintenance processor 110 analyzes the CPB table received in step 308 and terminates the service.

상술한 바와 같이 본 발명에 따라 하드디스크의 손상된 섹터를 진단하여 이를 복구하여 주는 기능이 구현되므로 유실된 데이터로 인한 교환시스템의 장애를 방지할 수 있으며, 서비스가 중단되는 사태를 방지하여 교환시스템에서 가장 중요한 과금데이타의 손실을 막을 수 있는 효과가 있다.As described above, since a function of diagnosing and recovering a damaged sector of a hard disk is implemented according to the present invention, it is possible to prevent a failure of the exchange system due to lost data and to prevent an interruption of service. There is an effect to prevent the loss of the most important billing data.

Claims (2)

유지보수프로세서와, 일반적으로 전전자교환기의 초기프로그램, 과금데이타 및 통계데이타를 저장하여 이를 관리하는 하드디스크 드라이브와, 상기 하드디스크 드라이브를 제어하는 스카시어뎁터를 구비한 전전자교환기의 디스크 에러 검출 및 복구방법에 있어서, 명령 수행에 따른 에러 발생이 감지되면 에러 데이터를 분석하여 재 저장할 메모리 영역을 할당하는 과정과 상기 재 저장할 메모리 영역이 할당되면 에러가 발생한 영역의 데이터를 독출하는 과정과, 상기 독출한 데이터를 상기 재 저장할 메모리 영역에 저장하는 과정으로 이루어짐을 특징으로 하는 전전자교환기에서 디스크 에러 검출 및 복구방법.To detect a disk error of an all-electronic exchange having a maintenance processor, a hard disk drive for storing and managing initial programs, billing data, and statistical data of the all-electronic exchange, and a SCSI adapter controlling the hard disk drive; In the recovery method, the process of allocating the memory area to be re-stored by analyzing the error data when the error occurrence is detected according to the execution of the command, and reading the data of the area where the error occurs when the memory area to be re-stored, And storing the read data in the memory area to be re-stored. 유지보수프로세서와, 일반적으로 전전자교환기의 초기프로그램, 과금데이타 및 통계데이타를 저장하여 관리하는 하드디스크 드라이브와, 상기 하드디스크 드라이브를 제어하는 스카시어뎁터를 구비한 전전자교환기에서 디스크 에러 검출 및 복구방법에 있어서, 상기 유지보수프로세서의 명령을 상기 하드디스크 드라이브에서 수행하는 과정과, 상기 명령 수행 중에 에러가 검출될 시 상기 스카시어뎁터로 에러 발생을 통보하는 과정과, 상기 에러 발생이 감지될 시 상기 스카시어뎁터의 요구에 의해 재확인하는 과정과, 상기 에러 발생이 재확인되면 상기 유지보수프로세서로 에러 데이터를 전송하는 과정과, 상기 에러 데이터에 의해 상기 유지보수프로세서에서 재 저장할 메모리 영역을 할당하는 과정과, 상기 할당된 메모리 영역을 제공받은 상기 스카시어뎁터에 의해 상기 에러가 발생된 영역의 데이터가 요구되는 과정과, 상기 요구에 의해 상기 하드디스크드라이브가 상기 에러가 발생된 영역의 데이터를 독출하는 과정과, 상기 독출한 데이터를 제공받은 상기 스카시어뎁터가 상기 할당된 메모리 영역과 함께 상기 독출한 데이터를 출력하는 과정과, 상기 출력된 데이터를 제공받은 상기 하드디스크드라이버에 의해 상기 할당된 메모리 영역에 상기 제공받은 데이터를 기록하는 과정으로 이루어짐을 특징으로 하는 디스크 에러 검출 및 복구방법.Detecting and recovering disk errors in an electronic switchgear having a maintenance processor, a hard disk drive for storing and managing initial programs, billing data, and statistical data of the electronic switchgear, and a SCSI adapter controlling the hard disk drive. The method may further include: executing a command of the maintenance processor on the hard disk drive, notifying an error occurrence to the SCSI adapter when an error is detected during execution of the command, and when the error is detected, Reconfirming at the request of a SCSI adapter, transmitting error data to the maintenance processor when the occurrence of the error is reconfirmed, allocating a memory area to be reconstructed in the maintenance processor based on the error data; Receiving the allocated memory area A process of requesting data of the region where the error occurs by the casa adapter, a process of the hard disk drive reading data of the region where the error has occurred by the request, and the data receiving the read data And a SCSI adapter outputting the read data together with the allocated memory area, and writing the received data to the allocated memory area by the hard disk driver provided with the output data. Characterized in the disk error detection and recovery method.
KR1019960006018A 1996-03-08 1996-03-08 Disk error detection and recovery method in electronic exchange KR100216365B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960006018A KR100216365B1 (en) 1996-03-08 1996-03-08 Disk error detection and recovery method in electronic exchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960006018A KR100216365B1 (en) 1996-03-08 1996-03-08 Disk error detection and recovery method in electronic exchange

Publications (2)

Publication Number Publication Date
KR970066825A KR970066825A (en) 1997-10-13
KR100216365B1 true KR100216365B1 (en) 1999-08-16

Family

ID=19452609

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960006018A KR100216365B1 (en) 1996-03-08 1996-03-08 Disk error detection and recovery method in electronic exchange

Country Status (1)

Country Link
KR (1) KR100216365B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100377217B1 (en) * 1999-08-17 2003-03-20 엘지전자 주식회사 Accounting File Recovery Method Of Exchange File System

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100458838B1 (en) * 1997-04-09 2005-01-24 삼성전자주식회사 Storage medium for program executing hard disk drive recovery method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100377217B1 (en) * 1999-08-17 2003-03-20 엘지전자 주식회사 Accounting File Recovery Method Of Exchange File System

Also Published As

Publication number Publication date
KR970066825A (en) 1997-10-13

Similar Documents

Publication Publication Date Title
US5761411A (en) Method for performing disk fault prediction operations
US5923876A (en) Disk fault prediction system
US6467054B1 (en) Self test for storage device
US5878204A (en) Disk controlling method and apparatus for transferring a record from a disk to a host via an intermediate buffer
US6185661B1 (en) Worm magnetic storage device
EP0332210A2 (en) Backup control method and system in data processing system
US20060288153A1 (en) Storage system using flash memory
JP3260999B2 (en) Control method of disk controller
US20060248236A1 (en) Method and apparatus for time correlating defects found on hard disks
KR100391740B1 (en) A management method for reproducing error and a disk drive making use of the management method
US6697866B1 (en) Access control method for data stored in fixed-block length format in computer configurations utilizing variable length data format interfaces
KR100216365B1 (en) Disk error detection and recovery method in electronic exchange
US8489802B2 (en) Recordable memory device which writes data to reformatted user area of nonvolatile semiconductor memory
JPH07182250A (en) Automatic substituting processing system for magnetic disk
US7765452B2 (en) Disk controller
US7181586B2 (en) Formatting a data storage medium to a desired block format
JP3275492B2 (en) Linked disk unit
EP0316867A2 (en) Semiconductor file apparatus
JP3356106B2 (en) Magnetic disk device and retry processing method thereof
JP3870024B2 (en) Information recording apparatus and information recording method
KR0168803B1 (en) Driving multiple kinds of tape in electronic telephone switch
JPH02278562A (en) Storage device
JP2864751B2 (en) Nonvolatile memory management method for disk controller
JPS58223860A (en) Magnetic disk controller
JP3484707B2 (en) Asynchronous data transfer controller

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080404

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee