KR100235884B1 - Method for connecting hard disk and duplexing host in the communication system - Google Patents

Method for connecting hard disk and duplexing host in the communication system Download PDF

Info

Publication number
KR100235884B1
KR100235884B1 KR1019970037979A KR19970037979A KR100235884B1 KR 100235884 B1 KR100235884 B1 KR 100235884B1 KR 1019970037979 A KR1019970037979 A KR 1019970037979A KR 19970037979 A KR19970037979 A KR 19970037979A KR 100235884 B1 KR100235884 B1 KR 100235884B1
Authority
KR
South Korea
Prior art keywords
host
hard disk
code
state
access
Prior art date
Application number
KR1019970037979A
Other languages
Korean (ko)
Other versions
KR19990015707A (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 KR1019970037979A priority Critical patent/KR100235884B1/en
Publication of KR19990015707A publication Critical patent/KR19990015707A/en
Application granted granted Critical
Publication of KR100235884B1 publication Critical patent/KR100235884B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0036Small computer system interface [SCSI]

Abstract

본 발명은 통신 시스템의 이중화(Duplexing)된 호스트(Host)에 관한 것으로, 특히 동작중(Active)인 호스트에서 대기중(Stand by)인 호스트로 절체되었을 시에 서비스의 중단없이 신속하게 하드 디스크 드라이브(Hard Disk Drive)를 재접속할 수 있도록 한 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a duplexed host of a communication system. In particular, the present invention relates to a hard disk drive quickly without interruption of service when switched from an active host to a standby by host. (Hard Disk Drive) The present invention relates to a hard disk access method of a redundant host in a communication system capable of reconnecting a hard disk drive.

본 발명에 의해 이중화된 호스트에서 DAD인 하드 디스크를 접속해서 사용하는 경우에 주기적으로 자신 상태와 상대 상태를 파악하여 대기 중에서 동작 상태로 전환된 호스트의 하드 디스크를 리마운팅함으로 호스트 절체 시에 하드 디스크를 재접속하고 NVRAM의 록 여부와 DPRAM의 엑세스 코드를 사용하여 하드 디스크 동시 접속 방지하며, 호스트의 SCSI 식별 번호 구분과 호스트 상태에 따라 호스트 SCSI 버스를 리셋팅함으로 하드 디스크를 접속하며, 호스트의 상태, NVRAM의 록 코드, DPRAM의 억세스 코드에 따라 롬에서 하드 디스크를 접속하며, 호스트 상태에 따라 VNRAM에 언록 코드를 기록함으로 램에서 하드 디스크를 접속하므로서, 이중화된 호스트가 절체되었을 때 신속한 하드 디스크의 재접속을 통해 통신 시스템에서 서비스의 중단없이 정상적인 서비스를 진행할 수 있으므로 통신 시스템의 신뢰성과 효율을 향상시킬 수 있다.In the case of accessing and using a hard disk as a DAD in a redundant host according to the present invention, by periodically recognizing its own state and relative state and remounting the hard disk of the host which has been switched from the standby state to the operating state, the hard disk at the time of host switching Reconnect the disk and prevent access to the hard disk at the same time by using NVRAM lock and DPRAM access code.Connect the hard disk by resetting the host SCSI bus according to the SCSI identification number classification and host status of the host. The hard disk is accessed from the ROM according to the NVRAM lock code and the DPRAM access code, and the hard disk is accessed from RAM by writing the unlock code to the VNRAM according to the host status. Normal service without interruption of service in the communication system through It can proceed to improve the reliability and efficiency of the communication system.

Description

통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법Hard Disk Connection Method of Redundant Host in Communication System

본 발명은 통신 시스템의 이중화(Duplexing)된 호스트(Host)에 관한 것으로, 특히 동작중(Active)인 호스트에서 대기중(Stand by)인 호스트로 절체되었을 시에 서비스의 중단없이 신속하게 하드 디스크 드라이브(Hard Disk Drive)를 재접속할 수 있도록 한 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a duplexed host of a communication system. In particular, the present invention relates to a hard disk drive quickly without interruption of service when switched from an active host to a standby by host. (Hard Disk Drive) The present invention relates to a hard disk access method of a redundant host in a communication system capable of reconnecting a hard disk drive.

일반적으로, 통신 시스템에 있어서 MPU(Main Processor Unit)인 호스트 보드를 DAD(Direct Access Device)인 하드 디스크 드라이브에 접속하는 경우에 해당 호스트는 서비스의 중단을 방지하기 위하여 동작중인 호스트와 대기중인 호스트로 이중화되어 있는데, 즉 해당 동작중인 호스트가 서비스를 하는 도중에 장애가 발생하였을 때 해당 동작중인 호스트를 서비스 중단시키고 해당 대기중인 호스트를 가동시켜 해당 동작중인 호스트의 장애를 점검하고 수리할 수 있게 함으므로써, 해당 호스트에 장애가 발생되더라도 다른 호스트로 절체하여 계속적인 서비스를 제공할 수 있게 된다.In general, when a host board, which is a main processor unit (MPU), is connected to a hard disk drive that is a direct access device (DAD) in a communication system, the host is a running host and a waiting host to prevent service interruption. Redundant, that is, when a live host fails, the host can be stopped and the host can be started to check and repair the failed host. Even if a host fails, it can be transferred to another host to provide continuous service.

그런데, 해당 동작중인 호스트에 서비스 장애가 발생한 경우에 가동을 중지하고 해당 대기중인 호스트로 절체하는 동작 수행에 있어 다소 시간이 걸리는데, 해당 대기중인 호스트가 정상적인 동작을 수행하기 위해서는 약간의 시간 동안 서비스의 중단이 발생하는 단점이 있었다.However, when a service failure occurs in the operating host, it takes some time to stop the operation and switch to the waiting host. In order for the waiting host to perform its normal operation, the service is interrupted for some time. There was a disadvantage of this occurring.

상술한 바와 같이 이중화된 호스트의 절체 시에 발생되는 단점을 해결하기 위해, 본 발명은 통신 시스템 내 이중화된 호스트에서 하드 디스크 드라이브를 접속하는 경우에 동작중인 호스트에 에러가 발생해 대기중인 호스트로 절체할 시 서비스의 중단없이 해당 하드 디스크 드라이브를 신속하게 재접속하여 정상적인 서비스를 수행함으로 통신 시스템의 신뢰성 및 효율을 향상시키는 것을 목적으로 한다.As described above, in order to solve the disadvantage that occurs when the redundant host is switched, the present invention, when a hard disk drive is connected to the redundant host in the communication system, an error occurs in the operating host and is transferred to the waiting host. It aims to improve the reliability and efficiency of the communication system by quickly reconnecting the hard disk drive to perform normal service without interrupting service.

도 1은 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 장치의 하드웨어적인 구성을 나타낸 블록도.1 is a block diagram showing a hardware configuration of a hard disk access device of a redundant host in a communication system according to an embodiment of the present invention.

도 2는 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 장치의 소프트웨어적인 구성을 나타낸 블록도.2 is a block diagram showing a software configuration of a hard disk access device of a redundant host in a communication system according to an embodiment of the present invention.

도 3은 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법을 나타낸 플로우챠트.3 is a flowchart illustrating a hard disk access method of a redundant host in a communication system according to an embodiment of the present invention.

도 4는 도 3에 있어 롬 처리부에서의 호스트 이중화에 따른 하드 디스크 접속 동작을 나타낸 플로우챠트.FIG. 4 is a flowchart illustrating a hard disk access operation in accordance with host duplication in the ROM processing unit in FIG. 3. FIG.

도 5는 도 3에 있어 하드 디스트 접속부에서의 호스트 이중화에 따른 하드 디스크 접속 동작을 나타낸 플로우챠트.FIG. 5 is a flowchart showing a hard disk connection operation according to host duplication at the hard disk connection unit in FIG. 3; FIG.

도 6은 도 3에 있어 램 처리부에서의 호스트 이중화에 따른 하드 디스크 접속 동작을 나타낸 플로우챠트.FIG. 6 is a flowchart illustrating a hard disk connection operation according to host duplication in the RAM processing unit in FIG. 3. FIG.

도 7은 도 3에 있어 타이머 처리부에서의 호스트 절체 시에 하드 디스크 재접속 및 동시 접속 방지 동작을 나타낸 플로우챠트.FIG. 7 is a flowchart showing hard disk reconnection and simultaneous connection prevention operation during host switching by the timer processor in FIG. 3; FIG.

* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

10, 20 : 호스트 11, 21 : NVRAM(Nonvolatile RAM)10, 20: host 11, 21: nonvolatile RAM (NVRAM)

12, 22 : DPRAM(Dual Port Memory)12, 22: DPRAM (Dual Port Memory)

13, 23 : SCSI부(Small Computer System Interface Unit)13, 23: SCSI (Small Computer System Interface Unit)

14 : CPU14: CPU

30 : RDC(RAID(Redundaunt Array of Independent Disks) Disks Controller)30: RDC (Redundaunt Array of Independent Disks) Disks Controller

40 : 하드 디스크 접속부 50 : 롬 처리부40: hard disk connection unit 50: ROM processing unit

60 : 램 처리부 70 : 타이머 처리부60: RAM processing unit 70: Timer processing unit

상기와 같은 목적을 달성하기 위한 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법은 롬 처리의 동작을 수행한 후에 램 처리의 동작을 수행하여 동작 중인 호스트와 하드 디스크의 접속 동작을 수행시킴과 동시에, 대기 중인 호스트와 하드 디스크의 재접속 및 동시 접속 방지 동작을 수행시키는 것을 특징으로 한다.In order to achieve the above object, a method of accessing a hard disk of a redundant host in a communication system according to an exemplary embodiment of the present invention provides a connection operation between a host and a hard disk in operation by performing a RAM process after performing an ROM process. At the same time, the re-connecting and simultaneous access prevention operations of the standby host and the hard disk are performed.

그리고, 상기 롬 처리 동작은 자신의 상태가 상기 동작 중인 호스트인지를 확인하는 제1과정과; 자신의 상태가 상기 동작 중인 호스트이면 록 코드를 기록하고 상기 대기 중인 호스트와 하드 디스크의 접속 방지 동작을 수행시키는 제2과정과; 자신의 상태가 상기 동작 중인 호스트가 아니면 DPRAM 코드가 억세스 인에이블되는지를 확인하는 제3과정과; 상기 대기 중인 호스트와 하드 디스크의 접속 방지 동작을 수행시킨 후 또는 상기 DPRAM 코드가 억세스 인에이블되면 상기 동작 중인 호스트와 하드 디스크의 접속 동작을 수행시키는 제4과정을 포함하여 이루어진 것을 특징으로 하며, 상기 램 처리 동작은 상기 롬 처리 동작을 수행시킨 후에 자신의 상태가 상기 동작 중인 호스트인지를 확인하는 제5과정과; 자신의 상태가 상기 동작 중인 호스트이면 언록 코드를 기록하고 상기 대기 중인 호스트와 하드 디스크의 재접속 동작을 수행시키는 제6과정을 포함하여 이루어진 것을 특징으로 하며, 상기 동작 중인 호스트와 하드 디스크의 접속 동작은 상기 호스트가 실장된 마스터 및 슬레이브 위치에 따라 SCSI 식별 번호를 구분하여 타켓에 접속시켜 자신의 상태가 동작 중일 때만 SCSI 버스를 리셋시키는 제7과정과; 디스크 드라이버, 디스크 버퍼 캐쉬 및 볼륨을 각각 순서대로 마운팅시키는 제8과정을 포함하여 이루어진 것을 특징으로 하며, 상기 대기 중인 호스트와 하드 디스크의 재접속 및 동시 접속 방지 동작은 상기 호스트의 상태 전이를 파악하고 대기 상태에서 동작 상태로 전환하는 호스트에서 볼륨만을 디스마운팅하고 다시 마운팅하여 하드 디스크를 리마운팅시키는 제9과정과; 자신의 상태가 동작 중인 호스트인지를 확인하여 상기 록 코드가 기록되어 있는지를 확인하는 제10과정과; 상기 언록 코드가 기록되어 있으면 억세스 인에이블 코드를 기록하여 상기 대기 중인 호스트를 하드 디스크에 접속시키는 제11과정과; 상기 록 코드가 기록되어 있으면 억세스 디스에이블 코드를 기록하여 대기 중인 호스트가 하드 디스크에 접속되는 것을 방지하는 제12과정을 포함하여 이루어진 것을 특징으로 한다.The ROM processing operation may include: a first process of checking whether a state of the ROM is a host in operation; A second step of recording a lock code and performing a connection prevention operation between the waiting host and a hard disk if its status is the active host; A third step of checking whether a DPRAM code is access enabled if its state is not the operating host; And performing a connection preventing operation between the standby host and the hard disk or performing a connection operation between the operating host and the hard disk when the DPRAM code is accessed. The RAM processing operation may include: a fifth process of checking whether a state of the host is the operating host after the ROM processing operation is performed; And a sixth step of recording an unlock code and performing a reconnection of the standby host and the hard disk when its state is the operating host. The connection operation of the operating host and the hard disk is performed. A seventh step of resetting the SCSI bus only when its state is in operation by classifying the SCSI identification numbers according to the mounted master and slave positions of the host to a target; And an eighth process of mounting the disk driver, the disk buffer cache, and the volumes in order, respectively. The operation of preventing reconnection and simultaneous access between the waiting host and the hard disk is performed by detecting a state transition of the host and waiting. A ninth process of dismounting and remounting only the volume in the host transitioning from the state to the operating state to remount the hard disk; A tenth step of checking whether the lock code is recorded by checking whether the state of the host is an operating host; An eleventh step of accessing the waiting host to a hard disk by recording an access enable code if the unlock code is recorded; And if the lock code is recorded, writing an access disable code to prevent the waiting host from being connected to the hard disk.

이하 첨부된 도면을 참고하여 다음과 같이 설명한다.Hereinafter, with reference to the accompanying drawings will be described as follows.

도 1은 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 장치의 하드웨어적인 구성을 나타낸 블록도이고, 도 2는 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 장치의 소프트웨어적인 구성을 나타낸 블록도이고, 도 3은 본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법을 나타낸 플로우챠트이고, 도 4는 도 3에 있어 롬 처리부에서의 호스트 이중화에 따른 하드 디스크 접속 동작을 나타낸 플로우챠트이고, 도 5는 도 3에 있어 하드 디스트 접속부에서의 호스트 이중화에 따른 하드 디스크 접속 동작을 나타낸 플로우챠트이고, 도 6은 도 3에 있어 램 처리부에서의 호스트 이중화에 따른 하드 디스크 접속 동작을 나타낸 플로우챠트이고, 도 7은 도 3에 있어 타이머 처리부에서의 호스트 절체 시에 하드 디스크 재접속 및 동시 접속 방지 동작을 나타낸 플로우챠트이다.1 is a block diagram illustrating a hardware configuration of a hard disk access device of a redundant host in a communication system according to an embodiment of the present invention, and FIG. 2 is a hard disk access device of a redundant host in a communication system according to an embodiment of the present invention. Figure 3 is a block diagram showing the software configuration of Figure 3 is a flow chart illustrating a hard disk access method of a redundant host in a communication system according to an embodiment of the present invention, Figure 4 is a host redundancy in the ROM processing unit in FIG. 5 is a flowchart illustrating a hard disk connection operation, FIG. 5 is a flowchart illustrating a hard disk connection operation according to host duplication at a hard disk connection unit in FIG. 3, and FIG. 6 is a host duplication at a RAM processing unit in FIG. 3. 7 is a flowchart illustrating a hard disk connection operation according to the present invention, and FIG. 7 is a timer process in FIG. 3. This is a flowchart showing hard disk reconnection and simultaneous connection prevention operations when a host is switched in a remote.

본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 장치는 크게 하드웨어적인 구성과 소프트웨어적인 구성으로 나눌 수가 있는데, 먼저 하드웨어적인 구성으로는 도 1에 도시된 바와 같이, 이중화된 제1호스트(10) 및 제2호스트(20)와, RDC(RAID Disks Controller; 30)를 포함하여 이루어진다.An apparatus for accessing a hard disk of a redundant host in a communication system according to an embodiment of the present invention can be roughly divided into a hardware configuration and a software configuration. As shown in FIG. 1, the first configuration is a redundant host. 10 and the second host 20, and RDC (RAID Disks Controller) (30).

상기 제1호스트(10)와 제2호스트(20)는 NVRAM(Nonvolatile RAM; 11, 21)과, DPRAM(Dual Port Memory; 12, 22)과, SCSI부(Small Computer System Interface Unit; 13, 23)와, CPU(14)를 각각 포함하여 이루어진다. 여기서, 상기 NVRAM(11, 21)은 상기 호스트(10, 20) 중 대기 중인 호스트가 하드 디스크를 접속하지 못 하도록 록(Lock) 기능을 수행한다. 상기 DPRAM(12, 22)은 데이타 버스(D-Bus)를 이용하여 상기 호스트(10, 20) 중 동작 중인 호스트와 대기중인 호스트 간의 이중화 정보와 하드 디스크 억세스 인에이블 및 디스에이블 정보를 전달시키는 기능을 수행한다. 상기 SCSI부(13, 23)는 동일한 하나의 호스트 SCSI 버스 상에 연결되며, 상기 호스트(10, 20)의 실장 위치에 따라 독립된 SCSI 식별 번호를 가지게 하는데, 상기 호스트(10, 20) 중 동작 중인 호스트인 경우에 식별 번호는 제1SCSI 식별 번호(SCSI ID7)이고 대기 중인 호스트인 경우에 식별 번호는 제2SCSI 식별 번호(SCSI ID6)를 가진다. 상기 CPU(14)는 상술한 모든 동작을 제어 처리한다.The first host 10 and the second host 20 may include nonvolatile RAMs (NVRAMs) 11 and 21, dual port memories (DPRAMs) 12 and 22, and small computer system interface units (SCSIs) 13 and 23. And the CPU 14, respectively. Herein, the NVRAMs 11 and 21 perform a lock function to prevent a waiting host among the hosts 10 and 20 from accessing a hard disk. The DPRAMs 12 and 22 transfer redundancy information and hard disk access enable and disable information between a running host and a standby host among the hosts 10 and 20 using a data bus D-Bus. Do this. The SCSI units 13 and 23 are connected on the same host SCSI bus and have independent SCSI identification numbers according to the mounting positions of the hosts 10 and 20. In the case of a host, the identification number is a first SCSI identification number (SCSI ID7) and in the case of a waiting host, the identification number has a second SCSI identification number (SCSI ID6). The CPU 14 controls and processes all the above-described operations.

그리고, 상기 RDC(30)는 호스트 SCSI 버스를 통해 상기 호스트(10, 20)와 데이타를 주고받고 타켓(Target) SCSI 버스를 통해 하드 디스크와 데이타를 주고받는데, 데이타 미러링(Mirroring), 데이타 스트리핑(Striping)을 통한 해당 하드 디스크를 이중화시키는 기능을 수행한다. 여기서, 상기 호스트 SCSI 버스와 타켓 SCSI 버스는 SCSI 2 방식으로 동기화(Asyncronous)되어 동작하고 송신률(Tansfer Rate)는 초 당 5(MByte)이고 8(비트)의 데이타 버스와 1패리티 비트로 이루어져 있다.In addition, the RDC 30 exchanges data with the hosts 10 and 20 through a host SCSI bus and data with a hard disk through a target SCSI bus. The data mirroring and data striping are performed. It performs the function of redundancy of the hard disk through striping. Here, the host SCSI bus and the target SCSI bus are operated in an Asyncronous manner in a SCSI 2 scheme, and the transmit rate is 5 (MByte) per second, and is composed of an 8 (bit) data bus and 1 parity bit.

두 번째로, 소프트웨어적인 구성으로는 도 2에 도시된 바와 같이, 소프트웨어적인 구성으로는 상기 호스트(10, 20)와 하드 디스크 간의 접속을 제어하는 하드 디스크 접속부(40)와, 롬에서의 상기 호스트(10, 20)와 하드 디스크 간 이중화 접속을 제어하는 롬 처리부(50)와, 램에서의 상기 호스트(10, 20)와 하드 디스크 간 이중화 접속을 제어하는 램 처리부(60)와, 오퍼레이팅 시스템(Operating System)의 RTC(Real Time Clock)로 사용하는 10(msec) 주기의 태스크 모듈(Task Module)로서 상기 호스트(10, 20)의 절체 시에 하드 디스크의 재접속 및 동시 접속을 방지하도록 제어하는 타이머 처리부(70)를 포함하여 이루어진다.Secondly, as shown in FIG. 2 in the software configuration, the hard disk connection portion 40 which controls the connection between the host 10 and the hard disk in the software configuration, and the host in the ROM. A ROM processing unit 50 for controlling a redundant connection between the hard disks 10 and 20, a RAM processing unit 60 for controlling a redundant connection between the host 10 and 20 and a hard disk in a RAM, and an operating system ( 10 (msec) Period Task Module used as Real Time Clock (RTC) of Operating System) to control hard disk reconnection and simultaneous connection when the host 10 or 20 is switched It comprises a processing unit 70.

본 발명의 실시예에 따른 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법을 다음과 같이 살펴 본다.A method of accessing a hard disk of a redundant host in a communication system according to an embodiment of the present invention will be described as follows.

롬의 부팅 시에 하드 디스크를 접속하여 하드 디스크 내의 부팅 파일을 램에 로딩한 후에 램 부팅하는 과정을 거치기 때문에 롬 처리부(50)와 램 처리부(60)로 구분된다. 즉, 도 3의 플로우챠트에 도시된 바와 같이, 해당 롬 처리부(50)에서 롬 처리 동작을 수행한 다음에(단계 S1), 해당 램 처리부(60)에서 램 처리 동작을 수행함(단계 S2)과 동시에 타이머 처리부(70)에서 호스트(10, 20)의 절체시에 하드 디스크 재접속 및 동시 접속을 방지하는 동작을 수행한다(단계 S3).The ROM is divided into a ROM processing unit 50 and a RAM processing unit 60 because the ROM is booted after loading a boot file in the hard disk into RAM after booting the ROM. That is, as shown in the flowchart of FIG. 3, the ROM processing unit 50 performs a ROM processing operation (step S1), and then the RAM processing unit 60 performs a RAM processing operation (step S2). At the same time, the timer processing unit 70 performs an operation of preventing hard disk reconnection and simultaneous connection when the hosts 10 and 20 are switched (step S3).

그러면, 첫 번째로 도 4의 플로우챠트에 도시된 바와 같이, 상기 롬 처리부(50)에서의 상기 제1단계(S1)인 롬 처리 동작은 먼저 자신 상태가 동작 중인 상태인 호스트인지를 체크한다. 여기서, 하기부터 설명의 편의상으로 예를 들어 제1호스트(10)를 동작 중인 호스트라고 가정하고 제2호스트(20)를 대기 중인 호스트라고 가정하여 설명한다.First, as shown in the flowchart of FIG. 4, the ROM processing operation of the first step S1 in the ROM processing unit 50 first checks whether the host is in the operating state. For convenience of explanation, hereinafter, it is assumed that the first host 10 is a running host and the second host 20 is a waiting host.

그런데, 이중화된 두 호스트(10, 20)는 웜 및 콜드 스타트(Warm/Cold Start) 시에 롬 부팅으로부터 처리되게 된다. 해당 제1호스트(10)와 제2호스트(20) 둘 모두가 하드 디스크 접속부(40)를 실행시키려 하게 되면 호스트 SCSI 버스의 비지 상태(Busy State)가 발생되므로, 하드 디스크 접속부(40)를 실행시키기 전에 자신의 상태가 제1호스트(10)인지 아니면 제2호스트(20)인지를 확인한다(단계 T1).However, the two redundant hosts 10 and 20 are processed from the ROM boot at the time of warm and cold start. When both the first host 10 and the second host 20 attempt to execute the hard disk connector 40, a busy state of the host SCSI bus is generated, so that the hard disk connector 40 is executed. It is checked whether its state is the first host 10 or the second host 20 (step T1).

이 때, 자신의 상태가 동작 중인 제1호스트(10)이면, 상기 롬 처리부(50)는 NVRAM(11)에 록 코드(Lock Code)를 기록하며(단계 T2), 해당 록 코드를 기록함으로서 상기 타이머 처리부(70)에서의 상기 제3단계(S3)인 대기중인 제2호스트(20)의 하드 디스크 접속을 방지시키는 동작을 수행하게 한다(단계 T3).At this time, if its state is the first host 10 in operation, the ROM processing unit 50 writes a lock code to the NVRAM 11 (step T2), thereby recording the lock code. The timer processor 70 performs an operation of preventing the hard disk connection of the second host 20 that is waiting, which is the third step S3 (step T3).

한편, 자신의 상태가 대기 중인 제2호스트(20)이면, 상기 롬 처리부(50)는 상기 타이머 처리부(70)에 기록된 DPRAM 코드가 억세스 인에이블(Access Enable)되었는지를 확인한다(단계 T4).On the other hand, if the state of the second host 20 is waiting, the ROM processing unit 50 checks whether the DPRAM code recorded in the timer processing unit 70 is accessible (Access Enable) (step T4). .

이에, 상기 DPRAM 코드가 엑세스 인에이블되지 않았다면 계속해서 자신의 상태가 제1호스트(10)인지 아니면 제2호스트(20)인지를 확인하며, 상기 DPRAM 코드가 엑세스 인에이블되었거나 상기 타이머 처리부(70)에서의 상기 제3단계(S3)인 대기중인 제2호스트(20)의 하드 디스크 접속을 방지시키는 동작을 수행하였다면 상기 하드 디스크 접속부(40)에서의 하드 디스크 접속 동작을 수행하도록 한다(단계 T5).Accordingly, if the DPRAM code is not accessible, the controller continuously checks whether its state is the first host 10 or the second host 20, and if the DPRAM code is access enabled or the timer processor 70 If the operation of preventing the hard disk connection of the second host 20 that is waiting for the third step (S3) in the step to perform a hard disk connection operation in the hard disk connection unit 40 (step T5) .

두 번째로, 도 5의 플로우챠트에 도시된 바와 같이, 상기 하드 디스크 접속부(40)에서의 하드 디스크 접속 동작은 다음과 같다.Secondly, as shown in the flowchart of FIG. 5, the hard disk connecting operation in the hard disk connecting unit 40 is as follows.

상기 이중화된 호스트(10, 20)가 동일한 호스트 SCSI 버스 상에 존재하기 때문에 상기 호스트(10, 20)의 실장 위치에 따라 독립된 SCSI 식별 번호를 가지게 되는데, 즉 해당 호스트(10, 20)가 실장된 마스터 및 슬레이브 위치에 따라 SCSI 식별 번호를 구분하여 타켓 SCSI 버스에 접속하게 된다(단계 T6).Since the redundant hosts 10 and 20 exist on the same host SCSI bus, they have independent SCSI identification numbers according to the mounting positions of the hosts 10 and 20, that is, the hosts 10 and 20 are mounted. The SCSI identification numbers are distinguished according to the master and slave positions and connected to the target SCSI bus (step T6).

이 때, 상기 호스트(10, 20)가 모두 SCSI 식별 번호를 리셋시키는 경우에 상기 제2호스트(20)의 버스 리셋에 의해 상기 제1호스트(10)가 영향을 받기 때문에, 자신의 상태가 동작 중일 때만 SCSI 버스를 리셋시킨다(단계 T7).At this time, when both the hosts 10 and 20 reset the SCSI identification number, since the first host 10 is affected by the bus reset of the second host 20, its own state is operated. Reset the SCSI bus only when it is busy (step T7).

그리고, 상기 하드 디스크 접속부(70)는 디스크 드라이버를 마운팅(Mounting)하고(단계 T8) 디스크 버퍼 캐쉬를 마운팅한 다음(단계 T9), 볼륨(File Manager)을 마운팅한다(단계 T10).The hard disk connector 70 mounts the disk driver (step T8), mounts the disk buffer cache (step T9), and then mounts the volume (File Manager) (step T10).

세 번째로, 도 6의 플로우챠트에 도시된 바와 같이, 상기 램 처리부(60)에서의 램 처리 동작은 먼저 상기 롬 처리부(50)에서의 상기 제1단계(S1)인 롬 처리 동작을 수행하도록 한다(단계 T11).Third, as illustrated in the flowchart of FIG. 6, the RAM processing operation of the RAM processing unit 60 may be performed to perform the ROM processing operation of the first step S1 of the ROM processing unit 50. (Step T11).

그리고, 상기 램 처리부(60)는 자신의 상태가 동작 중인 호스트인지 아니면 대기중인 호스트인지를 확인하는데(단계 T12), 이 때 자신의 상태가 대기 중인 호스트이면 그대로 종료하며, 자신의 상태가 동작 중인 호스트이면 상기 NVRAM(11, 21)에 언록 코드(Unlock Code)를 기록하며(단계 T13), 해당 언록 코드를 기록함으로서 상기 타이머 처리부(70)에서의 대기 중인 호스트를 하드 디스크에 재접속 동작을 수행하도록 한다(단계 T14).Then, the RAM processing unit 60 checks whether its own state is a running host or a waiting host (step T12). At this time, if its own state is a waiting host, it terminates as it is and its state is operating. If the host, the unlock code (Unlock Code) is recorded in the NVRAM (11, 21) (step T13), and by recording the corresponding unlock code to perform the reconnection operation of the host waiting in the timer processing section 70 to the hard disk. (Step T14).

네 번째로, 도 7의 플로우챠트에 도시된 바와 같이, 상기 타이머 처리부(70)에서의 상기 호스트(10, 20)의 이중화 동작과 상기 호스트(10, 20)의 절체 시에 대기중인 호스트와 하드 디스크의 재접속 동작과 하드 디스크의 동시 접속 방지 동작은 다음과 같다.Fourth, as shown in the flowchart of FIG. 7, a host and a hard disk are waiting for the redundancy operation of the hosts 10 and 20 in the timer processing unit 70 and the switching of the hosts 10 and 20. The reconnection operation of the disk and the simultaneous connection prevention operation of the hard disk are as follows.

상기 타이머 처리부(70)는 상기 호스트(10, 20)의 이중화 동작을 수행하다가 동작중인 호스트에서 대기중인 호스트로 절체가 발생한 경우, 상기 호스트(10, 20)의 상태 전이를 파악하며(단계 T15), 대기중인 호스트에서 동작 상태로 전환하는 호스트는 우선적으로 하드 디스크를 리마운팅(Remounting)시킨다(단계 T16).When the timer processing unit 70 performs a redundancy operation of the hosts 10 and 20 and the transfer occurs from the host to the waiting host, the timer processor 70 determines the state transition of the host 10 and 20 (step T15). The host that transitions from the standby host to an operational state first remounts the hard disk (step T16).

그런데, 종래에는 하드 디스크의 디스마운팅(Dismounting) 과정은 상기 하드 디스크 접속부(40)에서의 하드 디스크 접속 동작 과정의 역순으로 진행되는데, 즉 볼륨을 디스마운팅하고 디스크 버퍼 캐쉬를 디스마운팅한 다음에 디스크 드라이버를 디스마운팅하였었다.However, in the related art, the dismounting process of the hard disk proceeds in the reverse order of the hard disk access operation in the hard disk access unit 40. That is, after dismounting the volume and dismounting the disk buffer cache, the disk is mounted. The driver was dismounted.

그러나, 상기 타이머 처리부(70)에서의 리마운팅은 볼륨만을 디스마운팅하고 다시 마운팅함으로서 대기중인 호스트가 하드 디스크를 접속하는 시간을 단축시킬 수 있다.However, the remounting in the timer processing unit 70 may shorten the time for the standby host to access the hard disk by dismounting and remounting only the volume.

그리고, 자신의 상태가 동작 중인 호스트인지 아니면 대기중인 호스트인지를 확인하는데(단계 T17), 이 때 자신의 상태가 동작 중인 호스트이면 상기 NVRAM(11, 21)에 기록된 코드가 록 코드인지 아니면 언록 코드인지를 체크한다(단계 T18).Then, it is checked whether its own state is an operating host or a waiting host (step T17). At this time, if the own state is an active host, the code recorded in the NVRAM 11 or 21 is a lock code or unlocked. Check if it is a code (step T18).

이에, 상기 NVRAM(11, 21)에 기록된 코드가 언록 코드인 경우에는 DPRAM(12, 22)에 억세스 인에이블 코드를 기록하며(단계 T19), 해당 억세스 인에이블 코드를 기록함으로서 대기 중인 호스트가 하드 디스크와의 접속 동작을 수행하도록 한다(단계 T20).When the code recorded in the NVRAM 11 and 21 is the unlock code, the access enable code is recorded in the DPRAM 12 and 22 (step T19), and the waiting host writes the corresponding access enable code. The connection operation with the hard disk is performed (step T20).

한편, 상기 NVRAM(11, 21)에 기록된 코드가 록 코드인 경우에는 상기 DPRAM(12, 22)에 억세스 디스에이블 코드를 기록하며(단계 T21), 해당 억세스 인에이블 코드를 기록함으로서 대기 중인 호스트의 하드 디스크 접속 방지 동작을 수행한다(단계 T22).On the other hand, if the code recorded in the NVRAM 11, 21 is a lock code, an access disable code is recorded in the DPRAM 12, 22 (step T21), and the host waiting for recording the corresponding access enable code is waiting. The hard disk connection prevention operation is performed (step T22).

이상과 같이, 본 발명에 의해 이중화된 호스트에서 DAD인 하드 디스크를 접속해서 사용하는 경우에 주기적으로 자신 상태와 상대 상태를 파악하여 대기 중에서 동작 상태로 전환된 호스트의 하드 디스크를 리마운팅함으로 호스트 절체 시에 하드 디스크를 재접속하고 NVRAM의 록 여부와 DPRAM의 엑세스 코드를 사용하여 하드 디스크 동시 접속 방지하며, 호스트의 SCSI 식별 번호 구분과 호스트 상태에 따라 호스트 SCSI 버스를 리셋팅함으로 하드 디스크를 접속하며, 호스트의 상태, NVRAM의 록 코드, DPRAM의 억세스 코드에 따라 롬에서 하드 디스크를 접속하며, 호스트 상태에 따라 VNRAM에 언록 코드를 기록함으로 램에서 하드 디스크를 접속하므로서, 이중화된 호스트가 절체되었을 때 신속한 하드 디스크의 재접속을 통해 통신 시스템에서 서비스의 중단없이 정상적인 서비스를 진행할 수 있으므로 통신 시스템의 신뢰성과 효율을 향상시킬 수 있다.As described above, when the DAD hard disk is connected to and used by the present invention, the host is transferred by remounting the hard disk of the host which has been switched from the standby state to its own state and the relative state periodically. Reconnect the hard disk at the same time, prevent access to the hard disk simultaneously by using NVRAM lock and DPRAM access code, and connect the hard disk by resetting the host SCSI bus according to the host's SCSI identification number classification and host status. The hard disk is accessed from ROM according to the host status, NVRAM lock code, and DPRAM access code, and the hard disk is accessed from RAM by writing the unlock code to VNRAM according to the host status. By reconnecting the hard disk, the communication system can We can proceed with the service it is possible to improve the reliability and efficiency of the communication system.

Claims (5)

롬 처리의 동작을 수행한 후에 램 처리의 동작을 수행하여 동작 중인 호스트와 하드 디스크의 접속 동작을 수행시킴과 동시에, 대기 중인 호스트와 하드 디스크의 재접속 및 동시 접속 방지 동작을 수행시키는 것을 특징으로 하는 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법.After performing the ROM processing, the RAM processing may be performed to perform a connection operation between the host and the hard disk in operation, and at the same time, a reconnection and prevention of simultaneous access between the waiting host and the hard disk may be performed. Hard disk access method for redundant hosts in a communication system. 제1항에 있어서, 상기 롬 처리 동작은 자신의 상태가 상기 동작 중인 호스트인지를 확인하는 제1과정과; 자신의 상태가 상기 동작 중인 호스트이면 록 코드를 기록하고 상기 대기 중인 호스트와 하드 디스크의 접속 방지 동작을 수행시키는 제2과정과; 자신의 상태가 상기 동작 중인 호스트가 아니면 DPRAM 코드가 억세스 인에이블되는지를 확인하는 제3과정과; 상기 대기 중인 호스트와 하드 디스크의 접속 방지 동작을 수행시킨 후 또는 상기 DPRAM 코드가 억세스 인에이블되면 상기 동작 중인 호스트와 하드 디스크의 접속 동작을 수행시키는 제4과정을 포함하여 이루어진 것을 특징으로 하는 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법.The method of claim 1, wherein the ROM processing comprises: a first process of checking whether a state of the ROM is a host in operation; A second step of recording a lock code and performing a connection prevention operation between the waiting host and a hard disk if its status is the active host; A third step of checking whether a DPRAM code is access enabled if its state is not the operating host; And a fourth process of performing a connection preventing operation between the standby host and the hard disk or performing a connection operation between the operating host and the hard disk when the DPRAM code is accessed. How to attach a hard disk on my redundant host. 제1항에 있어서, 상기 램 처리 동작은 상기 롬 처리 동작을 수행시킨 후에 자신의 상태가 상기 동작 중인 호스트인지를 확인하는 제5과정과; 자신의 상태가 상기 동작 중인 호스트이면 언록 코드를 기록하고 상기 대기 중인 호스트와 하드 디스크의 재접속 동작을 수행시키는 제6과정을 포함하여 이루어진 것을 특징으로 하는 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법.The method of claim 1, wherein the RAM processing operation comprises: a fifth process of confirming whether a state of the host is the operating host after the ROM processing operation is performed; And a sixth step of recording an unlock code and performing a reconnection operation of the hard disk with the waiting host if its status is the active host. 제1항 및 제2항에 있어서, 상기 동작 중인 호스트와 하드 디스크의 접속 동작은 상기 호스트가 실장된 마스터 및 슬레이브 위치에 따라 SCSI 식별 번호를 구분하여 타켓에 접속시켜 자신의 상태가 동작 중일 때만 SCSI 버스를 리셋시키는 제7과정과; 디스크 드라이버, 디스크 버퍼 캐쉬 및 볼륨을 각각 순서대로 마운팅시키는 제8과정을 포함하여 이루어진 것을 특징으로 하는 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법.The method of claim 1, wherein the connection between the host and the hard disk in operation is performed by classifying the SCSI identification number according to the mounted master and slave positions and connecting the target to the target. A seventh step of resetting the bus; And an eighth step of mounting the disk driver, the disk buffer cache, and the volumes in order, respectively. 제1항, 제2항 및 제3항에 있어서, 상기 대기 중인 호스트와 하드 디스크의 재접속 및 동시 접속 방지 동작은 상기 호스트의 상태 전이를 파악하고 대기 상태에서 동작 상태로 전환하는 호스트에서 볼륨만을 디스마운팅하고 다시 마운팅하여 하드 디스크를 리마운팅시키는 제9과정과; 자신의 상태가 동작 중인 호스트인지를 확인하여 상기 록 코드가 기록되어 있는지를 확인하는 제10과정과; 상기 언록 코드가 기록되어 있으면 억세스 인에이블 코드를 기록하여 상기 대기 중인 호스트를 하드 디스크에 접속시키는 제11과정과; 상기 록 코드가 기록되어 있으면 억세스 디스에이블 코드를 기록하여 대기 중인 호스트가 하드 디스크에 접속되는 것을 방지하는 제12과정을 포함하여 이루어진 것을 특징으로 하는 통신 시스템 내 이중화 호스트의 하드 디스크 접속 방법.4. The method of claim 1, 2, or 3, wherein the re-connecting and preventing simultaneous access of the standby host and the hard disk are performed only by disabling the volume in the host that detects the state transition of the host and transitions from the standby state to the operating state. A ninth step of remounting the hard disk by mounting and remounting; A tenth step of checking whether the lock code is recorded by checking whether the state of the host is an operating host; An eleventh step of accessing the waiting host to a hard disk by recording an access enable code if the unlock code is recorded; And a twelfth step of preventing the standby host from being connected to the hard disk by recording an access disable code if the lock code is recorded.
KR1019970037979A 1997-08-08 1997-08-08 Method for connecting hard disk and duplexing host in the communication system KR100235884B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970037979A KR100235884B1 (en) 1997-08-08 1997-08-08 Method for connecting hard disk and duplexing host in the communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970037979A KR100235884B1 (en) 1997-08-08 1997-08-08 Method for connecting hard disk and duplexing host in the communication system

Publications (2)

Publication Number Publication Date
KR19990015707A KR19990015707A (en) 1999-03-05
KR100235884B1 true KR100235884B1 (en) 1999-12-15

Family

ID=19517138

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970037979A KR100235884B1 (en) 1997-08-08 1997-08-08 Method for connecting hard disk and duplexing host in the communication system

Country Status (1)

Country Link
KR (1) KR100235884B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100438555B1 (en) * 2001-12-05 2004-07-03 엘지전자 주식회사 Dual processor system using a hard disk and control method thereof

Also Published As

Publication number Publication date
KR19990015707A (en) 1999-03-05

Similar Documents

Publication Publication Date Title
US7941693B2 (en) Disk array apparatus and method for controlling the same
US5740397A (en) IDE disk drive adapter for computer backup and fault tolerance
EP0772127B1 (en) Controller failure recovery for an Input/Output device
US6708283B1 (en) System and method for operating a system with redundant peripheral bus controllers
JP3151008B2 (en) Disk sector analysis method
US6279078B1 (en) Apparatus and method for synchronizing a cache mode in a dual controller, dual cache memory system operating in a plurality of cache modes
US6425049B1 (en) Disk array system and method of changing the configuration of the disk array system
US6009535A (en) SCSI adaptor failover for a disk drive system
US7216258B2 (en) Method and apparatus for recovering from a non-fatal fault during background operations
JP3136036B2 (en) Control method of disk controller
US5829019A (en) Computer network server backup with posted write cache disk controllers
US20040078663A1 (en) Information processing system and disk control method used in the same
US7870417B2 (en) Apparatus, system, and method for adapter card failover
US20110185268A1 (en) Storage apparatus and data verification methd in storage apparatus
GB2375633A (en) Redundant controller data storage system having hot insertion system and method
KR20000045794A (en) Method for reconnection when error of scsi bus
US20010016919A1 (en) Storage system
US6389559B1 (en) Controller fail-over without device bring-up
US20120331199A1 (en) Computer system, host-bus-adaptor control method, and program thereof
US7209982B2 (en) Electronic apparatus including plural processors
US20020078276A1 (en) RAID controller with IDE interfaces
KR100235884B1 (en) Method for connecting hard disk and duplexing host in the communication system
JP3050148B2 (en) Duplex information processing device
JP3783560B2 (en) Information processing system
JP2002304331A (en) Device and method for controlling redundant pass

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee