Search

CN-115963897-B - Data backup control method for server

CN115963897BCN 115963897 BCN115963897 BCN 115963897BCN-115963897-B

Abstract

A server data backup control method comprises a data management step, a checking step and a synchronous updating step. In the step of managing data, a first management unit of a main hard disk expansion card device distinguishes a plurality of main control system state data and a plurality of hard disk state data into a plurality of groups of information groups, and in a main checking step of the checking step, the first management unit executes a first checking instruction and only needs to check a state bit value of each information group, and whether all the main control system state data and the hard disk state data are updated or not is not needed to be checked, so that the data reading quantity is greatly reduced. In the step of synchronous updating, the first management unit only transmits all data in the information group with updating variation to a subordinate hard disk expansion card device and synchronously updates the data to the corresponding information group in the subordinate hard disk expansion card device, thereby effectively saving time and having good efficiency.

Inventors

  • ZHANG SHAOZHE

Assignees

  • 昆达电脑科技(昆山)有限公司
  • 神云科技股份有限公司

Dates

Publication Date
20260508
Application Date
20211012

Claims (5)

  1. 1. The server data backup control method is applied to a server data backup control system, the server data backup control system comprises a main control main board, a main hard disk expansion card device arranged on the main control main board, a subordinate hard disk expansion card device arranged on the subordinate main board and a storage device, wherein the main hard disk expansion card device comprises a first management unit, a main hard disk expansion card connecting unit connected with the first management unit and the storage device, and a first communication module connected with the first management unit, the subordinate hard disk expansion card device comprises a second management unit, a subordinate hard disk expansion card connecting unit connected with the second management unit and the storage device, and a second communication module connected with the second management unit and capable of being connected with the first communication module for communication, and the storage device comprises a plurality of hard disks connected with the main hard disk expansion card connecting unit and the subordinate hard disk expansion card connecting unit, and is characterized in that the server data backup control method comprises the following steps: when the server data backup control system operates, the first management unit of the master hard disk expansion card device is used for monitoring and analyzing a plurality of master system state data of the master main board and a plurality of hard disk state data of the hard disk operation of the storage device, and the second management unit of the slave hard disk expansion card device is used for monitoring and analyzing a plurality of slave system state data of the slave main board and the hard disk state data of the hard disk operation; A management data step, the first management unit of the main hard disk expansion card device executes a management module to distinguish the main control system state data and the hard disk state data of the main hard disk expansion card device into a plurality of groups of information groups according to a default grouping table built in the management module, and sets a state bit value of each information group as a first bit value, the second management unit of the auxiliary hard disk expansion card device executes the management module to distinguish the auxiliary system state data and the hard disk state data into a plurality of groups of information groups corresponding to the information groups of the main hard disk expansion card device according to the default grouping table of the management module, and sets a state bit value of each information group as the first bit value; a monitoring step, in which the first management unit monitors the state data of the main control system and the state data of the hard disk in the information group, and when the first management unit monitors that any one of the state data of the main control system or any one of the state data of the hard disk in the information group is updated, the first management unit changes the state bit value of the information group corresponding to the updated state data of the main control system or the updated state data of the hard disk into a second bit value; the first management unit executes a first check instruction of the management module and checks the status bit value of each information group of the main hard disk expansion card device, and judges whether the status bit value of any information group of the main hard disk expansion card device is checked to be the second bit value, if so, the first management unit executes a synchronous update instruction; A synchronous updating step, the first management unit executing the synchronous updating instruction and transmitting all data in the information group corresponding to each status bit value of the main hard disk expansion card device as the second bit value to the second communication module through the first communication module, and the subordinate hard disk expansion card device synchronously updating the data received by the second communication module to the corresponding information group through the second management unit, and After the first management unit transmits all the data in the information group corresponding to each status bit value as the second bit value to the second communication module, the first management unit changes the second bit value back to the first bit value; wherein the checking step further comprises a subordinate checking step, wherein, In the monitoring step, the second management unit monitors the status data of the slave system and the status data of the hard disk in the information group, and when the second management unit monitors that any one of the status data of the slave system or any one of the status data of the hard disk in the information group is updated, the second management unit changes the status bit value of the information group corresponding to the updated status data of the slave system or the updated status data of the hard disk into the second bit value; In the subordinate inspection step of the inspection step, the first management unit of the main hard disk expansion card device executes a second inspection instruction of the management module and is in communication connection with the second communication module through the first communication module to inspect the status bit value of each information group of the subordinate hard disk expansion card device, judges whether the status bit value of any information group of the subordinate hard disk expansion card device is inspected to be the second bit value, if so, the first management unit sends an acquisition message to the second management unit, and after the second management unit receives the acquisition message, all data in the information group corresponding to each status bit value is transmitted to the first communication module through the second communication module, and after the second management unit transmits all data in the information group corresponding to each status bit value to the first communication module through the second communication module, the second management unit changes the second bit value back to the first bit value, and if the first management unit receives the update message corresponding to the first communication module, the second management unit returns to the update message group, and if not, the second management unit receives the update message corresponding to the first communication module, and the synchronization instruction is executed.
  2. 2. The method of claim 1, wherein in the checking step, the first management unit periodically executes the first checking instruction and the second checking instruction.
  3. 3. The method of claim 1, wherein in the analyzing step, the master system state data is a CPLD state data message, SELF HEALTH state data message, cable state data message, sensor state data message, LED state data message, I2C state data message, SES state data message, the slave system state data is a CPLD state data message, SELF HEALTH state data message, cable state data message, sensor state data message, LED state data message, I2C state data message, SES state data message, the hard disk state data is an interface physical layer (PHY) state data message of the hard disk, in the managing step, the first management unit of the master hard disk expansion card device executes the managing module to separate the master system state data and the hard disk state data into a first information group, a second information group, and a third information group, wherein the D state data, SELF HEALTH state data and the Cable state data are respectively classified into the first information group, the second information group and the second information group are classified into the same, the first information group, the second information group and the second information group are classified into the second information group, the second information group and the second information group, and the second information group.
  4. 4. The method of claim 1, wherein in the completing step, when the first management unit transmits all data in the information group corresponding to each status bit value as the second status bit value to the second communication module and the first management unit determines that all data to be transmitted has been transmitted, the first management unit changes the second status bit value back to the first status bit value and then ends, and returns to the monitoring step after a predetermined time.
  5. 5. The method of claim 1, wherein the master hard disk expansion card device of the server data backup control system further comprises a first storage module connected to the first management unit, the slave hard disk expansion card device further comprises a second storage module connected to the second management unit, wherein in the step of managing data, the first management unit of the master hard disk expansion card device distinguishes the information group from the master system state data according to a default group table of the management module and stores the information group in the first storage module, and the second management unit of the slave hard disk expansion card device distinguishes the information group from the hard disk state data according to a default group table of the management module and stores the information group in the second storage module.

Description

Data backup control method for server Technical Field The present invention relates to a control method, and more particularly, to a server data backup control method. Background In computers or servers, it has been common to utilize clustered disk systems (e.g., just a Bunch Of Disks, JBOD) for system data storage management. Generally, a JBOD device is connected to a plurality of hard disks through an internal hard disk expansion control unit (expander), and detects information of the JBOD device and the plurality of hard disks and generates corresponding detection information (such as temperature or on/off state, etc.). When the JBOD device is connected with a host, the detection information is correspondingly acted according to the instruction sent by the host, for example, the detection information is returned to the host or the data of the plurality of hard disks are accessed, and the controller module of the hard disk expansion control unit can receive the data state information of the server and can monitor and store the operation state of the server system, such as CPLD state data information, cable on-line state data information, sensor state data information, LED state data information and other state data information of an interface physical layer (PHY) state data information of the hard disk. In the data storage technology, dual controller modules of a master controller and a slave controller capable of mutually backing up data are commonly utilized, except that the master controller can periodically update all data state information synchronization (Sync) of the master controller to the slave controller for backing up, the master controller can also periodically screen information from the slave controller, and after the master controller screens the slave controller for data, the master controller can integrate the data with the data of the master controller and then transmit the integrated data to the slave controller for synchronously updating all data state information, so that the data can be backed up and stored and protected, and the problem of data damage caused by abnormality of a single controller module is effectively avoided. However, the amount of data that the master controller updates all data state messages (Sync) to the slave controller each time is very large, and when only a small amount of data in the master controller needs to be updated to the slave controller synchronously, the master controller still updates all data state messages (Sync) to the slave controller, which is very time-consuming and inefficient. Moreover, the amount of data that the master controller screens the slave controller each time is very large, and even if the data status messages of the slave controller are unchanged, the master controller periodically screens the slave controller for messages, which is not efficient. And after the master controller screens the data from the slave controller, the data and the data of the master controller are integrated and then are transmitted to the slave controller to synchronously update all data state messages, so that the master controller and the slave controller need to communicate for many times regularly and the communication information amount is huge, which is very time consuming and the master controller and the slave controller often can screen and backup the data state messages which are not updated for many times in a meaningless way, thereby causing poor efficiency and further needing to be discussed and improved by practitioners. Disclosure of Invention The invention aims to provide a server data backup control method capable of reducing the read data quantity and having good efficiency. In order to solve the technical problems, the invention provides a server data backup control method which is applied to a server data backup control system, wherein the server data backup control system comprises a main control main board, a main hard disk expansion card device arranged on the main control main board, a slave hard disk expansion card device arranged on the slave main board and a storage device. The main hard disk expansion card device comprises a first management unit, a main hard disk expansion card connection unit for connecting the first management unit with the storage device and the main hard disk expansion card, and a first communication module for connecting the first management unit. The slave hard disk expansion card device comprises a second management unit, a slave hard disk expansion card connection unit connected with the second management unit and the storage device, and a second communication module connected with the second management unit and capable of being connected with the first communication module for communication. The storage device comprises a plurality of hard disks connected with the main hard disk expansion card connection unit and the auxiliary hard disk expansion card connection unit. The server data backup contro