KR20190130903A - Method and system for swapping booting disk - Google Patents

Method and system for swapping booting disk Download PDF

Info

Publication number
KR20190130903A
KR20190130903A KR1020180055615A KR20180055615A KR20190130903A KR 20190130903 A KR20190130903 A KR 20190130903A KR 1020180055615 A KR1020180055615 A KR 1020180055615A KR 20180055615 A KR20180055615 A KR 20180055615A KR 20190130903 A KR20190130903 A KR 20190130903A
Authority
KR
South Korea
Prior art keywords
disk
boot
configuration file
boot loader
computing device
Prior art date
Application number
KR1020180055615A
Other languages
Korean (ko)
Other versions
KR102423056B1 (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 KR1020180055615A priority Critical patent/KR102423056B1/en
Publication of KR20190130903A publication Critical patent/KR20190130903A/en
Application granted granted Critical
Publication of KR102423056B1 publication Critical patent/KR102423056B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/4408Boot device selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed are a method and system for changing a boot disk. According to one embodiment of the present invention, the system comprises: a disk copy module copying data stored in a first operating system (OS) disk to a second OS disk; and a setting module adding OS kernel information of the second OS disk to a boot loader configuration file included in the first OS disk and changing a boot order in the configuration file to designate an OS kernel of the second OS disk as a priority.

Description

부팅 디스크 변경 방법 및 시스템{METHOD AND SYSTEM FOR SWAPPING BOOTING DISK}How to change the boot disk and system {METHOD AND SYSTEM FOR SWAPPING BOOTING DISK}

본 발명의 실시예들은 리눅스 컴퓨팅 장치의 부팅 디스크를 변경하기 위한 기술과 관련된다.Embodiments of the invention relate to techniques for changing the boot disk of a Linux computing device.

최근 들어 서버 시장에서 리눅스 기반의 x86 서버가 종래의 유닉스(UNIX) 서버를 대체하여 활발히 사용되고 있다. 또한 I/O가 많고 중요도가 높은 업무를 처리해야 할 경우 가상화된 환경이 아닌 베어메탈(Bare Metal) 리눅스 서버를 이용하는 경우가 많다.Recently, in the server market, Linux-based x86 server has been actively used to replace the conventional UNIX server. In addition, if you have a lot of I / O and you need to deal with high-critical tasks, you often use bare metal Linux servers instead of virtualized environments.

베어메탈 서버의 경우 가상 머신과 달리 스냅샷(snapshot) 형태로 운영 체제(Operating System; OS)를 백업하는 것이 불가능하다. 이에 따라 종래에는 베어메탈 서버의 OS를 별도의 미디어나 네트워크 저장 공간에 백업하였다가 베어메탈 서버에 장애가 발생한 경우 백업된 데이터를 베어메탈 서버에 덮어 쓰는 형태로 복구를 수행하였다. 그러나 이 경우 복구시 많은 시간이 소요되며, 복구가 진행되는 동안에는 베어메탈 서버의 구동이 불가능한 문제가 있었다.Unlike a virtual machine, a bare metal server cannot back up an operating system (OS) in the form of a snapshot. Accordingly, in the related art, the OS of the bare metal server is backed up in a separate media or network storage space, and when the bare metal server fails, the backup data is overwritten on the bare metal server. However, in this case, it takes a long time to recover, and there is a problem that the bare metal server cannot be started while the recovery is in progress.

대한민국 공개특허공보 제10-2003-0062793호 (2003. 07. 28)Republic of Korea Patent Publication No. 10-2003-0062793 (2003. 07. 28)

개시되는 실시예들은, 베어메탈 리눅스 서버의 장애가 발생하거나 또는 OS 내지 소프트웨어의 패치 작업이 필요한 경우, 장애 복구 및 패치 작업을 효과적으로 수행하기 위한 기술적인 수단을 제공하기 위한 것이다.The disclosed embodiments are provided to provide a technical means for effectively performing a failover and patching operation when a bare metal Linux server fails or a patching operation of an OS or software is required.

예시적인 실시예에 따르면, 하나 이상의 프로세서들, 및 상기 하나 이상의 프로세서들에 의해 실행되는 하나 이상의 프로그램들을 저장하는 메모리를 구비한 컴퓨팅 장치에서 수행되는 방법으로서, 제1 OS(Operating System; 운영 체제) 디스크에 저장된 데이터를 제2 OS 디스크로 복사하는 단계; 및 상기 제1 OS 디스크에 포함된 부트로더 설정 파일에 상기 제2 OS 디스크의 OS 커널 정보를 추가하고, 상기 부트로더 설정 파일 내 부팅 순서를 변경하여 상기 제2 OS 디스크의 OS 커널을 우선순위로 설정하는 단계를 포함하는, 부팅 디스크 변경 방법이 제공된다.According to an exemplary embodiment, a method performed in a computing device having one or more processors and a memory storing one or more programs executed by the one or more processors, the method comprising: a first operating system (OS); Copying the data stored in the disk to the second OS disk; And adding OS kernel information of the second OS disk to a boot loader configuration file included in the first OS disk and changing a boot order in the boot loader configuration file to prioritize the OS kernel of the second OS disk. There is provided a method of changing a boot disk, comprising the step of setting.

상기 방법은, 상기 복사하는 단계의 수행 이전, 상기 컴퓨팅 장치에서 현재 운영중인 OS 디스크를 상기 제1 OS 디스크로, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크 중 하나를 상기 제2 OS 디스크로 지정하는 단계를 더 포함할 수 있다.The method may further include: converting an OS disk currently operating in the computing device to the first OS disk, and one of the disks other than the first OS disk among the disks connected to the computing device before performing the copying step. The method may further include designating an OS disk.

상기 지정하는 단계는, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크의 개수가 둘 이상인 경우, 사용자로부터 상기 제2 OS 디스크에 대한 선택 정보를 입력받는 단계를 더 포함할 수 있다.The specifying may further include receiving selection information about the second OS disk from a user when the number of the disks other than the first OS disk among the disks connected to the computing device is two or more.

상기 설정하는 단계는, 상기 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 상기 제1 OS 디스크와 동일하게 설정하는 단계를 더 포함할 수 있다.The setting may further include setting a boot order of a boot loader configuration file included in the second OS disk to be the same as the first OS disk.

상기 부트로더 설정 파일은, 상기 제1 OS 디스크 내 /boot 디렉토리에 저장되는 grub.cfg 파일인, 부팅 디스크 변경 방법.The boot loader configuration file is a grub.cfg file stored in a / boot directory in the first OS disk.

상기 설정하는 단계의 수행 이후, 상기 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정하는 단계를 더 포함할 수 있다.After performing the setting, the method may further include setting a file system table (fstab) of the second OS disk to be the same as the first OS disk.

상기 방법은, 상기 설정하는 단계의 수행 이후, 상기 컴퓨팅 장치의 재부팅에 따라, 상기 제1 OS 디스크의 마스터 부트 레코드 내의 부트로더를 실행하는 단계; 및 상기 부트로더 설정 파일의 변경된 부팅 순서에 기초하여, 상기 부트로더가 상기 제2 OS 디스크의 운영 체제를 구동하는 단계를 더 포함할 수 있다.The method may further include executing a boot loader in a master boot record of the first OS disk according to rebooting of the computing device after performing the setting step; And driving, by the boot loader, an operating system of the second OS disk based on the changed boot order of the boot loader configuration file.

상기 방법은, 상기 구동하는 단계의 수행 이후, 상기 부트로더 설정 파일 내 부팅 순서를 재변경하여 상기 제1 OS 디스크의 OS 커널을 우선순위로 재설정하는 단계를 더 포함할 수 있다.The method may further include resetting an OS kernel of the first OS disk to a priority by changing a boot order in the boot loader configuration file after performing the driving step.

다른 예시적인 실시예에 따르면, 제1 OS(Operating System; 운영 체제) 디스크에 저장된 데이터를 제2 OS 디스크로 복사하는 디스크 복사 모듈; 및 상기 제1 OS 디스크에 포함된 부트로더 설정 파일에 상기 제2 OS 디스크의 OS 커널 정보를 추가하고, 상기 부트로더 설정 파일 내 부팅 순서를 변경하여 상기 제2 OS 디스크의 OS 커널을 우선순위로 지정하는 설정 모듈을 포함하는, 부팅 디스크 변경 시스템이 제공된다.According to another exemplary embodiment, a disk copy module for copying data stored in a first operating system (OS) disk to a second OS disk; And adding OS kernel information of the second OS disk to a boot loader configuration file included in the first OS disk and changing a boot order in the boot loader configuration file to prioritize the OS kernel of the second OS disk. A bootable disk change system is provided that includes a configuration module for specifying.

상기 설정 모듈은, 상기 컴퓨팅 장치에서 현재 운영중인 OS 디스크를 상기 제1 OS 디스크로, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크 중 하나를 상기 제2 OS 디스크로 설정할 수 있다.The setting module may set an OS disk currently operating in the computing device as the first OS disk and one of disks other than the first OS disk among the disks connected to the computing device as the second OS disk.

상기 설정 모듈은, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크의 개수가 둘 이상인 경우, 사용자로부터 상기 제2 OS 디스크에 대한 선택 정보를 입력받을 수 있다.The setting module may receive selection information regarding the second OS disk from a user when the number of the disks other than the first OS disk among the disks connected to the computing device is two or more.

상기 설정 모듈은, 상기 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 상기 제1 OS 디스크와 동일하게 설정할 수 있다.The configuration module may set a boot order of a boot loader configuration file included in the second OS disk in the same manner as the first OS disk.

상기 부트로더 설정 파일은, 상기 제1 OS 디스크 내 /boot 디렉토리에 저장되는 grub.cfg 파일일 수 있다.The boot loader configuration file may be a grub.cfg file stored in the / boot directory of the first OS disk.

상기 설정 모듈은, 상기 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정할 수 있다.The setting module may set a file system table (fstab) of the second OS disk in the same manner as the first OS disk.

상기 컴퓨팅 장치가 재부팅되는 경우, 상기 컴퓨팅 장치는 상기 제1 OS 디스크의 마스터 부트 레코드 내의 부트로더를 실행하며, 상기 부트로더는, 상기 부트로더 설정 파일의 변경된 부팅 순서에 기초하여 상기 제2 OS 디스크의 운영 체제를 구동할 수 있다.When the computing device is rebooted, the computing device executes a boot loader in a master boot record of the first OS disk, the boot loader based on the changed boot order of the boot loader configuration file. Can run the operating system.

상기 제2 OS 디스크의 운영 체제 구동 이후, 상기 설정 모듈은, 상기 부트로더 설정 파일 내 부팅 순서를 재변경하여 상기 제1 OS 디스크의 OS 커널을 우선순위로 재설정할 수 있다.After operating the operating system of the second OS disk, the configuration module may reset the OS kernel of the first OS disk to priority by changing the boot order in the boot loader configuration file again.

개시되는 실시예들에 따르면, 베어메탈 리눅스 서버의 장애가 발생한 경우 부트로더의 부팅 순서를 변경하여 백업 OS 디스크로 부팅 디스크를 스왑(swap)하는 방식으로 복구를 수행할 수 있으므로, 베어메탈 리눅스 서버의 장애를 빠르고 간단하게 복구할 수 있다.According to the embodiments of the present disclosure, when a bare metal Linux server fails, recovery may be performed by changing a boot order of the boot loader to swap a boot disk with a backup OS disk. You can recover from failures quickly and simply.

또한 개시되는 실시예들에 따르면, 베어메탈 리눅스 서버의 부팅 순서를 변경하여 백업 OS 디스크로 부팅한 뒤 원본 OS 디스크의 OS 업데이트, 소프트웨어 패치 등의 과정을 수행할 수 있다. 이에 따라, 베어메탈 리눅스 서버의 가동을 중지하지 않고도 OS 또는 소프트웨어의 변경을 용이하게 수행할 수 있게 된다.In addition, according to the disclosed embodiments, the boot order of the bare metal Linux server may be changed to boot to a backup OS disk, and then an OS update or software patch of the original OS disk may be performed. As a result, OS or software changes can be easily performed without stopping the bare metal Linux server.

도 1은 리눅스 컴퓨팅 시스템의 부팅 과정을 설명하기 위한 예시도
도 2는 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템의 구성을 설명하기 위한 블록도
도 3 내지 도 5는 본 발명의 일 실싱에 따른 부팅 디스크 변경 과정을 예시하여 설명하기 위한 예시도
도 6은 본 발명의 일 실시예에 따른 부팅 디스크 변경 방법을 설명하기 위한 흐름도
도 7 내지 도 10은 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템을 이용하여 복수의 시스템에 대한 운영 체제 버전업 및 소프트웨어 패치를 수행하는 과정을 예시하여 설명하기 위한 예시도
도 11 내지 도 16은 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템을 이용하여 멀티 노드 클러스터 환경에서의 운영 체제 버전업 및 소프트웨어 패치를 수행하는 과정을 예시하여 설명하기 위한 예시도
1 is an exemplary diagram for explaining a booting process of a Linux computing system
2 is a block diagram illustrating a configuration of a boot disk change system according to an embodiment of the present invention.
3 to 5 are exemplary diagrams for explaining a process of changing a boot disk according to one siling of the present invention
6 is a flowchart illustrating a boot disk change method according to an embodiment of the present invention.
7 to 10 are exemplary diagrams for explaining the process of performing the operating system version upgrade and software patch for a plurality of systems using a boot disk change system according to an embodiment of the present invention
11 through 16 are diagrams for explaining an example of a process of performing an operating system version upgrade and a software patch in a multi-node cluster environment by using a boot disk change system according to an embodiment of the present invention.

이하, 도면을 참조하여 본 발명의 구체적인 실시형태를 설명하기로 한다. 이하의 상세한 설명은 본 명세서에서 기술된 방법, 장치 및/또는 시스템에 대한 포괄적인 이해를 돕기 위해 제공된다. 그러나 이는 예시에 불과하며 본 발명은 이에 제한되지 않는다.Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. The following detailed description is provided to assist in a comprehensive understanding of the methods, devices, and / or systems described herein. However, this is only an example and the present invention is not limited thereto.

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

도 1은 리눅스 컴퓨팅 시스템의 부팅 과정을 설명하기 위한 예시도이다. 리눅스 컴퓨팅 시스템이 부팅되면, 컴퓨팅 시스템의 바이오스(BIOS)는 먼저 기본적인 하드웨어 점검을 수행한 후, 컴퓨팅 시스템에 연결된 입출력 장치, 디스크 등의 디바이스를 인식한다. 이 과정에서 바이오스는 연결된 복수의 디스크의 부팅 순서를 인식하고 부팅 가능한 첫 번째 OS 디스크(sda)의 마스터 부트 레코드(Master Boot Record; MBR) 내의 부트로더 스테이지 1(Stage 1)을 읽어 이를 실행한다(Stage 1). 여기서 마스터 부트 레코드란 해당 OS 디스크의 맨 앞부분 0~512Byte를 의미한다. 또한, 부트로더(boot loader)란 운영 체제가 시동되기 이전에 미리 실행되면서 커널이 올바르게 시동되기 위해 필요한 모든 관련 작업을 마무리하고 최종적으로 운영 체제를 시동시키기 위한 목적을 가진 프로그램으로서, 그 종류에 따라 스테이지 1, 스테이지 2를 포함하며, 경우에 따라 스테이지 1.5를 더 포함할 수도 있다. 예를 들어, 리눅스 컴퓨터 시스템에서 일반적으로 사용되는 GRUB(Grand Unified Bootloader) 부트로더의 경우 스테이지 1은 boot.img 파일 형태로 마스터 부트 레코드에 저장되고, 스테이지 2인 grub.cfg 파일은 해당 디스크 내의 /boot 디렉토리에 저장되며, 이와는 별도로 스테이지 1.5인 core img를 디스크 내 기 약속된 위치에 포함할 수 있다.1 is an exemplary diagram for explaining a booting process of a Linux computing system. When the Linux computing system boots, the BIOS of the computing system first performs basic hardware checks and then recognizes devices such as I / O devices and disks connected to the computing system. In this process, BIOS recognizes the boot order of a plurality of connected disks and reads and executes boot loader stage 1 in the master boot record (MBR) of the first bootable OS disk (sda) ( Stage 1). In this case, the master boot record means 0 to 512 bytes at the beginning of the OS disk. In addition, a boot loader is a program that is executed before the operating system starts up, and which has the purpose of finishing all related tasks necessary for the kernel to start properly and finally starting the operating system. Stage 1 and Stage 2 may be included, and in some cases, Stage 1.5 may be further included. For example, for the GRUB (Grand Unified Bootloader) bootloader commonly used on Linux computer systems, stage 1 is stored in the master boot record in the form of a boot.img file, and the stage 2 grub.cfg file is located on the disk. It is stored in the boot directory and can separately include stage 1.5, core img, in the promised location on disk.

상기 boot.img는 디스크 내 미리 약속된 위치에 저장된 부트로더 스테이지 1.5인 core.img 파일을 읽고(stage 1.5), core.img는 다시 해당 디스크 내의 /boot 디렉토리에 위치한 grub.cfg 파일을 읽어들인다(stage 2). grub.cfg는 리눅스 컴퓨팅 시스템의 부팅에 필요한 설정이 저장된 파일이다. 이때 boot.img가 직접 grub.cfg 파일을 읽지 않는 이유는 boot.img의 용량 제약으로 인해 파일 시스템을 직접 읽을 수 없기 때문이다. 이에 따라 boot.img는 grub.cfg를 읽어들이기에 필요한 모듈을 가지고 있는 core.img를 이용하여 grub.cfg 파일을 읽게 된다. 마지막으로 부트로더가 커널을 메모리에 로드하고 커널에 제어를 넘김으로써 부팅이 완료된다. The boot.img reads the core.img file, which is the bootloader stage 1.5 stored in a predetermined location on the disk (stage 1.5), and core.img reads the grub.cfg file located in the / boot directory on the disk again ( stage 2). grub.cfg is a file that stores the configuration needed to boot a Linux computing system. The reason why boot.img does not read the grub.cfg file directly is because the file system cannot be read directly due to the capacity limitation of boot.img. This causes boot.img to read the grub.cfg file using core.img, which contains the modules needed to load grub.cfg. Finally, the boot loader completes the boot by loading the kernel into memory and giving control to the kernel.

도 2는 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템(200)의 구성을 설명하기 위한 블록도이다. 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템(200)은 베어메탈 리눅스 컴퓨팅 시스템의 제1 OS 디스크에 저장된 데이터를 제2 OS 디스크에 백업하여 두었다가, 제1 OS 디스크의 장애 발생시 제2 OS 디스크로 부팅함으로써 장애를 신속하고 효과적으로 복구하기 위한 시스템이다. 개시되는 실시예들에서, 베어메탈 리눅스 컴퓨팅 시스템이란 가상화된 환경이 아닌 물리적인 하드웨어상에 구축된 리눅스 기반의 컴퓨팅 시스템을 의미한다. 다만 개시되는 실시예들은 반드시 베어메탈 리눅스 컴퓨팅 시스템에 한정되는 것은 아니며, 필요한 경우 가상화된 환경에서 동작하는 컴퓨팅 시스템에서도 동일하게 실시될 수 있다.2 is a block diagram illustrating a configuration of a bootable disk change system 200 according to an embodiment of the present invention. The bootable disk change system 200 according to an embodiment of the present invention backs up data stored on the first OS disk of the bare metal Linux computing system to the second OS disk, and then, when a failure of the first OS disk occurs, the second OS disk It is a system for quickly and effectively recovering from a failure by booting the system. In the disclosed embodiments, the bare metal Linux computing system refers to a Linux-based computing system built on physical hardware rather than a virtualized environment. However, the disclosed embodiments are not necessarily limited to the bare metal Linux computing system, and may be implemented in the computing system operating in a virtualized environment if necessary.

도시된 바와 같이, 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템(200)은 디스크 복사 모듈(202) 및 설정 모듈(204)을 포함한다.As shown, the bootable disk change system 200 according to an embodiment of the present invention includes a disk copy module 202 and a configuration module 204.

디스크 복사 모듈(202)은 제1 OS(Operating System; 운영 체제) 디스크의 데이터를 제2 OS 디스크로 복사(백업)한다. 도 3에 도시된 바와 같이, 디스크 복사 모듈(202)은 제1 OS 디스크(/dev/sda)의 각 파티션들을 제2 OS 디스크(/dev/sdb)로 백업할 수 있다. 개시되는 실시예들에서, OS 디스크란 컴퓨팅 시스템을 구동하기 위한 운영 체제가 설치된 디스크를 의미한다.The disk copy module 202 copies (backs up) data of a first operating system (OS) disk to a second OS disk. As illustrated in FIG. 3, the disk copy module 202 may back up each partition of the first OS disk / dev / sda to the second OS disk / dev / sdb. In the disclosed embodiments, an OS disk refers to a disk on which an operating system for driving a computing system is installed.

설정 모듈(204)은 제1 OS 디스크에 포함된 부트로더 설정 파일에 상기 제2 OS 디스크의 OS 커널 정보를 추가하고, 상기 설정 파일 내 부팅 순서를 변경하여 제2 OS 디스크의 OS 커널에 우선 순위를 부여한다. 일 실시예에서, 상기 부트로더 설정 파일은 제1 OS 디스크 내 /boot 디렉토리에 저장되는 grub.cfg 파일일 수 있다.The configuration module 204 adds OS kernel information of the second OS disk to a boot loader configuration file included in the first OS disk, changes the boot order in the configuration file, and prioritizes the OS kernel of the second OS disk. To give. In one embodiment, the boot loader configuration file may be a grub.cfg file stored in the / boot directory of the first OS disk.

도 3에 도시된 바와 같이, 제1 OS 디스크의 부트로더 설정 파일(예를 들어, grub.cfg)에는 제1 OS 디스크의 루트 디렉토리(/dev/sda2)의 OS 커널 정보만이 포함된다. 이는 제1 OS 디스크의 데이터를 백업한 제2 OS 디스크에서도 마찬가지이다. 즉, 제2 OS 디스크의 부트로더 설정 파일 또한 제1 OS 디스크의 루트 디렉토리(/dev/sda2)의 OS 커널 정보만이 포함된다.As shown in FIG. 3, the boot loader configuration file (eg, grub.cfg) of the first OS disk includes only OS kernel information of the root directory (/ dev / sda2) of the first OS disk. The same applies to the second OS disk in which data of the first OS disk is backed up. That is, the boot loader configuration file of the second OS disk also includes only OS kernel information of the root directory (/ dev / sda2) of the first OS disk.

설정 모듈(204)은 먼저 현재 운영중인 OS 디스크 및 변경 대상 OS 디스크를 확인한다. 예를 들어, 컴퓨팅 시스템에 제1 OS 디스크 및 제2 OS 디스크가 연결되어 있고, 현재 제1 OS 디스크로 부팅된 경우, 설정 모듈(204)은 제1 OS 디스크를 현재 운영중인 OS 디스크로, 제2 OS 디스크를 변경 대상 OS 디스크로 각각 인식할 수 있다. 디스크 복사 모듈(202)은 설정 모듈에서 인식한 제1 OS 디스크 및 제2 OS 디스크의 정보에 기초하여, 현재 운영중인 OS 디스크의 데이터를 변경 대상 OS 디스크로 백업할 수 있다. 만약 컴퓨팅 시스템에 연결된 OS 디스크가 셋 이상인 경우(다시 말해 상기 제1 OS 디스크를 제외한 디스크의 개수가 둘 이상인 경우), 설정 모듈(204)은 관리자 등으로부터 변경 대상 OS 디스크에 대한 설정 정보를 입력받을 수 있다. 이하의 설명에서는 제1 OS 디스크가 현재 운영중인 OS 디스크이고, 제2 OS 디스크를 변경 대상 OS 디스크인 것으로 가정한다.The setting module 204 first checks the currently operating OS disk and the change target OS disk. For example, if the first OS disk and the second OS disk are connected to the computing system and are currently booted with the first OS disk, the configuration module 204 may be configured as the OS disk currently operating. 2 OS disks can be recognized as OS disks to be changed. The disk copy module 202 may back up data of the currently operating OS disk to the change target OS disk based on the information of the first OS disk and the second OS disk recognized by the setting module. If there are three or more OS disks connected to the computing system (that is, if the number of disks other than the first OS disk is two or more), the setting module 204 may receive setting information about the change target OS disk from an administrator or the like. Can be. In the following description, it is assumed that the first OS disk is an operating OS disk and the second OS disk is a change target OS disk.

다음으로 설정 모듈(204)은 제1 OS 디스크의 부트로더 설정 파일에 제2 OS 디스크의 루트 디렉토리(/dev/sdb2)의 OS 커널 정보를 추가한다. 이때 상기 부트로더 설정 파일은 상기 제1 OS 디스크의 /boot 파일시스템에 저장된 grub.cfg 파일일 수 있다. 이와 같은 과정을 통해, 도4에 도시된 바와 같이 제1 OS 디스크의 부트로더 설정 파일에는 다음과 같이 2개의 OS 커널 정보가 포함된다.Next, the configuration module 204 adds OS kernel information of the root directory (/ dev / sdb2) of the second OS disk to the boot loader configuration file of the first OS disk. In this case, the boot loader configuration file may be a grub.cfg file stored in the / boot file system of the first OS disk. Through this process, as shown in FIG. 4, the boot loader configuration file of the first OS disk includes two OS kernel information as follows.

1. /dev/sda2의 OS 커널OS kernel on / dev / sda2

2. /dev/sdb2의 OS 커널 (추가)2. OS kernel on / dev / sdb2 (added)

다음으로 설정 모듈(204)은 부트로더 설정 파일의 부팅 순서(우선순위)를 변경하여 제2 OS 디스크의 커널 정보가 제1 OS 디스크의 커널 정보보다 먼저 오도록 한다. 그러면, 도 5에 도시된 바와 같이, 제1 OS 디스크의 부트로더 설정 파일에는 다음과 같은 정보가 저장된다.Next, the configuration module 204 changes the boot order (priority) of the boot loader configuration file so that the kernel information of the second OS disk comes before the kernel information of the first OS disk. Then, as shown in FIG. 5, the following information is stored in the boot loader configuration file of the first OS disk.

1. /dev/sdb2의 OS 커널 (순서 변경)1.OS kernel in / dev / sdb2 (order change)

2. /dev/sda2의 OS 커널2. OS kernel on / dev / sda2

GRUB 부트로더의 경우, 전술한 각 커널 정보는 grub.cfg 파일의 monumentary 항목에 저장될 수 있다. 예를 들어 제1 OS 디스크의 커널 정보(monumentary A) 및 제2 OS 디스크의 커널 정보(monumentary B)는 다음과 같은 형태를 가질 수 있다.In the case of the GRUB boot loader, the aforementioned kernel information may be stored in a monumentary item of the grub.cfg file. For example, kernel information (monumentary A) of the first OS disk and kernel information (monumentary B) of the second OS disk may have the following form.

monumentary A(sda) {monumentary A (sda) {

(커널 로딩에 필요한 각종 정보 영역) (Various information areas for kernel loading)

}}

monumentary B(sdb) {monumentary B (sdb) {

(커널 로딩에 필요한 각종 정보 영역) (Various information areas for kernel loading)

}}

설정 모듈은 상기 monumentary A와 monumentary B의 순서를 변경함으로써 각 OS 디스크의 부팅 우선순위를 변경할 수 있다.The configuration module may change the boot priority of each OS disk by changing the order of monumentary A and monumentary B.

한편, 설정 모듈(204)은 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 상기 제1 OS 디스크와 동일하게 설정할 수 있다. 이와 같이 설정함으로써 만에 하나 제1 OS 디스크가 아닌 제2 OS 디스크의 마스터 부트 레코드를 통해 부팅이 이루어지더라도 기 설정된 부팅 순서를 유지할 수 있게 된다. 구체적으로, 설정 모듈(204)은 제2 OS 디스크의 /boot 파일시스템을 임시 마운트하고, 임시 마운트된 /boot 파일시스템의 grub.cfg를 상기 제1 OS 디스크의 grub.cfg로 덮어쓸(overwrite)할 수 있다. 이후 설정 모듈(204)는 새로 갱신된 grub.cfg을 재차 읽어 변경된 부분이 제대로 반영되었는지 체크하고 임시 마운트된 /boot 파일시스템을 언마운트함으로써 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 상기 제1 OS 디스크와 동일하게 설정할 수 있다.Meanwhile, the configuration module 204 may set the boot order of the boot loader configuration file included in the second OS disk in the same manner as the first OS disk. In this way, even if booting is performed through the master boot record of the second OS disk instead of the first OS disk, the preset boot order can be maintained. Specifically, the configuration module 204 temporarily mounts the / boot file system of the second OS disk, and overwrites grub.cfg of the temporarily mounted / boot file system with grub.cfg of the first OS disk. can do. Afterwards, the configuration module 204 reads the newly updated grub.cfg again to check whether the changed part is properly reflected and unmounts the temporarily mounted / boot file system to change the boot order of the boot loader configuration file included in the second OS disk. It may be set in the same manner as the first OS disk.

다음으로, 설정 모듈(204)은 제2 OS 디스크의 OS 커널을 이용한 부팅 시 /dev/sda2 디렉토리가 루트 디렉토리로 제대로 마운트될 수 있도록 하기 위하여, 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정한다. 설정 모듈(204)은 제1 OS 디스크의 파일 시스템 테이블을 별도의 저장 공간에 백업받고, 이를 이용하여 제2 OS 디스크의 파일 시스템 테이블을 덮어씀으로서 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정할 수 있다.Next, the configuration module 204 recalls the file system table (fstab) of the second OS disk so that the / dev / sda2 directory can be properly mounted as a root directory when booting using the OS kernel of the second OS disk. It is set the same as a 1st OS disk. The configuration module 204 backs up the file system table of the first OS disk to a separate storage space, and overwrites the file system table of the second OS disk by using the file system table of the second OS disk. It may be set in the same manner as the first OS disk.

이후 베어메탈 리눅스 컴퓨팅 시스템을 재부팅하면, 베어메탈 리눅스 시스템은 제1 OS 디스크가 아닌 제2 OS 디스크의 OS 커널을 이용하여 기동된다. 이때 상기 리눅스 컴퓨팅 시스템의 재부팅 과정을 좀 더 상세히 설명하면 다음과 같다.Then, after rebooting the bare metal Linux computing system, the bare metal Linux system is started using the OS kernel of the second OS disk, not the first OS disk. In this case, the reboot process of the Linux computing system will be described in more detail as follows.

먼저, 베어메탈 리눅스 컴퓨팅 시스템의 바이오스(BIOS)는 제1 OS 디스크의 마스터 부트 레코드(Master Boot Record; MBR) 내의 부트로더 스테이지 1을 읽고 이를 실행한다. 제1 OS 디스크의 운영 체제, 또는 소프트웨어에 장애가 발생하더라도 제1 OS 디스크의 마스터 부트 레코드가 손상되지 않는 한 본 단계는 정상적으로 수행될 수 있다.First, the BIOS of the bare metal Linux computing system reads and executes boot loader stage 1 in the Master Boot Record (MBR) of the first OS disk. Even if the operating system or software of the first OS disk fails, this step may be normally performed as long as the master boot record of the first OS disk is not damaged.

다음으로 상기 부트로더 스테이지 1은 제1 OS 디스크의 약속된 장소에 저장된 core.img(부트로더 스테이지 1.5)을 읽어들이고, core.img는 다시 제1 OS 디스크 내의 /boot 디렉토리에 위치한 부트로더 설정 파일(grub.cfg)를 읽어들인다(부트로더 스테이지 2). 그런데, 상기 부트로더 설정 파일의 부팅 순서는 설정 모듈(204)에 의해 제2 OS 디스크의 OS 커널을 우선적으로 로드하도록 변경되었는 바, 부트로더는 /dev/sda2 디렉토리가 아닌, /dev/sdb2 디렉토리의 OS 커널을 메모리에 로드함으로써 부팅을 완료하게 된다. 즉, 본 발명의 실시예들에서 제1 OS 디스크의 장애 발생 시, 베어메탈 리눅스 컴퓨팅 시스템은 제1 OS 디스크의 부트로더와 제2 OS 디스크의 OS 커널을 이용하여 부팅을 수행하게 된다. 이와 같이 구성됨으로써, 본 발명의 실시예들에 따를 경우 베어메탈 리눅스 시스템의 장애 발생 시 백업된 데이터를 제1 OS 디스크에 덮어쓰는 과정 없이도 시스템이 신속하게 다시 구동될 수 있다.Next, the boot loader stage 1 reads core.img (boot loader stage 1.5) stored in the promised location of the first OS disk, and core.img is again a boot loader configuration file located in the / boot directory on the first OS disk. Read (grub.cfg) (bootloader stage 2). However, the boot order of the boot loader configuration file is changed by the configuration module 204 to preferentially load the OS kernel of the second OS disk. The boot loader is not the / dev / sda2 directory, but the / dev / sdb2 directory. This completes the boot by loading the OS kernel into memory. That is, in the embodiments of the present invention, when a failure of the first OS disk occurs, the bare metal Linux computing system performs booting using the boot loader of the first OS disk and the OS kernel of the second OS disk. As such, according to the embodiments of the present invention, the system can be quickly restarted without a process of overwriting the backed up data on the first OS disk when a bare metal Linux system fails.

이후 관리자는 제1 OS 디스크의 장애 요인에 대한 조치를 수행한 뒤 시스템이 재차 제1 OS 디스크의 OS 커널을 이용하여 기동될 수 있도록 부팅 순서를 원복함으로써 장애 복구를 완료할 수 있다. 구체적으로 관리자는 설정 모듈(240)을 통해 상기 부트로더 설정 파일 내 부팅 순서를 재변경하여 상기 제2 OS 디스크의 OS 커널을 우선순위로 재설정할 수 있다.Thereafter, the administrator may complete the failure recovery by restoring the boot order so that the system may be started again using the OS kernel of the first OS disk after performing an action on the failure factor of the first OS disk. In more detail, the administrator may reset the OS kernel of the second OS disk to priority by changing the boot order in the boot loader configuration file through the configuration module 240.

일 실시예에서, 디스크 복사 모듈(202) 및 설정 모듈(204)은 하나 이상의 프로세서 및 그 프로세서와 연결된 컴퓨터 판독 가능 기록 매체를 포함하는 컴퓨팅 장치 상에서 구현될 수 있다. 컴퓨터 판독 가능 기록 매체는 프로세서의 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 컴퓨팅 장치 내의 프로세서는 각 컴퓨팅 장치로 하여금 본 명세서에서 기술되는 예시적인 실시예에 따라 동작하도록 할 수 있다. 예를 들어, 프로세서는 컴퓨터 판독 가능 기록 매체에 저장된 명령어를 실행할 수 있고, 컴퓨터 판독 가능 기록 매체에 저장된 명령어는 프로세서에 의해 실행되는 경우 컴퓨팅 장치로 하여금 본 명세서에 기술되는 예시적인 실시예에 따른 동작들을 수행하도록 구성될 수 있다.In one embodiment, disk copy module 202 and configuration module 204 may be implemented on a computing device that includes one or more processors and a computer readable recording medium associated with the processors. The computer readable recording medium may be inside or outside the processor and may be connected with the processor by various well-known means. A processor within the computing device may cause each computing device to operate according to the example embodiments described herein. For example, a processor may execute instructions stored on a computer readable recording medium, and the instructions stored on the computer readable recording medium cause the computing device to operate in accordance with the exemplary embodiment described herein when executed by the processor. It can be configured to perform these.

도 6은 본 발명의 일 실시예에 따른 부팅 디스크 변경 방법(600)을 설명하기 위한 흐름도이다. 도시된 흐름도에 의한 방법은 하나 이상의 프로세서들, 및 상기 하나 이상의 프로세서들에 의해 실행되는 하나 이상의 프로그램들을 저장하는 메모리를 구비한 컴퓨팅 장치, 예를 들어 전술한 부팅 디스크 변경 시스템(200)에 의해 수행될 수 있다. 도시된 흐름도에서는 상기 방법을 복수 개의 단계로 나누어 기재하였으나, 적어도 일부의 단계들은 순서를 바꾸어 수행되거나, 다른 단계와 결합되어 함께 수행되거나, 생략되거나, 세부 단계들로 나뉘어 수행되거나, 또는 도시되지 않은 하나 이상의 단계가 부가되어 수행될 수 있다.6 is a flowchart illustrating a boot disk change method 600 according to an embodiment of the present invention. The method according to the flowchart shown is performed by a computing device having one or more processors and a memory storing one or more programs executed by the one or more processors, for example the boot disk change system 200 described above. Can be. In the illustrated flow chart, the method is divided into a plurality of steps, but at least some of the steps may be performed in a reverse order, in combination with other steps, omitted, divided into substeps, or not shown. One or more steps may be added and performed.

단계 602에서, 부팅 디스크 변경 시스템(200)은 제1 OS 디스크의 데이터를 제2 OS 디스크로 복사한다. 전술한 바와 같이, 부팅 디스크 변경 시스템(200)의 설정 모듈(204)은 컴퓨팅 시스템에서 현재 운영중인 OS 디스크를 상기 제1 OS 디스크로, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크 중 하나를 상기 제2 OS 디스크로 설정할 수 있다. 또한 필요한 경우 설정 모듈(204)은 상기 컴퓨팅 시스템과 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크의 개수가 둘 이상인 경우, 사용자로부터 상기 제2 OS 디스크에 대한 선택 정보를 입력받을 수 있다.In step 602, the boot disk change system 200 copies the data of the first OS disk to the second OS disk. As described above, the configuration module 204 of the boot disk change system 200 may use the OS disk currently operating in the computing system as the first OS disk, and the disk other than the first OS disk among the disks connected to the computing device. One can be set as the second OS disk. In addition, if necessary, the setting module 204 may receive selection information about the second OS disk from the user when the number of the disks other than the first OS disk among the disks connected to the computing system is two or more.

단계 604에서, 부팅 디스크 변경 시스템(200)은 상기 제1 OS 디스크에 포함된 부트로더 설정 파일에 상기 제2 OS 디스크의 OS 커널 정보를 추가하고, 상기 설정 파일 내 부팅 순서를 변경하여 제2 OS 디스크의 OS 커널을 1순위로 지정한다. 또한 이 과정에서 부팅 디스크 변경 시스템(200)은 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 제1 OS 디스크와 동일하게 설정할 수 있다.In operation 604, the boot disk change system 200 adds OS kernel information of the second OS disk to a boot loader configuration file included in the first OS disk, and changes a boot order in the configuration file to a second OS. Prioritizes the OS kernel on disk. In this process, the boot disk change system 200 may set the boot order of the boot loader configuration file included in the second OS disk in the same manner as the first OS disk.

또한, 필요한 경우 부팅 디스크 변경 시스템(200)은 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정할 수 있다.In addition, if necessary, the boot disk changing system 200 may set a file system table (fstab) of the second OS disk to be the same as the first OS disk.

이후 컴퓨팅 시스템이 재부팅되면, 컴퓨팅 시스템은 제1 OS 디스크의 마스터 부트 레코드 내의 부트로더를 실행하고, 상기 부트로더는 상기 604 단계에서 변경된 부팅 순서에 기초하여 제2 OS 디스크의 운영 체제를 구동하게 된다.Then, when the computing system is rebooted, the computing system executes a boot loader in the master boot record of the first OS disk, and the boot loader runs the operating system of the second OS disk based on the changed boot order in step 604. .

한편, 상기 제2 OS 디스크의 운영 체제 구동 이후, 관리자는 상기 부트로더 설정 파일 내 부팅 순서를 재변경하여 상기 제2 OS 디스크의 OS 커널을 우선순위로 재설정할 수 있다.On the other hand, after operating the operating system of the second OS disk, the administrator may reset the OS kernel of the second OS disk to priority by changing the boot order in the boot loader configuration file again.

한편, 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템(200)은 베어메탈 리눅스 시스템의 장애 복구 뿐 아니라 복수의 시스템에 대한 운영 체제 버전업 및 소프트웨어 패치 등에도 활용될 수 있다.On the other hand, the boot disk change system 200 according to an embodiment of the present invention can be utilized not only for the failure recovery of the bare metal Linux system, but also for operating system version upgrades and software patches for a plurality of systems.

운영 체제 또는 소프트웨어의 특성에 따라, 업데이트 또는 패치 시 많은 시간이 소요되거나 또는 단순히 새로운 버전의 운영 체제/소프트웨어를 설치하는 데 그치지 않고 추가적인 데이터 카피나 환경 설정 등이 요구되는 경우가 있다. 그러나 IT 업무의 특성 상 장시간의 서비스 중단이 어려운 경우, 이와 같은 작업에 필요한 시간을 확보하기 어려운 경우가 많다. 이와 같은 경우 전술한 부팅 디스크 변경 시스템(200)을 이용하면 대량의 서버의 버전업 및 패치 작업을 효과적으로 수행할 수 있으며, 이를 도 7 내지 도 10에 나타내었다.Depending on the nature of the operating system or software, updating or patching can take a long time, or not just install a new version of the operating system / software, but also require additional data copies or configuration. However, it is often difficult to secure the time required for such a task when it is difficult to interrupt service for a long time due to the nature of IT work. In this case, by using the boot disk change system 200 described above, it is possible to effectively perform a version upgrade and patch operation of a large number of servers, which are illustrated in FIGS. 7 to 10.

먼저, 도 7에 도시된 바와 같이, 서버 1에서 서버 N 까지 N개의 베어메탈 리눅스 서버가 존재하고, 각 서버에는 OS 버전 A와 소프트웨어 버전 1.0이 탑재되어 있다고 가정하자. 관리자는 부팅 디스크 변경 시스템(200)을 이용하여 각 서버의 제1 OS 디스크(Disk 1)에 저장된 운영체제와 소프트웨어를 제2 OS 디스크(Disk 2)로 복사한다.First, as shown in FIG. 7, assume that there are N bare metal Linux servers from server 1 to server N, and each server is equipped with OS version A and software version 1.0. The administrator copies the operating system and software stored in the first OS disk (Disk 1) of each server to the second OS disk (Disk 2) by using the boot disk change system 200.

다음으로, 관리자는 도 8에 도시된 바와 같이 각 서버의 제2 OS 디스크의 OS 버전을 A에서 A'로 변경하고, 소프트웨어 버전 또한 1.0에서 2.0으로 업데이트한다. 이 때, 각 서버들은 OS 디스크 1을 통하여 부팅된 상태에서 정상적으로 구동되고 있는 상태이다.Next, the administrator changes the OS version of the second OS disk of each server from A to A 'as shown in FIG. 8, and also updates the software version from 1.0 to 2.0. At this time, each server is normally running while being booted through OS disk 1.

다음으로, 관리자는 부팅 디스크 변경 시스템(200)을 이용하여 각 서버의 부팅 우선순위를 OS 디스크 1에서 OS 디스크 2로 변경한다. 이후 모든 서버를 동시에 재부팅하면, 도 9에 도시된 바와 같이 각 서버들은 업데이트된 운영 체제와 소프트웨어를 통해 구동되게 된다.Next, the administrator changes the boot priority of each server from OS disk 1 to OS disk 2 using the boot disk change system 200. After rebooting all the servers at the same time, as shown in Figure 9, each server is driven through the updated operating system and software.

이와 같은 과정을 통해, 관리자는 각 서버들의 가동을 중지하지 않고도 각 서버의 업데이트 및 패치 작업을 원활히 수행할 수 있다. 이 경우 각각의 서버를 순차적으로 가동 중지시키고 업데이트 작업을 할 경우와 비교하여 매우 효율적으로 각 서버의 업데이트 및 패치를 완료할 수 있으며, 만약 신규 버전에 문제 발생시 도 10에 도시된 바와 같이 각 서버의 부팅 우선순위를 OS 디스크 2에서 OS 디스크 1으로 원복하는 것 만으로 빠르게 이전 버전으로 돌아갈 수 있게 된다.Through this process, the administrator can smoothly update and patch each server without bringing down each server. In this case, it is possible to complete the update and patch of each server very efficiently compared to the case of sequentially shutting down and updating each server, and if a problem occurs in the new version as shown in FIG. Simply reverting the boot priority from OS disk 2 to OS disk 1 allows you to quickly return to the previous version.

한편, 본 발명의 일 실시예에 따른 부팅 디스크 변경 시스템(200)은 멀티 노드 클러스터 환경에서의 OS 및 소프트웨어 버전업시 버전간 호환성이 문제되는 경우에도 효과적으로 활용될 수 있다. On the other hand, the boot disk change system 200 according to an embodiment of the present invention can be effectively used even when compatibility between versions when the OS and software version upgrade in a multi-node cluster environment.

예를 들어, 가상의 멀티 노드 소프트웨어 및 운영 체제의 버전 간 호환성이 다음의 표 1과 같은 관계를 가진다고 가정하자.For example, assume that the compatibility between the versions of the virtual multi-node software and the operating system has a relationship as shown in Table 1 below.

OS AOS A OS BOS B S/W 1.0S / W 1.0 OO XX S/W 2.0S / W 2.0 XX OO

즉, S/W 버전 1.0은 OS A 상에서만 구동되고, S/W 버전 2.0은 반대로 OS A 상에서는 구동될 수 없고 OS B에서만 구동이 가능하다. 이 경우 각각의 노드에서 S/W 1.0을 2.0으로 업데이트하기 위해서는 각각의 서버에서 다음과 같은 과정을 거쳐야 한다.In other words, S / W version 1.0 runs only on OS A, while S / W version 2.0, on the other hand, cannot run on OS A, and can only run on OS B. In this case, to update S / W 1.0 to 2.0 in each node, the following process must be performed in each server.

S/W 1.0 제거 -> 재부팅 -> OS를 A에서 B로 버전업 -> 재부팅 -> S/W 2.0 설치 -> 재부팅Remove S / W 1.0-> Reboot-> Upgrade OS from A to B-> Reboot-> Install S / W 2.0-> Reboot

또한 이 경우 업데이트가 완료된 노드는 기존의 클러스터와 소프트웨어 버전이 달라 조인(join)이 불가능하는 바, 각 노드가 업데이트되는 동안 전체 클러스터의 구동이 중지될 수 밖에 없다.In this case, the updated node cannot be joined because the software version is different from the existing cluster. Therefore, the entire cluster must be stopped while each node is updated.

그러나 이와 같은 경우에도 전술한 부팅 디스크 변경 시스템(200)을 이용할 경우 클러스터의 구동을 중단하지 않고도 각 노드에 대한 버전업 및 패치 작업을 효과적으로 수행할 수 있으며, 이를 도 11 내지 도 16에 나타내었다.However, even in such a case, when using the above-described boot disk change system 200, it is possible to effectively perform the upgrade and patch operation for each node without stopping the operation of the cluster, which is shown in Figures 11 to 16.

먼저, 도 11에 도시된 바와 같이, DB #1에서 DB #3까지 3대의 데이터베이스 서버가 존재하고, 각 서버에는 OS 버전 A와 소프트웨어 버전 1.0이 탑재되어 있다고 가정하자. 또한 각 서버에서 실행되는 소프트웨어들은 하나의 클러스터에 연결된 상태라고 가정하자. 관리자는 부팅 디스크 변경 시스템(200)을 이용하여 각 서버의 제1 OS 디스크(Disk 1)에 저장된 운영체제와 소프트웨어를 제2 OS 디스크(Disk 2)로 복사한다.First, as shown in FIG. 11, suppose that there are three database servers from DB # 1 to DB # 3, and each server is equipped with OS version A and software version 1.0. Also assume that the software running on each server is connected to one cluster. The administrator copies the operating system and software stored in the first OS disk (Disk 1) of each server to the second OS disk (Disk 2) by using the boot disk change system 200.

다음으로, 관리자는 도 12에 도시된 바와 같이 먼저 DB #1을 오프라인 상태로 변경하여 클러스터에서 제외한다. 도면에서는 DB #1 오프라인 상태임을 나타내기 위하여 DB #1의 외곽선을 실선(온라인 상태)이 아닌 점선으로 표시하였다. Next, as shown in FIG. 12, the administrator first changes DB # 1 to an offline state and excludes it from the cluster. In the drawing, the outline of DB # 1 is indicated by a dotted line instead of a solid line (online state) to indicate that the DB # 1 is offline.

이후, 관리자는 도 13에 도시된 바와 같이 제1 OS 디스크의 OS 버전을 A에서 B로 변경하고, 소프트웨어 버전 또한 1.0에서 2.0으로 업데이트한다. Thereafter, the administrator changes the OS version of the first OS disk from A to B, and also updates the software version from 1.0 to 2.0, as shown in FIG.

도 14에서, 관리자는 부팅 디스크 변경 시스템(200)을 이용하여 DB #1의 부팅 우선순위를 OS 디스크 1에서 OS 디스크 2로 변경하고 DB #1을 재부팅한다. DB #1의 OS 디스크 2는 여전히 OS 버전 A와 소프트웨어 버전 1.0으로 구동되는 바, 재부팅된 DB #는 기존의 클러스터에 문제없이 조인할 수 있다.In FIG. 14, the administrator changes the boot priority of DB # 1 from OS disk 1 to OS disk 2 using the boot disk change system 200 and reboots DB # 1. OS disk 2 of DB # 1 is still running OS version A and software version 1.0, so rebooted DB # can join the existing cluster without problems.

이와 같은 방법으로, 관리자는 도 15에 도시된 바와 같이 DB #2와 DB #3의 OS 디스크 1에 저장된 운영체제와 소프트웨어를 업데이트할 수 있다. In this way, the administrator can update the operating system and software stored in OS disk 1 of DB # 2 and DB # 3 as shown in FIG. 15.

마지막으로 관리자는 각 서버의 부팅 우선순위를 OS 디스크 1으로 원복하고 각 서버를 재부팅하게 된다. 그러면 각 데이터베이스들은 동시에 업데이트된 OS와 소프트웨어를 이용하여 구동되는 바, 버전간 호환성 문제 없이 클러스터를 구성할 수 있게 된다. 또한 관리자는 각 서버를 순차적으로 업데이트하는 것이 아니라 동시에 복수의 서버를 동시에 업데이트할 수 있어 업데이트에 소요되는 시간을 단축할 수 있으며, 아울러 업데이트 과정에서 발생할 수 있는 서비스의 단절 또한 최소화할 수 있다.Finally, the administrator restores each server's boot priority to OS Disk 1 and reboots each server. Each database is then run with the OS and software updated at the same time, allowing clusters to be configured without compatibility issues between versions. In addition, the administrator can update multiple servers at the same time instead of updating each server sequentially, thereby reducing the time required for updating and minimizing the disconnection of services that may occur during the update process.

한편, 본 발명의 실시예는 본 명세서에서 기술한 방법들을 컴퓨터상에서 수행하기 위한 프로그램, 및 상기 프로그램을 포함하는 컴퓨터 판독 가능 기록매체를 포함할 수 있다. 상기 컴퓨터 판독 가능 기록매체는 프로그램 명령, 로컬 데이터 파일, 로컬 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체는 본 발명을 위하여 특별히 설계되고 구성된 것들이거나, 또는 컴퓨터 소프트웨어 분야에서 통상적으로 사용 가능한 것일 수 있다. 컴퓨터 판독 가능 기록매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광 기록 매체, 및 롬, 램, 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 상기 프로그램의 예는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다.Meanwhile, an embodiment of the present invention may include a program for performing the methods described herein on a computer, and a computer readable recording medium including the program. The computer-readable recording medium may include program instructions, local data files, local data structures, etc. alone or in combination. The media may be those specially designed and constructed for the purposes of the present invention, or those conventionally available in the field of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tape, optical recording media such as CD-ROMs, DVDs, and specially configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. Hardware devices are included. Examples of such programs may include high-level language code that can be executed by a computer using an interpreter as well as machine code such as produced by a compiler.

이상에서 본 발명의 대표적인 실시예들을 상세하게 설명하였으나, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 상술한 실시예에 대하여 본 발명의 범주에서 벗어나지 않는 한도 내에서 다양한 변형이 가능함을 이해할 것이다. 그러므로 본 발명의 권리범위는 설명된 실시예에 국한되어 정해져서는 안 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Although exemplary embodiments of the present invention have been described in detail above, those skilled in the art will appreciate that various modifications can be made to the above-described embodiments without departing from the scope of the present invention. . Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined by the claims below and equivalents thereof.

200: 디스크 변경 장치
202: 디스크 복사 모듈
204: 설정 모듈
200: disk changer
202: disk copy module
204: configuration module

Claims (16)

하나 이상의 프로세서들, 및
상기 하나 이상의 프로세서들에 의해 실행되는 하나 이상의 프로그램들을 저장하는 메모리를 구비한 컴퓨팅 장치에서 수행되는 방법으로서,
제1 OS(Operating System; 운영 체제) 디스크에 저장된 데이터를 제2 OS 디스크로 복사하는 단계; 및
상기 제1 OS 디스크에 포함된 부트로더 설정 파일에 상기 제2 OS 디스크의 OS 커널 정보를 추가하고, 상기 부트로더 설정 파일 내 부팅 순서를 변경하여 상기 제2 OS 디스크의 OS 커널을 우선순위로 설정하는 단계를 포함하는, 부팅 디스크 변경 방법.
One or more processors, and
A method performed in a computing device having a memory that stores one or more programs executed by the one or more processors, the method comprising:
Copying data stored on a first operating system (OS) disk to a second OS disk; And
OS kernel information of the second OS disk is added to a boot loader configuration file included in the first OS disk, and the OS kernel of the second OS disk is prioritized by changing a boot order in the boot loader configuration file. And changing the boot disk.
청구항 1에 있어서,
상기 복사하는 단계의 수행 이전,
상기 컴퓨팅 장치에서 현재 운영중인 OS 디스크를 상기 제1 OS 디스크로, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크 중 하나를 상기 제2 OS 디스크로 지정하는 단계를 더 포함하는, 부팅 디스크 변경 방법.
The method according to claim 1,
Before performing the copying step,
Designating an OS disk currently operating in the computing device as the first OS disk and designating one of the disks other than the first OS disk among the disks connected with the computing device as the second OS disk. How to change disk.
청구항 2에 있어서,
상기 지정하는 단계는,
상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크의 개수가 둘 이상인 경우, 사용자로부터 상기 제2 OS 디스크에 대한 선택 정보를 입력받는 단계를 더 포함하는, 부팅 디스크 변경 방법.
The method according to claim 2,
The specifying step,
If the number of disks other than the first OS disk of the disk connected to the computing device is more than one, further comprising the step of receiving selection information for the second OS disk from the user, boot disk change method.
청구항 1에 있어서,
상기 설정하는 단계는,
상기 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 상기 제1 OS 디스크와 동일하게 설정하는 단계를 더 포함하는, 부팅 디스크 변경 방법.
The method according to claim 1,
The setting step,
And setting a boot order of a boot loader configuration file included in the second OS disk to be the same as the first OS disk.
청구항 1에 있어서,
상기 부트로더 설정 파일은, 상기 제1 OS 디스크 내 /boot 디렉토리에 저장되는 grub.cfg 파일인, 부팅 디스크 변경 방법.
The method according to claim 1,
The boot loader configuration file is a grub.cfg file stored in a / boot directory in the first OS disk.
청구항 1에 있어서,
상기 설정하는 단계의 수행 이후,
상기 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정하는 단계를 더 포함하는, 부팅 디스크 변경 방법.
The method according to claim 1,
After performing the setting step,
And setting a file system table (fstab) of the second OS disk to be the same as the first OS disk.
청구항 1에 있어서,
상기 설정하는 단계의 수행 이후,
상기 컴퓨팅 장치의 재부팅에 따라, 상기 제1 OS 디스크의 마스터 부트 레코드 내의 부트로더를 실행하는 단계; 및
상기 부트로더 설정 파일의 변경된 부팅 순서에 기초하여, 상기 부트로더가 상기 제2 OS 디스크의 운영 체제를 구동하는 단계를 더 포함하는, 부팅 디스크 변경 방법.
The method according to claim 1,
After performing the setting step,
Executing a boot loader in a master boot record of the first OS disk according to the rebooting of the computing device; And
Based on the changed boot order of the boot loader configuration file, the boot loader further comprising operating the operating system of the second OS disk.
청구항 7에 있어서,
상기 구동하는 단계의 수행 이후,
상기 부트로더 설정 파일 내 부팅 순서를 재변경하여 상기 제1 OS 디스크의 OS 커널을 우선순위로 재설정하는 단계를 더 포함하는, 부팅 디스크 변경 방법.
The method according to claim 7,
After performing the driving step,
Resetting the boot kernel in the boot loader configuration file to reset the OS kernel of the first OS disk to priority.
컴퓨팅 장치의 부팅 디스크를 변경하기 위한 시스템으로서,
제1 OS(Operating System; 운영 체제) 디스크에 저장된 데이터를 제2 OS 디스크로 복사하는 디스크 복사 모듈; 및
상기 제1 OS 디스크에 포함된 부트로더 설정 파일에 상기 제2 OS 디스크의 OS 커널 정보를 추가하고, 상기 부트로더 설정 파일 내 부팅 순서를 변경하여 상기 제2 OS 디스크의 OS 커널을 우선순위로 설정하는 설정 모듈을 포함하는, 부팅 디스크 변경 시스템.
A system for changing a boot disk of a computing device,
A disk copy module for copying data stored in a first operating system (OS) disk to a second OS disk; And
OS kernel information of the second OS disk is added to a boot loader configuration file included in the first OS disk, and the OS kernel of the second OS disk is prioritized by changing a boot order in the boot loader configuration file. A boot disk change system comprising a configuration module.
청구항 9에 있어서,
상기 설정 모듈은, 상기 컴퓨팅 장치에서 현재 운영중인 OS 디스크를 상기 제1 OS 디스크로, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크 중 하나를 상기 제2 OS 디스크로 설정하는, 부팅 디스크 변경 시스템.
The method according to claim 9,
The setting module is configured to set an OS disk currently operating in the computing device as the first OS disk and one of disks other than the first OS disk among disks connected with the computing device as the second OS disk. Disk change system.
청구항 11에 있어서,
상기 설정 모듈은, 상기 컴퓨팅 장치와 연결된 디스크 중 상기 제1 OS 디스크를 제외한 디스크의 개수가 둘 이상인 경우, 사용자로부터 상기 제2 OS 디스크에 대한 선택 정보를 입력받는, 부팅 디스크 변경 시스템.
The method according to claim 11,
The setting module, when the number of disks other than the first OS disk among the disks connected to the computing device is two or more, receives the selection information for the second OS disk from the user, boot disk change system.
청구항 9에 있어서,
상기 설정 모듈은,
상기 제2 OS 디스크에 포함된 부트로더 설정 파일의 부팅 순서를 상기 제1 OS 디스크와 동일하게 설정하는, 부팅 디스크 변경 시스템.
The method according to claim 9,
The setting module,
And booting the boot loader configuration file included in the second OS disk in the same manner as the first OS disk.
청구항 9에 있어서,
상기 부트로더 설정 파일은, 상기 제1 OS 디스크 내 /boot 디렉토리에 저장되는 grub.cfg 파일인, 부팅 디스크 변경 시스템.
The method according to claim 9,
The boot loader configuration file is a grub.cfg file stored in a / boot directory in the first OS disk.
청구항 9에 있어서,
상기 설정 모듈은,
상기 제2 OS 디스크의 파일 시스템 테이블(fstab)을 상기 제1 OS 디스크와 동일하게 설정하는, 부팅 디스크 변경 시스템.
The method according to claim 9,
The setting module,
And a file system table (fstab) of the second OS disk is set equal to the first OS disk.
청구항 9에 있어서,
상기 컴퓨팅 장치가 재부팅되는 경우, 상기 컴퓨팅 장치는 상기 제1 OS 디스크의 마스터 부트 레코드 내의 부트로더를 실행하며,
상기 부트로더는, 상기 부트로더 설정 파일의 변경된 부팅 순서에 기초하여 상기 제2 OS 디스크의 운영 체제를 구동하는, 부팅 디스크 변경 시스템.
The method according to claim 9,
When the computing device is rebooted, the computing device executes a boot loader in the master boot record of the first OS disk,
And the boot loader drives an operating system of the second OS disk based on the changed boot order of the boot loader configuration file.
청구항 7에 있어서,
상기 제2 OS 디스크의 운영 체제 구동 이후,
상기 설정 모듈은, 상기 부트로더 설정 파일 내 부팅 순서를 재변경하여 상기 제1 OS 디스크의 OS 커널을 우선순위로 재설정하는, 부팅 디스크 변경 시스템.
The method according to claim 7,
After operating the operating system of the second OS disk,
And the configuration module resets the OS kernel of the first OS disk to a priority by rechanging the boot order in the boot loader configuration file.
KR1020180055615A 2018-05-15 2018-05-15 Method and system for swapping booting disk KR102423056B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180055615A KR102423056B1 (en) 2018-05-15 2018-05-15 Method and system for swapping booting disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180055615A KR102423056B1 (en) 2018-05-15 2018-05-15 Method and system for swapping booting disk

Publications (2)

Publication Number Publication Date
KR20190130903A true KR20190130903A (en) 2019-11-25
KR102423056B1 KR102423056B1 (en) 2022-07-20

Family

ID=68730713

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180055615A KR102423056B1 (en) 2018-05-15 2018-05-15 Method and system for swapping booting disk

Country Status (1)

Country Link
KR (1) KR102423056B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258812A (en) * 2020-01-10 2020-06-09 成都千立网络科技有限公司 Terminal access equipment fault recovery system based on linux kernel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07262021A (en) * 1994-03-17 1995-10-13 Fujitsu Ltd System recovery system
KR20030062793A (en) 2002-01-19 2003-07-28 주식회사 디앤아이티 Apparatus and Method for operating recovery and backup of linux operting system
KR101236981B1 (en) * 2012-09-14 2013-02-26 (주)나래소프트 Hibernation booting system using a hidden area
KR101576370B1 (en) * 2014-06-03 2015-12-21 (주)클로닉스 System and method for remote restoration of computer system, and computer-readable recording medium with program therefor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07262021A (en) * 1994-03-17 1995-10-13 Fujitsu Ltd System recovery system
KR20030062793A (en) 2002-01-19 2003-07-28 주식회사 디앤아이티 Apparatus and Method for operating recovery and backup of linux operting system
KR101236981B1 (en) * 2012-09-14 2013-02-26 (주)나래소프트 Hibernation booting system using a hidden area
KR101576370B1 (en) * 2014-06-03 2015-12-21 (주)클로닉스 System and method for remote restoration of computer system, and computer-readable recording medium with program therefor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
mapoo's blog(마푸의 컴퓨팅 블로그). grub 복구 방법(MBR 복구). 2010.08.30. *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258812A (en) * 2020-01-10 2020-06-09 成都千立网络科技有限公司 Terminal access equipment fault recovery system based on linux kernel

Also Published As

Publication number Publication date
KR102423056B1 (en) 2022-07-20

Similar Documents

Publication Publication Date Title
US8745614B2 (en) Method and system for firmware upgrade of a storage subsystem hosted in a storage virtualization environment
US11762740B2 (en) Systems and methods for efficient backup restoration
US9471365B2 (en) Techniques for performing virtual machine software upgrades using virtual disk swapping
US8185884B2 (en) System and method for offline updation of software in virtual machine (VM) images
US8533304B2 (en) Remotely deploying and automatically customizing workstation images
US8645748B1 (en) System and method for bare metal restore of a computer over a network
US9384094B2 (en) Method and system for instant restore of system volume from a backup image
US7650531B2 (en) System and method for automatically restoring hard drives on failure
US6928579B2 (en) Crash recovery system
US8429639B2 (en) Image-based software update
US7856630B2 (en) System, method and program to manage program updates
US20120079474A1 (en) Reimaging a multi-node storage system
EP3769224B1 (en) Configurable recovery states
JP2001522088A (en) Computer Recovery System Using Removable Mass Media
US20060036832A1 (en) Virtual computer system and firmware updating method in virtual computer system
US9846621B1 (en) Disaster recovery—multiple restore options and automatic management of restored computing devices
US9619340B1 (en) Disaster recovery on dissimilar hardware
KR102423056B1 (en) Method and system for swapping booting disk
CN116841629A (en) Network card function configuration method, device and medium thereof
CN101470657A (en) Verification method for BIOS refreshing content
EP2490122A2 (en) Hardware turnkey mobility
CN113342365A (en) Operating system deployment method, device, equipment and computer-readable storage medium
CN112817642A (en) Method and device for starting EFI operating system by X86 platform through automatic firmware switching
US11500646B1 (en) Tracking heterogeneous operating system installation status during a manufacturing process
US10210004B2 (en) Method of providing at least one data carrier for a computer system and computer system including service processor independently operable from a main processor of the computer system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right