CN104023076B - The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity - Google Patents

The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity Download PDF

Info

Publication number
CN104023076B
CN104023076B CN201410271382.1A CN201410271382A CN104023076B CN 104023076 B CN104023076 B CN 104023076B CN 201410271382 A CN201410271382 A CN 201410271382A CN 104023076 B CN104023076 B CN 104023076B
Authority
CN
China
Prior art keywords
address
ethernet interface
hard disk
hard
interface 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.)
Active
Application number
CN201410271382.1A
Other languages
Chinese (zh)
Other versions
CN104023076A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410271382.1A priority Critical patent/CN104023076B/en
Publication of CN104023076A publication Critical patent/CN104023076A/en
Application granted granted Critical
Publication of CN104023076B publication Critical patent/CN104023076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of management method of Ethernet interface hard-disk capacity and multi-tenant interchanger.This method includes:According to received hard disk configuration information, capacity distribution order is sent to each Ethernet interface hard disk, capacity distribution order includes host IP address and distributes to the hard-disc storage space of host IP address;Receive and store the host IP address of each Ethernet interface hard disk transmission and the corresponding relation in the hard-disc storage space for distributing to host IP address;When receiving the write operation order for writing Ethernet interface hard disk that main frame issues, judge whether the write operation address in write operation order is included in the hard-disc storage space for distributing to IP address, if, write operation order is then forwarded to Ethernet interface hard disk corresponding to hard-disc storage space, and adjusts hard-disc storage space size can be used corresponding to IP address.This invention simplifies the networking of Ethernet interface hard disk and capacity management.

Description

The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity
Technical field
The present invention relates to Network storage technology, more particularly to a kind of management method of Ethernet interface hard-disk capacity and more rents Family interchanger.
Background technology
With the rise that cloud storage technology and network storage are applied, the application of Ethernet interface hard disk is more and more extensive, mesh Before have been carried out the hard disk unit of network function, be all with SAS (Serial Attached Small Computer System Interface, system for serial small computer interfacing) hard disk and Serial Advanced Technology Attachment (Serial Advanced Technology Attachment, SATA) based on hard disk, increase change-over circuit, Ke Yiwei outside SAS or SATA hard disc The hard disk provides Ethernet interface, Ethernet interface hard disk can be accessed into network by the Ethernet interface.
The capacity distribution of the hard disk unit of network function is realized under prior art and manages the essence needed by being connected with hard disk Micro- (Advanced RISC Machines, the ARM) processor of simple instruction set computer and gigabit ethernet interface interchanger realize, Therefore the networking of Ethernet interface hard disk is more complicated, and networking extension and capacity management are also more complicated.
The content of the invention
The embodiments of the invention provide a kind of management method of Ethernet interface hard-disk capacity and multi-tenant interchanger, with letter Change the networking and capacity management of Ethernet interface hard disk.
In a first aspect, the invention provides a kind of management method of Ethernet interface hard-disk capacity, interchanger with it is multiple with Too network interface hard disk is connected, and the interchanger is connected with multiple main frames, and the interchanger performs following steps:
The memory allocation information of Ethernet interface hard disk in received hard disk configuration information, to each Ethernet interface hard disk sends capacity distribution order, and the capacity distribution order includes host IP address and distributes to the master The hard-disc storage space of machine IP address;
Receive and store the host IP address of each Ethernet interface hard disk transmission and distribute to the host IP address The corresponding relation in hard-disc storage space;
When receiving the write operation order for writing Ethernet interface hard disk that main frame issues, judge in the write operation order Write operation address whether be included in and distribute in the hard-disc storage space of the IP address, if it is, by the write operation Order is forwarded to Ethernet interface hard disk corresponding to the hard-disc storage space, and adjust corresponding to the IP address can use it is hard Disc storage space size.
It is described to send capacity distribution order to each Ethernet interface hard disk in the first possible implementation Before, in addition to:Querying command is sent to each Ethernet interface hard disk, to obtain the hard disk of each Ethernet interface hard disk letter Breath.
According in the possible implementation of the first of first aspect or first aspect, second of possible realization side In formula, whether the write operation address judged in the operational order is included in the hard-disc storage sky for distributing to the IP address Between in after, in addition to:If the write operation address in the operational order is not included in the hard disk for distributing to the IP address In memory space, then the configured information that can not be write is returned.
, may at the third according in the first of first aspect or first aspect, second of possible implementation Implementation in, methods described also includes:When receiving the read operation order for the reading Ethernet interface hard disk that main frame issues, If the Key parameter values that the read operation order includes are not to be worth, returning in Ethernet interface hard disk does not have the Key The configured information of parameter value.
According in the first of first aspect or first aspect, second, the third possible implementation, the 4th In kind possible implementation, it is described receive that main frame issues write the write operation order of Ethernet interface hard disk after, it is described Judge whether the write operation address in the write operation order is included in it in the hard-disc storage space for distributing to the IP address Before, in addition to:The IP address included according to the write operation order, obtain the hard-disc storage sky for distributing to the IP address Between.
Second aspect, the embodiments of the invention provide a kind of multi-tenant interchanger of Ethernet interface hard-disk capacity management, Multi-tenant interchanger is connected with multiple Ethernet interface hard disks, and the multi-tenant interchanger is connected with multiple main frames, more rents Family interchanger includes:
Transmitting element, the memory space point for the Ethernet interface hard disk in received hard disk configuration information With information, capacity distribution order is sent to each Ethernet interface hard disk, the capacity distribution order includes host IP address Hard-disc storage space with distributing to the host IP address;
Receiving unit, for receiving the host IP address of each Ethernet interface hard disk transmission and distributing to the host ip The corresponding relation in the hard-disc storage space of address;
Memory cell, for storing the host IP address of each Ethernet interface hard disk transmission and distributing to the master The corresponding relation in the hard-disc storage space of machine IP address;
Judging unit, for when receiving the write operation order for writing Ethernet interface hard disk that main frame issues, judging institute State whether the write operation address in write operation order is included in the hard-disc storage space for distributing to the IP address;
Processing unit, the IP address is distributed to if be included in for the write operation address in the write operation order In hard-disc storage space, then the write operation order is forwarded to Ethernet interface hard disk corresponding to the hard-disc storage space, And hard-disc storage space size can be used by adjusting corresponding to the IP address.
In the first possible implementation, the transmitting element is additionally operable to:Sent to each Ethernet interface hard disk Querying command, to obtain the hard disk information of each Ethernet interface hard disk.
According to the possible implementation of the first of second aspect or second aspect, in second of possible implementation In, the processing unit is additionally operable to:If the write operation address in the operational order, which is not included in, distributes to the IP address Hard-disc storage space in, then return to the configured information that can not write.
It is possible at the third according to the first of second aspect or second aspect, second of possible implementation In implementation, the transmitting element is additionally operable to:When the read operation order for receiving the reading Ethernet interface hard disk that main frame issues When, if the Key parameter values that the read operation order includes are not to be worth, return in Ethernet interface hard disk without described The configured information of Key parameter values.
According to the first of second aspect or second aspect, second, the third possible implementation, at the 4th kind In possible implementation, the multi-tenant interchanger also includes:Acquiring unit, for being included according to the write operation order IP address, obtain and distribute to the hard-disc storage space of the IP address.
The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity provided in an embodiment of the present invention, according to being connect The hard disk configuration information that keeper carries out capacity distribution for main frame is received, capacity distribution is sent to each Ethernet interface hard disk Order, capacity distribution order include host IP address and distribute to the hard-disc storage space of host IP address, Ethernet interface Hard disk distributes command record according to capacity and distributes to the hard-disc storage space of host IP address, and this is distributed into host IP address Hard-disc storage space return to interchanger, interchanger receives the write operation order for writing Ethernet interface hard disk that main frame issues When, it be able to will be write it is determined that write operation address in write operation order is included in when distributing in the hard-disc storage space of IP address Operational order is forwarded to Ethernet interface hard disk corresponding to hard-disc storage space, and adjusts available hard corresponding to the IP address Disc storage space size.Thus, the embodiment of the present invention realizes multi-tenant interchanger and directly Ethernet interface hard disk is held Buret is managed, and simplifies the networking and capacity management of Ethernet interface hard disk.
Brief description of the drawings
Fig. 1 is that a kind of application scenarios of method of Ethernet interface hard-disk capacity management provided in an embodiment of the present invention are illustrated Figure;
Fig. 2 is a kind of management method flow chart of Ethernet interface hard-disk capacity provided in an embodiment of the present invention;
Fig. 3 is that a kind of multi-tenant interchanger of Ethernet interface hard-disk capacity management provided in an embodiment of the present invention is illustrated Figure;
Fig. 4 is another multi-tenant interchanger schematic diagram provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology it The detail of class, understand the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known device, circuit and The detailed description of method, in case unnecessary details hinders description of the invention.
It should be noted that the Ethernet interface hard disk in present specification is the hard disk unit for having network function, its With Ethernet interface, directly can be connected to by the Ethernet interface of the network switch in network.
The method of Ethernet interface hard-disk capacity management provided in an embodiment of the present invention can apply to field as shown in Figure 1 Jing Zhong, as shown in figure 1, interchanger provided in an embodiment of the present invention is connected to multiple main frames, i.e., can with multiple tenants, interchanger To connect multiple Ethernet interface hard disks, wherein after interchanger, Ethernet interface hard disk, main frame networking, interchanger can with it is each Individual main frame is communicated, and can also be interacted with each Ethernet interface hard disk.Network manager can pass through interchanger pair The main frame that is connected carries out the capacity distribution of hard disk, after interchanger receives the hard disk configuration information of network manager, to every Individual Ethernet interface hard disk sends capacity distribution order.Capacity distribution order includes host IP address and distributes to the master The hard-disc storage space of machine IP address.Ethernet interface hard disk receive capacity distribution order after record each host IP address with The hard-disc storage space of the host IP address is distributed to, and is sent in interchanger and obtains host IP address and hard-disc storage space By each host IP address and the corresponding relation in the hard-disc storage space for distributing to the host IP address during request message of relation Return to interchanger.Interchanger can judge to write in the write operation order that subsequently received main frame is sent according to the corresponding relation Whether the write operation address in operational order is included in the hard-disc storage space for distributing to IP address, if it is, behaviour will be write Ethernet interface hard disk corresponding to hard-disc storage space is forwarded to as order, and according to the content to be write in write operation order Shared memory space, which adjusts, can use hard-disc storage space size corresponding to the IP address.Interchanger is achieved in Ethernet The management of interface hard disk capacity, simplify the networking and capacity management of Ethernet interface hard disk.
Fig. 2 is a kind of management method flow chart of Ethernet interface hard-disk capacity provided in an embodiment of the present invention, the implementation The executive agent of example is interchanger, and interchanger is connected with multiple Ethernet interface hard disks, and interchanger is connected with multiple main frames, the reality Apply example and management method of the interchanger to the capacity of multiple Ethernet interface hard disks is described in detail, as illustrated, interchanger can be held Row following steps:
Step 201, the memory allocation letter of the Ethernet interface hard disk in received hard disk configuration information Breath, capacity distribution order is sent to each Ethernet interface hard disk, capacity distribution order includes host IP address with distributing to The hard-disc storage space of host IP address.
Wherein, after interchanger, Ethernet interface hard disk, main frame connection networking, interchanger can connect to each Ethernet first Mouth hard disk sends querying command, to obtain the hard disk information of each Ethernet interface hard disk.Interchanger is to Ethernet interface hard disk The command format of transmission is as follows:
Wherein, Ethernet Header are the ether net head of order;
IP header are the IP heads of order;
TCP header are the TCP header of order;
Command code is used for the type of marking command, if command code is that the 1 expression order is for identifying that Ethernet interface is hard The order of disk, after hard disk receives the order that command code is 1, it can return to whether itself is Ethernet interface hard disk to sender Information, command code is that the 2 expressions orders is for obtaining the order of Ethernet interface hard-disk capacity, and command code is that 3 represent should Order as configuring the correspondence between host IP address and Ethernet interface hard-disk capacity or key-value pair (Key-Value, KV) The order of relation, after hard disk receives the order that command code is 3, " KEY or starting LBA " field settings that can be in order The corresponding relation, command code are that the 4 expressions orders is for obtaining host IP address and Ethernet interface hard-disk capacity or key assignments The order of corresponding relation between, command code are the 5 expressions order for for logical block addresses (Logical Block Address, LBA) mode reads the order of Ethernet interface hard disc data, command code be the 6 expressions order for write in a manner of LBA with The too order of network interface hard disc data, command code are that the 7 expressions orders is that the order of Ethernet interface hard disk is read in a manner of KV, behaviour As code is the 8 expressions order to write the order of Ethernet interface hard disk in a manner of KV;
Key or initial address LBA, address for the confidential access Ethernet interface hard disk of Tag Switching or to be accessed The key assignments of content;
Data length, for the size of the content of the confidential read-write of Tag Switching,
Data content, for the content of the confidential write-in of Tag Switching;
Ethernet trailer, for the filling field of order.
After interchanger, Ethernet interface hard disk networking, interchanger broadcast transmission command code first is 1 identification Ethernet The order of interface hard disk.Identification information is returned in Ethernet interface hard disk, the identification information includes Ethernet interface hard disk Producer, the capacity of Ethernet interface hard disk, Ethernet interface hard disk the content such as mode of operation after, interchanger continues to send operation The order for the acquisition Ethernet interface hard-disk capacity that code is 2, Ethernet interface hard disk return to the available capacity of hard disk to interchanger.
After interchanger receives the active volume of Ethernet interface hard disk return, the available capacity information is recorded.
The active volume information for each Ethernet interface hard disk that keeper can be recorded according to interchanger, connects to interchanger The main frame connect carries out capacity distribution.After interchanger receives the hard disk configuration information of network manager, to each Ethernet Interface hard disk sends capacity distribution order, and the command code of capacity distribution order is 3, for configuring host IP address and Ethernet Corresponding relation between interface hard disk capacity or KV, capacity distribution order include host IP address and distribute to the main frame The hard-disc storage space of IP address.Wherein, hard-disc storage space includes the information such as address and the size in hard-disc storage space.
For example, for the IP1 addresses of main frame 1, network manager can be the ground that Ethernet hard disk 1 is distributed in the IP1 addresses Location is 0x00000000 to 0x01000000 memory space, then can include the distribution in the distribution order sent to main frame 1 Information, to configure the storage that the address of the IP1 addresses of main frame 1 and Ethernet hard disk 1 is 0x00000000 to 0x01000000 The corresponding relation in space.
Step 202, receive and store host IP address that each Ethernet interface hard disk sends with distributing to host ip The corresponding relation in the hard-disc storage space of location.
After Ethernet interface hard disk receives capacity distribution order, if it is determined that successfully can be distributed for the host IP address The memory space of required distribution in capacity distribution order, then distribute requirement point in capacity distribution order for the host IP address The memory space matched somebody with somebody, and record host IP address and distribute to the hard-disc storage space of the host IP address.
If the Ethernet interface hard disk for receiving capacity distribution order finds to require depositing for distribution in capacity distribution order Storage space is occupied or because other reasonses can not be requirement distribution in host IP address partition capacity distribution order Memory space, then the response message of a batch operation failure is returned to, receiving the interchanger of the response message can be again Host IP address distributes memory space.
Preferably, when interchanger sends the acquisition host IP address and Ethernet that command code is 4 to Ethernet interface hard disk During the order of the corresponding relation between interface hard disk capacity or KV, each host IP address that IP interfaces record system recording areas The corresponding relation in the hard-disc storage space with distributing to the host IP address returns to interchanger.
Step 203, when receiving the write operation order to Ethernet interface hard disk write-in data that main frame issues, judge Whether the write operation address in write operation order, which is included in, is distributed in hard-disc storage space corresponding to IP address, if it is, Write operation order is forwarded to Ethernet interface hard disk corresponding to hard-disc storage space, and adjust corresponding to IP address can use it is hard Disc storage space size.
If the write operation address in the operational order is not included in the hard-disc storage space for distributing to the IP address In, then return to the configured information that can not be write.
When interchanger receives the write operation order to Ethernet interface hard disk write-in data that main frame issues, interchanger Can first in write operation order " Key or originate LBA " fields content determine the main frame Ethernet interface hard disk to be accessed Memory space, the IP address in IP headers determines host IP address, then according to the host IP address of local record With the corresponding relation in the hard-disc storage space for distributing to the host IP address, determine whether the host IP address can write behaviour The write operation address carried in ordering, i.e., number is determined according to the Key or LBA and data length that are carried in write operation order Whether it is included according to the address of write-in in hard-disc storage space corresponding to the host IP address, if comprising illustrating that this writes behaviour The content ordered can be write in corresponding write operation address, then it is hard the write operation order to be forwarded into Ethernet interface Disk, if it is not possible, then returning to the configured information that can not be write to main frame.
Preferably, sent by write operation order to Ethernet interface hard disk, can be according in the write operation order Data length, host IP address is determined after current write operation and has used the size of Ethernet interface hard disk, then basis Memory space shared by the content to be write in write operation order, which adjusts, can use hard-disc storage space big corresponding to the IP address It is small.
Preferably, method provided in an embodiment of the present invention also includes:When receive main frame issue it is hard from Ethernet interface When disk reads the read operation order of data, if the Key parameter values that the read operation order includes are not to be worth, ether is returned to There is no the configured information of the Key parameter values in network interface hard disk.
When interchanger receive that main frame issues when reading the read operation order of data from Ethernet interface hard disk, interchanger can First Key parameter values in read operation order, determine that the main frame content to be accessed whether there is, if it is present to ether Network interface hard disk forwards the read operation order, and otherwise return does not have corresponding to the Key parameter values in Ethernet interface hard disk The configured information of content.
Wherein, if not having to record hard-disc storage space corresponding to the host IP address in write operation order in interchanger, After then writing the write operation order of Ethernet interface hard disk receive that main frame issues, in the write operation order is judged Before whether write operation address is included in the hard-disc storage space for distributing to the IP address, it is also necessary to according to the write operation The IP address that order includes, the local hard-disc storage space for distributing to the IP address stored is obtained, i.e., to Ethernet Interface hard disk sends the corresponding relation obtained between host IP address and Ethernet interface hard-disk capacity or KV that command code is 4 Order.
Thus, by technical scheme provided in an embodiment of the present invention, interchanger is realized to Ethernet interface hard-disk capacity Management, simplify the networking and capacity management of Ethernet interface hard disk.
Correspondingly, the embodiments of the invention provide a kind of multi-tenant interchanger of Ethernet interface hard-disk capacity management, Fig. 3 For a kind of multi-tenant interchanger schematic diagram of Ethernet interface hard-disk capacity management provided in an embodiment of the present invention, multi-tenant exchanges Machine is connected with multiple Ethernet interface hard disks, and the multi-tenant interchanger is connected with multiple main frames, as illustrated, the interchanger bag Include:
Transmitting element 301, the storage for the Ethernet interface hard disk in received hard disk configuration information are empty Between distribute information, send capacity distribution order to each Ethernet interface hard disk, capacity distribution order includes host ip Address and the hard-disc storage space for distributing to the host IP address.
Transmitting element 301 is additionally operable to:Querying command is sent to each Ethernet interface hard disk, is connect with obtaining each Ethernet The hard disk information of mouth hard disk.
After interchanger receives the active volume of Ethernet interface hard disk return, the active volume information can record.Pipe The capacity information that reason person can be recorded according to interchanger, the main frame connected to interchanger carries out capacity distribution, when interchanger connects After the hard disk configuration information for receiving network manager, capacity distribution order, the appearance can be sent to each Ethernet interface hard disk The command code of amount distribution order is 3, for configuring the corresponding pass between host IP address and Ethernet interface hard-disk capacity or KV System, capacity distribution order include host IP address and distribute to the hard-disc storage space of the host IP address.Wherein, firmly Disc storage space includes the information such as address and the size in hard-disc storage space.
Receiving unit 302, for receiving the host IP address of each Ethernet interface hard disk transmission and distributing to the master The corresponding relation in the hard-disc storage space of machine IP address.
Memory cell 303, for storing the host IP address of each Ethernet interface hard disk transmission and distributing to institute State the corresponding relation in the hard-disc storage space of host IP address.
Judging unit 304, for when receiving the write operation order for writing Ethernet interface hard disk that main frame issues, judging Whether the write operation address in the write operation order is included in the hard-disc storage space for distributing to the IP address.
When interchanger receives the write operation order for writing Ethernet interface hard disk that main frame issues, interchanger can first basis In write operation order " Key originates the contents of LBA " fields and determines that the storage of the main frame Ethernet interface hard disk to be accessed is empty Between, the IP address in IP headers determines host IP address, then according to the host IP address of local record with distributing to The corresponding relation in the hard-disc storage space of the host IP address, determines whether the host IP address can be write in write operation order The write operation address of carrying, i.e., determine what data write according to the Key or LBA and data length that are carried in write operation order Whether address is included in hard-disc storage space corresponding to the host IP address, if comprising illustrating in the write operation order Content can write corresponding in write operation address, then the write operation order is forwarded to Ethernet interface hard disk, if not Can be with the configured information that can not be then write to main frame return.
Processing unit 305, if be included in distributing to the IP for the write operation address in the write operation order In the hard-disc storage space of location, then it is hard the write operation order to be forwarded to Ethernet interface corresponding to the hard-disc storage space Disk, and adjust hard-disc storage space size corresponding to the IP address.
Preferably, processing unit 305 is additionally operable to:Distributed to if the write operation address in the operational order is not included in In the hard-disc storage space of the IP address, then the configured information that can not be write is returned.
Preferably, when receiving the read operation order for the reading Ethernet interface hard disk that main frame issues, if described read behaviour The Key parameter values that making order includes are not to be worth, and transmitting element 301 is additionally operable to:Then return does not have in Ethernet interface hard disk The configured information of the Key parameter values.
When interchanger receives the read operation order for the reading Ethernet interface hard disk that main frame issues, interchanger can first basis Key parameter values in read operation order, determine that the main frame content to be accessed whether there is, if it is present to Ethernet interface Hard disk forwards the read operation order, and otherwise returning does not have content corresponding to the Key parameter values in Ethernet interface hard disk Configured information.
Preferably, multi-tenant interchanger provided in an embodiment of the present invention also includes:Acquiring unit 306, for according to The IP address that write operation order includes, obtain the hard-disc storage space for distributing to the IP address.
After interchanger, Ethernet interface hard disk networking, interchanger broadcast transmission command code first is 1 identification Ethernet The order of interface hard disk.Identification information is returned in Ethernet interface hard disk, the identification information includes Ethernet interface hard disk Producer, the capacity of Ethernet interface hard disk, Ethernet interface hard disk the content such as mode of operation after, interchanger continues to send operation The order for the acquisition Ethernet interface hard-disk capacity that code is 2, Ethernet interface hard disk return to the available capacity of hard disk to interchanger.
Thus, by technical scheme provided in an embodiment of the present invention, interchanger is realized to Ethernet interface hard-disk capacity Management, simplify the networking and capacity management of Ethernet interface hard disk.
Correspondingly, the embodiment of the present invention additionally provides a kind of multi-tenant interchanger, multi-tenant interchanger and multiple Ethernets Interface hard disk is connected, and the multi-tenant interchanger is connected with multiple main frames, and Fig. 4 is another multi-tenant provided in an embodiment of the present invention Interchanger schematic diagram, as illustrated, the multi-tenant interchanger includes network interface 401, processor 402, memory 403.System Bus 404 is used to connect network interface 401, processor 402 and memory 403, and for carrying the number between each device According to transmission.
Network interface 401 is used to communicate with other network entities.
There is software program and device driver in memory 403.Processor 402 can be with load store device 403 Software module, and cause each device to perform corresponding function according to software module;Device driver can be interface driver Program.
In multi-tenant interchanger provided in an embodiment of the present invention, the software module in the load store device 403 of processor 402, And performed according to software module to give an order:
According to received hard disk configuration information, capacity distribution order is sent to each Ethernet interface hard disk, it is described Capacity distribution order includes host IP address and distributes to the hard-disc storage space of the host IP address;
Receive and store the host IP address of each Ethernet interface hard disk transmission and distribute to the host IP address The corresponding relation in hard-disc storage space;
When receiving the write operation order for writing Ethernet interface hard disk that main frame issues, judge in the write operation order Write operation address whether be included in and distribute in the hard-disc storage space of the IP address, if it is, by the write operation Order is forwarded to Ethernet interface hard disk corresponding to the hard-disc storage space, and adjust corresponding to the IP address can use it is hard Disc storage space size.
Further, processor 402 sends capacity distribution order by network interface 401 to each Ethernet interface hard disk Before, it can also carry out instruction:Querying command is sent to each Ethernet interface hard disk, to obtain each Ethernet interface hard disk Hard disk information.
Further, processor 402 judges whether the write operation address in the operational order is described included in distributing to After in the hard-disc storage space of IP address, instruction can also carry out:If the write operation address in the operational order does not include In the hard-disc storage space of the IP address is distributed to, then the configured information that can not be write is returned.
Further, processor 402 can also carry out order:As the reading behaviour for receiving the reading Ethernet interface hard disk that main frame issues When ordering, if the Key parameter values that the read operation order includes are not to be worth, return and do not have in Ethernet interface hard disk There is the configured information of the Key parameter values.
Further, after writing the write operation order of Ethernet interface hard disk receive that main frame issues, judging Before the write operation address in write operation order is stated whether included in the hard-disc storage space for distributing to the IP address, processing Device 402 may be used also:The IP address included according to the write operation order, obtain the hard-disc storage sky for distributing to the IP address Between.
Thus, the embodiment of the present invention realizes multi-tenant interchanger and directly carries out capacity management to Ethernet interface hard disk, Simplify the networking and capacity management of Ethernet interface hard disk.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, it is hard in order to clearly demonstrate The interchangeability of part and software, the composition and step of each example are generally described according to function in the above description. These functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme. Professional and technical personnel can realize described function using distinct methods to each specific application, but this realization It is it is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include Within protection scope of the present invention.

Claims (10)

1. a kind of management method of Ethernet interface hard-disk capacity, it is characterised in that interchanger and multiple Ethernet interface hard disks Connection, the interchanger are connected with multiple main frames, and the interchanger performs following steps:
The active volume information of Ethernet interface hard disk in received hard disk configuration information, connects to each Ethernet Mouth hard disk sends capacity distribution order, and the capacity distribution, which is ordered, to be included host IP address and distribute to the host IP address Hard-disc storage space;
Receive and store the host IP address of each Ethernet interface hard disk transmission and distribute to the hard disk of the host IP address The corresponding relation of memory space;
When receiving the write operation order for writing Ethernet interface hard disk that main frame issues, writing in the write operation order is judged Whether operation address, which is included in, is distributed in the hard-disc storage space of the IP address, if it is, by the write operation order Ethernet interface hard disk corresponding to the hard-disc storage space is forwarded to, and adjusts and can be deposited corresponding to the IP address with hard disk Store up space size.
2. the management method of Ethernet interface hard-disk capacity according to claim 1, it is characterised in that it is described to it is each with Before too network interface hard disk sends capacity distribution order, in addition to:Querying command is sent to each Ethernet interface hard disk, to obtain Take the hard disk information of each Ethernet interface hard disk.
3. the management method of Ethernet interface hard-disk capacity according to claim 1 or 2, it is characterised in that the judgement After whether the write operation address in the operational order is included in the hard-disc storage space for distributing to the IP address, also wrap Include:
If the write operation address in the operational order is not included in the hard-disc storage space for distributing to the IP address, Return to the configured information that can not be write.
4. the management method of Ethernet interface hard-disk capacity according to claim 1 or 2, it is characterised in that methods described Also include:
When receiving the read operation order for the reading Ethernet interface hard disk that main frame issues, if what the read operation order included Key parameter values are not to be worth, then returning in Ethernet interface hard disk does not have the configured information of the Key parameter values.
5. the management method of Ethernet interface hard-disk capacity according to claim 1 or 2, it is characterised in that the reception To main frame issue write the write operation order of Ethernet interface hard disk after, the write operation judged in the write operation order Before whether address is included in the hard-disc storage space for distributing to the IP address, in addition to:According to the write operation order The IP address included, obtain the hard-disc storage space for distributing to the IP address.
A kind of 6. multi-tenant interchanger of Ethernet interface hard-disk capacity management, it is characterised in that multi-tenant interchanger with it is multiple Ethernet interface hard disk is connected, and the multi-tenant interchanger is connected with multiple main frames, and the multi-tenant interchanger includes:
Transmitting element, for the active volume information of the Ethernet interface hard disk in received hard disk configuration information, Capacity distribution order is sent to each Ethernet interface hard disk, the capacity distribution order includes host IP address with distributing to The hard-disc storage space of the host IP address;
Receiving unit, for receiving the host IP address of each Ethernet interface hard disk transmission and distributing to the host IP address Hard-disc storage space corresponding relation;
Memory cell, for storing the host IP address of each Ethernet interface hard disk transmission and distributing to the host ip The corresponding relation in the hard-disc storage space of address;
Judging unit, for when receiving the write operation order for writing Ethernet interface hard disk that main frame issues, being write described in judgement Whether the write operation address in operational order is included in the hard-disc storage space for distributing to the IP address;
Processing unit, if being included in the hard disk for distributing to the IP address for the write operation address in the write operation order In memory space, then the write operation order is forwarded to Ethernet interface hard disk corresponding to the hard-disc storage space, and Hard-disc storage space size can be used by adjusting corresponding to the IP address.
7. the multi-tenant interchanger of Ethernet interface hard-disk capacity management according to claim 6, it is characterised in that described Transmitting element is additionally operable to:Querying command is sent to each Ethernet interface hard disk, to obtain the hard of each Ethernet interface hard disk Disk information.
8. the multi-tenant interchanger of the Ethernet interface hard-disk capacity management according to claim 6 or 7, it is characterised in that The processing unit is additionally operable to:
If the write operation address in the operational order is not included in the hard-disc storage space for distributing to the IP address, Return to the configured information that can not be write.
9. the multi-tenant interchanger of the Ethernet interface hard-disk capacity management according to claim 6 or 7, it is characterised in that The transmitting element is additionally operable to:
When receiving the read operation order for the reading Ethernet interface hard disk that main frame issues, if what the read operation order included Key parameter values are not to be worth, then returning in Ethernet interface hard disk does not have the configured information of the Key parameter values.
10. the multi-tenant interchanger of the Ethernet interface hard-disk capacity management according to claim 6 or 7, it is characterised in that The multi-tenant interchanger also includes:Acquiring unit, for the IP address included according to the write operation order, obtain distribution Hard-disc storage space to the IP address.
CN201410271382.1A 2014-06-17 2014-06-17 The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity Active CN104023076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410271382.1A CN104023076B (en) 2014-06-17 2014-06-17 The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410271382.1A CN104023076B (en) 2014-06-17 2014-06-17 The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity

Publications (2)

Publication Number Publication Date
CN104023076A CN104023076A (en) 2014-09-03
CN104023076B true CN104023076B (en) 2017-12-15

Family

ID=51439645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410271382.1A Active CN104023076B (en) 2014-06-17 2014-06-17 The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity

Country Status (1)

Country Link
CN (1) CN104023076B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037772B (en) * 2021-03-30 2023-05-02 苏州科达科技股份有限公司 Data processing method, system, equipment and storage medium
CN117675759A (en) * 2022-09-06 2024-03-08 成都华为技术有限公司 Data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977227A (en) * 2010-10-25 2011-02-16 中国农业大学 Multi-user network storage system and construction method thereof
CN102904913A (en) * 2011-07-27 2013-01-30 鸿富锦精密工业(深圳)有限公司 Management method and system for cloud storage space and gateway equipment using management method
TW201327162A (en) * 2011-12-26 2013-07-01 Inventec Corp Dynamical disk mapping method and server using the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5331555B2 (en) * 2009-04-23 2013-10-30 株式会社日立製作所 Data migration system and data migration method
US8566558B2 (en) * 2011-07-22 2013-10-22 Hitachi, Ltd. Storage apparatus and data management method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977227A (en) * 2010-10-25 2011-02-16 中国农业大学 Multi-user network storage system and construction method thereof
CN102904913A (en) * 2011-07-27 2013-01-30 鸿富锦精密工业(深圳)有限公司 Management method and system for cloud storage space and gateway equipment using management method
TW201327162A (en) * 2011-12-26 2013-07-01 Inventec Corp Dynamical disk mapping method and server using the same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"网络硬盘存储优化方法的设计与实现";何金鑫;《中国优秀硕士学位论文全文数据库》;20130115;I137-29 *

Also Published As

Publication number Publication date
CN104023076A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
CN104503708B (en) The method and device of data hash storage
CN109302466A (en) Data processing method, relevant device and computer storage medium
CN106446159B (en) A kind of method of storage file, the first virtual machine and name node
CN103412822B (en) Operation Nonvolatile memory and the method and relevant apparatus of data manipulation
CN106844108B (en) A kind of date storage method, server and storage system
CN105556930A (en) NVM EXPRESS controller for remote memory access
CN106708423A (en) Multimode storage management system
CN110096220B (en) Distributed storage system, data processing method and storage node
CN106020731B (en) Store equipment, array of storage devices and network adapter
JP2015515678A (en) System and method for storing data using a table of content entry
CN108399050B (en) Data processing method and device
CN109327557A (en) A kind of management method and device of virtual machine IP address
CN111193783B (en) Service access processing method and device
CN106201923A (en) Method for reading and writing data and device
CN107544755A (en) The control method and device of a kind of reading and writing data
CN109445687A (en) A kind of date storage method and protocol server
CN107707628A (en) Method and apparatus for transmitting data processing request
CN104023076B (en) The management method and multi-tenant interchanger of Ethernet interface hard-disk capacity
CN109918352A (en) The method of storage system and storing data
CN103064749B (en) Inter-process communication method
CN106648899A (en) Cloud computing storage method and device based on surplus storage space of terminal device
CN107145399A (en) A kind of shared-memory management method and shared-memory management equipment
CN104038550B (en) Data communications method and its device, storage system
CN109814805A (en) The method and slitting server that slitting recombinates in storage system
CN107704336A (en) A kind of date storage method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant