Hard disk carrier position status monitoring device and method

By installing identification components on the hard drive trays and using programmable logic devices to monitor the removal status of the hard drive trays, the problem of not being able to detect when the hard drive trays are removed in a timely manner is solved, realizing automatic return and early warning of the hard drive trays, ensuring the safe operation of the hard drive and data protection.

CN117687865BActive Publication Date: 2026-07-10INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-11-08
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

When a hard drive tray is removed, the server cannot detect it in time, leading to data loss or overheating of a working hard drive.

Method used

By installing a second identifier on the hard drive tray and a first identifier at the receiving slot, the system uses programmable logic devices and a baseboard management controller to monitor the removal status and time of the hard drive tray, and sets up a moving component and an alarm unit to ensure that the hard drive tray returns to its initial position within a preset time and issues an early warning.

Benefits of technology

It effectively identifies the status and duration of hard drive tray removal, preventing overheating of fault-free hard drives due to excessive maintenance time and ensuring data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117687865B_ABST
    Figure CN117687865B_ABST
Patent Text Reader

Abstract

This application discloses a method and system for monitoring the position and status of a hard disk tray, relating to the technical field of hard disks. The method includes a first identification element installed near the receiving port, and a second identification element installed on the hard disk tray; a programmable logic device (PLD) communicatively connected to the first and second identification elements, which acquires the pull-out distance of the hard disk tray through the first and second identification elements; a timer set within the PLD for calculating the pull-out time required for the hard disk tray to meet a preset pull-out distance; and a baseboard management controller communicatively connected to the PLD, which controls a server to perform a protection operation when the pull-out time of the hard disk tray exceeds a preset time. This application can effectively identify the state of the hard disk being pulled out and monitor the duration of the hard disk tray being pulled out, issuing an early warning when a safe time is exceeded to ensure stable operation of the hard disk in place.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of hard disks, and specifically to a hard disk tray position status monitoring device and method. Background Technology

[0002] The hard drive bays are located inside the server, and the hard drives are cooled by server fans. The overall integration density is high. When a hard drive in a bay fails and needs maintenance or replacement, maintenance personnel need to remove the bay to operate on the drive. Due to the large number of hard drives requiring maintenance, there's a possibility that the removal of the bay might go unnoticed by the backend system, potentially leading to data loss. Furthermore, the large number of hard drives requiring maintenance and the lengthy replacement process pose a significant challenge to cooling the other normally functioning hard drives, potentially leading to overheating due to the continuous accumulation of heat. Summary of the Invention

[0003] To address at least one of the problems mentioned in the background art, this application provides a hard disk tray position status monitoring device and method, which can effectively identify the state of the hard disk being pulled out and monitor the duration of the hard disk tray being pulled out, and issue an early warning when the safe time is exceeded, so as to ensure that the hard disk operates smoothly in place.

[0004] The specific technical solutions provided in this application are as follows:

[0005] In a first aspect, a hard disk tray position status monitoring device is provided, applied to a server, wherein the server is provided with a receiving slot in which a hard disk tray is installed, and the device includes:

[0006] A first identification element is installed near the receiving port, and a second identification element is installed on the hard disk tray;

[0007] A programmable logic device is communicatively connected to the first and second identification elements, and obtains the pull-out distance of the hard disk tray through the first and second identification elements;

[0008] A timer, set within the programmable logic device, is used to calculate the extraction time required for the hard disk tray to satisfy a preset extraction distance;

[0009] The baseboard management controller is communicatively connected to the programmable logic device. When the hard disk tray is removed for a period of time exceeding a preset time, it controls the server to perform a protection operation.

[0010] In one specific embodiment, a moving component is also included;

[0011] The movable component is installed in the receiving slot and is slidably connected to the hard drive tray. When the hard drive tray is pulled out for more than a preset time, it drives the hard drive tray back to the initial position.

[0012] The control of the server to perform protection operations includes controlling the server to shut down or migrate data on the hard drive;

[0013] The substrate management controller accesses information on the programmable logic device via the integrated circuit bus, reads the extraction distance, and performs analysis in conjunction with a preset extraction distance.

[0014] In one specific embodiment, the programmable logic device is disposed on the server backplane;

[0015] The programmable logic device is communicatively connected to the first and second identification devices via a general-purpose input / output port.

[0016] The first identification element includes a magnetic element;

[0017] The second identification element includes a magnetic detection switch.

[0018] In one specific embodiment, the device further includes an alarm unit;

[0019] The alarm unit includes an LED light and a buzzer;

[0020] The LED light switches from green to red when the hard drive tray is pulled out for more than a preset time;

[0021] The buzzer will sound an alarm when the hard drive tray is pulled out for more than a preset time.

[0022] In one specific embodiment, the second identification element is installed away from the outer wall of the server when the hard disk tray is pulled out of the server;

[0023] The first identification element and the second identification element are located in the vertical direction of the same straight line.

[0024] Secondly, a method based on the hard disk tray position status monitoring device described above is provided, the method comprising:

[0025] The position status of the hard drive tray is detected by the first and second identification components;

[0026] In response to the hard drive tray being pulled out, the pulling distance of the hard drive tray is obtained;

[0027] If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing.

[0028] When the timer's extraction time exceeds a preset time, the baseboard management controller controls the server to perform a protection operation.

[0029] In one specific embodiment, the method further includes:

[0030] The display status of the first and second identification devices is read by the baseboard management controller to determine whether the hard disk tray has been removed.

[0031] When the indication status of the first and second identification elements is in place, the hard disk tray is not pulled out;

[0032] Alternatively, when the indication status of the first and second identification elements is not in place, the hard disk tray is pulled out;

[0033] In response to the hard drive tray being pulled out, the distance between the first identification element and the second identification element is obtained to obtain the pulling distance.

[0034] Thirdly, a hard disk tray position status monitoring system is provided, the system comprising:

[0035] The detection module is used to detect the position status of the hard disk tray through the first identification element and the second identification element;

[0036] The acquisition module, in response to the hard drive tray being pulled out, acquires the pulling distance of the hard drive tray.

[0037] If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing.

[0038] The execution module, when the timer's extraction time exceeds a preset time, the baseboard management controller controls the server to perform a protection operation.

[0039] Fourthly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the following steps:

[0040] Step A: Detect the position status of the hard drive tray using the first and second identification components;

[0041] Step B: In response to the hard drive tray being pulled out, obtain the pull-out distance of the hard drive tray;

[0042] Step C: If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing;

[0043] Step D: When the timer's extraction time exceeds a preset time, the baseboard management controller controls the server to perform a protection operation.

[0044] Fifthly, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, performs the following steps:

[0045] Step A: Detect the position status of the hard drive tray using the first and second identification components;

[0046] Step B: In response to the hard drive tray being pulled out, obtain the pull-out distance of the hard drive tray;

[0047] Step C: If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing;

[0048] Step D: When the timer's extraction time exceeds a preset time, the baseboard management controller controls the server to perform a protection operation.

[0049] The embodiments of this application have the following beneficial effects:

[0050] 1. The solution provided in this application embodiment can effectively identify the state of the hard drive tray being pulled out and detect the duration of the hard drive tray being pulled out. When the pulling time exceeds the safe time, the moving component is triggered to drive the hard drive tray back to the initial position, thereby avoiding the problem of overheating of the fault-free hard drive due to long hard drive maintenance time.

[0051] 2. Set up an alarm unit, including LED lights and a buzzer, to issue an alarm via LED lights and a buzzer when the hard drive tray exceeds a preset time. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This invention provides a schematic diagram of the server and hard disk tray according to the present application.

[0054] Figure 2 A schematic diagram showing the installation positions of the first and second identification elements according to this application;

[0055] Figure 3 A schematic diagram showing the hard disk tray in the withdrawn state according to this application;

[0056] Figure 4 A connection diagram of the CPLD according to this application is shown;

[0057] Figure 5 A schematic diagram illustrating the application environment according to this application is shown;

[0058] Figure 6 A schematic diagram is shown of the hard disk tray position status monitoring method according to this application;

[0059] Figure 7 A schematic diagram illustrating the monitoring process in the server according to this application is shown;

[0060] Figure 8 A schematic diagram of a hard disk tray position status monitoring system according to this application is shown;

[0061] Figure 9 A schematic diagram of a computer device according to this application is shown. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0063] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly attached to the other element or there may be an intervening element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or there may be an intervening element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only and do not represent the only possible implementation.

[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0065] Example 1

[0066] This invention provides a hard drive tray position status monitoring device for use in servers, which can be implemented using standalone servers or server clusters composed of multiple servers. Specifically, such as... Figure 1 As shown, the server is provided with a slot for accommodating hard drives, and a hard drive bracket is installed in the hard drive slot. The device includes:

[0067] like Figure 2 As shown, there is a first identification element and a second identification element, wherein the first identification element is installed near the receiving port and is on the same plane as the receiving port, and the second identification element is installed on the hard disk tray, and the first identification element and the second identification element are located in the vertical direction of the same straight line.

[0068] A programmable logic device is communicatively connected to a first identifier and a second identifier, and obtains the pull-out distance of the hard disk tray through the first identifier and the second identifier;

[0069] A timer, set within the programmable logic device, is used to calculate the extraction time required for the hard disk tray to satisfy a preset extraction distance;

[0070] The baseboard management controller (BMC) is communicatively connected to a programmable logic device; when the hard disk tray is removed for a preset time, the controller controls the server to perform a protection operation.

[0071] It also includes a movable component, which is installed in the receiving slot and slidably connected to the hard drive tray. When the hard drive tray is pulled out for more than a preset time, it drives the hard drive tray back to its initial position.

[0072] It should be noted that the protection operations performed by the BMC control server include shutting down the control server or migrating data on the hard drive, and recording the removal of the hard drive tray as a security event in the BMC log.

[0073] In one specific embodiment, the system further includes a substrate management controller that accesses information on a programmable logic device via an integrated circuit bus, reads the extracted distance, and performs analysis in conjunction with a preset extracted distance.

[0074] It should be noted that, as Figure 3 As shown, in this embodiment, the first identification element is a magnetic element, and the second identification element is a magnetic detection switch. The magnetic detection switch can sense the magnetic element and the change of its magnetic field. When the distance between the two changes, the magnetic field detected by the magnetic detection switch also changes, thereby realizing the determination of the distance status between the hard drive tray and the server.

[0075] With the above settings, the hard drive tray is initially in its initial position, that is, the hard drive tray is installed in the server's receiving port. At this time, the first and second identification components are in their initial positions, and the status of the second identification component is displayed as LID ON, indicating that the hard drive tray has not been removed. When the hard drive tray is removed from the server, the second identification component senses the change in magnetism with the first identification component, and its status is displayed as LID off, thereby realizing the determination of whether the hard drive tray has been removed.

[0076] In a specific embodiment, such as Figure 4 As shown, the Complex Programmable Logic Device (CPLD) is mounted on the server backplane, and the CPLD communicates with the first and second identifiers via GPIO pins to obtain their status; at the same time, the CPLD is also connected to the disk management unit, which is interconnected with the CPLD via I2C, SGPIO, etc.

[0077] When the hard drive tray is detected to be removed from the server, the CPLD controls the timer to start counting. By pre-setting the removal time, for example, setting the removal time to 1 minute, when the timer exceeds 1 minute, the CPLD sends a command to the moving component, which then drives the hard drive tray back to its initial position.

[0078] To alert staff during actual operation when a hard drive tray is not promptly pushed back into the server after being removed, the device also includes an alarm unit, specifically comprising an LED light and a buzzer. When the hard drive tray is removed beyond a preset time (i.e., the tray is not removed), the alarm unit does not sound, and the indicator light remains off-green. When the hard drive tray is removed from the server, a timer in the CPLD begins counting. When the timer records that the removal time exceeds the preset time, the alarm unit activates, the LED light changes from green to red, and the buzzer sounds, reminding staff to address the issue promptly.

[0079] It should be noted that the operation instructions executed by the CPLD in this embodiment can also be implemented by the BMC through the I2C IOExpander.

[0080] To more accurately detect the distance the hard drive tray is pulled out of the server using the first and second identification components, the first identification component is installed on the upper part of the front side of the server chassis and is fixed in place by a connector, while the second identification component is installed on the side wall of the hard drive tray by a connector.

[0081] Specifically, the second identification component is installed away from the outer wall of the server when the hard drive tray is pulled out of the server. When the hard drive tray is pulled out of the server, the part away from the outer wall of the server is pulled out of the receiving slot first. Therefore, by installing the second identification component on the outer wall of the hard drive tray, the pulling distance of the hard drive tray from the server receiving slot can be monitored more accurately.

[0082] It should be noted that the connecting components in this embodiment include, but are not limited to, bolts and adhesives.

[0083] The solution in this embodiment can effectively identify the state of the hard drive tray being pulled out and detect the duration of the hard drive tray being pulled out. When the pulling time exceeds the safe time, the moving component is triggered to drive the hard drive tray back to the initial position, thereby avoiding the problem of overheating of the fault-free hard drive due to long hard drive maintenance time.

[0084] Example 2

[0085] The difference between this embodiment and Embodiment 1 is that both the first and second identification components are position sensors. One position sensor is installed at the bottom of the receiving slot and fixedly connected to the server, while the other position sensor is installed on the side wall of the hard drive tray. When the hard drive tray is on the server, it is in its initial position, meaning the distance between the two sensors is "0". When the hard drive tray is pulled out, the distance between the two position sensors continuously increases. When the distance between the two position sensors is within a preset pull-out distance range, a timer starts counting, and the hard drive tray can be maintained within the preset time. After the preset time has elapsed, the moving component automatically drives the hard drive tray back to its initial position.

[0086] Example 3

[0087] This application provides a method based on the hard disk tray position status monitoring device described above, which can be applied to, for example... Figure 5 In the application environment shown, terminal 102 communicates with server 104 via a network. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices.

[0088] In one embodiment, such as Figure 6 As shown, a method for monitoring the position status of a hard disk tray is provided, which can be applied to... Figure 5 Taking the terminal in the example, the explanation includes the following steps:

[0089] Step S1: Detect the position status of the hard drive tray using the first and second identification components;

[0090] Step S2: In response to the hard drive tray being pulled out, obtain the pulling distance of the hard drive tray being pulled out;

[0091] Step S3: If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing;

[0092] Step S4: When the timer's extraction time exceeds the preset time, the hard disk tray returns to its initial position under the action of the moving component.

[0093] In one specific embodiment, the display status of the first and second identification devices is read by the baseboard management controller to determine whether the hard disk tray has been removed;

[0094] When the indication status of the first and second identification elements is in place, the hard disk tray is not pulled out;

[0095] Alternatively, when the indication status of the first and second identification elements is not in place, the hard disk tray is pulled out;

[0096] In response to the hard drive tray being pulled out, the distance between the first identification element and the second identification element is obtained to obtain the pulling distance.

[0097] In one specific embodiment, the second identification element is installed away from the outer wall of the server when the hard disk tray is pulled out of the server; the first identification element and the second identification element are located in the vertical direction of the same straight line.

[0098] In one specific embodiment, the programmable logic device (PLD) obtains the pull-out distance of the hard disk tray through the first and second identifiers; and uses a timer to calculate the pull-out time of the hard disk tray to meet the preset pull-out distance. Simultaneously, the PLD communicates with the first and second identifiers through a general-purpose input / output port to acquire data information from the first and second identifiers.

[0099] In one specific embodiment, the substrate management controller is communicatively connected to the programmable logic device; it accesses information on the programmable logic device via the integrated circuit bus, reads the extraction distance, and performs analysis in conjunction with a preset extraction distance.

[0100] In one specific embodiment, when the hard drive tray is pulled out for a longer than a preset time, the LED light switches from green to red, and the buzzer starts to sound an alarm when the hard drive tray is pulled out for a longer than the preset time.

[0101] With the above settings, as Figure 7 As shown, when the server starts working, it can effectively identify the state of the hard drive tray being pulled out and detect the duration of the hard drive tray being pulled out. When the pulling time exceeds the safe time, the moving component is triggered to drive the hard drive tray back to the initial position, thereby avoiding the problem of overheating of fault-free hard drives due to long hard drive maintenance time.

[0102] It should be understood that, although Figure 6 and 7The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 6 and 7 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0103] Example 4

[0104] In one embodiment, such as Figure 8 As shown, a hard disk tray position status monitoring system is provided, including: a detection module, used to detect the position status of the hard disk tray through a first identification element and a second identification element;

[0105] The acquisition module, in response to the hard drive tray being pulled out, acquires the pulling distance of the hard drive tray.

[0106] If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing.

[0107] The execution module, when the timer's extraction time exceeds a preset time, the hard disk tray returns to its initial position under the action of the moving component.

[0108] In one specific embodiment, it further includes a judgment module, used to read the display status of the first identification and the second identification through the baseboard management controller, so as to determine whether the hard disk tray has been pulled out; when the indication status of the first identification and the second identification is in place, the hard disk tray has not been pulled out;

[0109] Alternatively, when the indication status of the first and second identification elements is not in place, the hard disk tray is pulled out;

[0110] In response to the hard drive tray being pulled out, the distance between the first identification element and the second identification element is obtained to obtain the pulling distance.

[0111] In one specific embodiment, a mounting module is also provided, which is used to install the second identification element away from the outer wall of the server when the hard disk tray is pulled out of the server; the first identification element and the second identification element are located in the vertical direction of the same straight line.

[0112] In one specific embodiment, the programmable logic device in the timing module obtains the pull-out distance of the hard disk tray through the first and second identifiers; and uses a timer to calculate the pull-out time for the hard disk tray to meet the preset pull-out distance. Simultaneously, the programmable logic device communicates with the first and second identifiers through a general purpose input / output port to acquire data information from the first and second identifiers.

[0113] In one specific embodiment, the substrate management controller is communicatively connected to the programmable logic device; it accesses information on the programmable logic device via the integrated circuit bus, reads the extraction distance, and performs analysis in conjunction with a preset extraction distance.

[0114] In one specific embodiment, an alarm module is also included, which is used to switch the LED light from green to red and the buzzer to start an alarm when the hard drive tray is pulled out for more than a preset time.

[0115] For specific limitations regarding the hard drive tray position status monitoring system, please refer to the limitations of the hard drive tray position status monitoring method mentioned above, which will not be repeated here. Each module in the aforementioned hard drive tray position status monitoring system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or they can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0116] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and the database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data within a preset range and at preset times. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for monitoring the position and status of hard disk trays.

[0117] Those skilled in the art will understand that Figure 9The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0118] Example 5

[0119] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0120] Step 101: Detect the position status of the hard drive tray using the first and second identification components;

[0121] Step 102: In response to the hard drive tray being pulled out, obtain the pull-out distance of the hard drive tray;

[0122] Step 103: If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing;

[0123] Step 104: When the timer's extraction time exceeds the preset time, the hard disk tray returns to its initial position under the action of the moving component.

[0124] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0125] The display status of the first and second identification devices is read by the baseboard management controller to determine whether the hard disk tray has been removed.

[0126] When the indication status of the first and second identification elements is in place, the hard disk tray is not pulled out;

[0127] Alternatively, when the indication status of the first and second identification elements is not in place, the hard disk tray is pulled out;

[0128] In response to the hard drive tray being pulled out, the distance between the first identification element and the second identification element is obtained to obtain the pulling distance.

[0129] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0130] The second identification element is installed away from the outer wall of the server when the hard drive tray is removed from the server; the first identification element and the second identification element are located in the vertical direction of the same straight line.

[0131] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0132] The programmable logic device (PLD) acquires the pull-out distance of the hard disk tray through the first and second identifiers; and uses a timer to calculate the pull-out time for the hard disk tray to meet the preset pull-out distance. Simultaneously, the PLD communicates with the first and second identifiers through a general-purpose input / output port to acquire data information from the first and second identifiers.

[0133] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0134] The substrate management controller is communicatively connected to the programmable logic device; it accesses information on the programmable logic device via the integrated circuit bus, reads the extraction distance, and performs analysis in conjunction with a preset extraction distance.

[0135] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0136] When the hard drive tray is pulled out for longer than a preset time, the LED light switches from green to red, and the buzzer starts to sound an alarm when the hard drive tray is pulled out for longer than the preset time.

[0137] Example 6

[0138] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0139] Step 201: Detect the position status of the hard drive tray using the first and second identification components;

[0140] Step 202: In response to the hard drive tray being pulled out, obtain the pull-out distance of the hard drive tray;

[0141] Step 203: If the extraction distance is within a preset range, the programmable logic device starts the timer to begin timing;

[0142] Step 204: When the timer's extraction time exceeds a preset time, the hard disk tray returns to its initial position under the action of the moving component.

[0143] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0144] The display status of the first and second identification devices is read by the baseboard management controller to determine whether the hard disk tray has been removed.

[0145] When the indication status of the first and second identification elements is in place, the hard disk tray is not pulled out;

[0146] Alternatively, when the indication status of the first and second identification elements is not in place, the hard disk tray is pulled out;

[0147] In response to the hard drive tray being pulled out, the distance between the first identification element and the second identification element is obtained to obtain the pulling distance.

[0148] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0149] The second identification element is installed away from the outer wall of the server when the hard drive tray is removed from the server; the first identification element and the second identification element are located in the vertical direction of the same straight line.

[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0151] The programmable logic device (PLD) acquires the pull-out distance of the hard disk tray through the first and second identifiers; and uses a timer to calculate the pull-out time for the hard disk tray to meet the preset pull-out distance. Simultaneously, the PLD communicates with the first and second identifiers through a general-purpose input / output port to acquire data information from the first and second identifiers.

[0152] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0153] The substrate management controller is communicatively connected to the programmable logic device; it accesses information on the programmable logic device via the integrated circuit bus, reads the extraction distance, and performs analysis in conjunction with a preset extraction distance.

[0154] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0155] When the hard drive tray is pulled out for longer than a preset time, the LED light switches from green to red, and the buzzer starts to sound an alarm when the hard drive tray is pulled out for longer than the preset time.

[0156] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0157] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0158] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A hard disk tray position status monitoring device, characterized in that, Applied to a server, the server is provided with a receiving slot, in which a hard drive bracket is installed, the device includes: A first identification element is installed near the receiving port, and a second identification element is installed on the hard disk tray; A programmable logic device is communicatively connected to the first and second identification elements, and obtains the pull-out distance of the hard disk tray through the first and second identification elements; The programmable logic device is disposed on the server backplane. The programmable logic device is communicatively connected to the first identification element and the second identification element through a general-purpose input / output port. The first identification element includes a magnetic element, and the second identification element includes a magnetic detection switch. The second identification element is installed away from the outer wall of the server when the hard disk tray is pulled out of the server, and the first identification element and the second identification element are located in the vertical direction of the same straight line; A timer, set within the programmable logic device, is used to calculate the extraction time required for the hard disk tray to satisfy a preset extraction distance; The baseboard management controller is communicatively connected to the programmable logic device. When the hard disk tray is removed for a period of time exceeding a preset time, it controls the server to perform a protection operation.

2. The hard disk tray position status monitoring device according to claim 1, characterized in that, It also includes mobile components; The movable component is installed in the receiving slot and is slidably connected to the hard drive tray. When the hard drive tray is pulled out for more than a preset time, it drives the hard drive tray back to the initial position. The control of the server to perform protection operations includes controlling the server to shut down or migrate data on the hard drive; The substrate management controller accesses information on the programmable logic device via the integrated circuit bus, reads the extraction distance, and performs analysis in conjunction with a preset extraction distance.

3. The hard disk tray position status monitoring device according to claim 1, characterized in that, The device also includes an alarm unit; The alarm unit includes an LED light and a buzzer; The LED light switches from green to red when the hard drive tray is pulled out for more than a preset time; The buzzer will sound an alarm when the hard drive tray is pulled out for more than a preset time.

4. A method for monitoring the position status of a hard disk tray based on the device described in any one of claims 1 to 3, characterized in that, The method includes: The position status of the hard drive tray is detected by the first and second identification components; In response to the hard drive tray being pulled out, the pulling distance of the hard drive tray is obtained; If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing. When the timer's extraction time exceeds a preset time, the baseboard management controller controls the server to perform a protection operation.

5. The hard disk tray position status monitoring method according to claim 4, characterized in that, The method further includes: The display status of the first and second identification devices is read by the baseboard management controller to determine whether the hard disk tray has been removed. When the indication status of the first and second identification elements is in place, the hard disk tray is not pulled out; Alternatively, when the indication status of the first and second identification elements is not in place, the hard disk tray is pulled out; In response to the hard drive tray being pulled out, the distance between the first identification element and the second identification element is obtained to obtain the pulling distance.

6. A hard disk tray position status monitoring system based on the method of claim 4 or 5, characterized in that, The system includes: The detection module is used to detect the position status of the hard disk tray through the first identification element and the second identification element; The acquisition module, in response to the hard drive tray being pulled out, acquires the pulling distance of the hard drive tray. If the extraction distance is within a preset range, the programmable logic device starts a timer to begin timing. The execution module, when the timer's extraction time exceeds a preset time, the baseboard management controller controls the server to perform a protection operation.

7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method of claim 4 or 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in claim 4 or 5.