Hard disk, data backup method and server

By setting a detachable storage part and controller on the hard disk, it is possible to back up the hard disk target type data to the storage part when the hard disk data service is idle, solving the problem of online data collection occupying bandwidth and affecting services in the prior art, and realizing online and non-affected collection of hard disk data.

CN119806893APending Publication Date: 2025-04-11XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311300821.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-09
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

When collecting target type data of hard disks online, the existing technology will occupy the server system bandwidth and affect the server business. Customers are not allowed to collect hard disk data with services, resulting in operation and maintenance personnel only collecting data after the hard disk is offline.

Method used

Design a hard disk. When the data service is idle, the hard disk is backed up the target type data of the hard disk into a detachable storage component through the controller, and displays the backup status through the instructions component. Operation and maintenance personnel can directly remove the storage component from the customer site for data analysis.

Benefits of technology

It realizes the online collection of target type data of hard disks without occupying the server system bandwidth and not affecting server business, reducing the work complexity and cost of operation and maintenance personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806893A_ABST
    Figure CN119806893A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a hard disk, a data backup method and a server. An external slot in which a storage piece can be inserted is formed in the hard disk. And when the hard disk data service is idle, backing up the target type data of the hard disk to a storage piece by utilizing a controller arranged on the hard disk, and periodically checking whether the target type data in the storage piece is the latest data or not. And generating a corresponding logic signal, controlling the indication part to display, prompting operation and maintenance personnel to take out the storage part and access the storage part to a new system, and analyzing target type data of the hard disk in the storage part. In the embodiment of the invention, by adopting the technical scheme, online collection of server hard disk data in a client site is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of servers, and in particular to a hard disk, a data backup method and a server. Background Art

[0002] When locating problems or conducting inspections on server operation and maintenance management in the existing network, it is often necessary to collect the target type data of the hard disk for analysis. The target type data of the hard disk mainly includes data such as the underlying log of the hard disk and the system log related to the hard disk. In the existing technical solutions, the target type data of the hard disk can only be collected online through the server system, and commands are issued to the hard disk to collect the target type data. The server solutions provided by the manufacturer often do not support the data collection function when penetrating the raid and hard disk data transmission. In addition, the risk of the server collecting the target type data of the hard disk online is relatively high, and customers are basically not allowed to collect hard disk data with business. Therefore, the operation and maintenance personnel can only collect hard disk data after the hard disk is offline.

[0003] In summary, how to collect target type data of hard disks online without occupying server system bandwidth and affecting server business has become a technical problem that needs to be solved urgently in server operation and maintenance management. Summary of the invention

[0004] In view of the fact that online collection of hard disk target type data in the prior art will occupy system bandwidth and affect server services, the following technical solutions are adopted in the embodiments of the present application:

[0005] In the first aspect, the embodiment of the present application provides a hard disk, which includes: a hard disk body, the hard disk body includes a controller and a storage medium; wherein the controller is connected to the storage medium through a first data channel; a storage component, the storage component is detachably installed in the hard disk body; the storage component is connected to the controller through a second data channel; the storage component backs up the target type data of the hard disk through the second data channel. In this way, when the working state of the hard disk is idle, the controller can be used to back up the target type data of the hard disk to the storage component without occupying the server system bandwidth and without affecting the server business. The operation and maintenance personnel can directly take out the storage component at the customer site and move the hard disk data in the storage component to other servers for problem location or inspection.

[0006] As a feasible implementation method, a slot is provided on the surface of the hard disk body, and the slot is used to plug in a storage device, and the storage device is a CF card, an SD card, a TF card, or a USB device.

[0007] As an achievable implementation method, an indicator component is provided on the surface of the hard disk body, and the indicator component is one or more LED lights, or a group of digital display tubes; the indicator component is electrically connected to the controller and is used to indicate the working status of the storage component. In this way, after the controller obtains the working status of the storage component, it generates a corresponding logic signal to control the display of the indicator component. The operation and maintenance personnel do not need to operate the server host at the customer site, and can understand the backup status of the underlying log of the hard disk through the display of the indicator component.

[0008] On the other hand, an embodiment of the present application provides a data backup method, wherein the hard disk includes a storage medium and a storage device, and the storage device is pluggable and installed in the hard disk. The method includes: obtaining the working status of the hard disk; if the working status of the hard disk is idle, obtaining target type data of the hard disk from the storage medium of the hard disk; and transferring the target type data to the storage device.

[0009] As an achievable implementation, the target type data is transmitted to the storage device, further comprising: periodically obtaining the time stamp of the target type data from the storage medium and the storage device; if the time stamp of the target type data in the storage medium is later than the time stamp of the target type data in the storage device, outputting the target type data in the storage medium to the storage device. In this way, it can be ensured that the target type data of the hard disk in the storage device is the latest data.

[0010] As an achievable implementation, the hard disk further includes an indication component, and transmitting the target type data to the storage component includes: acquiring the working status of the storage component, and generating a corresponding logic signal to control the indication component to display.

[0011] As an achievable implementation, the logic signal includes: if the time mark of the target type data in the storage element is the same as the time mark of the target type data in the storage medium, the logic signal controls the indicating component to display in the first color; if the target type data in the storage medium is being output to the storage element, the logic signal controls the indicating component to display in the first color and flashes, and the flashing interval is the first duration; if the time mark of the target type data in the storage medium is later than the time mark of the target type data in the storage element, and the status mark of the hard disk indicates busy, the logic signal controls the indicating component to display in the first color and flashes, and the flashing interval is the second duration; if the storage element is not plugged into an external slot, the logic signal controls the indicating component to display in the second color; if the storage element fails, the logic signal controls the indicating component to display in the third color. In this way, when the operation and maintenance personnel are at the customer site, they can understand the backup status of the underlying log of the hard disk and the current working status of the hard disk according to the color displayed by the indicating component and the flashing duration.

[0012] As an achievable implementation, the logic signal also includes: if the target type data in the storage medium is being output to the storage device, and the working state of the hard disk jumps from idle to busy; then the output of the target type data is interrupted, and a corresponding logic signal is generated, and the logic signal controls the indicator component to display in the first color and flash, and the flashing interval is set from the first duration to the second duration. In this way, when there is a conflict between the hard disk business and the hard disk target type data collection task, the indicator component can also provide instructions to the on-site operation and maintenance personnel to reduce misoperation.

[0013] As an achievable implementation method, the target type data is transmitted to the storage device, including: if the status mark of the hard disk indicates idle; obtain the identity information of the target type data from the storage medium and the storage device; if the identity information of the target type data in the storage medium matches the identity information of the target type data in the storage device, output the target type data in the storage medium to the storage device; or, if the target type data in the storage medium does not match the identity information of the target type data in the storage device, overwrite the target type data in the storage device with the target type data in the storage medium. In this way, the controller obtains the identity information of the target type data in the storage medium and the identity information of the target type data in the storage device, and overwrites the target type data with different identity information. When the operation and maintenance personnel take out the storage device at the customer site, it is not plugged into the hard disk slot that was previously taken out, but plugged into other hard disk slots, which will not cause confusion of the target type data in the storage device, and facilitate the implementation of operation and maintenance work.

[0014] On the other hand, an embodiment of the present application provides a server, including the above-mentioned hard disk; the hard disk can execute the above-mentioned data backup method when working. Compared with the prior art, an embodiment of the present application provides a hard disk, a data backup method and a server, by setting an external slot that can be plugged into a storage device on the hard disk. When the hard disk data service is idle, the target type data of the hard disk is backed up to the storage device by a controller set on the hard disk, and the target type data in the storage device is periodically checked to see if it is the latest data. And a corresponding logic signal is generated to control the display of the indicator component, prompting the operation and maintenance personnel to take out the storage device and connect it to the new system, and analyze the target type data of the hard disk in the storage device. In the embodiment of the present application, by adopting the above technical solution, the online collection of server hard disk data at the customer site is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a structural schematic diagram of a hard disk provided in an embodiment of the present application;

[0016] Figure 2 This is a schematic diagram of a scenario in which a hard disk collects hard disk data online provided by an embodiment of the present application;

[0017] Figure 3 It is a module diagram of a controller firmware program of a hard disk provided in an embodiment of the present application;

[0018] Figure 4 It is an implementation method of the storage element of the hard disk provided in the embodiment of the present application;

[0019] Figure 5 It is a schematic diagram of the configuration of the external slot of the hard disk provided in the embodiment of the present application;

[0020] Figure 6 This is a schematic diagram of a scenario in which a programmable component is arranged on a server to collect hard disk data online, as provided in an embodiment of the present application;

[0021] Figure 7 It is a schematic diagram of an embodiment of the present application in which a slot is arranged on a server;

[0022] Figure 8 is a flow chart of a hard disk data backup method provided by an embodiment of the present application;

[0023] Fig. 9 It is a schematic diagram of the structure of the server provided in the embodiment of the present application. DETAILED DESCRIPTION

[0024] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0025] In the description of the present application, the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0026] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, a conflicting connection or an integral connection; for ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to the specific circumstances. In the embodiments of this application, "contact" or "coupling" can refer to direct contact between components, or it can refer to contact between components through adhesives or thermally conductive colloids.

[0027] In the description of this specification, specific features, structures, materials or characteristics may be combined in an appropriate manner in any one or more embodiments or examples.

[0028] When locating problems or conducting inspections on server operation and maintenance management in the existing network, it is often necessary to collect the target type data of the hard disk for analysis. The target type data of the hard disk mainly includes data such as the underlying log of the hard disk and the system log related to the hard disk. In the existing technical solutions, the target type data of the hard disk can only be collected online through the server system, and commands are issued to the hard disk to collect the target type data. The server solutions provided by the manufacturer often do not support the data collection function when penetrating the disk array (RAID) and hard disk data transmission. In addition, the risk of the server collecting the target type data of the hard disk online is relatively high, and customers are basically not allowed to collect hard disk data with business. Therefore, operation and maintenance personnel can only collect hard disk data after the hard disk is offline.

[0029] In view of the above situation, an embodiment of the present application provides a hard disk, on which a slot for plugging a storage device is arranged. When the hard disk data service is idle, the target type data of the hard disk is backed up to the storage device by using a controller arranged on the hard disk, and periodically checks whether the target type data in the above storage device is the latest data. And generate corresponding logic signals to control the display of the indicator component. The operation and maintenance personnel do not need to operate the server host at the customer site, and can understand the backup status of the underlying log of the hard disk through the display of the indicator component. The storage device is taken out and connected to the new system, and based on the target type data in the storage device, the problem location or inspection of the server is carried out. By adopting the above technical solution, the online collection of hard disk data at the customer site is realized.

[0030] In this embodiment, the target type data of the hard disk mainly includes the hard disk underlying log that records some key events during the operation of the hard disk, and may also include hard disk related system logs such as disk failure, virus infection, hardware failure, etc.

[0031] The hard disk underlying log records some key events during the operation of the hard disk, including status indicators that reflect the health of the hard disk, such as the hard disk working normally, the hard disk failing, and the hard disk being in an unknown state. Specifically, when the status indicator is glist (increasing bad sectors), the hard disk underlying log also records the relevant indicators of the glist event, including an identity indicator (SN) for distinguishing the occurrence of the glish event, a time indicator (Timestamp) for tracking the exact date of the glish event, a location indicator (Location) for describing the component or area inside the hard disk where the glish event occurred, an indicator (Cause) for describing the cause of the glish event, such as the failure type and operation error, and other related indicators.

[0032] For example, Figure 1 FIG. 1 is a schematic diagram of the structure of a hard disk provided in an embodiment of the present application. Figure 1 As shown, the hard disk is provided with a controller 10, one or more storage media 20, an indication component 30 and an external slot 40. The controller 10 is connected to the one or more storage media 20 via a first data channel, connected to the external slot 40 via a second data channel, and electrically connected to the indication component 30.

[0033] The storage component 401 can be plugged into the external slot 40 to store target type data of the plugged hard disk.

[0034] In order to facilitate understanding of the technical solution of the present application, an application scenario of an embodiment of the present application is first introduced below.

[0035] Figure 2FIG. 1 is a schematic diagram of a scenario in which a hard disk collects hard disk data online according to an embodiment of the present application. Figure 2 As shown, the server host has one or more of the above-mentioned hard disks mounted thereon, and is electrically connected to the data port 50 on the one or more hard disks via the data port 50' provided on the server host.

[0036] In this embodiment, the server host sends service instructions to the controller 10 of one or more hard disks through the data port 50', and the controller 10 controls one or more storage media 20 to complete the service instructions. The server host can be a motherboard or a CPU.

[0037] In one application scenario, such as Figure 2 As shown, the type of server is not limited here, and can be a cabinet server, a tower server, a rack server, and a blade server. In other words, the embodiment of the present application does not specifically limit the specific type of server. Further, it can be understood that, Figure 2 The structure of the server shown does not constitute a limitation on the structure of the server. The server may include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0038] In the embodiment of the present application, there is no restriction on the type of the target hard disk. The target hard disk can be a solid-state hard disk or a hybrid hard disk. A hybrid hard disk is a new type of hard disk derived from a mechanical hard disk and a solid-state hard disk. Among them, the types of interfaces of the solid-state hard disk include: a serial ATA (Serial ATA, SATA) interface, an M.2 (PCI Express M.2 Specification, M.2) interface, a U.2 (SFF-8639) interface, and a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE) interface. The solid-state disk with the M.2 interface mainly includes: a solid-state hard disk that supports a serial ATA (Serial ATA, SATA) transmission channel and adopts the Advanced Host Controller Interface (Advanced Host Controller Interface, AHCI) standard protocol; a solid-state disk that supports a PCIE transmission channel and adopts the Non-Volatile Memory Express (NVME) standard protocol.

[0039] In this embodiment, a built-in storage module 101 is also provided on any one of the one or more hard disks, which is electrically connected to the controller 10 and is used to store the firmware program of the controller 10. In the embodiment of the present application, the built-in memory 101 here can be implemented in any way of memory such as NorFlash, Ram or NAND Flash.

[0040] Specifically, Figure 3 The module diagram of the controller firmware program of the hard disk provided in the embodiment of the present application is shown. The firmware program of the controller 10 includes a data acquisition unit 110, a data parsing unit 120, a state acquisition unit 130, an indication component control unit 140 and a data output unit 150.

[0041] The data acquisition unit 110 obtains the target type data of the hard disk from one or more storage media 20 through a first data channel; and obtains the target type data of the hard disk from a storage device through a second data channel.

[0042] The hard disk data parsing unit 120 is used to parse the target type data in one or more storage media 20 and the target type data in the storage element, and obtain the relevant identifiers of the target type data in the storage medium 20 and the target type data in the storage element 401, including the time identifier and the identity identifier of the hard disk.

[0043] The status acquisition unit 130 is used to acquire the current working status of the hard disk and the storage element 401. The working status is stored in the register address specified by the built-in memory 101 in the form of binary character identification in the firmware program.

[0044] Specifically, the working status identifier of the hard disk includes Busy and Idle.

[0045] The storage element 401 specifically includes the following working status identifiers.

[0046] Do_noting, indicating that the time stamp of the target type data in the hard disk storage element 401 is the same as the time stamp of the target type data in the storage medium, that is, the target type data in the storage element 401 is the latest log;

[0047] Backup, indicating that the controller is outputting the target type data of the hard disk in the storage medium 20 to the storage element 401, that is, the second data channel is transmitting the above target type data;

[0048] Wait, indicating that the time mark of the target type data in the hard disk storage medium 20 is later than the time mark of the target type data in the storage element 401, but at this time the hard disk status mark indicates busy, that is, the controller 10 waits for the hard disk working state to be converted to idle before continuing to back up the target type data in the hard disk storage medium 20;

[0049] Non_Memory indicates that the storage element 401 is not plugged into the external slot 40;

[0050] Trouble indicates that the storage device 401 plugged into the external slot 40 has a fault.

[0051] The indicating component control unit 140 generates corresponding logic signals according to the current working status of the hard disk and the storage component 401 to control the indicating component 30 to display.

[0052] Specifically, the logic signal generated by the indicating component control unit 140 according to the current working status of the hard disk and the storage component 401 is as follows.

[0053] If the working state is marked as Do_noting, the logic signal controls the indicating component to be displayed in a first color. In this embodiment, the first color is green.

[0054] If the working state is marked as Backup, the logic signal control indicator component is displayed in green and flashes, and the flashing interval is a first duration. In this embodiment, the first duration is set to 0.2s.

[0055] If the working state is marked as Wait, the logic signal control indicator component is displayed in green and flashes, and the flashing interval is a second duration. In this embodiment, the second set duration is set to 1s.

[0056] If the working state is marked as Non_Memory, the logic signal controls the indicating component to be displayed in a second color. In this embodiment, the second color is yellow.

[0057] If the working state is marked as Trouble, the logic signal control indicator component is displayed in a third color. In this embodiment, the third color is red.

[0058] The hard disk data output unit 150 outputs the target type data of the hard disk in the storage medium 20 to the storage element 401 through the second data channel.

[0059] In this embodiment, when the storage component 401 is plugged into the external slot 40 and the server is powered on, the storage component 401 will generate a trigger signal.

[0060] In response to the trigger signal, the state acquisition unit 130 of the controller acquires the state identifier of the hard disk from the register address specified by the built-in memory 101. If the state identifier of the hard disk indicates idle, indicating that the hard disk has no data transmission service at this time, a first detection instruction and a second detection instruction will be generated.

[0061] The data acquisition unit 110 responds to the first detection instruction and obtains the target type data of the hard disk where the storage medium is located in the storage medium of one or more hard disks through the first data channel; responds to the second detection instruction and obtains the target type data of the hard disk in the storage component 401 to which the hard disk is plugged through the second data channel.

[0062] The hard disk data parsing unit 120 parses the target type data in the hard disk storage medium to obtain the time mark and identity mark of the target type data; the hard disk data parsing unit 120 parses the target type data of the hard disk in the storage element 401 to obtain the time mark and identity mark of the target type data. Then, the log parsing unit 120 compares the time mark of the target type data in the storage element 401 with the time mark of the target type data in the storage medium 20.

[0063] If the time stamp of the target type data in the storage medium 20 is later than the time stamp of the target type data in the storage component 401, that is, the value of each field in the time stamp of the target type data in the storage medium 20 is greater than the value of each field in the time stamp of the target type data in the storage component 401, then the hard disk data output unit 150 of the controller 10 outputs the target type data of the hard disk in the storage medium 20 to the storage component 401 through the second data channel.

[0064] When backing up hard disk data to storage device 401, if the identity information of the target type data in the storage medium 20 matches the identity information of the target type data in the storage device 401, the controller outputs the target type data in the storage medium 20 to the storage device 401 through the second data channel; if the target type data in the storage medium 20 does not match the identity information of the target type data in the storage device 401, the controller 10 overwrites the target type data in the storage device 401 with the target type data in the storage medium 20 through the second data channel.

[0065] When the operation and maintenance personnel need to collect the target type data of the hard disk, they only need to take out the storage unit 401, move the target type data of the hard disk in the storage unit 401 to the new server, and insert it back into the external slot 40 of one or more hard disks after the collection is completed. If the operation and maintenance personnel do not insert the storage unit 401 back into the corresponding external slot 40 from which it was taken out, the controller will automatically overwrite the target type data with inconsistent identity information during the next hard disk data backup. Therefore, the same storage unit 401 will not store the target type data of the hard disk with different identity information, and the above implementation method can facilitate the data collection of the operation and maintenance personnel next time.

[0066] In this embodiment, the target type data in the storage medium 20 and the time mark of the target type data in the storage element 401 specifically include a date field indicating the year, month, and day when the hard disk data record occurs, and the date field is usually recorded in the format of year-month-day (YYYY-MM-DD); and the hour, minute, and second when the hard disk log record occurs, and the time field is usually recorded in the format of hour: minute: second (HH:MM:SS). The combination of the above fields is the time mark, including the complete date and time information of the target type data of the hard disk, usually including a combination of date and time, and possible millisecond or microsecond level accuracy.

[0067] At the same time, the controller 10 updates the working state identification of the storage element 401 to Backup, generates a logic signal, and controls the indicating component 30 to display green and flash, with a flashing interval of 0.2s. After the first hard disk log backup work is completed, the working state identification of the storage element 401 is updated to Do_noting, generates a logic signal, and controls the indicating component 30 to display green.

[0068] If the time stamp of the target type data in the storage component 401 is the same as the time stamp of the target type data in the storage medium 20, it means that the target type data of the hard disk backed up in the storage component 401 is the latest data, and a logic signal is generated, and the control indicator component 30 is displayed in green.

[0069] In this embodiment, when the storage element 401 is plugged into the external slot 40 and the server is running, the controller 10 will periodically obtain the status identifier of the hard disk from the register address specified by the built-in memory 101 according to the preset time. If the status identifier of the hard disk is Idle, a first detection instruction and a second detection instruction are generated, and the time identifier of the target type data in the storage element 401 and the time identifier of the target type data in the storage medium 20 are analyzed and compared, and the hard disk data backed up in the storage element 401 is updated.

[0070] The storage component 401 is plugged into the external slot 40. When the server is powered on or running, if the status mark of the hard disk is Busy, it means that the hard disk is performing data transmission. The controller 10 will wait for the hard disk to complete the data transmission service, and at the same time update the working status mark of the storage component 401 to Wait, generate a logic signal, and control the indicator component 30 to display green and flash, and the flashing interval is 1s.

[0071] In this embodiment, when the storage component 401 is not inserted into the external slot 40 and the server is powered on or running, the controller's indicator control unit 140 updates the working status flag of the storage component 401 to Non_Memory and generates a logic signal to control the indicator component 30 to display yellow.

[0072] In this embodiment, when the storage component 401 is plugged into the external slot 40 and fails, when the server is powered on or running, the indicator component control unit 140 of the controller 10 updates the working status flag of the storage component 401 to Trouble, and generates a logic signal at the same time, controlling the indicator component 30 to display red.

[0073] In the embodiment of the present application, there is no limitation on the type of the storage element 401 . Figure 4 What is shown is an implementation of the storage element of the hard disk provided in the embodiment of the present application, such as Figure 4 As shown, the storage element 401 is plugged into one or more hard disks in the form of a memory card. In the embodiment of the present application, the memory card here can be implemented in any form of a CF card, an SD card, a TF card, or a USB device.

[0074] Figure 5 FIG. 1 is a schematic diagram showing a configuration method of an external slot for a hard disk provided in an embodiment of the present application. Figure 5 As shown, an external slot 40, a storage component 401 and an indication component 30 are provided on the top of the hard disk 70 housing. At the same time, multiple groups of external slots 30, external storage modules 301 and indication components 40 are provided on the top of one or more hard disk housings, and the one or more hard disks are provided on the server frame 80. When the operation and maintenance personnel collect the underlying logs of the hard disk, they can conveniently display the indication component 30, take out the storage component 401 and connect it to the new system to collect the target type data of the hard disk. In the embodiment of the present application, the setting position of the external slot 40 is not limited. During the implementation process, it can be set at any position of one or more hard disks that are convenient for the operation and maintenance personnel to receive the display.

[0075] The hard disk provided in the first embodiment of the present application is provided with an external slot 40 on which a storage element 401 can be plugged. When the hard disk data service is idle, the target type data of the hard disk is backed up to the storage element 401 by using a controller provided on the hard disk, and the target type data in the storage element 401 is periodically checked to see if it is the latest data. A corresponding logic signal is generated to control the display of the indication component 30, prompting the operation and maintenance personnel to take out the storage element and connect it to the new system, and analyze the target type data of the hard disk in the storage element. In the embodiment of the present application, by adopting the above technical solution, the online collection of server hard disk data at the customer site is realized.

[0076] In the first embodiment of the present application, the controller 10 may be a programmable component implemented by any of ASIC and SSD, or may be a programmable device other than the controller, such as CPLD, FPGA, and MCU.

[0077] If the above-mentioned programmable components are CPLD, FPGA and MCU other than the controller 10, the components can be set on the hard disk, or independently set on the server.

[0078] Figure 6 The diagram shows a scenario in which a programmable component is arranged on a server to collect hard disk data online, as provided in an embodiment of the present application. Figure 6 As shown, the second embodiment of the present application is provided with a programmable component 60, an external slot 41, a storage component 411 and one or more indicating components 31 on the server. Among them, one or more indicating components 31 correspond to one or more hard disks. The server host is mounted with one or more hard disks, and is connected to the data interface 50 provided on the one or more hard disks through the data interface 50'.

[0079] The firmware program of the programmable component 60 is stored in a volatile memory arranged in the server, and is connected to the slot 41 through a second data channel and is electrically connected to the data port.

[0080] A controller 10 and one or more storage media 20 are disposed on any one of the one or more hard disks, wherein the controller 10 and the one or more storage media 20 are connected via a first data channel.

[0081] The storage component 411 is plugged into an external slot and generates a trigger signal when powered on; the programmable device 60 can respond to the trigger signal to obtain the working status identification of one or more hard disks. If the status identification of any hard disk among the one or more hard disks indicates that it is idle, the programmable component 60 generates a first detection instruction and a second detection instruction; in response to the first detection instruction, the controller 10 of the hard disk whose business status is idle obtains the target type data in the hard disk storage medium 20 and outputs it to the programmable component 60; in response to the second detection instruction, the programmable device 60 obtains the target type data consistent with the hard disk identity information from the storage component 411; the programmable device 60 is used to parse the target type data in the storage medium 20 and the target type data in the storage component 411 that are consistent with the hard disk identity information, and obtain the time identification of the target type data in the storage medium 20 and the target type data of the hard disk in the storage component 411.

[0082] If the target type data in the hard disk storage medium 20 is later than the target type data of the hard disk in the storage component 411, the target type data in the hard disk storage medium 20 is output to the storage component 411 through the second data channel, and a corresponding logic signal is generated to control the display of the indicator component 31 corresponding to the hard disk whose business status is idle.

[0083] In this embodiment, the target type data of one or more hard disks in the storage component 411 are classified according to the identity information and stored in different file paths, or are named according to the identity information and stored in a specified file path in the storage component 411.

[0084] Figure 7 The schematic diagram of the embodiment of the present application showing the arrangement of the slot on the server is shown as follows: Figure 6 As shown, the slot 41, the storage component 411 and one or more indicating components 31 are arranged on a server frame 80. When the operation and maintenance personnel collect the target type data of the hard disk 70, they can conveniently take out the storage component 411 and connect it to the new system to collect the target type data of the hard disk 70 according to the display of the indicating component 31. In the embodiment of the present application, the setting position of the external slot 41 is not limited. During the implementation process, it can be set at any position of the server frame 80 that is convenient for the operation and maintenance personnel to receive the display.

[0085] In this embodiment, a programmable component and a slot 41 of a pluggable storage component 411 are arranged on the server. When the data service of the hard disk 70 is idle, the target type data of one or more hard disks are backed up to the storage component 411 by using a programmable device, and the target type data in the above storage component 411 is periodically checked to see if it is the latest data. And a corresponding logic signal is generated to control the display of the indicator component 31. In the embodiment of the present application, by adopting the above technical solution, the online collection of the underlying logs of the server hard disk at the customer site is realized. And by collecting logs through a programmable device independently arranged on the server, the impact on the data transmission service of the hard disk 70 is reduced. At the same time, the operation and maintenance personnel only need to take out a storage component 411 and connect it to the new system at the customer site to collect the target type data of all hard disks mounted on the server, which reduces the complexity of the operation and maintenance work and reduces the implementation cost.

[0086] The above is the introduction to the hard disk provided in the embodiment of the present application. Next, based on the above content, a data backup method provided in the embodiment of the present application is introduced.

[0087] Figure 8 FIG. 1 is a flow chart of a hard disk data backup method provided by an embodiment of the present application. Figure 8 As shown, the method backs up the target type data of the hard disk through steps S810 to S830.

[0088] As shown in step S810, the working state of the hard disk is obtained by using the state acquisition unit of the controller. In this embodiment, the working state identifier of the hard disk includes busy and idle.

[0089] As shown in step S820, if the working state of the hard disk is idle, the target type data of the hard disk is obtained from the storage medium of the hard disk.

[0090] In this embodiment, while acquiring the target type data of the hard disk from the storage medium of the hard disk, the data acquisition unit of the controller is also used to periodically acquire the target type data of the hard disk from the storage element. The target type data includes a time mark of the target type data.

[0091] Then, the data parsing unit of the controller is used to analyze the time mark of the above target type data.

[0092] If the time stamp of the target type data in the storage medium is later than the time stamp of the target type data in the storage element, the target type data in the storage medium is output to the storage element 411 .

[0093] As shown in step S830, the target type data is transmitted to the storage element by using a controller. The target type data of the storage medium and the hard disk in the storage element also includes identity information for indicating the hard disk.

[0094] In this embodiment, the data parsing unit of the controller is used to analyze the identity information of the target type data of the storage medium and the hard disk in the storage element.

[0095] If the identity information of the target type data in the storage medium matches the identity information of the target type data in the storage element, outputting the target type data in the storage medium to the storage element; or,

[0096] If the target type data in the storage medium does not match the identity information of the target type data in the storage element, the target type data in the storage element is overwritten with the target type data in the storage medium.

[0097] As mentioned above, an indication component for indicating the data backup status of the storage element is also provided on the hard disk or the server.

[0098] In this embodiment, the state acquisition module of the controller is used to acquire the working state of the storage element and generate a corresponding logic signal, and the logic signal controls the display of the indicating component. The types of the above logic signals are as follows.

[0099] If the time mark of the target type data in the storage element is the same as the time mark of the target type data in the storage medium, the logic signal controls the indicating component to be displayed in green.

[0100] If the target type data in the storage medium is being output to the storage element, the logic signal control indication component is displayed in green and flashes, with a flashing interval of 0.2s.

[0101] If the time mark of the target type data in the storage medium is later than the time mark of the target type data in the storage element, and the status mark of the hard disk indicates busy, the logic signal control indicator component is displayed in green and flashes, and the flashing interval is 1s.

[0102] If the storage element is not inserted into the external slot, the logic signal control indicator component is displayed in yellow.

[0103] If the storage element fails, the logic signal controls the indicating component to display in red.

[0104] If the target type data in the storage medium is being output to the storage device, and the working state of the hard disk changes from idle to busy, the output of the target type data is interrupted, and a corresponding logic signal is generated. The logic signal controls the indicator component to display green and flash, and the flashing interval is set from 0.2s to 0.1s.

[0105] The above is a relevant introduction to a data backup method provided by an embodiment of the present application. Next, based on the above content, a server provided by an embodiment of the present application is introduced. It can be understood that the server is proposed based on the content described above, and part or all of the content in the method can refer to the description above.

[0106] Fig. 9 The structure diagram of the server provided in the embodiment of the present application is shown. Fig. 9 As shown, an embodiment of the present application provides a server 90, including the above-mentioned hard disk 91; the hard disk 91 can execute the above-mentioned data backup method when working.

[0107] As mentioned above, the embodiments of the present application do not specifically limit the specific type of the server. Further, it is understood that the structure of the server shown above does not constitute a limitation on the structure of the server, and the server may include more or fewer components than shown, or combine certain components, or arrange the components differently. At the same time, the embodiments of the present application do not specifically limit the specific type of the hard disk used by the server or the placement position in the server.

[0108] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

[0109] The types, quantities, shapes, installation methods, structures, etc. of the components of the server provided in the embodiments of the present application are not limited to the above embodiments, and all technical solutions implemented under the principles of the present application are within the protection scope of this solution. Any one or more embodiments or diagrams in the specification, combined in an appropriate manner, are within the protection scope of this solution.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application. Those skilled in the art should understand that, although the present application is described in detail with reference to the aforementioned embodiments, the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims

1. A hard disk, characterized in that: include: A hard disk body, comprising a controller and a storage medium; wherein the controller and the storage medium are connected via a first data channel; A storage component is detachably installed in the hard disk body; the storage component is connected to the controller via a second data channel; the storage component backs up the target type data of the hard disk via the second data channel.

2. The hard disk according to claim 1, characterized in that: The surface of the hard disk body is provided with a slot, and the slot is used to plug in a storage component, and the storage component is a CF card, an SD card, a TF card, or a USB device.

3. The hard disk according to claim 1, characterized in that: The surface of the hard disk body is provided with an indication component, which is one or more LED lights, or a group of digital display tubes; the indication component is electrically connected to the controller and is used to indicate the working status of the storage element.

4. A data backup method, applied to the hard disk according to any one of claims 1 to 3, wherein the hard disk comprises a storage medium and a storage element, wherein the storage element is pluggable and installed in the hard disk, wherein: The method comprises: Obtaining the working status of the hard disk; If the working state of the hard disk is idle, obtaining the target type data of the hard disk from the storage medium of the hard disk; The target type data is transferred to the storage device.

5. The data backup method according to claim 4, characterized in that: The step of transmitting the target type data to the storage device comprises: Periodically acquiring a time stamp of the target type data from the storage medium and the storage element; If the time stamp of the target type data in the storage medium is later than the time stamp of the target type data in the storage element, the target type data in the storage medium is output to the storage element.

6. The data backup method according to claim 5, wherein the hard disk further comprises an indicating component, characterized in that: The transmitting the target type data to the storage device comprises: The working state of the storage component is obtained, and a corresponding logic signal is generated to control the display of the indicating component.

7. The data backup method according to claim 6, characterized in that: The logic signal includes: If the time mark of the target type data in the storage element is the same as the time mark of the target type data in the storage medium, the logic signal controls the indicating component to be displayed in a first color; If the target type data in the storage medium is being output to the storage element, the logic signal controls the indicating component to display a first color and flash, and the flashing interval is a first duration; If the time mark of the target type data in the storage medium is later than the time mark of the target type data in the storage element, and the status mark of the hard disk indicates busy, the logic signal controls the indicating component to display in the first color and flash, and the flashing interval is the second duration; If the storage element is not plugged into the external slot, the logic signal controls the indicating component to display a second color; If the storage element fails, the logic signal controls the indicating component to display a third color.

8. The data backup method according to claim 6, characterized in that: The logic signal further includes: If the target type data in the storage medium is being output to the storage device, and the working state of the hard disk jumps from idle to busy, the output of the target type data is interrupted, and a corresponding logic signal is generated. The logic signal controls the indication component to display in the first color and flash, and the flashing interval is set from the first duration to the second duration.

9. The data backup method according to claim 4, characterized in that: The transferring of the target type data to the storage device further includes: Acquire the identity information of the target type data from the storage medium and the storage element; If the identity information of the target type data in the storage medium matches the identity information of the target type data in the storage element, outputting the target type data in the storage medium to the storage element; or, If the target type data in the storage medium does not match the identity information of the target type data in the storage element, the target type data in the storage element is overwritten with the target type data in the storage medium.

10. A server, characterized in that: It comprises a hard disk as claimed in any one of claims 1 to 3; when the hard disk is in operation, it can execute the method as claimed in any one of claims 4 to 9.

Citation Information

Cited By

  • Controller assembly, storage device and server

    CN121050949A

  • Controller assembly, storage device and server

    CN121050949B