CN114780033A - JBOD cascade system, storage resource allocation method and device - Google Patents

JBOD cascade system, storage resource allocation method and device Download PDF

Info

Publication number
CN114780033A
CN114780033A CN202210433011.3A CN202210433011A CN114780033A CN 114780033 A CN114780033 A CN 114780033A CN 202210433011 A CN202210433011 A CN 202210433011A CN 114780033 A CN114780033 A CN 114780033A
Authority
CN
China
Prior art keywords
hard disk
group
storage resource
sas
hard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210433011.3A
Other languages
Chinese (zh)
Inventor
刘波
宋成磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210433011.3A priority Critical patent/CN114780033A/en
Publication of CN114780033A publication Critical patent/CN114780033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to a JBOD cascade system, a storage resource allocation method and a device, comprising the following steps: the system comprises a plurality of hard disk backboards, a plurality of SAS interconnection chip modules and a plurality of machine heads; each hard disk back plate comprises a plurality of hard disks and is used for providing storage resources for the JBOD cascade system; the plurality of SAS interconnection chip modules comprise a first SAS interconnection chip module connected with the plurality of machine heads and other SAS interconnection chip modules; and each hard disk on each hard disk back plate is connected with one SAS interconnection chip module in the other SAS interconnection chip modules through a PHY physical interface, and the system can reduce resource idleness by sharing one JBOD cascade system by multiple machine heads, thereby realizing the partition balanced utilization of the hard disks according to needs.

Description

JBOD cascade system, storage resource allocation method and device
Technical Field
The embodiment of the invention relates to the field of computer systems, in particular to a JBOD (just a Bunch of disks) cascade system, and a storage resource allocation method and device.
Background
With the rapid development of technology, data is growing explosively at a geometric level. The current JBOD system is a system specially used for storing data, a large number of physical hard disks are interconnected by using an SAS expander, and access to an HBA card of a host computer through an SAS cable for data access.
The data storage capacity of the JBOD system is an increasing process, and generally, the data is already full as soon as a machine is on shelf. For example, a JBOD system with 60 hard disks may use 30 hard disks only a year, and the price of the hard disks may be reduced a lot within a year.
The JBOD cascade system in the prior art comprises an SAS channel card and an SAS expansion card set connected with the SAS channel card, and by utilizing the Zoning partition technology, an uplink port and a connected hard disk of each SAS expansion card in the SAS expansion card set are the same partition, and a downlink port is a partition different from the uplink port and the connected hard disk. By utilizing the Zoning Zoning technology, the upper connection port and the connected hard disk of each SAS expander in the SAS expander set are the same zone, and the lower connection port is a zone different from the upper connection port and the connected hard disk, so that the SAS expander can only receive verification information of the SAS channel card through the upper connection port and return reply information, and the SAS channel card judges whether the reply information is received or not, thereby judging whether the SAS expander is in wrong wiring or not. However, in the hard disk in the prior art, the association ports are not bound by the partition as required, the hard disk cannot be used in a balanced manner, and resources are wasted.
Disclosure of Invention
In view of this, to solve the above technical problems or some technical problems, embodiments of the present invention provide a JBOD cascade system, a storage resource allocation method, and an apparatus.
In a first aspect, an embodiment of the present invention provides a JBOD cascade system, including:
the system comprises a plurality of hard disk backboards, a plurality of SAS interconnection chip modules and a plurality of machine heads;
each hard disk back plate comprises a plurality of hard disks and is used for providing storage resources for the JBOD cascade system;
the plurality of SAS interconnection chip modules comprise a first SAS interconnection chip module connected with the plurality of machine heads and other SAS interconnection chip modules;
and each hard disk on each hard disk back plate is connected with one SAS interconnection chip module in the other SAS interconnection chip modules through one PHY physical interface.
In one possible embodiment, the system further comprises:
a plurality of groups of hard disks, wherein hard disk groups are divided based on group attributes of the PHY physical interface;
a handpiece coupled to each hard disk pack may access all of the hard disks in the hard disk pack.
In one possible embodiment, the system further comprises:
the plurality of hard disk groups comprise at least one spare hard disk group which is used for providing storage resources based on the storage resource requirements of the plurality of heads.
In a second aspect, an embodiment of the present invention provides a storage resource allocation method, including:
monitoring storage resource residual information of a hard disk group connected with a plurality of machine heads;
judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information;
if so, screening the hard disks with the target quantity from the standby hard disk group;
and modifying the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing to be allocated with the hard disks.
In one possible embodiment, the method further comprises:
dynamically modifying the group attribute of a PHY physical interface corresponding to a hard disk in a hard disk group connected with a plurality of machine heads based on the storage resource demand information of the plurality of machine heads;
and regrouping the hard disks based on the modified group attribute.
In one possible embodiment, the method further comprises:
and powering off the hardware equipment of the standby hard disk group.
In a third aspect, an embodiment of the present invention provides a storage resource allocation apparatus, including:
the monitoring module is used for monitoring the storage resource residual information of the hard disk groups connected with the plurality of machine heads;
the judging module is used for judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information;
the screening module is used for screening the hard disks with target quantity in the standby hard disk group if necessary;
and the distribution module is used for modifying the group attribute of the PHY physical interface connected with the screened hard disk into the group attribute of the hard disk group to which the hard disk needs to be distributed.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, the processor being configured to execute a storage resource allocation program stored in the memory to implement the storage resource allocation method described in the second aspect above.
In a fifth aspect, an embodiment of the present invention provides a storage medium, including: the storage medium stores one or more programs, which are executable by one or more processors to implement the storage resource allocation method described in the second aspect above.
The JBOD cascade system provided by the embodiment of the invention comprises: the system comprises a plurality of hard disk backboards, a plurality of SAS interconnection chip modules and a plurality of machine heads; each hard disk back plate comprises a plurality of hard disks and is used for providing storage resources for the JBOD cascade system; the plurality of SAS interconnection chip modules comprise a first SAS interconnection chip module connected with the plurality of machine heads and other SAS interconnection chip modules; each hard disk on each hard disk back plate is connected with one SAS interconnection chip module in the other SAS interconnection chip modules through one PHY physical interface, and compared with the problems that in the JBOD cascade system in the prior art, the hard disks are not bound to the association ports in a partition mode according to needs, the hard disks cannot be used in a balanced mode, and resources are wasted, the system can reduce resource idleness through the fact that multiple machine heads share one JBOD cascade system, and the hard disks can be used in a partition mode according to needs.
The storage resource allocation method provided by the embodiment of the invention monitors the storage resource residual information of the hard disk group connected with a plurality of machine heads; judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information; if so, screening the hard disks with the target quantity from the standby hard disk group; the method modifies the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing hard disk allocation.
Drawings
FIG. 1 is a schematic structural diagram of a JBOD cascade system provided by an embodiment of the present invention;
fig. 2 is a schematic diagram of a hard disk grouping structure according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a storage resource allocation structure according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a storage resource allocation method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a storage resource allocation apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
FIG. 1 is a schematic structural diagram of a JBOD cascade system provided by an embodiment of the present invention, as shown in FIG. 1, the JBOD cascade system includes: the system comprises a plurality of hard disk backplanes, a plurality of SAS interconnection chip modules and a plurality of machine heads, wherein 2 silver disk backplanes, 3 SAS interconnection chip modules and 2 machine heads are taken as examples in the figure, wherein each hard disk backplane comprises a plurality of hard disks which are used for providing storage resources for a JBOD cascade system; a first SAS interconnection chip module in the SAS interconnection chip modules connects 2 machine heads with the SAS interconnection chip module 1 and the SAS interconnection chip module 2, and can be connected through an HBA card; the numbers in the square frame in the figure refer to the number of used PHY physical interfaces, each hard disk on each hard disk backboard is connected with the SAS interconnection chip module 1 or the SAS interconnection chip module 2 through one PHY physical interface, and the connection mode can ensure that all the machine heads can access any one of all the hard disks.
Further, as shown in fig. 2, a schematic diagram of a hard disk grouping structure provided in the embodiment of the present invention is shown. Hard disks are grouped by using a zoning partition technology, and numbers in a circle in the figure refer to zone group settings of a used PHY physical interface. The circle box 8 represents the zone group 8, the circle box 9 represents the zone group 9, the circle box IZ represents the boundary of the Expander, the zone groups in the SAS interconnection chip module 1 and the SAS interconnection chip module 2 can be dynamically modified according to the requirement, and the hard disks can be allocated to different groups by modifying the group attribute of the physical interface PHY where the hard disks are located. The head connected to zone group 8 may access all of the hard disks in the group of disks, and the head connected to zone group 9 may access all of the hard disks in the group of disks. The End Device (End Device) in the figure is generally referred to as a hard disk.
Optionally, the plurality of hard disk groups include at least one spare hard disk group, which is used to provide storage resources based on storage resource requirements of the plurality of heads. Fig. 3 is a schematic diagram of a storage resource allocation structure according to an embodiment of the present invention, in which a hard disk of a zone group 8 is used by the handpiece 1, and a hard disk of a zone group 9 is used by the handpiece 2. And the hard disks of the standby hard disk group can not be accessed by the two machine heads, and the hardware equipment of the standby hard disk group is subjected to power-off processing by default so as to save energy consumption. When the storage space of the handpiece 1 needs to be increased, the group attribute of the physical interface PHY where the hard Disk4 in the spare Disk group is located may be modified to be zone group 8, and after the modification is completed, the handpiece 1 can access the hard Disk 4.
The JBOD cascade system provided by the embodiment of the invention comprises: the system comprises a plurality of hard disk back plates, a plurality of SAS interconnection chip modules and a plurality of machine heads; each hard disk back plate comprises a plurality of hard disks and is used for providing storage resources for the JBOD cascade system; the plurality of SAS interconnected chip modules comprise a first SAS interconnected chip module connected with the plurality of heads and other SAS interconnected chip modules; and each hard disk on each hard disk back plate is connected with one SAS interconnection chip module in the other SAS interconnection chip modules through a PHY physical interface, and compared with the JBOD cascade system in the prior art, the system has the advantages that the association ports of the hard disks are not bound by the hard disks in the partitions according to the requirement, the hard disks cannot be used in a balanced manner, and the resource is wasted.
Fig. 4 is a schematic flowchart of a storage resource allocation method according to an embodiment of the present invention, and as shown in fig. 4, the method specifically includes:
and S41, monitoring the storage resource residual information of the hard disk groups connected with the plurality of machine heads.
In the embodiment of the invention, the storage resource residual information of the hard disk groups connected with a plurality of machine heads can be monitored in real time, wherein the storage resource residual information can be the storage space residual condition of the hard disks.
And S42, judging whether the hard disks need to be distributed to the hard disk group or not based on the storage resource residual information.
And S43, if necessary, screening the hard disks with the target quantity from the standby hard disk group.
In the embodiment of the present invention, a storage resource remaining threshold may be preset, for example, 20% of the remaining storage space of the current hard disk group, and when it is monitored that the storage resource remaining information of a hard disk group connected to a certain head is smaller than the storage resource remaining threshold, it is determined that a hard disk needs to be allocated to the hard disk group, so as to increase the storage space.
Further, the number of hard disks to be added may be determined according to the historical usage of the storage resource, for example, if the peak value of the historical usage hard disks is 50 blocks, and the number of the current hard disks is 30 blocks, 20 hard disks may be directly screened from the spare hard disk group and divided into the current hard disk group.
For another example, a resource usage prediction model may be trained in advance to predict a data amount that may be received in the future, and the number of hard disks that need to be used is determined according to the predicted data amount, so as to divide the corresponding number of hard disks.
To be noted, the hardware device of the standby hard disk set is powered off by default, so as to save energy consumption.
And S44, modifying the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing to be allocated with the hard disks.
In the embodiment of the invention, after the hard disks with the target number are screened from the standby hard disk group, the group attribute of the PHY physical interface connected with the screened hard disks is modified into the group attribute of the hard disk group to which the hard disks need to be allocated.
As shown in fig. 3, when the storage space of the handpiece 1 needs to add 1 hard Disk, the group attribute of the physical interface PHY where the hard Disk4 in the spare hard Disk group may be modified to be zone group 8, and after the modification is completed, the handpiece 1 can access the hard Disk 4.
Optionally, if there are more idle hard disks in the allocated hard disk group, the group attribute of the PHY physical interface corresponding to the hard disks in the hard disk group connected to the multiple heads may be dynamically modified based on the storage resource demand information of the multiple heads, and the idle hard disks in the hard disk group may be regrouped. The method can firstly maximize the use of the hard disks which are already allocated to the hard disk group, does not use the hard disks of the standby hard disk group, and improves the utilization rate of storage resources.
The storage resource allocation method provided by the embodiment of the invention monitors the storage resource residual information of the hard disk groups connected with a plurality of machine heads; judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information; if so, screening the hard disks with the target quantity in the standby hard disk group; the method modifies the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing hard disk allocation.
Fig. 5 is a schematic structural diagram of a storage resource allocation apparatus according to an embodiment of the present invention, which specifically includes:
a monitoring module 501, configured to monitor storage resource remaining information of a hard disk set connected to multiple machine heads;
a determining module 502, configured to determine whether a hard disk needs to be allocated to the hard disk group based on the storage resource surplus information;
a screening module 503, configured to screen the hard disks of the target number from the standby hard disk group if needed;
an allocating module 504, configured to modify a group attribute of the PHY physical interface connected to the screened hard disk into a group attribute of a hard disk group to which the hard disk needs to be allocated.
In a possible embodiment, the allocating module 504 is specifically configured to dynamically modify a group attribute of a PHY physical interface corresponding to a hard disk in a hard disk group connected to multiple heads based on storage resource demand information of the multiple heads; and regrouping the hard disks based on the modified group attribute.
The storage resource allocation apparatus provided in this embodiment may be the storage resource allocation apparatus shown in fig. 5, and may perform all steps of the storage resource allocation method shown in fig. 4, so as to achieve the technical effect of the storage resource allocation method shown in fig. 4, specifically please refer to the description related to fig. 4, which is for brevity, and is not repeated herein.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the electronic device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable connected communication between these components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in FIG. 6.
The user interface 603 may include, among other things, a display, a keyboard or a pointing device (e.g., a mouse, trackball (trackball), a touch pad or touch screen, etc.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. Programs that implement methods of embodiments of the invention can be included in application 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
monitoring storage resource residual information of a hard disk group connected with a plurality of machine heads; judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information; if so, screening the hard disks with the target quantity from the standby hard disk group; and modifying the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing to be allocated with the hard disks.
In one possible embodiment, based on the storage resource demand information of a plurality of heads, dynamically modifying the group attribute of the PHY physical interface corresponding to the hard disks in the hard disk group connected to the plurality of heads; and regrouping the hard disks based on the modified group attribute.
In one possible embodiment, the hardware devices of the spare disk group are powered down.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 6, and may execute all the steps of the storage resource allocation method shown in fig. 4, so as to achieve the technical effect of the storage resource allocation method shown in fig. 4, please refer to the related description of fig. 4 for brevity, which is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of the above kinds of memories.
When the one or more programs in the storage medium are executable by the one or more processors, the storage resource allocation method executed on the electronic device side is implemented.
The processor is used for executing the storage resource allocation program stored in the memory so as to realize the following steps of the storage resource allocation method executed on the electronic equipment side:
monitoring the storage resource residual information of the hard disk groups connected with the multiple machine heads; judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information; if so, screening the hard disks with the target quantity in the standby hard disk group; and modifying the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing to be allocated with the hard disks.
In one possible embodiment, based on the storage resource demand information of a plurality of heads, dynamically modifying the group attribute of the PHY physical interface corresponding to the hard disks in the hard disk group connected to the plurality of heads; and regrouping the hard disks based on the modified group attribute.
In one possible embodiment, the hardware devices of the spare disk group are powered down.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A JBOD cascade system, comprising: the system comprises a plurality of hard disk back plates, a plurality of SAS interconnection chip modules and a plurality of machine heads;
each hard disk back plate comprises a plurality of hard disks and is used for providing storage resources for the JBOD cascade system;
the plurality of SAS interconnected chip modules comprise a first SAS interconnected chip module connected with the plurality of heads and other SAS interconnected chip modules;
and each hard disk on each hard disk back plate is connected with one SAS interconnection chip module in the other SAS interconnection chip modules through one PHY physical interface.
2. The system of claim 1, further comprising:
a plurality of groups of hard disks, wherein hard disk groups are divided based on a group attribute of the PHY physical interface;
a head connected to each hard disk group can access all of the hard disks in the hard disk group.
3. The system of claim 2, further comprising:
the plurality of hard disk groups comprise at least one spare hard disk group which is used for providing storage resources based on the storage resource requirements of the plurality of heads.
4. A storage resource allocation method applied to the JBOD cascade system of any one of claims 1 to 3, comprising:
monitoring the storage resource residual information of the hard disk groups connected with the multiple machine heads;
judging whether hard disks need to be allocated to the hard disk group or not based on the storage resource residual information;
if so, screening the hard disks with the target quantity in the standby hard disk group;
and modifying the group attribute of the PHY physical interface connected with the screened hard disks into the group attribute of the hard disk group needing to be allocated with the hard disks.
5. The system of claim 4, wherein the method further comprises:
dynamically modifying the group attribute of a PHY physical interface corresponding to a hard disk in a hard disk group connected with a plurality of machine heads based on the storage resource demand information of the plurality of machine heads;
and regrouping the hard disks based on the modified group attribute.
6. The method of claim 4, further comprising:
and powering off the hardware equipment of the standby hard disk group.
7. A storage resource allocation apparatus, comprising:
the monitoring module is used for monitoring the storage resource residual information of the hard disk groups connected with the plurality of machine heads;
the judging module is used for judging whether the hard disk needs to be allocated to the hard disk group or not based on the storage resource residual information;
the screening module is used for screening the hard disks with target quantity in the standby hard disk group if necessary;
and the distribution module is used for modifying the group attribute of the PHY physical interface connected with the screened hard disk into the group attribute of the hard disk group needing to be distributed with the hard disk.
8. The storage resource allocation apparatus according to claim 7, wherein the allocation module is specifically configured to dynamically modify a group attribute of a PHY physical interface corresponding to a hard disk in a hard disk group connected to a plurality of heads based on storage resource requirement information of the plurality of heads; and regrouping the hard disks based on the modified group attribute.
9. An electronic device, comprising: a processor and a memory, the processor being configured to execute a storage resource allocation program stored in the memory to implement the storage resource allocation method of any one of claims 4 to 6.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the storage resource allocation method of any one of claims 4 to 6.
CN202210433011.3A 2022-04-22 2022-04-22 JBOD cascade system, storage resource allocation method and device Pending CN114780033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210433011.3A CN114780033A (en) 2022-04-22 2022-04-22 JBOD cascade system, storage resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210433011.3A CN114780033A (en) 2022-04-22 2022-04-22 JBOD cascade system, storage resource allocation method and device

Publications (1)

Publication Number Publication Date
CN114780033A true CN114780033A (en) 2022-07-22

Family

ID=82432783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210433011.3A Pending CN114780033A (en) 2022-04-22 2022-04-22 JBOD cascade system, storage resource allocation method and device

Country Status (1)

Country Link
CN (1) CN114780033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI823658B (en) * 2022-10-28 2023-11-21 新加坡商鴻運科股份有限公司 Method for booting hard disks, computer device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI823658B (en) * 2022-10-28 2023-11-21 新加坡商鴻運科股份有限公司 Method for booting hard disks, computer device and storage medium

Similar Documents

Publication Publication Date Title
KR102519904B1 (en) Allocating and configuring persistent memory
US10108450B2 (en) Mechanism for SSDs to efficiently manage background activity with notify
CN102708065B (en) A kind of method of reserved pagefile and computer system
CN107526546B (en) Spark distributed computing data processing method and system
US9135126B2 (en) Multi-core re-initialization failure control system
US7454639B2 (en) Various apparatuses and methods for reduced power states in system memory
EP2488929B1 (en) Memory object relocation for power savings
US20140196050A1 (en) Processing system including a plurality of cores and method of operating the same
US8996844B1 (en) Apparatus and method for accessing non-overlapping portions of memory according to respective orders of dimensions
CN109508152A (en) A kind of multi-level scheme for logic storage management
CN104111897A (en) Data processing method, data processing device and computer system
US20120260037A1 (en) Smart hybrid storage based on intelligent data access classification
CN110688256B (en) Metadata power-on recovery method and device, electronic equipment and storage medium
KR20130035934A (en) Method for dynamically configuring resouces in storage device and the storage device and storage medium therefor
CN113628647A (en) Systems, methods, and apparatus for near data processing
US10884469B2 (en) Method and system for dynamically allocating and optimizing power resources
EP3846036B1 (en) Matrix storage method, matrix access method, apparatus and electronic device
CN111338579B (en) Read-write cache optimization method, system, terminal and storage medium based on storage pool
CN114780033A (en) JBOD cascade system, storage resource allocation method and device
CN113535087B (en) Data processing method, server and storage system in data migration process
US20190173770A1 (en) Method and system for placement of virtual machines using a working set computation
US10423357B2 (en) Devices and methods for managing memory buffers
US20090150616A1 (en) System and method of using threads and thread-local storage
US20200242067A1 (en) System and Method for I/O Aware Processor Configuration
CN116401043A (en) Execution method of computing task and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination