KR102199244B1 - System and method for displaying hard disk status of server using serial port - Google Patents

System and method for displaying hard disk status of server using serial port Download PDF

Info

Publication number
KR102199244B1
KR102199244B1 KR1020200031834A KR20200031834A KR102199244B1 KR 102199244 B1 KR102199244 B1 KR 102199244B1 KR 1020200031834 A KR1020200031834 A KR 1020200031834A KR 20200031834 A KR20200031834 A KR 20200031834A KR 102199244 B1 KR102199244 B1 KR 102199244B1
Authority
KR
South Korea
Prior art keywords
hard disk
data
status
microcontroller
led
Prior art date
Application number
KR1020200031834A
Other languages
Korean (ko)
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 KR1020200031834A priority Critical patent/KR102199244B1/en
Application granted granted Critical
Publication of KR102199244B1 publication Critical patent/KR102199244B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's

Abstract

The present invention relates to a server hard disk status display system using a serial port and to a method thereof, and more particularly, to a server hard disk status displaying system using a serial port, which displays the status of a hard disk of a server using Unix or Linux as an operating system (OS) by using a display device having minimum hardware and a processor included in the server and connected with the display through the serial port, and a method thereof.

Description

직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템 및 방법{SYSTEM AND METHOD FOR DISPLAYING HARD DISK STATUS OF SERVER USING SERIAL PORT} A system and method for displaying the status of the server's hard disk using a serial port {SYSTEM AND METHOD FOR DISPLAYING HARD DISK STATUS OF SERVER USING SERIAL PORT}

본 발명은 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템 및 방법에 관한 것으로, 특히 유닉스 또는 리눅스를 운영체계(OS)로 하는 서버의 하드 디스크의 상태를 최소한의 하드웨어를 갖는 표시장치와 이 표시장치와 직렬포트를 통해 연결된, 서버에 포함된 프로세서를 이용하여 표시하는, 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템 및 방법에 관한 것이다.The present invention relates to a system and method for displaying hard disk status of a server using a serial port. In particular, a display device having a minimum hardware status of a server hard disk using Unix or Linux as an operating system (OS), and the display device. The present invention relates to a system and method for displaying a hard disk status of a server using a serial port, which is displayed using a processor included in the server and connected through a serial port.

일반적으로, RAID(Redundant Array of Independent Disks) 시스템이란 서버에서 주 저장장치(main storage)로 사용되는 하드 디스크의 데이터 안정성을 확보하기 위한 하드웨어 장치이다. 그 중 RAID Level-1를 예로 들면, 이는 미러링(mirroring)이라는 기법을 사용하며, 2대의 동일한 하드 디스크를 설치하고, 데이터를 기록할 때 2개의 하드 디스크에 동일한 데이터를 동시에 기록하는 것으로서, 비록 하드 디스크 용량은 1대 분량밖에 확보되지 않지만 한 대의 하드 디스크에서 이상이 발생한 경우 이를 관리자에게 알려 장치를 교체하도록 요구한다. 새롭게 하드 디스크 장치가 교체되면 RAID 시스템에서는 자동으로 새로운 장치에 정상적인 장치의 내용을 그대로 복사해 두 장치들이 항상 동일한 상태가 유지되도록 한다. 이 방법은 2개의 장치가 동시에 파손되는 경우는 거의 없으므로 관리자가 신속히 대응하는 경우 데이터 보전에 매우 안전한 시스템이 될 수 있다.In general, a RAID (Redundant Array of Independent Disks) system is a hardware device for securing data stability of a hard disk used as a main storage device in a server. Among them, taking RAID Level-1 as an example, it uses a technique called mirroring, and when two identical hard disks are installed and data is recorded, the same data is simultaneously recorded on two hard disks. Only one disk capacity is secured, but if an abnormality occurs in one hard disk, it informs the administrator and requests the replacement of the device. When a new hard disk device is replaced, the RAID system automatically copies the contents of the normal device to the new device so that the two devices are always in the same state. Since this method rarely breaks two devices at the same time, it can be a very safe system for data preservation if the administrator responds quickly.

RAID 시스템은 저장장치의 상태를 표시하기 위해, 도 1에 도시된 바와 같이, 저장장치 각각에 LED들이 설치되어 장치의 정상작동 여부를 표시한다. 예를 들어 저장장치-1에 오류가 발생한 경우 오류 표시 LED가 점멸하는 방법으로 시스템 관리자에게 알려 조치를 취할 수 있도록 하며, 시스템에 따라서는 알람소리를 발생해 더 적극적으로 알리도록 구성된 경우도 있다.In the RAID system, as shown in FIG. 1, LEDs are installed on each storage device to indicate whether the device is operating normally or not. For example, when an error occurs in storage device-1, the error indicator LED flashes so that the system administrator can be notified to take action, and depending on the system, an alarm sound is generated to inform the system more actively.

인터넷 서버를 비롯해 각종 서버 시스템에서 주로 사용되는 OS(Operation System)로는 유닉스와 이의 파생품으로서 기능이 동일한 리눅스 등이 있다. 이들 OS에는 소프트-RAID를 내장하고 있어 고가 장비인 하드웨어로 구성된 RAID 시스템(이하, 하드웨어 RAID라 함)을 갖추지 않고서도 RAID 기능을 사용할 수 있다. 단, 소프트-RAID는 소프트웨어에 의해 가동되기 때문에 하드웨어 RAID에 비해 속도가 많이 떨어지므로 소규모 서버나 간이형 서버에서 주로 사용된다.As an OS (Operation System) mainly used in various server systems including Internet servers, there are Unix and Linux, which have the same functions as derivatives thereof. These OSs have built-in soft-RAID, so you can use the RAID function without having a RAID system (hereinafter referred to as hardware RAID) composed of expensive hardware. However, since soft-RAID is operated by software, its speed is much lower than that of hardware RAID, so it is mainly used in small servers or simple servers.

소프트-RAID도 내부 기능에 따라 여러 가지 레벨(Level)이 있으나, 여기서는 가장 단순한 RAID Level-1을 기준으로 설명한다. 소프트-RAID는 하드웨어 RAID과 마찬가지로 2개의 동일한 하드 디스크를 설치한 후 이들을 1개의 하드 디스크로서 관리하고, 서버에서 어떤 데이터를 기록할 때 OS의 RAID 관리 소프트웨어에 의해 2개의 하드 디스크에 각각 동일한 데이터를 기록하며, 이때 단일로 구성된 하드 디스크 또는 하드웨어 RAID 시스템에 비해 2배의 시간이 소요되지만 추가적인 비용 없이 하드웨어 RAID와 동일한 데이터 안정성을 확보할 수 있다.Soft-RAID also has several levels depending on the internal function, but the explanation is based on the simplest RAID Level-1. Soft-RAID, like hardware RAID, installs two identical hard disks and manages them as one hard disk. When any data is recorded on the server, the same data is stored on each of the two hard disks by the OS's RAID management software. At this time, it takes twice as much time as compared to a single hard disk or hardware RAID system, but the same data stability as hardware RAID can be secured without additional cost.

소프트-RAID는 하드웨어 RAID와 달리 소프트웨어에 의해 구현되는 것이므로 LED 등과 같은 하드웨어를 이용해 오류 보고를 할 수 없으므로, 특정한 파일(mdstat라는 이름의 파일)에 하드 디스크 장치들의 상태를 수시로 기록하며, 따라서 서버 관리자는 이 파일을 열람함으로서 하드 디스크 장치들의 상태를 확인할 수 있다.Unlike hardware RAID, soft-RAID is implemented by software, so it cannot report errors using hardware such as LEDs, so it records the status of hard disk devices in a specific file (a file named mdstat) from time to time. You can check the status of the hard disk devices by browsing this file.

소프트-RAID는 기본적으로 소프트웨어에 의해 운영되는 시스템이므로 몇 가지 제약점이 발생하는데, 그중 가장 큰 제약점은 하드 디스크 장치에서 이상이 발생했을 때 이를 관리자에게 빠르고 쉽게 알릴 수 없다는 것이다. 서버 시스템을 구성하는 하드 디스크 중 이상이 발생한 경우 시스템 관리자가 이를 최대한 빠른 시간에 인식하고 조치해야 데이터의 안정성이 확보되므로 하드웨어 RAID에서는 오류가 발생하면 경보와 함께 어떤 하드 디스크에 문제가 발생했는지 경고 램프 등을 통해 표시한다. 이에 비해 소프트-RAID의 경우 OS가 하드 디스크에 문제가 발생한 것을 감지해 상태 보고 파일에 기록해 놓더라도 관리자가 서버에 접속해 이를 확인해야 인지할 수 있으므로, 장치에 이상이 발생한 사실을 관리자에게 빠르고 쉽게 알릴수 있는 방법이 없어 보수할 타이밍을 놓치는 경우가 자주 발생한다.Soft-RAID is basically a system operated by software, so there are some limitations, the biggest of which is that it cannot quickly and easily notify the administrator when an abnormality occurs in the hard disk device. If an error occurs among the hard disks that make up the server system, the system administrator must recognize and take action as soon as possible to ensure data stability. In hardware RAID, when an error occurs, an alarm and a warning lamp indicating which hard disk has a problem Mark through the etc. In contrast, in the case of Soft-RAID, even if the OS detects that a problem has occurred in the hard disk and records it in the status report file, the administrator must access the server and check it to recognize it. Because there is no way to inform, it often happens that the timing of repairs is missed.

관리자가 서버 시스템 상태를 확인하는 절차는 다음과 같다.The procedure for the administrator to check the server system status is as follows.

1) ID 입력1) Enter ID

서버 시스템의 콘솔(console) 장치(모니터)를 켜고 시스템 관리자 ID를 입력한다. 시스템 관리는 서버 보안상 일반적으로 원격에서는 불가능하도록 구성하므로 반드시 관리자가 서버가 위치한 장소로 이동해 서버에 설치된 콘솔 장치에서 입력해야 한다.Turn on the console device (monitor) of the server system and enter the system administrator ID. System management is generally configured to be impossible remotely for server security, so the administrator must move to the location where the server is located and input it from the console device installed on the server.

2) 비밀번호 입력2) Enter password

시스템 관리자의 비밀번호를 입력해 로그-인(log-in) 한다. 항상 로그-인 상태를 유지하도록 한다면 1), 2) 과정이 생략될 수 있으나, 서버의 보안상 시간이 지나면 자동으로 로그-아웃되도록 구성되어 있어 이러한 조치는 보안에 허점이 될 수 있다.Enter the system administrator's password to log-in. If the log-in status is always maintained, the 1) and 2) processes may be omitted. However, due to the security of the server, it is configured to automatically log-out after a period of time, so such a measure may become a security flaw.

3) 상태 보고 파일의 확인명령 입력3) Enter the confirmation command of the status report file

상태 보고 파일이 위치한 디렉토리로 이동하고 확인 명령을 입력해 확인한다.Move to the directory where the status report file is located and enter the confirmation command to confirm.

이와 같이, 최소 3단계의 입력절차를 거쳐야 비로소 상태 보고 파일을 확인할 수 있고, 이 파일을 해독해야 어떤 장치가 이상이 있는지 관리자가 인지할 수 있으므로 전체적인 과정이 복잡해 일반적으로 관리자가 거의 확인하지 않아 시스템 안정성을 최상으로 유지하기 어렵다.As described above, the status report file can be checked only after a minimum of 3 steps of input procedure, and the administrator can recognize which device is abnormal only when this file is decrypted. It is difficult to maintain stability at its best.

이러한 이유로 소프트-RAID가 상당한 데이터 안정성을 제공하는 방법임에도 불구하고 실제 시스템 관리자들 사이에서는 그다지 실효성이 없는 것으로 간주되어 널리 사용되지 않는 실정이다.For this reason, although soft-RAID is a method that provides significant data stability, it is considered to be ineffective among actual system administrators and is not widely used.

소프트-RAID를 개발한 팀에서도 이와 같은 제약점을 인지하고 이를 개선하고자 최근에는 오류 보고를 관리자의 이메일로 전송하도록 개선하였다. 이 방법은 서버에 메일 처리 데몬(daemon)을 설치하고, RAID 장치들의 상태를 감시해 메일로 보내는 데몬을 또 설치해야 하는 등의 복잡한 과정을 거쳐야 하고, 이들 프로그램에 의해 서버에 부하가 가중되는 단점이 있다.The team that developed Soft-RAID also recognized these limitations and recently improved to send error reports to the administrator's e-mail to improve them. This method has to go through a complicated process such as installing a mail processing daemon on the server, monitoring the status of RAID devices, and installing another daemon that sends mail to the server, and these programs increase the load on the server. There is this.

그러나, 이 방법은 비록 설치 과정은 복잡하지만 개발 초기에는 매우 효과적으로 관리자에게 오류보고를 할 수 있는 유용한 수단이었으나, 최근에는 이러한 오류보고 메일로 위장해 각종 해킹 프로그램이나 랜섬웨어 등을 전송함으로 인해 오히려 관리자의 보안이 취약해지는 폐단이 발생함에 따라 보고 메일이 오더라도 열람하지 않고 무시하므로 큰 효과를 얻지 못하고 있다.However, although the installation process is complicated, this method was a very effective means of reporting errors to the administrator at the beginning of development, but recently, it disguises itself as such an error reporting email and transmits various hacking programs or ransomware. As the security of the security is weakened, even if a report e-mail is received, it is not viewed but ignored, so it is not getting a great effect.

[특허문헌 1] 한국 특허 공개 1999-0030950호 공보(발명의 명칭: RAID를 지닌 멀티프로세서 서버 시스템)[Patent Document 1] Korean Patent Publication No. 1999-0030950 (name of invention: multiprocessor server system with RAID)

따라서 본 발명은 상기와 같은 종래의 문제점을 해결하기 위해 이루어진 것으로서, 본 발명의 목적은 최소한의 하드웨어를 이용해 하드웨어 RAID와 동일하게 관리자에게 하드 디스크 장치의 상태를 즉시 알릴 수 있으며, 병렬포트를 이용하는 방법에 비해 융통성이 우수한, 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템 및 방법을 제공하는 데에 있다.Accordingly, the present invention has been made to solve the conventional problems as described above, and an object of the present invention is to immediately notify the state of the hard disk device to the administrator using a minimum amount of hardware in the same way as the hardware RAID, and a method using a parallel port It is to provide a system and method for displaying a hard disk status of a server using a serial port, which is more flexible than that.

상기의 목적을 달성하기 위해, 본 발명의 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템은 서버내에 포함되고, 제 1, 2 하드 디스크의 상태가 기록된 상태 보고 파일을 읽기 모드로 오픈하여 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출한 후 상태 보고 파일을 닫고, 상기 서버의 직렬포트를 오픈하여 상기 직렬포트가 사용중 인지의 여부를 결정하고 사용중이 아닐 경우 상기 제 1, 2 하드 디스크 가동상태 데이터를 상기 직렬포트로 출력하고, 상기 직렬포트를 닫도록 구성된 프로세서; 및 상기 프로세서와 상기 직렬포트를 통해 연결되고, 상기 제 1, 2 하드 디스크 가동상태 데이터를 통신포트를 통해 읽어들여 LED 표시 데이터를 조립하고, 조립된 상기 LED 표시 데이터에 기초하여 상기 제 1, 2 하드 디스크의 가동 상태를 표시하는 표시 장치를 포함하는 것을 특징으로 한다.In order to achieve the above object, the system for displaying a hard disk status of a server using a serial port according to an embodiment of the present invention is included in the server, and a status report file in which the status of the first and second hard disks are recorded is read in a read mode. After opening and extracting the first and second hard disk operation status data in the status report file, the status report file is closed, and the serial port of the server is opened to determine whether the serial port is in use, and if not in use, the first And 2 a processor configured to output hard disk operation state data to the serial port and close the serial port; And the first and second hard disks are connected to the processor through the serial port, and the first and second hard disk operation status data are read through a communication port to assemble LED display data, and the first and second hard disks are assembled based on the assembled LED display data. It characterized in that it comprises a display device that displays the operating state of the hard disk.

상기 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템에 있어서, 상기 표시 장치는 상기 서버의 직렬포트로부터 상기 제 1, 2 하드 디스크 가동상태 데이터를 공급받도록 구성된 커넥터와; 상기 직렬포트의 전압을 기설정된 레벨의 전압으로 변환하도록 구성된 변환기와; 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면 알람 소리를 발생하도록 구성된 버저와; 온동작되면 상기 표시 장치를 초기화하고 상기 버저의 구동을 중단하도록 구성된 초기화 스위치와; 점등시 상기 제 1 하드 디스크의 정상 상태 및 이상 상태 각각을 표시하는 제 1 하드 디스크 정상 표시 LED 및 제 1 하드 디스크 이상 표시 LED와; 점등시 상기 제 2 하드 디스크의 정상 상태 및 이상 상태 각각을 표시하는 제 2 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 이상 표시 LED와; 일측은 상기 제 1 하드 디스크 정상 표시 LED 및 제 1 하드 디스크 이상 표시 LED와 연결되고, 타측은 접지되어 있는 저항과; 일측은 상기 제 2 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 이상 표시 LED와 연결되고, 타측은 접지되어 있는 저항과; 구동전원이 인가되면 하드웨어를 초기화하고, 상기 초기화 스위치가 오프 동작되면 통신포트의 상태를 판독하여 상기 제 1, 2 하드 디스크 가동상태 데이터가 수신되는지의 여부를 결정하여서 수신되면, 상기 통신포트로부터 상기 제 1, 2 하드 디스크 가동상태 데이터를 읽어들여 LED 표시 데이터를 조립하고, 조립된 상기 LED 표시 데이터를 상기 제 1 하드 디스크 정상 표시 LED, 제 1 하드 디스크 이상 표시 LED, 제 2 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 이상 표시 LED에 출력하여 이들 LED의 동작을 제어하고, 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면 상기 버저를 작동시켜 알람 소리를 발생하고, 상기 초기화 스위치가 온 동작되면 상기 제 1 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 정상 표시 LED를 점등시켜 초기화시킨 후 상기 버저를 오프 동작시키고 디바운스 처리를 하는 마이크로컨트롤러;를 포함할 수 있다.In the hard disk status display system of a server using a serial port according to the above embodiment, the display device comprises: a connector configured to receive the first and second hard disk operation status data from the serial port of the server; A converter configured to convert the voltage of the serial port into a voltage of a preset level; A buzzer configured to generate an alarm sound when an error occurs in at least one of the first and second hard disks; An initialization switch configured to initialize the display device and stop driving the buzzer when the buzzer is turned on; A first hard disk normal display LED and a first hard disk abnormal display LED for indicating each of a normal state and an abnormal state of the first hard disk when turned on; A second hard disk normal display LED and a second hard disk abnormality display LED indicating each of a normal state and an abnormal state of the second hard disk when turned on; A resistor having one side connected to the first hard disk normal display LED and the first hard disk abnormal display LED, and the other side grounded; A resistor having one side connected to the second hard disk normal display LED and the second hard disk abnormal display LED, and the other side grounded; When driving power is applied, the hardware is initialized, and when the initialization switch is turned off, the state of the communication port is read to determine whether the first and second hard disk operation state data is received. Reads the first and second hard disk operation status data and assembles the LED display data, and the assembled LED display data is converted to the first hard disk normal display LED, the first hard disk abnormal LED, and the second hard disk normal display LED. And outputting to the second hard disk error display LED to control the operation of these LEDs, and when an error occurs in at least one of the first and second hard disks, the buzzer is operated to generate an alarm sound, and the initialization switch is turned on. When operated, the first hard disk normal display LED and the second hard disk normal display LED are turned on and initialized, the buzzer is turned off, and the microcontroller performs a debounce process.

상기 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템에 있어서, 상기 제 1 하드 디스크 정상 표시 LED와 상기 제 1 하드 디스크 이상 표시 LED는 발광 색상이 상이하고, 상기 제 2 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 이상 표시 LED는 발광 색상이 상이할 수 있다.In the hard disk status display system of the server using the serial port according to the embodiment, the first hard disk normal display LED and the first hard disk abnormal display LED have different luminescence colors, and the second hard disk normal display The LED and the second hard disk abnormality display LED may have different emission colors.

상기의 목적을 달성하기 위해 본 발명의 다른 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 방법은 프로세서가 제 1, 2 하드 디스크의 상태가 기록된 상태 보고 파일을 읽기 모드로 오픈하는 단계(S10); 상기 프로세서가 상기 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출하는 단계(S20); 상기 프로세서가 상태 보고 파일을 닫는 단계(S30); 상기 프로세서가 상기 서버의 직렬포트(P)를 오픈하는 단계(S40); 상기 프로세서가 상기 직렬포트가 사용중 인지의 여부를 결정하는 단계(S50); 상기 직렬포트 사용여부 결정단계(S50)에서 상기 직렬포트가 사용중이 아닐 경우, 상기 프로세서가 상기 제 1, 2 하드 디스크 가동상태 데이터를 상기 직렬포트로 출력하는 단계(S60); 상기 프로세서가 상기 직렬포트를 닫는 단계(S70); 마이크로컨트롤러가 구동전원이 인가되면 하드웨어를 초기화하는 단계(S80); 상기 마이크로컨트롤러가 초기화 스위치가 온 동작되는 지의 여부를 결정하는 단계(S90); 상기 초기화 스위치 온 동작 여부 결정 단계(S90)에서 상기 초기화 스위치가 오프 동작되면, 상기 마이크로컨트롤러가 통신포트의 상태를 판독하는 단계(S100); 상기 마이크로컨트롤러가 상기 제 1, 2 하드 디스크 가동상태 데이터가 수신되는지의 여부를 결정하는 단계(S110); 상기 제 1, 2 하드 디스크 가동상태 데이터 수신 여부 결정 단계(S110)에서, 상기 제 1, 2 하드 디스크 가동상태 데이터가 수신되면, 상기 마이크로컨트롤러가 상기 통신포트로부터 상기 제 1, 2 하드 디스크 가동상태 데이터를 읽어들이는 단계(S120); 상기 마이크로컨트롤러가 LED 표시 데이터를 조립하는 단계(S130); 상기 마이크로컨트롤러가 조립된 상기 LED 표시 데이터를 상기 제 1 하드 디스크 정상 표시 LED(260), 제 1 하드 디스크 이상 표시 LED(260'), 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')에 출력하여 이들 LED의 동작을 제어하는 단계(S140); 상기 마이크로컨트롤러가 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 있는 지의 여부를 결정하는 단계(S150); 및 상기 제 1, 2 하드 디스크 이상 여부 결정 단계(S150)에서 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면, 상기 마이크로컨트롤러가 버저(230)를 작동시켜 알람 소리를 발생하고 상기 초기화 스위치 온 동작 여부 결정 단계(S90)로 진행되는 단계(S160);를 포함하는 것을 특징으로 한다.In order to achieve the above object, a method for displaying a hard disk status of a server using a serial port according to another embodiment of the present invention includes, by a processor, opening a status report file in which the status of the first and second hard disks are recorded in a read mode. (S10); Extracting, by the processor, first and second hard disk operation status data in the status report file (S20); The processor closing the status report file (S30); The processor opening the serial port (P) of the server (S40); Determining, by the processor, whether the serial port is in use (S50); If the serial port is not in use in the determining whether to use the serial port (S50), the processor outputs the first and second hard disk operation status data to the serial port (S60); The processor closing the serial port (S70); Initializing the hardware when the driving power is applied by the microcontroller (S80); Determining, by the microcontroller, whether an initialization switch is turned on (S90); When the initialization switch is turned off in the initialization switch-on operation determining step (S90), the microcontroller reading a state of the communication port (S100); Determining, by the microcontroller, whether the first and second hard disk operation status data are received (S110); In the step of determining whether to receive the first and second hard disk operation state data (S110), when the first and second hard disk operation state data are received, the microcontroller performs the first and second hard disk operation states from the communication port. Reading data (S120); Assembling the LED display data by the microcontroller (S130); The first hard disk normal display LED 260, the first hard disk abnormal display LED 260', the second hard disk normal display LED 270 and the second hard disk display the LED display data on which the microcontroller is assembled. Outputting the abnormality display LED 270' to control the operation of these LEDs (S140); Determining, by the microcontroller, whether at least one of the first and second hard disks has an error (S150); And when an error occurs in at least one of the first and second hard disks in the step S150 of determining whether the first and second hard disks are abnormal, the microcontroller operates the buzzer 230 to generate an alarm sound, and the initialization It characterized in that it comprises a; step (S160) proceeds to the switch-on operation determination step (S90).

상기 다른 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 방법은, 상기 초기화 스위치 온 동작 여부 결정 단계(S90)에서 상기 초기화 스위치가 온 동작되면, 상기 마이크로컨트롤러가 상기 제 1 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 정상 표시 LED를 점등시켜 초기화시키는 단계(S170); 상기 마이크로컨트롤러가 상기 버저를 오프 동작시키는 단계(S180); 상기 마이크로컨트롤러가 디바운스 처리를 하는 단계(S190); 상기 마이크로컨트롤러가 초기화 스위치가 온 동작되는 지의 여부를 결정하는 단계(S200); 및 상기 초기화 스위치 온 동작 여부 결정 단계(S200)에서 상기 초기화 스위치가 오프 동작되면, 상기 마이크로컨트롤러가 디바운스 처리를 한 후, 상기 초기화 스위치 온 동작 여부 결정 단계(S90)으로 진행하는 단계(S210);를 더 포함할 수 있다.In the method for displaying the status of the hard disk of the server using the serial port according to another embodiment, when the initialization switch is turned on in the step (S90) of determining whether the initialization switch is turned on, the microcontroller displays the first hard disk normally. Initializing by lighting the LED and the second hard disk normal display LED (S170); Turning off the buzzer by the microcontroller (S180); The microcontroller performing a debounce process (S190); Determining, by the microcontroller, whether an initialization switch is turned on (S200); And if the initialization switch is turned off in the initial switch-on operation determining step (S200), the microcontroller performs a debounce process, and then proceeds to the initial switch-on operation determining step (S90) (S210). It may further include;

상기 다른 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 방법에 있어서, 상기 LED 표시 데이터 조립 단계(S130)는 상기 마이크로컨트롤러에 의해 상기 제 1 하드 디스크 상태 데이터가 정상 상태인지의 여부가 결정되는 단계(S131); 상기 제 1 하드 디스크 상태 데이터가 정상 상태이면, 상기 마이크로컨트롤러가 제 1 하드 디스크 정상 표시 LED를 켜도록 데이터를 구성하는 단계(S132); 상기 마이크로컨트롤러에 의해 상기 제 2 하드 디스크 상태 데이터가 정상 상태인지의 여부가 결정되는 단계(S133); 및 상기 제 2 하드 디스크 상태 데이터가 정상 상태이면, 상기 마이크로컨트롤러가 제 2 하드 디스크 정상 표시 LED를 켜도록 데이터를 구성하는 단계(S134);를 포함할 수 있다.In the method for displaying a hard disk status of a server using a serial port according to another embodiment, the step of assembling the LED display data (S130) determines whether the first hard disk status data is in a normal state by the microcontroller. The step (S131); If the first hard disk state data is in a normal state, configuring the data so that the microcontroller turns on the first hard disk normal display LED (S132); Determining whether the second hard disk state data is in a normal state by the microcontroller (S133); And if the second hard disk state data is in a normal state, configuring the data so that the microcontroller turns on the second hard disk normal display LED (S134).

상기 다른 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 방법은 상기 제 1 하드 디스크 상태 데이터 정상 상태 여부 결정 단계(S131)에서, 상기 제 1 하드 디스크 상태 데이터가 이상 상태이면, 상기 마이크로컨트롤러가 제 1 하드 디스크 이상 표시 LED를 켜도록 데이터를 구성하는 단계(S135)를 더 포함할 수 있다.In the method for displaying a hard disk status of a server using a serial port according to another embodiment, in the step of determining whether the first hard disk status data is in a normal status (S131), if the first hard disk status data is an abnormal status, the microcontroller The step of configuring data to turn on the first hard disk abnormality LED (S135) may be further included.

상기 다른 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 방법은 상기 제 2 하드 디스크 상태 데이터 정상 상태 여부 결정 단계(S133)에서, 상기 제 2 하드 디스크 상태 데이터가 이상 상태이면, 상기 마이크로컨트롤러가 제 2 하드 디스크 이상 표시 LED를 켜도록 데이터를 구성하는 단계(S136)를 더 포함할 수 있다.In the method for displaying a hard disk status of a server using a serial port according to another embodiment, in the step of determining whether the second hard disk status data is in a normal status (S133), if the second hard disk status data is in an abnormal status, the microcontroller The step of configuring the data to turn on the second hard disk abnormality LED (S136) may be further included.

본 발명의 실시형태에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템 및 방법에 의하면, 프로세서가 제 1, 2 하드 디스크의 상태를 기록하는 상태 보고 파일을 읽기 모드로 오픈하여 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출한 후 상태 보고 파일을 닫고, 상기 서버의 직렬포트를 오픈하여 상기 직렬포트가 사용중 인지의 여부를 결정하고 사용중이 아닐 경우 상기 제 1, 2 하드 디스크 가동상태 데이터를 상기 직렬포트로 출력하고, 상기 직렬포트를 닫고; 표시 장치가 상기 프로세서와 상기 직렬포트를 통해 연결되고, 상기 제 1, 2 하드 디스크 가동상태 데이터를 통신포트를 통해 읽어들여 LED 표시 데이터를 조립하고, 조립된 상기 LED 표시 데이터에 기초하여 상기 제 1, 2 하드 디스크의 가동 상태를 표시하도록 구성됨으로써, 최소한의 하드웨어를 이용해 하드웨어 RAID와 동일하게 관리자에게 하드 디스크 장치의 상태를 즉시 알릴 수 있으며, 병렬포트를 이용하는 방법에 비해 융통성이 우수하다는 뛰어난 효과가 있다.According to the system and method for displaying hard disk status of a server using a serial port according to an embodiment of the present invention, a processor opens a status report file for recording the status of the first and second hard disks in a read mode, 1, 2 After extracting the hard disk operation status data, close the status report file, open the serial port of the server to determine whether the serial port is in use, and if not in use, the first and second hard disk operation status data Output to the serial port, and close the serial port; A display device is connected to the processor through the serial port, and the first and second hard disk operation state data are read through a communication port to assemble LED display data, and the first and second display data are based on the assembled LED display data. , 2 As it is configured to display the operating status of the hard disk, it is possible to immediately inform the administrator of the status of the hard disk device by using a minimum of hardware, just like a hardware RAID, and has an excellent effect of excellent flexibility compared to the method using a parallel port. have.

도 1은 종래의 하드웨어 RAID의 동작을 표시하는 장치의 예를 나타낸 도면이다.
도 2는 본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템의 상세회로도로서, (a)는 시스템의 상세회로도이고, (b)는 LED의 배치 예를 나타낸 도면이다.
도 3은 하드 디스크들의 상태를 기록한 특정한 파일(mdstat 파일)의 예를 나타낸 도면이다.
도 4a, 4b, 4c는 본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템을 이용한, 하드 디스크 상태 표시 방법을 설명하기 위한 플로우챠트이다.
도 5은 도 3의 보고 데이터 조립 단계(S130)에 대한 상세 플로우챠트이다.
도 6은 도 3의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템에 대한 실험장치와 동작상태를 나타낸 도면이다.
1 is a diagram showing an example of a device for displaying the operation of a conventional hardware RAID.
2 is a detailed circuit diagram of a hard disk status display system of a server using a serial port according to an embodiment of the present invention, (a) is a detailed circuit diagram of the system, and (b) is a diagram showing an arrangement example of LEDs.
3 is a diagram showing an example of a specific file (mdstat file) recording the status of hard disks.
4A, 4B, and 4C are flowcharts illustrating a method of displaying a hard disk status using a system for displaying a hard disk status of a server using a serial port according to an embodiment of the present invention.
5 is a detailed flowchart of the report data assembly step (S130) of FIG. 3.
6 is a diagram showing an experimental apparatus and an operating state of the system for displaying a hard disk status of a server using a serial port according to the embodiment of FIG.

본 발명의 실시예를 설명함에 있어서, 본 발명과 관련된 공지기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략하기로 한다. 그리고 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다. 상세한 설명에서 사용되는 용어는 단지 본 발명의 실시예를 기술하기 위한 것이며, 결코 제한적으로 해석되어서는 안 된다. 명확하게 달리 사용되지 않는 한, 단수 형태의 표현은 복수 형태의 의미를 포함한다. 본 설명에서, "포함" 또는 "구비"와 같은 표현은 어떤 특성들, 숫자들, 단계들, 동작들, 요소들, 이들의 일부 또는 조합을 가리키기 위한 것이며, 기술된 것 이외에 하나 또는 그 이상의 다른 특성, 숫자, 단계, 동작, 요소, 이들의 일부 또는 조합의 존재 또는 가능성을 배제하는 것으로 해석되어서는 안 된다.In describing the embodiments of the present invention, when it is determined that a detailed description of known technologies related to the present invention may unnecessarily obscure the subject matter of the present invention, a detailed description thereof will be omitted. In addition, terms to be described later are terms defined in consideration of functions in the present invention, which may vary depending on the intention or custom of users or operators. Therefore, the definition should be made based on the contents throughout this specification. The terms used in the detailed description are only for describing the embodiments of the present invention and should not be construed as limiting. Unless explicitly used otherwise, expressions in the singular form include the meaning of the plural form. In this description, expressions such as "comprising" or "feature" are intended to refer to certain features, numbers, steps, actions, elements, some or combination thereof, and one or more other than those described. It should not be construed as excluding the presence or possibility of other features, numbers, steps, actions, elements, any part or combination thereof.

도면에서 도시된 각 시스템에서, 몇몇 경우에서의 요소는 각각 동일한 참조 번호 또는 상이한 참조 번호를 가져서 표현된 요소가 상이하거나 유사할 수가 있음을 시사할 수 있다. 그러나 요소는 상이한 구현을 가지고 본 명세서에서 보여지거나 기술된 시스템 중 몇몇 또는 전부와 작동할 수 있다. 도면에서 도시된 다양한 요소는 동일하거나 상이할 수 있다. 어느 것이 제1 요소로 지칭되는지 및 어느 것이 제2 요소로 불리는지는 임의적이다.In each of the systems shown in the drawings, the elements in some cases each have the same reference number or a different reference number, suggesting that the elements represented may be different or similar. However, elements may have different implementations and operate with some or all of the systems shown or described herein. The various elements shown in the figures may be the same or different. Which is referred to as the first element and which is referred to as the second element is arbitrary.

본 명세서에서 어느 하나의 구성요소가 다른 구성요소로 데이터 또는 신호를 '전송', '전달' 또는 '제공'한다 함은 어느 한 구성요소가 다른 구성요소로 직접 데이터 또는 신호를 전송하는 것은 물론, 적어도 하나의 또 다른 구성요소를 통하여 데이터 또는 신호를 다른 구성요소로 전송하는 것을 포함한다.In the present specification, "transmitting", "transmitting" or "providing" data or signals by one component to another component means that one component directly transmits data or signals to another component, as well as It includes transmitting data or signals to other components through at least one other component.

이하, 본 발명의 실시예를 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

도 2는 본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템의 상세회로도로서, (a)는 시스템의 상세회로도이고, (b)는 LED의 배치 예를 나타낸 도면이다.2 is a detailed circuit diagram of a hard disk status display system of a server using a serial port according to an embodiment of the present invention, (a) is a detailed circuit diagram of the system, and (b) is a diagram showing an arrangement example of LEDs.

본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템은, 도 2에 도시된 바와 같이, 프로세서(100), 및 프로세서(100)와 서버(S)의 직렬포트(P)를 통해 연결된 표시 장치(200)를 포함한다.In the hard disk status display system of a server using a serial port according to an embodiment of the present invention, as shown in FIG. 2, the processor 100 and the serial port P of the processor 100 and the server S are connected to each other. It includes a display device 200 connected through.

프로세서(100)는 서버(S)에 포함되고, 제 1, 2 하드 디스크의 상태가 기록된 상태 보고 파일을 읽기 모드로 오픈하여 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출한 후 상태 보고 파일을 닫고, 서버(S)의 직렬포트(P)를 오픈하여 직렬포트(P)가 사용중 인지의 여부를 결정하고 사용중이 아닐 경우 제 1, 2 하드 디스크 가동상태 데이터를 직렬포트(P)로 출력하고, 직렬포트(P)를 닫는 역할을 한다.The processor 100 is included in the server S and opens the status report file in which the status of the first and second hard disks are recorded in a read mode, and extracts the first and second hard disk operation status data in the status report file. Close the report file and open the serial port (P) of the server (S) to determine whether the serial port (P) is in use, and if it is not in use, the first and second hard disk operation status data are transferred to the serial port (P). It outputs to and closes the serial port (P).

프로세서(100)는 서버(S)의 직렬포트(P)를 통해 표시 장치(200)와 연결되어 표시 장치(200)의 점등 및 소등 동작을 제어한다.The processor 100 is connected to the display device 200 through the serial port P of the server S and controls the on and off operations of the display device 200.

한편, 직렬포트(P)가 설치되지 않은 서버의 경우에는 USB를 통해 직렬포트를 출력하는 모듈을 이용할 수 있으므로 병렬포트를 이용하는 방법에 비해 융통성이 우수하다.On the other hand, in the case of a server in which the serial port (P) is not installed, a module that outputs the serial port through USB can be used, so it is more flexible than the method using the parallel port.

하드 디스크의 상태가 기록된 상태 보고 파일은, 도 3에 예시된 바와 같이, 특정한 파일(mdstat라는 이름의 파일)로서 제 1, 2 하드 디스크의 상태가 기록되어 있다.The status report file in which the status of the hard disk is recorded, as illustrated in FIG. 3, is a specific file (a file named mdstat), and the status of the first and second hard disks is recorded.

화살표 ⓐ 및 ⓑ로 표시된 부분이 제 1, 2 하드 디스크의 상태를 나타내며, 각각 다음과 같은 의미를 가진다.The parts indicated by arrows ⓐ and ⓑ indicate the status of the first and second hard disks, respectively, and have the following meanings.

ⓐ 라인Ⓐ line

md0: 2개의 하드 디스크(즉, 제 1, 2 하드 디스크)가 md0라는 이름으로 함께 묶여 있음을 나타낸다. 즉, 사용자가 md0라는 이름의 가상적인 하드 디스크에 데이터를 기록하면, 사실은 md0를 구성하고 있는 각각의 하드 디스크에 모두 기록된다.md0: Indicates that two hard disks (ie, the first and second hard disks) are bound together under the name md0. That is, when a user writes data to a virtual hard disk named md0, it is actually all recorded on each hard disk constituting md0.

active raid1 hdc1[0] hdd1[1]: hdc1이라는 하드 디스크(제 1 하드 디스크)(일렬번호 [0])와 hdd1이라는 하드 디스크(제 2 하드 디스크)(일렬번호 [1]) 2개가 raid1(RAID Level-1)로서 가동상태에 있음을 뜻한다. 만약 2개의 하드 디스크 중 이상이 발생한 것이 있다면 그 장치명은 이 리스트에서 제거되어 나타난다.active raid1 hdc1[0] hdd1[1]: two hard disks named hdc1 (first hard disk) (serial number [0]) and hdd1 (second hard disk) (serial number [1]) are raid1( RAID Level-1), which means it is in operation. If any of the two hard disks have a problem, the device name is removed from this list and displayed.

ⓑ 라인Ⓑ line

숫자: 117218176Number: 117218176

하드 디스크의 용량을 블록 단위로 나타낸 것(블록은 RAID로 묶여 데이터가 기록되는 단위)이다.It represents the capacity of the hard disk in block units (a block is a unit in which data is recorded by being bundled with RAID).

[2/2]: 제 1, 2 하드 디스크가 모두 정상 가동 중임을 나타낸다.[2/2]: Indicates that both the first and second hard disks are operating normally.

[UU]: 제 1, 2 하드 디스크 가동상태 데이터로서, 제 1, 2 하드 디스크(hdc1, hdd1)가 모두 정상일 경우 [UU]로 표시되고, 제 1, 2 하드 디스크(hdc1, hdd1) 중 제 1 하드 디스크(hdc1)에 이상이 발생한 경우 [_U]로, 제 2 하드 디스크(hdd1)에 이상이 발생한 경우 [U_]로 이상 유무가 표시된다.[UU]: This is the first and second hard disk operation status data. When both the first and second hard disks (hdc1, hdd1) are normal, [UU] is displayed, and the first and second hard disks (hdc1, hdd1) 1 When an error occurs in the hard disk (hdc1), [_U] is displayed, and when an error occurs in the second hard disk (hdd1), [U_] is displayed.

이상의 각종 정보들 중 최종적으로는 ⓑ라인 마지막의 [UU]라는 것이 가장 중요하며, under-bar 표시로 되어 있으면 해당 장치에 이상이 있음을 확인할 수 있다.Of the various types of information above, the [UU] at the end of the ⓑ line is the most important. If it is marked under-bar, it can be confirmed that there is a problem with the corresponding device.

여기서, 식별부호 D는 하드 디스크 가동상태 데이터를 나타내고, D1은 1번 데이터를 나타내고, D2는 2번 데이터를 나타낸다.Here, the identification code D represents the hard disk operation state data, D1 represents the first data, and D2 represents the second data.

표시 장치(200)는 프로세서(100)와 서버(S)의 직렬포트(P)를 통해 연결되어 프로세서(100)로부터 제 1, 2 하드 디스크 가동상태 데이터를 통신포트를 통해 읽어들여 LED 표시 데이터를 조립하고, 조립된 LED 표시 데이터에 기초하여 제 1, 2 하드 디스크의 가동 상태를 표시하는 역할을 한다.The display device 200 is connected to the processor 100 through the serial port (P) of the server (S) and reads the first and second hard disk operation status data from the processor 100 through a communication port to obtain LED display data. It is assembled and serves to display the operating states of the first and second hard disks based on the assembled LED display data.

표시 장치(200)는, 도 2에 도시된 바와 같이, 커넥터(210)를 통해 전선으로 서버(S)와 접속된다. As shown in FIG. 2, the display device 200 is connected to the server S through a wire through a connector 210.

이와 같이, 표시 장치(200)는 서버(S)와 별도의 장치로 구성되므로 설치와 유지보수가 매우 쉽고, 위치를 자유롭게 변경할 수 있으며, 특히 서버(S) 전면에 표시 장치(200)를 배치하면 서버(S)의 하드 디스크 상태를 직관적으로 관찰할 수 있다. As described above, since the display device 200 is configured as a separate device from the server S, installation and maintenance are very easy, and the location can be freely changed. In particular, if the display device 200 is disposed in front of the server S The hard disk status of the server S can be intuitively observed.

표시 장치(200)는 커넥터(210), 변환기(220), 버저(230), 초기화 스위치(240), 제 1 하드 디스크 정상 표시 LED(260), 제 1 하드 디스크 이상 표시 LED(260'), 제 2 하드 디스크 정상 표시 LED(270), 제 2 하드 디스크 이상 표시 LED(270'), 저항(R1), 저항(R2), 및 마이크로컨트롤러(250)를 포함한다.The display device 200 includes a connector 210, a converter 220, a buzzer 230, an initialization switch 240, a first hard disk normal display LED 260, a first hard disk abnormal display LED 260', A second hard disk normal display LED 270, a second hard disk abnormal display LED 270', a resistor R1, a resistor R2, and a microcontroller 250 are included.

커넥터(210)는 서버(S)의 직렬포트(P)로부터 직렬 데이터(특히, 제 1, 2 하드 디스크 가동상태 데이터)를 공급받는 커넥터로서, 서버(S)에서 USB 포트를 경유한 직렬포트로부터 공급받을 수도 있다. The connector 210 is a connector that receives serial data (especially, first and second hard disk operation status data) from the serial port P of the server S, from the serial port via the USB port in the server S. It can also be supplied.

커넥터(210)는 예컨대, RS-232C 커넥터로 구성할 수 있다.The connector 210 can be configured as, for example, an RS-232C connector.

변환기(220)는 직렬포트(P)의 전압(예컨대, RS-232C 전압)을 기설정된 레벨의 전압(마이크로컨트롤러에서 필요로 하는 레벨의 전압)으로 변환하는 역할을 한다. The converter 220 serves to convert the voltage (eg, RS-232C voltage) of the serial port P into a voltage of a preset level (a voltage of a level required by the microcontroller).

변환기(220)는 예컨대, 커넥터(210)로부터 수신되는 ㅁ12V 전압 레벨의 신호를 0V와 +5V의 전압으로 변환한다.The converter 220 converts, for example, a 12V voltage level signal received from the connector 210 into voltages of 0V and +5V.

버저(230)는 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면 알람 소리를 발생함으로써 관리자에게 적극적으로 알리는 역할을 한다.The buzzer 230 plays a role of actively notifying an administrator by generating an alarm sound when an abnormality occurs in one or more of the first and second hard disks.

초기화 스위치(240)는 온동작되면 표시 장치(200)를 초기화하고 버저(230)의 구동을 중단하는 역할을 한다.When the initialization switch 240 is turned on, it initializes the display device 200 and stops driving of the buzzer 230.

초기화 스위치(240)는 관리자가 이상 상황을 인지하고 서버(S)를 관리하기 전에 본 발명의 하드 디스크 상태 표시 시스템을 초기화하기 위한 것이다. 본 발명의 하드 디스크 상태 표시 시스템은 서버(S)와 별개로 구성된 것이므로, 서버(S)를 관리하기 위해 서버(S)의 전원을 오프하면 버저(230)는 서버(S)로부터 정상이라는 신호가 도달하기 전까지 계속 알람 소리를 울리기 때문에 관리자가 이를 정지시키기 위함이다.The initialization switch 240 is for initializing the hard disk status display system of the present invention before the administrator recognizes the abnormal situation and manages the server S. Since the hard disk status display system of the present invention is configured separately from the server (S), when the power of the server (S) is turned off in order to manage the server (S), the buzzer 230 receives a normal signal from the server (S). This is because the alarm keeps sounding until it arrives, so the administrator stops it.

제 1 하드 디스크 정상 표시 LED(260) 및 제 1 하드 디스크 이상 표시 LED(260')는 점등시 제 1 하드 디스크의 정상 상태 및 이상 상태 각각을 표시하는 역할을 한다.When the first hard disk normal display LED 260 and the first hard disk abnormal display LED 260' are lit, each of the normal and abnormal states of the first hard disk is displayed.

제 1 하드 디스크 정상 표시 LED(260)와 제 1 하드 디스크 이상 표시 LED(260')는 발광 색상이 상이하다. 즉, 도 2b에 예시된 바와 같이, 제 1 하드 디스크 정상 표시 LED(260)는 녹색(G) LED를 사용할 수 있고, 제 1 하드 디스크 이상 표시 LED(260')는 적색(R) LED를 사용할 수 있다.The first hard disk normal display LED 260 and the first hard disk abnormality display LED 260' have different emission colors. That is, as illustrated in FIG. 2B, the first hard disk normal display LED 260 may use a green (G) LED, and the first hard disk abnormal display LED 260' uses a red (R) LED. I can.

제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')는 점등시 제 2 하드 디스크의 정상 상태 및 이상 상태 각각을 표시하는 역할을 한다.When the second hard disk normal display LED 270 and the second hard disk abnormal display LED 270' are lit, each of the normal and abnormal states of the second hard disk is displayed.

제 2 하드 디스크 정상 표시 LED(270)와 제 2 하드 디스크 이상 표시 LED(270')는 발광 색상이 상이하다. 즉, 도 2b에 예시된 바와 같이, 제 2 하드 디스크 정상 표시 LED(270)는 녹색(G) LED를 사용할 수 있고, 제 2 하드 디스크 이상 표시 LED(270')는 적색(R) LED를 사용할 수 있다.The second hard disk normal display LED 270 and the second hard disk abnormality display LED 270' have different emission colors. That is, as illustrated in FIG. 2B, the second hard disk normal display LED 270 may use a green (G) LED, and the second hard disk abnormal display LED 270' uses a red (R) LED. I can.

저항(R1)은 일측이 제 1 하드 디스크 정상 표시 LED(260) 및 제 1 하드 디스크 이상 표시 LED(260')와 연결되고, 타측이 접지되어 있다.One side of the resistor R1 is connected to the first hard disk normal display LED 260 and the first hard disk abnormal display LED 260', and the other side is grounded.

저항(R2)는 일측이 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')와 연결되고, 타측이 접지되어 있다One side of the resistor R2 is connected to the second hard disk normal display LED 270 and the second hard disk abnormal display LED 270', and the other side is grounded.

마이크로컨트롤러(250)는 통신포트를 통해 제 1, 2 하드 디스크 가동상태 데이터를 수신하여 표시 장치(200) 전체를 제어하는 역할을 한다.The microcontroller 250 serves to control the entire display device 200 by receiving operation status data of the first and second hard disks through a communication port.

좀 더 상세하게는, 마이크로컨트롤러(250)는 구동전원이 인가되면 하드웨어를 초기화하고, 초기화 스위치(240)가 오프 동작되면 통신포트의 상태를 판독하여 제 1, 2 하드 디스크 가동상태 데이터가 수신되는지의 여부를 결정하여서 수신되면, 통신포트로부터 제 1, 2 하드 디스크 가동상태 데이터를 읽어들여 LED 표시 데이터를 조립하고, 조립된 LED 표시 데이터를 제 1 하드 디스크 정상 표시 LED(260), 제 1 하드 디스크 이상 표시 LED(260'), 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')에 출력하여 이들 LED의 동작을 제어하고, 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면 버저(230)를 작동시켜 알람 소리를 발생한다. In more detail, the microcontroller 250 initializes the hardware when the driving power is applied, and when the initialization switch 240 is turned off, it reads the state of the communication port to determine whether the first and second hard disk operation state data are received. When it is determined and received, the first and second hard disk operation status data are read from the communication port to assemble the LED display data, and the assembled LED display data is transferred to the first hard disk normal display LED 260 and the first hard disk. The operation of these LEDs is controlled by outputting to the disk abnormality display LED 260', the second hard disk normal display LED 270, and the second hard disk abnormality display LED 270', and one of the first and second hard disks. When an abnormality occurs in the abnormality, the buzzer 230 is operated to generate an alarm sound.

마이크로컨트롤러(250)는 초기화 스위치(240)가 온 동작되면 제 1 하드 디스크 정상 표시 LED(260) 및 제 2 하드 디스크 정상 표시 LED(270)를 점등시켜 초기화시킨 후 버저(230)를 오프 동작시키고 디바운스(Debounce) 처리를 한다.When the initialization switch 240 is turned on, the microcontroller 250 initializes by turning on the first hard disk normal display LED 260 and the second hard disk normal display LED 270, and then turns off the buzzer 230. Debounce processing.

한편, 위의 설명에서는 제 1 하드 디스크 정상 표시 LED(260)와 제 1 하드 디스크 이상 표시 LED(260')를 녹색(G) LED 및 적색(R) LED와 같이 상이한 색상으로 발광하는 LED 2개로 구성하였으나, 대신 2색으로 발광하는 2색 LED 1개로 구성할 수도 있다. Meanwhile, in the above description, the first hard disk normal display LED 260 and the first hard disk abnormal display LED 260' are two LEDs that emit light in different colors, such as a green (G) LED and a red (R) LED. It was configured, but instead, it may be configured with one two-color LED that emits light in two colors.

한편, 위의 설명에서는 제 2 하드 디스크 정상 표시 LED(270)와 제 2 하드 디스크 이상 표시 LED(270')를 녹색(G) LED 및 적색(R) LED와 같이 상이한 색상으로 발광하는 LED 2개로 구성하였으나, 대신 2색으로 발광하는 2색 LED 1개로 구성할 수도 있다. Meanwhile, in the above description, the second hard disk normal display LED 270 and the second hard disk abnormality display LED 270' are two LEDs that emit light in different colors, such as a green (G) LED and a red (R) LED. It was configured, but instead, it may be configured with one two-color LED that emits light in two colors.

상기와 같이 구성된 본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템을 이용한 하드 디스크 상태 표시 방법에 대해 설명하기로 한다.A method of displaying a hard disk status using a system for displaying a hard disk status of a server using a serial port according to an embodiment of the present invention configured as described above will be described.

도 4a, 4b, 4c는 본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템을 이용한, 하드 디스크 상태 표시 방법을 설명하기 위한 플로우챠트이고, 도 5는 도 3의 보고 데이터 조립 단계(S130)에 대한 상세 플로우챠트로서, 여기서 S는 스텝(step)을 의미한다.4A, 4B, and 4C are flow charts for explaining a method of displaying a hard disk status using a hard disk status display system of a server using a serial port according to an embodiment of the present invention, and FIG. 5 is a report data assembly of FIG. As a detailed flow chart for step S130, where S stands for step.

먼저, 프로세서(100)가 제 1, 2 하드 디스크의 상태를 기록하는 상태 보고 파일을 읽기 모드로 오픈(open)하고(S10), 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 탐색하여 추출한다(S20).First, the processor 100 opens a status report file for recording the status of the first and second hard disks in a read mode (S10), and searches the first and second hard disk operation status data in the status report file. Extract (S20).

다음, 프로세서(100)는 필요한 데이터를 모두 추출하였으므로 상태 보고 파일을 닫고(close)(S30), 서버(S)의 직렬포트(P)를 오픈한다(S40).Next, since the processor 100 has extracted all the necessary data, it closes the status report file (S30) and opens the serial port (P) of the server (S) (S40).

이어서, 프로세서(100)가 직렬포트(P)가 사용중 인지의 여부를 결정한다(S50).Subsequently, the processor 100 determines whether the serial port P is in use (S50).

만약, 상기 스텝(S50)에서 직렬포트(P)가 사용중일 경우(Y) 본 스텝(S50)을 반복수행한다. If the serial port (P) is being used in the step (S50) (Y), this step (S50) is repeated.

한편, 직렬포트(P)가 사용중이 아닐 경우(N), 프로세서(100)가 제 1, 2 하드 디스크 가동상태 데이터를 직렬포트(P)로 출력한 후(S60), 직렬포트(P)를 닫는다(S70).On the other hand, if the serial port (P) is not in use (N), the processor 100 outputs the first and second hard disk operation status data to the serial port (P) (S60), and then connects the serial port (P). Close (S70).

이어서, 마이크로컨트롤러(250)는 구동전원이 인가되면 하드웨어를 초기화하고(S80), 초기화 스위치(240)가 온 동작되는 지의 여부를 결정한다(S90).Subsequently, when the driving power is applied, the microcontroller 250 initializes the hardware (S80) and determines whether the initialization switch 240 is turned on (S90).

상기 스텝(S90)에서 초기화 스위치(240)가 오프 동작되면(N), 마이크로컨트롤러(250)는 통신포트의 상태를 판독하고(S100), 제 1, 2 하드 디스크 가동상태 데이터가 수신되는지의 여부를 결정한다(S110).When the initialization switch 240 is turned off (N) in the step S90, the microcontroller 250 reads the state of the communication port (S100), and whether the first and second hard disk operation status data are received. It is determined (S110).

상기 스텝(S110)에서 제 1, 2 하드 디스크 가동상태 데이터가 수신되지 않으면(N) 상기 스텝(S90)으로 진행된다.If the first and second hard disk operation status data are not received in step S110 (N), the process proceeds to step S90.

한편, 제 1, 2 하드 디스크 가동상태 데이터가 수신되면(Y), 마이크로컨트롤러(250)가 통신포트로부터 제 1, 2 하드 디스크 가동상태 데이터를 읽어들인다(S120).Meanwhile, when the first and second hard disk operation state data are received (Y), the microcontroller 250 reads the first and second hard disk operation state data from the communication port (S120).

다음, 마이크로컨트롤러(250)는 LED 표시 데이터를 조립한다(S130).Next, the microcontroller 250 assembles the LED display data (S130).

LED 표시 데이터를 조립과정에 대해 도 5를 참조하여 상세히 설명한다.The assembly process of the LED display data will be described in detail with reference to FIG. 5.

먼저, 마이크로컨트롤러(250)에 의해 제 1 하드 디스크 상태 데이터가 정상 상태인지의 여부가 결정된다(S131).First, it is determined whether the first hard disk state data is in a normal state by the microcontroller 250 (S131).

예컨대, 도 3에서 제 1 하드 디스크(hdc1)의 상태를 나타내는 1번 데이터(D1)가 'U'자인지 확인한다.For example, in FIG. 3, it is checked whether the number 1 data D1 representing the state of the first hard disk hdc1 is a'U'.

상기 스텝(S131)에서 제 1 하드 디스크 상태 데이터가 정상 상태이면(Y)[즉, 1번 데이터(D1)가 'U'자이면], 마이크로컨트롤러(250)가 제 1 하드 디스크 정상 표시 LED(260)를 켜도록 데이터를 구성한다(S132)[예컨대, 데이터 변수에 1을 대입한다. 즉, 2진수(0000 0001)로서 제 1 하드 디스크 정상 표시 LED(260)를 켜도록 데이터를 구성한다]. In the step S131, if the first hard disk state data is in a normal state (Y) (that is, if the first data D1 is a'U' character), the microcontroller 250 turns on the first hard disk normal display LED ( 260) is configured to turn on (S132) [for example, 1 is substituted for a data variable. That is, data is configured to turn on the first hard disk normal display LED 260 as a binary number (0000 0001)].

이어서, 마이크로컨트롤러(250)에 의해 상태 보고 파일 내의 제 2 하드 디스크 상태 데이터(D2)가 정상 상태인지의 여부가 결정된다(S133).Subsequently, it is determined whether or not the second hard disk status data D2 in the status report file is in a normal state by the microcontroller 250 (S133).

예컨대, 도 3에서 제 2 하드 디스크(hdd1)의 상태를 나타내는 2번 데이터(D2)가 'U'자인지 확인한다.For example, in FIG. 3, it is checked whether the number 2 data D2 representing the state of the second hard disk hdd1 is a'U'.

상기 스텝(S133)에서 제 2 하드 디스크 상태 데이터가 정상 상태이면(Y)[즉, 2번 데이터(D2)가 'U'자이면], 마이크로컨트롤러(250)가 제 2 하드 디스크 정상 표시 LED(270)를 켜도록 데이터를 구성한다(S134)[예컨대, 데이터 변수에 4를 덧셈한다. 즉, 2진수(0000 0100)를 덧셈하는 것으로서, 제 2 하드 디스크 정상 표시 LED(270)를 켜도록 데이터를 구성한다]. In the step S133, if the second hard disk state data is in a normal state (Y) (that is, if the second data D2 is'U'), the microcontroller 250 turns on the second hard disk normal display LED ( 270) is configured to turn on the data (S134) (for example, 4 is added to the data variable. That is, as the binary number (0000 0100) is added, data is configured to turn on the second hard disk normal display LED 270].

이때, 덧셈을 하는 것은 앞서 제 1 하드 디스크(hdc1)에 대한 표시 데이터가 이미 데이터 변수에 대입되어 있으므로 이에 영향을 주지 않으면서 데이터 변수의 3번 비트만 '1'로 설정하기 위함이다. In this case, the addition is performed in order to set only bit 3 of the data variable to '1' without affecting the display data of the first hard disk (hdc1) has already been assigned to the data variable.

한편, 상기 스텝(S131)에서, 제 1 하드 디스크 상태 데이터가 이상 상태이면(N)[즉, 1번 데이터(D1)가 'U'자가 아니면], 마이크로컨트롤러(250)가 제 1 하드 디스크 이상 표시 LED(260')를 켜도록 데이터를 구성한 후(S135)[예컨대, 데이터 변수에 2를 대입한다. 즉, 2진수(0000 0010)로서 제 1 하드 디스크 이상 표시 LED(260')를 켜도록 데이터를 구성한다], 스텝(S133)으로 진행된다.Meanwhile, in the step S131, if the first hard disk state data is in an abnormal state (N) (that is, if the first data D1 is not'U'), the microcontroller 250 is more than the first hard disk. After configuring the data to turn on the display LED 260' (S135) (for example, 2 is substituted for the data variable. That is, data is configured to turn on the first hard disk abnormality display LED 260' as a binary number (0000 0010)], and the process proceeds to step S133.

한편, 상기 스텝(S133)에서, 제 2 하드 디스크 상태 데이터가 이상 상태이면(N)[즉, 2번 데이터(D2)가 'U'자가 아니면], 마이크로컨트롤러(250)가 제 2 하드 디스크 이상 표시 LED(270')를 켜도록 데이터를 구성한다(S136)[예컨대, 데이터 변수에 8을 덧셈한다. 즉, 2진수(0000 1000)로서 제 2 하드 디스크 이상 표시 LED(270')를 켜도록 데이터를 구성한다].Meanwhile, in the step S133, if the second hard disk state data is in an abnormal state (N) (that is, if the second data D2 is not'U'), the microcontroller 250 is more than the second hard disk. Data is configured to turn on the display LED 270' (S136) (eg, 8 is added to the data variable. That is, the data is configured to turn on the second hard disk error display LED 270' as a binary number (0000 1000)].

다음, 마이크로컨트롤러(250)가 조립된 LED 표시 데이터를 제 1 하드 디스크 정상 표시 LED(260), 제 1 하드 디스크 이상 표시 LED(260'), 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')에 출력하여 이들 LED의 동작을 제어한다(S140).Next, the microcontroller 250 is assembled with the LED display data of the first hard disk normal display LED 260, the first hard disk abnormal display LED 260', the second hard disk normal display LED 270, and the second. The operation of these LEDs is controlled by outputting the hard disk abnormality indication LED 270' (S140).

이어서, 마이크로컨트롤러(250)가 제 1, 2 하드 디스크 중 하나 이상에 이상이 있는 지의 여부를 결정한다(S150).Subsequently, the microcontroller 250 determines whether there is an abnormality in at least one of the first and second hard disks (S150).

상기 스텝(S150)에서 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면(Y), 마이크로컨트롤러(250)가 버저(230)를 작동시켜 알람 소리를 발생하고(S160), 상기 스텝(S90)으로 진행된다.When an error occurs in at least one of the first and second hard disks in step S150 (Y), the microcontroller 250 operates the buzzer 230 to generate an alarm sound (S160), and the step S90 ).

한편, 상기 스텝(S90)에서 초기화 스위치가 온 동작되면(Y), 마이크로컨트롤러(250)가 제 1 하드 디스크 정상 표시 LED(260) 및 제 2 하드 디스크 정상 표시 LED(270)를 점등시켜 초기화시키고(S170), 버저(230)를 오프 동작시킨다(S180).On the other hand, when the initialization switch is turned on in step S90 (Y), the microcontroller 250 initializes by turning on the first hard disk normal display LED 260 and the second hard disk normal display LED 270. (S170), the buzzer 230 is turned off (S180).

이어서, 마이크로컨트롤러(250)가 디바운스 처리를 하고(S190), 초기화 스위치(240)가 온 동작되는 지의 여부를 결정한다(S200).Subsequently, the microcontroller 250 performs a debounce process (S190), and it is determined whether or not the initialization switch 240 is turned on (S200).

상기 스텝(S200)에서 초기화 스위치(240)가 오프 동작되면(N), 마이크로컨트롤러(250)가 디바운스 처리를 한 후(S210), 상기 스텝(S90)으로 진행된다.When the initialization switch 240 is turned off (N) in the step S200, the microcontroller 250 performs a debounce process (S210), and then the process proceeds to the step S90.

한편, 본 발명의 하드 디스크 상태 표시 방법을 구현한 프로세서 및 마이크로컨트롤러의 실행 방법은 서버(S)의 OS에서 타이머 설정에 의해 주기적으로, 예를 들어 1시간에 1회나 30분에 1회 등으로 실행하는 방법을 이용할 수 있다. 또는 하드 디스크를 관리하는 소프트-RAID가 가동될 때마다 직후에 함께 가동되어 상태 보고 파일을 감시할 수 있다. 그러나 만약 서버가 웹-서버로서 구성된 경우라면 계속적으로 홈-페이지 제공 서비스를 진행하므로 홈-페이지에 하드 디스크 상태를 표시하는 프로그램에 본 발명을 함께 적용한다면 더욱 큰 효과를 나타낼 수 있다. 홈-페이지에 하드 디스크 상태를 표시하는 프로그램은 홈-페이지에 하드 디스크 정보가 나타나므로 원격으로 확인이 가능하고, 사용자가 홈-페이지를 이용할 때마다 실행되기 때문에, 그때 본 발명의 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템이 함께 가동되면 관리자가 직접 홈-페이지를 확인하지 않더라도 표시 장치(200)에서 경고가 출력되므로 관리자에게 능동적으로 기기 상태를 알릴 수 있다.On the other hand, the execution method of the processor and the microcontroller implementing the method of displaying the hard disk status of the present invention is periodically, for example, once every hour or once every 30 minutes by setting a timer in the OS of the server S. You can use how to do it. Or, whenever the soft-RAID that manages the hard disk is activated, it can be activated immediately after each operation and monitor the status report file. However, if the server is configured as a web-server, the home-page providing service is continuously performed. Therefore, if the present invention is applied to a program that displays the status of the hard disk on the home-page, a greater effect can be obtained. The program that displays the status of the hard disk on the home-page can be checked remotely because the hard disk information is displayed on the home-page, and it is executed every time the user uses the home-page. When the server's hard disk status display system is operated together, a warning is output from the display device 200 even if the manager does not directly check the home-page, so that the manager can be actively informed of the device status.

도 6에 본 발명의 하드 디스크 상태 표시 시스템을 구성하고 실험한 결과를 나타내었다.6 shows the results of configuring and testing the hard disk status display system of the present invention.

도 6의 (a)에는 서버(S)의 2개 하드 디스크(제 1 하드 디스크 및 제 2 하드 디스크)들이 모두 정상임을 나타내고 있다.Fig. 6A shows that both hard disks (a first hard disk and a second hard disk) of the server S are normal.

도 6의 (b)는 서버(S)의 2개 하드 디스크 중 제 2 하드 디스크의 커넥터를 고의로 분리한 상태에서 확인한 것으로서, 제 2 하드 디스크의 상태를 나타내는 LED 중 적색이 켜짐으로서 이상이 발생했음을 알리고 있다.6(b) shows that the connector of the second hard disk of the two hard disks of the server S was deliberately disconnected, and an abnormality occurred as the red of the LEDs indicating the state of the second hard disk was lit. Informing.

이상의 과정에 의해 표시 장치(200)의 하드웨어 및 서버(S)의 프로세서(100)를 이용하여 하드 디스크 장치들의 상태를 관리자에게 능동적이면서 직관적으로 알릴 수 있음으로써, 고가의 하드웨어 RAID 시스템과 거의 동일한 기능을 갖출 수 있다. 따라서 오직 관리자가 상태 보고파일을 확인해야 오류 상황을 알 수 있었던 소프트-RAID 시스템의 단점을 보완함으로써 서버의 안정성 확보 효과와 관리자의 관리 효율을 크게 증대시킬 수 있는 장점이 있다.By using the hardware of the display device 200 and the processor 100 of the server S through the above process, the status of the hard disk devices can be actively and intuitively notified to the administrator, so that it has almost the same function as the expensive hardware RAID system. Can be equipped with. Therefore, there is an advantage that it can significantly increase the stability of the server and the management efficiency of the administrator by supplementing the shortcomings of the soft-RAID system, in which only the administrator must check the status report file to know the error situation.

상기와 같이 구성된 본 발명의 실시예에 의한 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템 및 방법에 의하면, 프로세서가 제 1, 2 하드 디스크의 상태를 기록하는 상태 보고 파일을 읽기 모드로 오픈하여 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출한 후 상태 보고 파일을 닫고, 상기 서버의 직렬포트를 오픈하여 상기 직렬포트가 사용중 인지의 여부를 결정하고 사용중이 아닐 경우 상기 제 1, 2 하드 디스크 가동상태 데이터를 상기 직렬포트로 출력하고, 상기 직렬포트를 닫고; 표시 장치가 상기 프로세서와 상기 직렬포트를 통해 연결되고, 상기 제 1, 2 하드 디스크 가동상태 데이터를 통신포트를 통해 읽어들여 LED 표시 데이터를 조립하고, 조립된 상기 LED 표시 데이터에 기초하여 상기 제 1, 2 하드 디스크의 가동 상태를 표시하도록 구성됨으로써, 최소한의 하드웨어를 이용해 하드웨어 RAID와 동일하게 관리자에게 하드 디스크 장치의 상태를 즉시 알릴 수 있으며, 병렬포트를 이용하는 방법에 비해 융통성이 우수하다.According to the system and method for displaying the hard disk status of the server using the serial port according to the embodiment of the present invention configured as described above, the processor opens a status report file for recording the status of the first and second hard disks in a read mode to After extracting the operation status data of the first and second hard disks in the report file, the status report file is closed, and the serial port of the server is opened to determine whether the serial port is in use, and if not in use, the first and second hard disks Outputting disk operation status data to the serial port, and closing the serial port; A display device is connected to the processor through the serial port, and the first and second hard disk operation state data are read through a communication port to assemble LED display data, and the first and second display data are based on the assembled LED display data. , 2 By being configured to display the operating status of the hard disk, it is possible to immediately inform the administrator of the status of the hard disk device by using a minimum amount of hardware, similar to the hardware RAID, and has excellent flexibility compared to the method using a parallel port.

도면과 명세서에는 최적의 실시예가 개시되었으며, 특정한 용어들이 사용되었으나 이는 단지 본 발명의 실시형태를 설명하기 위한 목적으로 사용된 것이지 의미를 한정하거나 특허 청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 수 있을 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.In the drawings and specification, an optimal embodiment has been disclosed, and specific terms are used, but these are used only for the purpose of describing the embodiments of the present invention, and are used to limit the meaning or the scope of the present invention described in the claims. Was not done. Therefore, those of ordinary skill in the art will appreciate that various modifications and equivalent other embodiments are possible therefrom. Therefore, the true technical scope of the present invention should be determined by the technical spirit of the appended claims.

S: 서버
100: 프로세서
P: 직렬포트
200: 표시 장치
210: 커넥터
220: 변환기
230: 버저
240: 초기화 스위치
250: 마이크로 컨트롤러
260: 제 1 하드 디스크 정상 표시 LED
260': 제 1 하드 디스크 이상 표시 LED
270: 제 2 하드 디스크 정상 표시 LED
270': 제 2 하드 디스크 이상 표시 LED
S: Server
100: processor
P: serial port
200: display device
210: connector
220: converter
230: buzzer
240: reset switch
250: microcontroller
260: 1st hard disk normal indication LED
260': 1st hard disk error indication LED
270: 2nd hard disk normal indication LED
270': 2nd hard disk error indication LED

Claims (8)

서버(S)내에 포함되고, 제 1, 2 하드 디스크의 상태가 기록된 상태 보고 파일을 읽기 모드로 오픈하여 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출한 후 상태 보고 파일을 닫고, 상기 서버의 직렬포트(P)를 오픈하여 상기 직렬포트가 사용중 인지의 여부를 결정하고 사용중이 아닐 경우 상기 제 1, 2 하드 디스크 가동상태 데이터를 상기 직렬포트로 출력하고, 상기 직렬포트를 닫도록 구성된 프로세서(100); 및
상기 프로세서와 상기 직렬포트를 통해 연결되고, 상기 제 1, 2 하드 디스크 가동상태 데이터를 통신포트를 통해 읽어들여 LED 표시 데이터를 조립하고, 조립된 상기 LED 표시 데이터에 기초하여 상기 제 1, 2 하드 디스크의 가동 상태를 표시하는 표시 장치(200)를 포함하는, 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템.
Open the status report file included in the server S, in which the status of the first and second hard disks are recorded, in a read mode, extract the first and second hard disk operation status data in the status report file, and close the status report file, Open the serial port (P) of the server to determine whether the serial port is in use, and if not in use, output the first and second hard disk operation status data to the serial port, and close the serial port. A configured processor 100; And
The first and second hard disks are connected to the processor through the serial port, and the first and second hard disk operation status data are read through a communication port to assemble LED display data, and the first and second hard disks are configured based on the assembled LED display data. A hard disk status display system of a server using a serial port, including a display device 200 that displays the operating status of the disk.
제 1 항에 있어서,
상기 표시 장치(200)는
상기 서버의 직렬포트(P)로부터 상기 제 1, 2 하드 디스크 가동상태 데이터를 공급받도록 구성된 커넥터(210)와;
상기 직렬포트의 전압을 기설정된 레벨의 전압으로 변환하도록 구성된 변환기(220)와;
상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면 알람 소리를 발생하도록 구성된 버저(230)와;
온동작되면 상기 표시 장치를 초기화하고 상기 버저의 구동을 중단하도록 구성된 초기화 스위치(240)와;
점등시 상기 제 1 하드 디스크의 정상 상태 및 이상 상태 각각을 표시하는 제 1 하드 디스크 정상 표시 LED(260) 및 제 1 하드 디스크 이상 표시 LED(260')와;
점등시 상기 제 2 하드 디스크의 정상 상태 및 이상 상태 각각을 표시하는 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')와;
일측은 상기 제 1 하드 디스크 정상 표시 LED(260) 및 제 1 하드 디스크 이상 표시 LED(260')와 연결되고, 타측은 접지되어 있는 저항(R1)과;
일측은 상기 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')와 연결되고, 타측은 접지되어 있는 저항(R2)과;
구동전원이 인가되면 하드웨어를 초기화하고, 상기 초기화 스위치가 오프 동작되면 통신포트의 상태를 판독하여 상기 제 1, 2 하드 디스크 가동상태 데이터가 수신되는지의 여부를 결정하여서 수신되면, 상기 통신포트로부터 상기 제 1, 2 하드 디스크 가동상태 데이터를 읽어들여 LED 표시 데이터를 조립하고, 조립된 상기 LED 표시 데이터를 상기 제 1 하드 디스크 정상 표시 LED(260), 제 1 하드 디스크 이상 표시 LED(260'), 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')에 출력하여 이들 LED의 동작을 제어하고, 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면 상기 버저(230)를 작동시켜 알람 소리를 발생하고, 상기 초기화 스위치가 온 동작되면 상기 제 1 하드 디스크 정상 표시 LED 및 제 2 하드 디스크 정상 표시 LED를 점등시켜 초기화시킨 후상기 버저를 오프 동작시키고 디바운스 처리를 하는 마이크로컨트롤러(250);를 포함하는, 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템.
The method of claim 1,
The display device 200 is
A connector 210 configured to receive the first and second hard disk operation status data from the serial port P of the server;
A converter 220 configured to convert the voltage of the serial port into a voltage of a preset level;
A buzzer 230 configured to generate an alarm sound when an abnormality occurs in at least one of the first and second hard disks;
An initialization switch 240 configured to initialize the display device and stop driving the buzzer when it is turned on;
A first hard disk normal display LED 260 and a first hard disk abnormal display LED 260 ′ respectively indicating a normal state and an abnormal state of the first hard disk when turned on;
A second hard disk normal display LED 270 and a second hard disk abnormal display LED 270 ′ respectively indicating a normal state and an abnormal state of the second hard disk when turned on;
A resistor R1 having one side connected to the first hard disk normal display LED 260 and the first hard disk abnormal display LED 260' and the other side grounded;
A resistor R2 having one side connected to the second hard disk normal display LED 270 and the second hard disk abnormal display LED 270', and the other side being grounded;
When driving power is applied, the hardware is initialized, and when the initialization switch is turned off, the state of the communication port is read to determine whether the first and second hard disk operation state data is received. The first and second hard disk operation status data are read to assemble the LED display data, and the assembled LED display data is converted into the first hard disk normal display LED 260, the first hard disk abnormal display LED 260', Outputs to the second hard disk normal display LED 270 and the second hard disk error display LED 270' to control the operation of these LEDs, and when an abnormality occurs in one or more of the first and second hard disks, the buzzer Activates 230 to generate an alarm sound, and when the initialization switch is turned on, the first hard disk normal display LED and the second hard disk normal display LED are lit to initialize, and the buzzer is turned off and the bounce is processed. A microcontroller 250 that includes; hard disk status display system of a server using a serial port.
제 2 항에 있어서,
상기 제 1 하드 디스크 정상 표시 LED(260)와 상기 제 1 하드 디스크 이상 표시 LED(260')는 발광 색상이 상이하고,
상기 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')는 발광 색상이 상이한, 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템.
The method of claim 2,
The first hard disk normal display LED 260 and the first hard disk abnormal display LED 260 ′ have different emission colors,
The second hard disk normal display LED 270 and the second hard disk abnormality display LED 270' have different luminescence colors, and a hard disk status display system of a server using a serial port.
제 2 항에 기재된 직렬포트를 이용한 서버의 하드 디스크 상태 표시 시스템을 이용한 하드 디스크 상태 표시 방법으로서,
프로세서(100)가 제 1, 2 하드 디스크의 상태가 기록된 상태 보고 파일을 읽기 모드로 오픈하는 단계(S10);
상기 프로세서가 상기 상태 보고 파일 내의 제 1, 2 하드 디스크 가동상태 데이터를 추출하는 단계(S20);
상기 프로세서가 상태 보고 파일을 닫는 단계(S30);
상기 프로세서가 상기 서버의 직렬포트(P)를 오픈하는 단계(S40);
상기 프로세서가 상기 직렬포트가 사용중 인지의 여부를 결정하는 단계(S50);
상기 직렬포트 사용여부 결정단계(S50)에서 상기 직렬포트가 사용중이 아닐 경우, 상기 프로세서가 상기 제 1, 2 하드 디스크 가동상태 데이터를 상기 직렬포트로 출력하는 단계(S60);
상기 프로세서가 상기 직렬포트를 닫는 단계(S70);
마이크로컨트롤러(250)가 구동전원이 인가되면 하드웨어를 초기화하는 단계(S80);
상기 마이크로컨트롤러가 초기화 스위치(240)가 온 동작되는 지의 여부를 결정하는 단계(S90);
상기 초기화 스위치 온 동작 여부 결정 단계(S90)에서 상기 초기화 스위치가 오프 동작되면, 상기 마이크로컨트롤러가 통신포트의 상태를 판독하는 단계(S100);
상기 마이크로컨트롤러가 상기 제 1, 2 하드 디스크 가동상태 데이터가 수신되는지의 여부를 결정하는 단계(S110);
상기 제 1, 2 하드 디스크 가동상태 데이터 수신 여부 결정 단계(S110)에서, 상기 제 1, 2 하드 디스크 가동상태 데이터가 수신되면, 상기 마이크로컨트롤러가 상기 통신포트로부터 상기 제 1, 2 하드 디스크 가동상태 데이터를 읽어들이는 단계(S120);
상기 마이크로컨트롤러가 LED 표시 데이터를 조립하는 단계(S130);
상기 마이크로컨트롤러가 조립된 상기 LED 표시 데이터를 상기 제 1 하드 디스크 정상 표시 LED(260), 제 1 하드 디스크 이상 표시 LED(260'), 제 2 하드 디스크 정상 표시 LED(270) 및 제 2 하드 디스크 이상 표시 LED(270')에 출력하여 이들 LED의 동작을 제어하는 단계(S140);
상기 마이크로컨트롤러가 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 있는 지의 여부를 결정하는 단계(S150); 및
상기 제 1, 2 하드 디스크 이상 여부 결정 단계(S150)에서 상기 제 1, 2 하드 디스크 중 하나 이상에 이상이 발생하면, 상기 마이크로컨트롤러가 버저(230)를 작동시켜 알람 소리를 발생하고 상기 초기화 스위치 온 동작 여부 결정 단계(S90)로 진행되는 단계(S160);를 포함하는 하드 디스크 상태 표시 방법.
A hard disk status display method using the server's hard disk status display system using the serial port according to claim 2, comprising:
Opening a status report file in which the status of the first and second hard disks are recorded in a read mode (S10);
Extracting, by the processor, first and second hard disk operation status data in the status report file (S20);
The processor closing the status report file (S30);
The processor opening the serial port (P) of the server (S40);
Determining, by the processor, whether the serial port is in use (S50);
If the serial port is not in use in the determining whether to use the serial port (S50), the processor outputs the first and second hard disk operation status data to the serial port (S60);
The processor closing the serial port (S70);
The microcontroller 250 initializing hardware when driving power is applied (S80);
Determining, by the microcontroller, whether the initialization switch 240 is turned on (S90);
When the initialization switch is turned off in the initialization switch-on operation determining step (S90), the microcontroller reading a state of the communication port (S100);
Determining, by the microcontroller, whether the first and second hard disk operation status data are received (S110);
In the step of determining whether to receive the first and second hard disk operation state data (S110), when the first and second hard disk operation state data are received, the microcontroller performs the first and second hard disk operation states from the communication port. Reading data (S120);
Assembling the LED display data by the microcontroller (S130);
The first hard disk normal display LED 260, the first hard disk abnormal display LED 260', the second hard disk normal display LED 270 and the second hard disk display the LED display data on which the microcontroller is assembled. Outputting the abnormality display LED 270' to control the operation of these LEDs (S140);
Determining, by the microcontroller, whether at least one of the first and second hard disks has an error (S150); And
When an error occurs in at least one of the first and second hard disks in the step S150 of determining whether the first and second hard disks are abnormal, the microcontroller operates the buzzer 230 to generate an alarm sound, and the initialization switch Hard disk status display method comprising a; step (S160) proceeds to the ON operation determination step (S90).
제 4 항에 있어서,
상기 초기화 스위치 온 동작 여부 결정 단계(S90)에서 상기 초기화 스위치가 온 동작되면,
상기 마이크로컨트롤러(250)가 상기 제 1 하드 디스크 정상 표시 LED(260) 및 제 2 하드 디스크 정상 표시 LED(270)를 점등시켜 초기화시키는 단계(S170);
상기 마이크로컨트롤러가 상기 버저를 오프 동작시키는 단계(S180);
상기 마이크로컨트롤러가 디바운스 처리를 하는 단계(S190);
상기 마이크로컨트롤러가 초기화 스위치(240)가 온 동작되는 지의 여부를 결정하는 단계(S200); 및
상기 초기화 스위치 온 동작 여부 결정 단계(S200)에서 상기 초기화 스위치가 오프 동작되면, 상기 마이크로컨트롤러가 디바운스 처리를 한 후, 상기 초기화 스위치 온 동작 여부 결정 단계(S90)으로 진행하는 단계(S210);를 더 포함하는 하드 디스크 상태 표시 방법.
The method of claim 4,
When the initialization switch is turned on in the initialization switch on operation determining step (S90),
Initializing by turning on the first hard disk normal display LED 260 and the second hard disk normal display LED 270 by the microcontroller 250 (S170);
Turning off the buzzer by the microcontroller (S180);
The microcontroller performing a debounce process (S190);
Determining, by the microcontroller, whether the initialization switch 240 is turned on (S200); And
If the initialization switch is turned off in the initialization switch-on operation determining step (S200), the microcontroller performs a debounce process, and then proceeds to the initialization switch-on operation determining step (S90) (S210); Hard disk status display method further comprising.
제 4 항에 있어서,
상기 LED 표시 데이터 조립 단계(S130)는
상기 마이크로컨트롤러(250)에 의해 상기 제 1 하드 디스크 상태 데이터가 정상 상태인지의 여부가 결정되는 단계(S131);
상기 제 1 하드 디스크 상태 데이터가 정상 상태이면, 상기 마이크로컨트롤러가 제 1 하드 디스크 정상 표시 LED(260)를 켜도록 데이터를 구성하는 단계(S132);
상기 마이크로컨트롤러에 의해 상기 제 2 하드 디스크 상태 데이터가 정상 상태인지의 여부가 결정되는 단계(S133); 및
상기 제 2 하드 디스크 상태 데이터가 정상 상태이면, 상기 마이크로컨트롤러가 제 2 하드 디스크 정상 표시 LED(270)를 켜도록 데이터를 구성하는 단계(S134);를 포함하는 하드 디스크 상태 표시 방법.
The method of claim 4,
The LED display data assembly step (S130)
Determining whether the first hard disk state data is in a normal state by the microcontroller 250 (S131);
If the first hard disk state data is in a normal state, configuring the data so that the microcontroller turns on the first hard disk normal display LED 260 (S132);
Determining whether the second hard disk state data is in a normal state by the microcontroller (S133); And
If the second hard disk state data is in a normal state, the microcontroller configuring the data to turn on the second hard disk normal display LED (270) (S134); Hard disk status display method comprising a.
제 6 항에 있어서,
상기 제 1 하드 디스크 상태 데이터 정상 상태 여부 결정 단계(S131)에서, 상기 제 1 하드 디스크 상태 데이터가 이상 상태이면, 상기 마이크로컨트롤러가 제 1 하드 디스크 이상 표시 LED(260')를 켜도록 데이터를 구성하는 단계(S135)를 더 포함하는 하드 디스크 상태 표시 방법.
The method of claim 6,
In the step of determining whether the first hard disk state data is in a normal state (S131), if the first hard disk state data is in an abnormal state, the microcontroller configures the data to turn on the first hard disk abnormality LED 260'. Hard disk status display method further comprising the step (S135).
제 6 항에 있어서,
상기 제 2 하드 디스크 상태 데이터 정상 상태 여부 결정 단계(S133)에서, 상기 제 2 하드 디스크 상태 데이터가 이상 상태이면, 상기 마이크로컨트롤러가 제 2 하드 디스크 이상 표시 LED(270')를 켜도록 데이터를 구성하는 단계(S136)를 더 포함하는 하드 디스크 상태 표시 방법.
The method of claim 6,
In the step of determining whether the second hard disk status data is in a normal state (S133), when the second hard disk status data is in an abnormal state, the microcontroller configures the data to turn on the second hard disk abnormality LED 270'. Hard disk status display method further comprising the step (S136).
KR1020200031834A 2020-03-16 2020-03-16 System and method for displaying hard disk status of server using serial port KR102199244B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200031834A KR102199244B1 (en) 2020-03-16 2020-03-16 System and method for displaying hard disk status of server using serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200031834A KR102199244B1 (en) 2020-03-16 2020-03-16 System and method for displaying hard disk status of server using serial port

Publications (1)

Publication Number Publication Date
KR102199244B1 true KR102199244B1 (en) 2021-01-06

Family

ID=74127973

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200031834A KR102199244B1 (en) 2020-03-16 2020-03-16 System and method for displaying hard disk status of server using serial port

Country Status (1)

Country Link
KR (1) KR102199244B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102332589B1 (en) 2021-08-18 2021-12-01 에스비유코리아 주식회사 Method, device and system for managing and controlling for status information of disk set

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990030950A (en) 1997-10-07 1999-05-06 윤종용 Multiprocessor Server System with RAID
JP2001318729A (en) * 2000-05-10 2001-11-16 Toyo Giken Kk Display device for server, display method in server and server
JP2002149114A (en) * 2000-11-13 2002-05-24 Ict:Kk Wireless-controlled led display device
JP2004118946A (en) * 2002-09-26 2004-04-15 Hitachi Ltd Disk array apparatus, storage device unit, control method for the disk array apparatus, and program
JP2008257411A (en) * 2007-04-04 2008-10-23 Hitachi Ltd Disk control system
JP2010003081A (en) * 2008-06-19 2010-01-07 Hitachi Ltd Arithmetic processing unit multiplexing control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990030950A (en) 1997-10-07 1999-05-06 윤종용 Multiprocessor Server System with RAID
JP2001318729A (en) * 2000-05-10 2001-11-16 Toyo Giken Kk Display device for server, display method in server and server
JP2002149114A (en) * 2000-11-13 2002-05-24 Ict:Kk Wireless-controlled led display device
JP2004118946A (en) * 2002-09-26 2004-04-15 Hitachi Ltd Disk array apparatus, storage device unit, control method for the disk array apparatus, and program
JP2008257411A (en) * 2007-04-04 2008-10-23 Hitachi Ltd Disk control system
JP2010003081A (en) * 2008-06-19 2010-01-07 Hitachi Ltd Arithmetic processing unit multiplexing control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102332589B1 (en) 2021-08-18 2021-12-01 에스비유코리아 주식회사 Method, device and system for managing and controlling for status information of disk set

Similar Documents

Publication Publication Date Title
US10859982B2 (en) Networked, channelized power distribution, monitor and control for security and life safety applications
CN106681751B (en) Unified firmware management system and management method and computer readable medium
US20070027981A1 (en) Computer diagnostic system
US5956665A (en) Automatic mapping, monitoring, and control of computer room components
US8225135B2 (en) System and method for protecting users of data storage systems against known problems
US8566651B2 (en) Apparatus and method for a networked power management system for security and life safety applications
MX2012014356A (en) Systems and methods for intelligent and flexible management and monitoring of computer systems.
US6760688B2 (en) Appliance maintenance apparatus and appliance remote maintenance system
TWI575903B (en) Controller coupled to visual indicator
US20080028264A1 (en) Detection and mitigation of disk failures
CN109240951A (en) The system and method for the onboard networks additional storage node of safety are provided
JP2020067965A (en) USB device
KR102199244B1 (en) System and method for displaying hard disk status of server using serial port
US20100088432A1 (en) Apparatus for managing host bus adapter
US7103761B2 (en) Server system with multiple management user interfaces
US7263620B2 (en) System and method for graceful shutdown of host processor cards in a server system
US7928858B2 (en) Apparatus and method to visually indicate the status of a data storage device
KR102199243B1 (en) System and method for displaying hard disk status of server using parallel port
US20080123278A1 (en) Slot availability indication system and method for indicating slot availability
CN107870846B (en) Fault element indication method, device and system
US7096300B2 (en) Method and apparatus for suspending communication with a hard disk drive in order to transfer data relating to the hard disk drive
KR100505692B1 (en) Fail diagnostics service system and method for disc drive
US20030196135A1 (en) Protection switching of interface cards in communication system
CN113311754A (en) BMC management system of power module based on GD32 singlechip
US7188275B2 (en) Method of verifying a monitoring and responsive infrastructure of a system

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant