KR0168783B1 - Tape backup for exchange system - Google Patents
Tape backup for exchange system Download PDFInfo
- Publication number
- KR0168783B1 KR0168783B1 KR1019930026113A KR930026113A KR0168783B1 KR 0168783 B1 KR0168783 B1 KR 0168783B1 KR 1019930026113 A KR1019930026113 A KR 1019930026113A KR 930026113 A KR930026113 A KR 930026113A KR 0168783 B1 KR0168783 B1 KR 0168783B1
- Authority
- KR
- South Korea
- Prior art keywords
- tape
- error
- drive
- recording
- data
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/22—Arrangements for supervision, monitoring or testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q1/00—Details of selecting apparatus or arrangements
- H04Q1/18—Electrical details
- H04Q1/20—Testing circuits or apparatus; Circuits or apparatus for detecting, indicating, or signalling faults or troubles
- H04Q1/22—Automatic arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
하드 디스크 드라이브 및 테이프 드라이브를 포함하는 교환기의 데이타 백업 방법에 있어서, 테이프 백업 수행 도중 테이프 불량에러 발생시에 에러발생전까지 백업된 데이타를 유지시키고, 다른 테이프로 교체하여 백업 수행을 지속하는 테이프 백업 방법이 개시되고 있다. 본 발명에 따르면 테이프 백업 수행 도중 테이프 불량에러 발생시에 에러발생전까지 백업된 데이타를 현재의 테이프에 유지시키고, 다른 테이프로 교체하여 백업 수행을 지속하므로 백업 시간을 절약하는 효과가 있다. 또한 불량이 발생된 테이프를 불량점까지 데이타를 기록하므로 테이프의 효율적인 사용을 기인할 수 있는 장점이 있다.In a data backup method of an exchange including a hard disk drive and a tape drive, a tape backup method of maintaining a backup data until an error occurs when a tape failure occurs during a tape backup and replacing the tape with another tape to continue the backup operation It is started. According to the present invention, when a tape failure error occurs during the tape backup operation, the backup data is maintained on the current tape until the error occurs, and the backup operation is continued by replacing another tape, thereby saving backup time. In addition, there is an advantage that can be attributable to the efficient use of the tape because the data is recorded to the defective point of the tape in which the failure occurs.
Description
제1도는 일반적인 교환기의 테이프 백업 관련 블럭 구성도.1 is a block diagram related to tape backup of a typical exchange.
제2도는 일반적인 테이프의 기록 포맷 상태도.2 is a recording format state of a general tape.
제3도는 종래 테이프 백업 수행흐름도.3 is a conventional tape backup flow chart.
제4도는 본 발명의 일실시예에 따른 테이프 백업 수행 흐름도.4 is a flowchart of performing a tape backup according to an embodiment of the present invention.
제5도는 상기 제4도의 수행흐름도중 하드웨어 에러(H/W Error) 처리 서브 루틴 수행흐름도.5 is a flowchart illustrating a hardware error (H / W error) processing subroutine execution flow diagram in FIG. 4.
본 발명은 전전자 교환기에서 데이타 백업(Data Back Up) 방법에 관한것으로서, 특히 교환시스템에 저장된 데이타 베이스 및 운용프로그램을 테이프 드라이브(Tape drive)를 이용하여 보관해 두기위한 테이프 백업 방법에 관한것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data back up method in an electronic switchboard, and more particularly, to a tape backup method for storing a database and an operating program stored in a switching system using a tape drive.
일반적으로 교환기는 방대한 양의 데이타를 가지며, 상기 교환기내의 데이타 백업은 데이타보호라는 측면에서 중요한 시스템의 운용방법이다. 이때 교환기의 방대한 데이타를 백업받기위해서는 여러 백업 장치들이 사용될 수 있으나, 테이프 드라이브가 용량과 가격에서 많이 사용되는 백업장치이다.In general, exchanges have a large amount of data, and data backup in the exchanges is an important method of operating a system in terms of data protection. At this time, although several backup devices can be used to back up a large amount of data of the exchange, a tape drive is a backup device that is widely used in capacity and price.
제1도는 일반적인 교환기의 테이프 백업 관련 블럭 구성도로서,1 is a block diagram related to tape backup of a general switch,
소정 프로그램에 따라 교환기의 전반적인 동작을 제어하는 중앙처리장치(10)와, 외부 기억 장치로서의 하드 디스크 드라이브(Hard disk drive:20)와, 상기 하드 디스크 드라이브(20)과 상기 중앙처리장치(10)사이를 연결하는 디스크 드라이브 컨트롤러(Disk drive controller:30)와, 외부 기억 장치로서의 테이프 드라이브(40)와, 상기 테이프 드라이브(40)와 상기 중앙처리장치(10)사이를 연결하는 테이프 드라이브 컨트롤러(Tape drive controller:50)로 구성된다.A central processing unit 10 for controlling the overall operation of the exchanger according to a predetermined program, a hard disk drive 20 as an external storage device, the hard disk drive 20 and the central processing unit 10; A disk drive controller (30) connected therebetween, a tape drive 40 as an external storage device, and a tape drive controller (Tape) connected between the tape drive 40 and the central processing unit 10. drive controller: 50).
제2도는 일반적인 테이프의 기록 포맷 상태도이며, 테이프의 시작을 나타내는 볼륨(VOL1, VOL2), F.M(File Mark: *), 헤더데이타(HDR1, HDR2), 데이타, End Of File(EOF1, EOF2) 및 End Of Volume(EOV1, EOV2) 등이 기록된다.2 is a recording format state diagram of a general tape, and includes the volume (VOL1, VOL2), FM (File Mark: *), header data (HDR1, HDR2), data, End Of File (EOF1, EOF2), and so on. End Of Volumes (EOV1, EOV2) and the like are recorded.
제3도는 종래 테이프 백업 수행흐름도이다.3 is a conventional tape backup flow chart.
이하 첨부된 도면을 참조하여 종래 테이프 백업 방법을 상세히 설명한다.Hereinafter, a conventional tape backup method will be described in detail with reference to the accompanying drawings.
먼저 중앙처리장치(10)는 301단계에서 상위레벨의 제어부(도시되지 않음)로부터 하드디스크드라이브(20)내의 화일카피요구명령을 입력받으면, 303단계에서 테이프 드라이브(Tape Drive:40)의 디바이스(Device)상태를 확인한다. 여기서 상기 제어부는 교환기의 주제어 모듈등이 될 수 있다. 305단계에서 중앙처리장치(10)는 상기 테이프 드라이브(40)가 사용중(Busy)이거나, 테이프 드라이브(40)의 하드웨어적인 디바이스 상태가 비정상적임이 검색되면 307단계에서 해당 에러 결과를 출력하고 백업 루틴 수행을 종료한다.First, when the CPU 10 receives a file copy request command in the hard disk drive 20 from a higher level controller (not shown) in step 301, the device of the tape drive 40 in step 303. Device) status. The control unit may be a main module of the exchange. In step 305, if the tape drive 40 is busy or the hardware device state of the tape drive 40 is detected as abnormal, the CPU 10 outputs a corresponding error result in step 307 and performs a backup routine. To exit.
그러나 상기 305단계에서 상기 테이프 드라이브(40)가 미사용중(Unbusy)이며, 하드웨어적인 디바이스 상태가 정상적임이 검색되면, 중앙처리장치(10)는 309단계에서 테이프 드라이브(40)의 디바이스상태를 사용중(Busy)으로 변경한다.However, if it is detected in step 305 that the tape drive 40 is unbusy and the hardware device state is normal, the CPU 10 uses the device state of the tape drive 40 in step 309. Busy).
311단계에서 중앙처리장치는 하드 디스크 드라이브 컨트롤러(30)를 통해 하드디스크 드라이브(20)으로부터 카피될 데이타를 상기 테이프 드라이브로 전송하여 테이프에 상기 데이타가 라이트(Write)되도록 한다. 이때 테이프의 라이팅포맷은 제2도에 도시한 바와 같으며, 하나의 라이팅 데이타블럭은 F.M, 헤더데이타 (HDR1, HDR2), F.M, 2K바이트의 데이타, EOF1, EOF2로 이루어진다.In operation 311, the CPU transmits data to be copied from the hard disk drive 20 to the tape drive through the hard disk drive controller 30 so that the data is written to the tape. At this time, the writing format of the tape is as shown in FIG. 2. One writing data block is composed of F.M, header data (HDR1, HDR2), F.M, 2K bytes of data, EOF1, EOF2.
이후 313단계에서 상기 중앙처리장치(10)는 상기 테이프 드라이브(40)로부터 라이트 수행동작의 결과를 전송받는다. 315단계에서 상기 중앙처리장치(10)는 상기 라이트 수행동작의 결과를 검색하여 수행동작이 성공되었으면 317단계에서 성공결과를 카피를 요구한 상위레벨의 제어부로 전송하고 상기 301단계로 루프된다.In step 313, the CPU 10 receives the result of the write operation from the tape drive 40. In step 315, the CPU 10 searches for the result of the write execution operation, and if the execution operation is successful, in step 317, the central processing unit 10 transmits the success result to the controller of the higher level that requested the copy, and loops to step 301.
그러나 상기 315단계에서 중앙처리장치(10)는 수행동작 검색결과 에러가 발생되었음이 검색되면 319단계에서 상기 에러가 하드웨적인 에러발생인가를 검색한다.However, if it is detected in step 315 that an error has occurred in the execution operation search result, the CPU 10 searches whether the error is a hardware error in step 319.
상기 319단계에서 테이프 드라이브(40)의 하드웨어적인 에러발생이 검색되면 321단계에서 중앙처리장치(10)는 테이프 드라이브(40)의 디바이스 상태를 미사용(Unbusy)로 변경한다. 여기서 하드웨어적인 에러발생이란 테이프 드라이브 자체의 오동작동의 에러 및 테이프 불량에 의한 에러발생등을 나타낸다.If a hardware error of the tape drive 40 is detected in step 319, the CPU 10 changes the device state of the tape drive 40 to unbusy in step 321. Here, the hardware error is indicative of a malfunction of the tape drive itself and an error due to a bad tape.
이후 323단계에서 중앙처리장치(10)는 상위레벨 제어부로 에러결과를 전송하고 종료한다.Thereafter, in step 323, the CPU 10 transmits an error result to the upper level controller and terminates.
또한 상기 319단계에서 중앙처리장치(10)는 수행동작 검색결과 하드웨어적인 에러가 아님이 검색되면 해당 에러처리루틴(도시되지 않음)으로 점프하여 서브루틴을 수행한다.In addition, in step 319, the CPU 10 performs a subroutine by jumping to the corresponding error processing routine (not shown) when it is found that the execution result is not a hardware error.
그러나 상술한 바와 같이 종래의 테이프 백업 방법은 시스템 백업도중 테이프 불량이 발생할 경우 하드웨어불량으로 인식하고 백업수행루틴을 종료하므로 시스템 데이타 백업을 처음부터 다시 시작해야 하는 문제점이 있었다. 또한 새로이 시작되는 시스템 데이타 백업으로 인한 시간적인 낭비가 발생하였다.However, as described above, the conventional tape backup method has a problem in that the system data backup must be restarted from the beginning because the tape is recognized as a hardware failure when the tape failure occurs during the system backup and the backup execution routine is terminated. In addition, time wasted due to newly started system data backup.
따라서 본 발명의 목적은 테이프 백업 수행 도중 테이프 불량에러 발생시에 에러발생전가지 백업된 데이타를 유지시키고, 다른 테이프로 교체하여 백업 수행을 지속하는 테이프 백업 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a tape backup method that maintains data backed up before an error occurrence and replaces it with another tape when a tape failure error occurs during tape backup.
이하 첨부한 도면을 참조하여 본 발명의 일 실시예를 상세히 설명한다.Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
제4도는 본 발명의 일 실시예에 따른 테이프 백업수행흐름도이다.4 is a tape backup flow chart according to an embodiment of the present invention.
제5도는 제4도의 수행흐름도 중 하드웨어 에러 발생시의 에러 처리 서브 루틴수행흐름도이다.5 is a flowchart illustrating an error processing subroutine when a hardware error occurs in the flowchart of FIG. 4.
이하 상기 제4도 및 제5도를 참조하여 본 발명의 일 실시예를 설명하면, 먼저 중앙처리장치(10)는 401단계에서 상위레벨의 제어부(도시되지 않음)로부터 하드디스크드라이브(20)내의 화일카피요구명령을 입력받으면, 403단계에서 테이프 드라이브(40)의 디바이스상태를 확인한다.Hereinafter, an embodiment of the present invention will be described with reference to FIGS. 4 and 5. First, in step 401, the central processing unit 10 may be configured in the hard disk drive 20 from a higher level controller (not shown). When the file copy request command is received, the device state of the tape drive 40 is checked in step 403.
405단계에서 중앙처리장치(10)는 상기 테이프 드라이브(40)가 사용중(Busy)이거나, 테이프 드라이브(40)의 하드웨어적인 디바이스 상태가 비정상적임이 검색되면 407단계에서 해당 에러 결과를 출력하고 백업 루틴 수행을 종료한다.In step 405, the CPU 10 outputs a corresponding error result and performs a backup routine when the tape drive 40 is busy or when the hardware state of the tape drive 40 is abnormal. To exit.
그러나 상기 405단계에서 상기 테이프 드라이브(40)가 미사용중(Unbusy)이며, 하드웨어적인 디바이스 상태가 정상적임이 검색되면, 중앙처리장치(10)는 409단계에서 테이프 드라이브(40)의 디바이스 상태를 사용중(Busy)으로 변경한다.However, if it is detected in step 405 that the tape drive 40 is unbusy and the hardware device state is normal, the CPU 10 uses the device state of the tape drive 40 in step 409 ( Busy).
411단계에서 중앙처리장치는 하드 디스크 드라이브 컨트롤러(30)를 통해 하드디스크 드라이브(20)으로부터 카피될 데이타를 상기 테이프 드라이브(40)로 전송하여 테이프에 상기 데이타가 라이트(Write)되도록 한다. 이때 테이프의 라이팅포맷은 제2도에 도시한 바와 같으며, 하나의 라이팅 데이타블럭은 F.M, 헤더데이타(HDR1, HER2), F.M. 2K바이트의 데이타, EOF1, EOF2로 이루어진다.In operation 411, the CPU transmits data to be copied from the hard disk drive 20 to the tape drive 40 through the hard disk drive controller 30 so that the data is written to the tape. At this time, the writing format of the tape is as shown in Figure 2, one writing data block is F.M, header data (HDR1, HER2), F.M. It consists of 2K bytes of data, EOF1, EOF2.
이후 413단계에서 상기 중앙처리장치(10)는 상기 테이프 드라이브(40)로부터 라이트 수해동작의 결과를 전송받는다. 415단계에서 상기 중앙처리장치(10)는 상기 라이트 수행동작의 결과를 검색하여 수행동작이 성공되었으면 417단계에서 성공결과를 카피를 요구한 상위레벨의 제어부로 전송하고 상기 401단계로 루프된다.In step 413, the CPU 10 receives the result of the write flood operation from the tape drive 40. In step 415, the CPU 10 searches for the result of the write execution operation, and if the execution operation is successful, in step 417, the CPU 10 transmits the success result to the upper level controller requesting the copy and loops to step 401.
그러나 상기 415단계에서 중앙처리장치(10)는 수행동작 검색결과 에러가 발생되었음이 검색되면 419단계에서 상기 에러가 하드웨적인 에러발생인가를 검색한다.However, if it is detected in step 415 that an error has occurred in the execution operation search result, the CPU 10 searches whether the error is a hardware error in step 419.
이후 상기 419단계에서 테이프 드라이브(40)의 하드웨어적인 에러발생이 검색되면 중앙처리장치(10)는 501단계에서 상기 에러가 테이프 불량임을 나타내는 패리티 에러(Parrity Error)인가를 검색한다. 이때 상기 501단계에서 패리티 에러가 아님을 검색되면 중앙처리 장치(10)는 503단계에서 테이프 드라이브(40)의 디바이스 상태를 미사용(Unbusy)로 변경한다. 이후 505단계에서 중앙처리장치(10)는 상위레벨 제어부로 에러결과를 전송하고 테이프 루틴을 종료한다.Thereafter, if a hardware error of the tape drive 40 is detected in step 419, the CPU 10 searches for a parity error indicating that the error is a bad tape in step 501. In this case, if it is detected in step 501 that there is no parity error, the CPU 10 changes the device state of the tape drive 40 to unbusy in step 503. Thereafter, in step 505, the CPU 10 transmits an error result to the upper level controller and ends the tape routine.
그러나 상기 501단계에서 패리티 에러임이 검색되면 507단계에서 중앙처리장치(10)는 실행명령을 확인한다. 509단계에서 상기 507단계에서 확인된 실행명령이 쓰기 명령이 아니면 503단계로 이행되어 테이프 드라이브(40)의 디바이스 상태를 미사용(Unbusy)로 변경하고, 505단계에서 상위레벨 제어부로 에러결과를 전송하고 테이프 백업 루틴을 종료한다.However, if it is detected in step 501 that the parity error, the CPU 10 checks the execution command in step 507. If the execution command identified in step 507 is not a write command in step 509, the process proceeds to step 503 to change the device state of the tape drive 40 to unbusy, and transmits an error result to the upper level controller in step 505. Terminate the tape backup routine.
그러나 상기 509단계에서 실행명령이 쓰기 명령임이 확인되면 511단계에서 상기 중앙처리장치(10)는 테이프 드라이브(40)의 디바이스 상태를 미사용중(Unbusy)으로 변경한다. 513단계에서 중앙처리장치(10)는 테이프 드라이브(40)를 제어하여 F.M을 스킵(Skip)하고 517단계에서 테이프를 현재 라이팅동작이 진행된 데이타 블럭의 F.M부분으로 돌아간다.However, if it is determined in step 509 that the execution command is a write command, the CPU 10 changes the device state of the tape drive 40 to unbusy in step 511. In step 513, the central processing unit 10 controls the tape drive 40 to skip the F.M. In step 517, the central processing unit 10 returns the tape to the F.M portion of the data block in which the writing operation is performed.
517단계에서 중앙처리장치(10)는 F.M을 라이트하며, 519단계에서 해당 백업 테이프의 데이타 기록 끝을 나타내는 EOV(End Of Volume:EOV1,EOV2)를 라이팅한다.In step 517, the CPU 10 writes F.M. In step 519, the CPU 10 writes End of Volume (EOV1, EOV2) indicating the end of data recording of the backup tape.
521단계에서 중앙처리장치(10)는 F.M을 라이트한다.In operation 521, the CPU 10 writes the F.M.
이후 523단계에서 중앙처리장치(10)는 테이프를 리와인드(Rewind)하며, 525단계에서 중앙처리장치(10)는 상위레벨의 제어부(도시되지않음)로 EOT처리를 전송하고 제4도의 401단계로 리턴된다.Thereafter, the central processing unit 10 rewinds the tape in step 523, and in step 525, the central processing unit 10 transmits the EOT process to a control unit (not shown) of a higher level and proceeds to step 401 of FIG. Is returned.
따라서 상술한 바와 같이 본 발명은 테이프 백업 수행 도중 테이프 불량에러발생시에 에러발생전까지 백업된 데이타를 현재의 테이프에 유지시키고, 다른 테이프로 교체하여 백업 수행을 지속하므로 백업 시간을 절약하는 효과가 있다. 또한 불량이 발생된 테이프를 불량점까지 데이타를 기록하므로 테이프의 효율적인 사용을 기할 수 있는 장점이 있다.Therefore, as described above, the present invention maintains the data backed up to the current tape until an error occurs when a tape failure occurs during the tape backup, and replaces it with another tape, thereby continuing backup performance, thereby saving backup time. In addition, since the tape to which the failure occurs to record the data to the defect point has the advantage that can be used efficiently.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019930026113A KR0168783B1 (en) | 1993-12-01 | 1993-12-01 | Tape backup for exchange system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019930026113A KR0168783B1 (en) | 1993-12-01 | 1993-12-01 | Tape backup for exchange system |
Publications (2)
Publication Number | Publication Date |
---|---|
KR950022602A KR950022602A (en) | 1995-07-28 |
KR0168783B1 true KR0168783B1 (en) | 1999-02-01 |
Family
ID=19369615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019930026113A KR0168783B1 (en) | 1993-12-01 | 1993-12-01 | Tape backup for exchange system |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR0168783B1 (en) |
-
1993
- 1993-12-01 KR KR1019930026113A patent/KR0168783B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR950022602A (en) | 1995-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5412612A (en) | Semiconductor storage apparatus | |
US7152184B2 (en) | Storage device, backup method and computer program code of this storage device | |
US7065620B2 (en) | Systems and methods for backing up data | |
US5889933A (en) | Adaptive power failure recovery | |
US20020170017A1 (en) | Parity mirroring between controllers in an active-active controller pair | |
US6477628B1 (en) | Backup copy achieving improved efficiency by waiting until rewind/unload command for bulk data copy | |
JPH0667812A (en) | Patrol seaking system for high density magnetic disk device | |
US7529966B2 (en) | Storage system with journaling | |
JPH08249218A (en) | File controller and data write method | |
US6571304B1 (en) | Control system for using memory on cartridges to overcome tape drive problems | |
US20050125604A1 (en) | Storage device having a lateral storage director | |
KR0168783B1 (en) | Tape backup for exchange system | |
US20070276998A1 (en) | Hierarchical control apparatus of hierarchical storage system and method for maintaining and managing duplexed media | |
JPH07182250A (en) | Automatic substituting processing system for magnetic disk | |
JPS6045857A (en) | Data holding system of semiconductor file | |
JPH11203057A (en) | Disk array device and its control method | |
EP0316867A2 (en) | Semiconductor file apparatus | |
JP4288929B2 (en) | Data storage apparatus and data storage method | |
JP2861846B2 (en) | Magnetic disk control system | |
JPH0581789A (en) | Optical disk device | |
JPH1124850A (en) | Data recovery method for disk array | |
KR100247422B1 (en) | Apparatus and method for gathering data in an electronic switching system | |
JPH08263389A (en) | Data backup method | |
JP3870024B2 (en) | Information recording apparatus and information recording method | |
JP2000066843A (en) | Disk array device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20070910 Year of fee payment: 10 |
|
LAPS | Lapse due to unpaid annual fee |