CN104331330A - Resource pool generation method and device - Google Patents

Resource pool generation method and device Download PDF

Info

Publication number
CN104331330A
CN104331330A CN201410584347.5A CN201410584347A CN104331330A CN 104331330 A CN104331330 A CN 104331330A CN 201410584347 A CN201410584347 A CN 201410584347A CN 104331330 A CN104331330 A CN 104331330A
Authority
CN
China
Prior art keywords
memory device
resource pool
capacity
mark
ability
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.)
Granted
Application number
CN201410584347.5A
Other languages
Chinese (zh)
Other versions
CN104331330B (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.)
Chengdu Huawei Technology 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 CN201410584347.5A priority Critical patent/CN104331330B/en
Publication of CN104331330A publication Critical patent/CN104331330A/en
Application granted granted Critical
Publication of CN104331330B publication Critical patent/CN104331330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a resource pool generation method and a resource pool generation device. The method comprises the steps of reading the capability information of first storage equipment from the capability storage area of the first storage equipment, and generating the capability identification of the first storage equipment according to the capability information of the first storage equipment; calculating the benchmark capability of the first storage equipment according to the capability identification of the first storage equipment; judging whether the first storage equipment is distributed into an existing resource pool according to the benchmark capability of the first storage equipment; if so, distributing the first storage equipment into the existing resource pool, and correspondingly storing the protocol address of the first storage equipment and the identification of the distributed resource pool locally to generate the resource pool; if not, distributing the first storage equipment into the existing resource pool, newly building the resource pool, and correspondingly storing the protocol of the first storage equipment and the identification of a new resource pool locally to generate the resource pool. By applying the method, the automatic generation of the resource pool is realized, and the precision of generating the resource pool is improved.

Description

Resource pool generation method and device
Technical field
The present invention relates to field of cloud calculation, particularly relate to a kind of resource pool generation method and device.
Background technology
Under the environment that current cloud computing is advanced by leaps and bounds, virtually turn to cloud computing and established solid foundation.But calculate now and virtually to begin to take shape, network virtualization is also in ruly development, and Storage Virtualization is also in the stage of saving up strength to start out only.Now, Storage Virtualization is mainly realized by structure memory resource pool.When building resource pool, be all after understanding the situation of memory device in advance by keeper, then which resource pool subjective judgement memory device should be assigned in, thus generate resource pool.Under this resource pool generating mode, following problem can be there is.
One, the criterion of keeper when judging the ability of memory device has very large subjectivity, thus causes being assigned in resource pool not meeting resource pool Capability Requirement storage device error.
Two, the generation of resource pool is the pure manual operations by keeper, so the efficiency of distribution is not high.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, provides a kind of resource pool generation method and device, achieves and automatically generate resource pool, and improves the accuracy of resource pool generation.
First aspect, the invention provides a kind of resource pool generation method, comprise: the ability information reading described first memory device from the ability storage area of the first memory device, and the ability label generating the first memory device according to the ability information of described first memory device; The standard capacity of described first memory device is calculated according to the ability label of described first memory device; Judge whether described first memory device to be assigned in existing resource pool according to the standard capacity of described first memory device; If described first memory device is assigned in existing resource pool, then by the protocol address of described first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; If not described first memory device is assigned in existing resource pool, then newly-built resource pool, and by the protocol address of described first memory device and the mark corresponding stored of newly-built resource pool in this locality, to generate resource pool.
In conjunction with first aspect, in the first possible embodiment of first aspect present invention, described ability label comprises: efficient capacity identifies, capacity identifies, at least one in Functional Capability mark, wherein, described efficient capacity mark comprises: the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, at least one index in controller memory size, described capacity mark comprises: equipment total volume, equipment have used at least one index in capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank with capacity, storage pool total volume, storage pool, described Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support to simplify configuration, at least one index whether supported in local High Availabitity.
In conjunction with the first possible embodiment of first aspect, in the embodiment that the second of first aspect present invention is possible, the standard capacity that the described ability label according to described first memory device calculates described first memory device is specially: the standard capacity calculating described first memory device according to formula (1)
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibiliy ≤ 100 . Formula (1)
Wherein, V possibilityfor the standard capacity of described first memory device, n is the quantity of described efficient capacity mark or described capacity mark or described Functional Capability mark, and β is the first weighted value, and Value is described finger target value, α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
In conjunction with the embodiment that the second of the first or first aspect of first aspect or first aspect is possible, in the third possible embodiment of first aspect present invention, judge whether described first memory device to be assigned in existing resource pool to be specially according to the standard capacity of described first memory device: the standard capacity scope whether falling into existing resource pond according to the standard capacity of described first memory device judges whether described first memory device to be assigned to existing resource pool.
In conjunction with first aspect or first aspect the first to first aspect the third in any one possible embodiment, in 4th kind of possible embodiment of first aspect present invention, also comprise read the ability information of described first memory device from the ability storage area of the first memory device after: by the protocol address corresponding stored of the ability information of described first memory device and described first memory device in a database; The ability label generating the first memory device according to the ability information of described first memory device comprises: receiving ability recognition command, from described database, read the ability information of described first memory device according to the protocol address of described first memory device in described capability identification order, and identify according to the ability information generative capacity of described first memory device.
In conjunction with the first of first aspect or first aspect to any one possible embodiment in the 4th kind of first aspect, in 5th kind of possible embodiment of first aspect present invention, if described first memory device is assigned in existing resource pool, then by the protocol address of described first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; If not described first memory device is assigned in existing resource pool, then newly-built resource pool, and by the agreement of described first memory device and the mark corresponding stored of newly-built resource pool in this locality, also comprise after generating resource pool: judge whether to reach the default time; If reached the default time, then return receiving ability recognition command step.
Second aspect, the invention provides a kind of resource pool generating apparatus, comprise: read module, generation module, computing module, the first judge module and respective modules, described read module is used for the ability information reading described first memory device from the ability storage area of the first memory device, and the ability information of described first memory device is sent to described generation module by described read module; Described generation module is for receiving the ability information of described first memory device, generate the ability label of the first memory device according to the ability information of described first memory device, the ability label of described first memory device is sent to described computing module by described generation module; Described computing module is for receiving described ability label, and calculate the standard capacity of described first memory device according to the ability label of described first memory device, the standard capacity of described first memory device is sent to described first judge module by described computing module; Described first judge module is for receiving the standard capacity of described first memory device, judge whether described first memory device to be assigned in existing resource pool according to the standard capacity of described first memory device, judged result is sent to described respective modules by described first judge module; Described respective modules be used for be described first memory device is assigned in existing resource pool time, by the protocol address of described first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; Be not described first memory device is assigned in existing resource pool time, newly-built resource pool, and by the protocol address of described first memory device and the mark corresponding stored of newly-built resource pool in this locality, to generate resource pool.
In conjunction with second aspect, in the first possible embodiment of second aspect present invention, described ability label comprises: efficient capacity identifies, capacity identifies, at least one in Functional Capability mark, wherein, described efficient capacity mark comprises: the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, at least one index in controller memory size, described capacity mark comprises: equipment total volume, equipment have used at least one index in capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank with capacity, storage pool total volume, storage pool, described Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support to simplify configuration, at least one index whether supported in local High Availabitity.
In conjunction with the first possible embodiment of second aspect, in the embodiment that the second of second aspect present invention is possible, described computing module specifically for calculating the standard capacity of described first memory device according to formula (1),
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibiliy ≤ 100 . Formula (1)
Wherein, V possibilityfor the standard capacity of described first memory device, n is the quantity of described efficient capacity mark or described capacity mark or described Functional Capability mark, and β is the first weighted value, and Value is described finger target value, α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
In conjunction with the embodiment that the second of the first or second aspect of second aspect or second aspect is possible, in the third possible embodiment of second aspect present invention, described first judge module judges whether described first memory device to be assigned to existing resource pool specifically for the standard capacity scope whether falling into existing resource pond according to the standard capacity of described first memory device.
In conjunction with second aspect or second aspect the first to second aspect the third in any one possible embodiment, in 4th kind of possible embodiment of second aspect present invention, described device also comprises memory module, and described memory module is used for by the protocol address corresponding stored of the ability information of described first memory device and described first memory device in a database; Described generation module is also for receiving ability recognition command, and from described database, read the ability information of described first memory device according to the protocol address of described first memory device in described capability identification order, and identify according to the ability information generative capacity of described first memory device.
In conjunction with the first of second aspect or second aspect to any one possible embodiment in the 4th kind of second aspect, in 5th kind of possible embodiment of second aspect present invention, described device also comprises the second judge module, described second judge module reaches the default time for judging whether, and reaching the default time, call described generation module.
By implementing the embodiment of the present invention, automatically the ability information reading the first memory device from the ability storage area of the first memory device can be realized, the ability label of the first memory device is generated according to the ability information of the first memory device, the standard capacity of the first memory device is calculated again according to the ability label of the first memory device, finally, then according to the standard capacity of the first memory device the first memory device is assigned in corresponding resource pool.So, in the whole process that resource pool generates, do not need artificial participation, substantially increase the efficiency that resource pool generates, and, in the process that resource pool generates, memory allocated equipment is standard capacity to the foundation of resource pool, and standard capacity is all calculate according to the ability information of the memory device acquired, there is objectivity, thus avoid because the criterion of keeper when judging the ability of memory device has very large subjectivity, thus cause being assigned in resource pool not meeting resource pool Capability Requirement storage device error.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of a kind of application scenarios disclosed in the embodiment of the present invention;
Fig. 2 is the process flow diagram of resource pool generation method one embodiment of the present invention;
Fig. 3 is the process flow diagram of another embodiment of resource pool generation method of the present invention;
Fig. 4 is the structural representation of resource pool generating apparatus one embodiment of the present invention;
Fig. 5 is the structural representation of another embodiment of resource pool generating apparatus of the present invention;
Fig. 6 is the structural representation of server one embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
The embodiment of the invention discloses a kind of resource pool generation method, device and relevant device, can achieve and automatically generate resource pool, and improve the accuracy of resource pool generation.Embodiment for a better understanding of the present invention, is first described the application scenarios of the embodiment of the present invention below.
Refer to Fig. 1, Fig. 1 is the schematic diagram of a kind of application scenarios disclosed in the embodiment of the present invention.In the application scenarios shown in Fig. 1, server 110 is arranged in machine room usually, to carry out manual maintenance; Memory device 120 can be single hard disk, can be made up of multiple hard disk, and wherein, hard disk can be mechanical hard disk, also can be solid state hard disc (Solid State Disk, SSD).Memory device 120 can scattering device, also can concentrated setting, only needs Deterministic service device 110 can have access to memory device 120 by network 130.Network 130 can be using air as medium, carries out the wireless network transmitted using electromagnetic wave or infrared ray etc. as carrier, also can be the cable network carrying out using concentric cable, twisted-pair feeder or optical fiber etc. as carrier transmitting.Described cable network can adopt following arbitrary communication standard or agreement, includes but not limited to ICP/IP protocol, IPX/SPX agreement, NetBEUI agreement etc.Described wireless network can use following arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution) etc.
Refer to Fig. 2, Fig. 2 is the process flow diagram of resource pool generation method one embodiment of the present invention.Present embodiment is described from the angle of server, and the resource pool generation method of present embodiment comprises:
210: server reads the ability information of the first memory device from the ability storage area of the first memory device, and generates the ability label of the first memory device according to the ability information of the first memory device.
In the particular embodiment, the ability storage area of the first memory device is the region of the special ability information for storing the first memory device arranged in the first memory device, described ability storage area is written into the ability information of this equipment when dispatching from the factory after, can not be rewritten or be only had and just can be rewritten by special read-write equipment, so, when normal use the first memory device, be merely able to by read operation access ability storage area, and not by write operation access ability storage area.The ability information of the first memory device is the information for describing the first memory device ability, includes but not limited to the memory capacity of the storage efficiency of description first memory device, the first memory device and the memory function of the first memory device etc.The ability storage area of protocol access first memory device of server by wireless or cable network and according to agreement, and from the ability storage area of the first memory device, read the ability information of the first memory device.
Because different producers is when production inventory equipment, the form of the ability information of write storage device may be different, in order to subsequent calculations is convenient, the ability information of the different-format of different storage device is needed to be converted into the consistent ability label of form, so, server, after the ability information reading the first memory device, also needs the ability label generating the first memory device according to the ability information of the first memory device.
220: server calculates the standard capacity of the first memory device according to the ability label of the first memory device.
In the particular embodiment, ability label due to the first memory device is generally and comprises efficient capacity mark, capacity identifies, Functional Capability is identified at interior multiple identity type, and, efficient capacity identifies, capacity mark and Functional Capability mark comprise many indexes usually all respectively, so, the index that the ability label of the first memory device comprises is too many, be difficult to the ability describing the first memory device intuitively, need to calculate according to the ability label of the first memory device the standard capacity that describes simple first memory device, thus facilitate the ability of description first memory device.
230: server judges whether the first memory device to be assigned in existing resource pool according to the standard capacity of the first memory device.
In the particular embodiment, resource pool is normally made up of the memory device that multiple standard capacity is close or identical.The standard capacity of the first memory device calculated according to the ability label of the first memory device may be identical with the standard capacity of other memory devices in existing resource or close, also may differ greatly with the standard capacity of other memory devices in existing resource.So, if the standard capacity of the first memory device is identical with the standard capacity of other memory devices of certain resource pool in existing resource pool or close, then the first memory device is assigned in this resource pool, if the standard capacity of other memory devices in all resource pools in the standard capacity of the first memory device and existing resource pool all differs greatly, then the first memory device can not be assigned in existing resource pool.More specifically, can be each resource pool and certain standard capacity scope is set.If the standard capacity of the first memory device falls into the standard capacity scope of certain resource pool of existing resource pool, then the first memory device is assigned in this resource pool, if the standard capacity of the first memory device does not fall into the standard capacity scope of any one resource pool of existing resource pool, then the first memory device can not be assigned in existing resource pool.
If be assigned in existing resource pool by the first memory device, then enter step 240; Be assigned in existing resource pool if not by the first memory device, then enter step 250.
240: server by the protocol address of the first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool.
In the particular embodiment, each memory device has a unique corresponding protocol address, and this protocol address can as the mark of memory device.And in order to identify which resource pool memory device specifically belongs to, be required to be each resource pool arrange one's own, can carry out with other resource pools the mark distinguished.Described mark can be one group of identical identification code, also can be identification code that one group of part is identical etc.Such as, all memory devices being designated " 11 " all belong to resource pool A, and all memory devices being designated " 22 " all belong to resource pool B.Or, the memory device being designated " 11 " is first memory device belonged in resource pool A, the memory device being designated " 12 " is second memory device belonged in resource pool A, the memory device being designated " 21 " is first memory device belonged in resource pool B, and the memory device being designated " 22 " is second memory device belonged in resource pool B etc.
The table of comparisons of existing resource pond and mark is stored in server, so, after determining which resource pool that the first memory device is assigned in existing resource pond, the protocol address of the mark of this resource pool and the first memory device is also stored in this locality by the table of comparisons of whois lookup resource pool and mark, thus achieves and be assigned in existing resource pool by the first memory device.
250: the newly-built resource pool of server, and by the mark corresponding stored of the protocol address of the first memory device and newly-built resource pool in this locality, to generate resource pool.
In the particular embodiment, in order to distinguish with existing resource pool, newly-built resource pool must arrange the mark not identical with the mark of existing all resource pools.Be described further with step the above embodiments.In order to distinguish with existing resource pool, all memory devices being designated " 33 " all belong to resource pool C, or, the memory device being designated " 31 " is first memory device belonged in resource pool C, and the memory device being designated " 32 " is second memory device belonged in resource pool C.The corresponding relation of the mark of newly-built resource pool and setting is stored in the table of comparisons of existing resource pond and mark by server, and by the protocol address corresponding stored of the mark of newly-built resource pool and the first memory device in this locality, thus achieve the first memory device is assigned in newly-built resource pool.
Refer to Fig. 3, Fig. 3 is the process flow diagram of another embodiment of resource pool generation method of the present invention.Present embodiment is described from the angle of server, and the resource pool generation method of present embodiment comprises:
310: the protocol address of server receives user input.
In the particular embodiment, each memory device has a unique corresponding protocol address, and this protocol address can as the mark of memory device.If which memory device user wishes be assigned in resource pool, then can input the protocol address of this memory device in the user interface.Such as, user wishes the first memory device to be assigned in resource pool now, then user will input the protocol address of the first memory device in the user interface.Server is the corresponding protocol address receiving the first memory device of user's input then.
320: server is searched memory device according to the protocol address of memory device, and find first memory device corresponding with protocol address.
In the particular embodiment, the protocol address of the first memory device, after the protocol address of the first memory device receiving user's input, can be encapsulated in message by server, then sends message by the mode of broadcast to memory device in network.First memory device is after receiving the message that server broadcasts, decapsulation is carried out to message, and find that the protocol address encapsulated in message is after the protocol address of oneself, then send response to server, and set up linking between server with the first memory device.
330: server reads the ability information of the first memory device from the ability storage area of the first memory device, by the protocol address corresponding stored of the ability information of the first memory device and the first memory device in a database.
In the particular embodiment, the ability storage area of the first memory device is the region of the special ability information for storing the first memory device arranged in the first memory device, described ability storage area is written into the ability information of this equipment when dispatching from the factory after, can not be rewritten or be only had and just can be rewritten by special read-write equipment, so, when normal use the first memory device, be merely able to by read operation access ability storage area, and not by write operation access ability storage area.The ability information of the first memory device is the information for describing the first memory device ability, includes but not limited to the memory capacity of the storage efficiency of description first memory device, the first memory device and the memory function of the first memory device etc.After establishing the link between server and the first memory device, the ability storage area of protocol access first memory device of server by wireless or cable network and according to agreement, and from the ability storage area of the first memory device, read the ability information of the first memory device.
For the ease of managing the ability information of each memory device, the ability information read can be stored in a database from the ability storage area of the first memory device.During storage, by the protocol address association store of the ability information of the first memory device and the first memory device in a database, retrieve according to the protocol address of the first memory device to facilitate.
340: receiving ability recognition command, from database, read the ability information of the first memory device according to the protocol address of the first memory device in capability identification order, and identify according to the ability information generative capacity of the first memory device.
In the particular embodiment, because different producers is when production inventory equipment, the form of the ability information of write storage device may be different, in order to subsequent calculations is convenient, the ability information of the different-format of different storage device is needed to be converted into the consistent ability label of form, so server, after receiving ability recognition command, reads the ability information of the first memory device from database according to the protocol address of the first memory device in capability identification order.After the ability information reading the first memory device, also need the ability label generating the first memory device according to the ability information of the first memory device.
Ability label can comprise: efficient capacity mark, capacity mark, Functional Capability mark etc.Further, efficient capacity mark can comprise: the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size etc.Equipment total volume, equipment have used capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank etc. with capacity, storage pool total volume, storage pool; Whether Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, support to simplify configuration, whether support local High Availabitity etc.
350: the standard capacity calculating the first memory device according to the ability label of the first memory device.
In the particular embodiment, ability label due to the first memory device is generally and comprises efficient capacity mark, capacity identifies, Functional Capability is identified at interior multiple marking type, and, efficient capacity identifies, capacity mark and Functional Capability mark comprise many indexes usually all respectively, so, the index that the ability label of the first memory device comprises is too many, be difficult to the ability describing the first memory device intuitively, need the standard capacity calculating simple first memory device according to the ability label of the first memory device, thus facilitate the ability of description first memory device.
In the particular embodiment, as shown in table 1, itemize the first memory device in a specific embodiment, the marking type that ability label comprises, the index that often kind of marking type comprises and the value corresponding to often kind of index.
The value of table 1 first memory device ability label, index and correspondence
The computing method calculating the standard capacity of the first memory device according to the ability label of the first memory device are specially: the standard capacity calculating described first memory device according to formula (1),
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibiliy ≤ 100 . Formula (1)
Wherein, V possibilitybe the standard capacity of the first memory device, n is the quantity of efficient capacity mark or capacity mark or Functional Capability mark, and β is the first weighted value, and Value is for referring to target value, and α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
As shown in table 2, first weighted value β in formula (1) is artificially set, the value of the second weighted value α, and the value of index determination additional factor belonging to Value, and the ability label of the first memory device according to formula (1) his-and-hers watches 1 calculates, thus obtain the standard capacity of the first memory device.Wherein, the first weighted value β, and the value of the second weighted value α can be arranged according to the actual conditions of the first memory device and experience.
Table 2 calculates the standard capacity of the first memory device according to formula (1)
So can know according to table 2, the ability label of the first memory device according to formula (1) his-and-hers watches 1 carries out calculating thus the standard capacity obtaining the first memory device is 70.344.
360: judge whether the first memory device to be assigned in existing resource pool according to the standard capacity of the first memory device.
In the particular embodiment, resource pool is normally made up of the memory device that multiple standard capacity is close or identical.The standard capacity of the first memory device calculated according to the ability label of the first memory device may be identical with the standard capacity of other memory devices in existing resource or close, also may differ greatly with the standard capacity of other memory devices in existing resource.So, if the standard capacity of the first memory device is identical with the standard capacity of other memory devices of certain resource pool in existing resource pool or close, then the first memory device is assigned in this resource pool, if the standard capacity of other memory devices in all resource pools in the standard capacity of the first memory device and existing resource pool all differs greatly, then the first memory device can not be assigned in existing resource pool.More specifically, can be each resource pool and certain standard capacity scope is set.If the standard capacity of the first memory device falls into the standard capacity scope of certain resource pool of existing resource pool, then the first memory device is assigned in this resource pool, if the standard capacity of the first memory device does not fall into the standard capacity scope of any one resource pool of existing resource pool, then the first memory device can not be assigned in existing resource pool.
In a particular embodiment, suppose that there are resource pool A, resource pool B in existing resource pond, wherein, the standard capacity scope of resource pool A be (40-60], the standard capacity scope of resource pool B be (60-80].If the standard capacity of the first memory device is 70.344, then the standard capacity of the first memory device is dropped in the standard capacity scope of resource pool B, so, the first memory device is assigned in the B of existing resource pond.If the standard capacity of the first memory device is 82.5, then the standard capacity of the first memory device does not drop in the standard capacity scope of any one resource pool in existing resource pond, so, the first memory device can not be assigned in any one resource pool existing.
If be assigned in existing resource pool by the first memory device, then enter step 370; Be assigned in existing resource pool if not by the first memory device, then enter step 380.
370: by the protocol address of the first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool.
In the particular embodiment, in order to identify which resource pool memory device specifically belongs to, be required to be each resource pool arrange one's own, can carry out with other resource pools the mark distinguished.Described mark can be one group of identical identification code, also can be identification code that one group of part is identical etc.Such as, all memory devices being designated " 11 " all belong to resource pool A, and all memory devices being designated " 22 " all belong to resource pool B.Or, the memory device being designated " 11 " is first memory device belonged in resource pool A, the memory device being designated " 12 " is second memory device belonged in resource pool A, the memory device being designated " 21 " is first memory device belonged in resource pool B, and the memory device being designated " 22 " is second memory device belonged in resource pool B etc.
The table of comparisons of existing resource pond and mark is stored in server, as shown in table 3,
The table of comparisons of table 3 existing resource pond and mark
Existing resource pond Mark
Resource pool A 11 (or 11,12)
Resource pool B 22 (or 21,22)
So, after determining which resource pool that the first memory device is assigned in existing resource pond, the table of comparisons of whois lookup resource pool and mark by the protocol address corresponding stored of the mark of this resource pool and the first memory device in this locality.
380: newly-built resource pool, and the mark of newly-built resource pool is sent to the first memory device, to generate resource pool.
In the particular embodiment, in order to distinguish with existing resource pool, newly-built resource pool must arrange the mark not identical with the mark of existing all resource pools.The corresponding relation of the mark of newly-built resource pool and setting is stored in the table of comparisons of existing resource pond and mark.Be described further with the embodiment shown in step 350 and step 360.If the standard capacity of the first memory device is 82.5, can not be assigned in any one resource pool existing, then a newly-built resource pool C, wherein, the standard capacity scope of resource pool C be (80-100].In order to distinguish with existing resource pool, all memory devices being designated " 33 " all belong to resource pool C, or, the memory device being designated " 31 " is first memory device belonged in resource pool C, and the memory device being designated " 32 " is second memory device belonged in resource pool C.After the corresponding relation of the mark of newly-built resource pool and setting is stored into the table of comparisons of existing resource pond and mark, the existing resource pond after renewal and the table of comparisons of mark as shown in table 4.
Existing resource pond after table 4 upgrades and the table of comparisons of mark
Existing resource pond Mark
Resource pool A 11 (or 11,12)
Resource pool B 22 (or 21,22)
Resource pool C 33 (or 31,32)
Meanwhile, the protocol address corresponding stored of the mark of newly-built resource pool and the first memory device in this locality, thus achieves and is assigned in newly-built resource pool by the first memory device by server.
390: judge whether to reach the default time.
In a particular embodiment, server can preset a time, and wherein, the time of presetting can be that user carries out setting as required, and the present invention does not do concrete restriction.Such as can arrange the default time is 1 day etc.Judge whether to reach the default time, if also do not arrive the time of presetting, then continue to wait for; If reached the default time, return step 340.
The above-mentioned method illustrating the embodiment of the present invention, below for the ease of implementing the such scheme of the embodiment of the present invention better, correspondingly, is also provided for coordinating the relevant device implementing such scheme below.
Consult Fig. 4, Fig. 4 is the structural representation of resource pool generating apparatus one embodiment of the present invention.The resource pool generating apparatus 400 of present embodiment comprises: generation module 410, generation module 420, computing module 430, first judge module 440 and respective modules 450.
Read module 410 for reading the ability information of the first memory device from the ability storage area of the first memory device.The ability information of the first memory device is sent to generation module 420 by read module 410.
In the particular embodiment, the ability storage area of the first memory device is the region of the special ability information for storing the first memory device arranged in the first memory device, described ability storage area is written into the ability information of this equipment when dispatching from the factory after, can not be rewritten or be only had and just can be rewritten by special read-write equipment, so, when normal use the first memory device, be merely able to by read operation access ability storage area, and not by write operation access ability storage area.The ability information of the first memory device is the information for describing the first memory device ability, includes but not limited to the memory capacity of the storage efficiency of description first memory device, the first memory device and the memory function of the first memory device etc.The ability storage area of protocol access first memory device of server by wireless or cable network and according to agreement, and from the ability storage area of the first memory device, read the ability information of the first memory device.
Generation module 420 is for generating the ability label of the first memory device according to the ability information of the first memory device, the ability label of the first memory device is sent to computing module 430 by generation module 420.
In the particular embodiment, because different producers is when production inventory equipment, the form of the ability information of write storage device may be different, in order to subsequent calculations is convenient, the ability information of the different-format of different storage device is needed to be converted into the consistent ability label of form, so generation module 420, after the ability information reading the first memory device, also needs the ability label generating the first memory device according to the ability information of the first memory device.
Computing module 430 is for receiving ability mark, and calculate the standard capacity of the first memory device according to the ability label of the first memory device, the standard capacity of the first memory device is sent to the first judge module 440 by computing module 430.
In the particular embodiment, ability label due to the first memory device is generally and comprises efficient capacity mark, capacity identifies, Functional Capability is identified at interior multiple identity type, and, efficient capacity identifies, capacity mark and Functional Capability mark comprise many indexes usually all respectively, so, the index that the ability label of the first memory device comprises is too many, be difficult to the ability describing the first memory device intuitively, computing module 430 is needed to calculate according to the ability label of the first memory device the standard capacity that describes simple first memory device, thus facilitate the ability of description first memory device.
First judge module 440 is for receiving the standard capacity of the first memory device, and judge whether the first memory device to be assigned in existing resource pool according to the standard capacity of the first memory device, judged result is sent to respective modules 450 by the first judge module 440.
In the particular embodiment, resource pool is normally made up of the memory device that multiple standard capacity is close or identical.The standard capacity of the first memory device calculated according to the ability label of the first memory device may be identical with the standard capacity of other memory devices in existing resource or close, also may differ greatly with the standard capacity of other memory devices in existing resource.So, if the standard capacity of the first memory device is identical with the standard capacity of other memory devices of certain resource pool in existing resource pool or close, then the first judge module 440 judges the first memory device to be assigned in this resource pool, if the standard capacity of other memory devices in all resource pools in the standard capacity of the first memory device and existing resource pool all differs greatly, then the first judge module 440 judges the first memory device to be assigned in existing resource pool.More specifically, can be each resource pool and certain standard capacity scope is set.If the standard capacity of the first memory device falls into the standard capacity scope of certain resource pool of existing resource pool, then the first judge module 440 judges the first memory device to be assigned in this resource pool, if the standard capacity of the first memory device does not fall into the standard capacity scope of any one resource pool of existing resource pool, then the first judge module 440 judges the first memory device to be assigned in existing resource pool.
Respective modules 450 for be the first memory device is assigned in existing resource pool time, by the protocol address of the first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; Be not the first memory device is assigned in existing resource pool time, newly-built resource pool, and by the mark corresponding stored of the protocol address of the first memory device and newly-built resource pool in this locality, to generate resource pool.
In the particular embodiment, each memory device has a unique corresponding protocol address, and this protocol address can as the mark of memory device.Be the first memory device is assigned in existing resource pool time, in order to identify which resource pool memory device specifically belongs to, be required to be each resource pool arrange one's own, can carry out with other resource pools the mark distinguished.Described mark can be one group of identical identification code, also can be identification code that one group of part is identical etc.Such as, all memory devices being designated " 11 " all belong to resource pool A, and all memory devices being designated " 22 " all belong to resource pool B.Or, the memory device being designated " 11 " is first memory device belonged in resource pool A, the memory device being designated " 12 " is second memory device belonged in resource pool A, the memory device being designated " 21 " is first memory device belonged in resource pool B, and the memory device being designated " 22 " is second memory device belonged in resource pool B etc.The table of comparisons of existing resource pond and mark is stored in server, so, after determining which resource pool that the first memory device is assigned in existing resource pond, respective modules 450 is searched the table of comparisons of resource pool and mark and the protocol address of the mark of this resource pool and the first memory device is stored in this locality, thus achieves and be assigned in existing resource pool by the first memory device.
Be not the first memory device is assigned in existing resource pool time, in order to distinguish with existing resource pool, newly-built resource pool must arrange the mark not identical with the mark of existing all resource pools.Be described further with the above embodiments.In order to distinguish with existing resource pool, all memory devices being designated " 33 " all belong to resource pool C, or, the memory device being designated " 31 " is first memory device belonged in resource pool C, and the memory device being designated " 32 " is second memory device belonged in resource pool C.The corresponding relation of the mark of newly-built resource pool and setting is stored in the table of comparisons of existing resource pond and mark by server.Then, the protocol address corresponding stored of the mark of newly-built resource pool and the first memory device in this locality, thus achieves and is assigned in newly-built resource pool by the first memory device by respective modules 450.
Consult Fig. 5, Fig. 5 is the structural representation of another embodiment of resource pool generating apparatus of the present invention.The resource pool generating apparatus 500 of present embodiment comprises: read module 510, memory module 520, generation module 530, computing module 540, first judge module 550, respective modules 560 and the second judge module 570.
Read module 510 for reading the ability information of the first memory device from the ability storage area of the first memory device, and the ability information of the first memory device is sent to memory module 520 by read module 510.
In the particular embodiment, each memory device has a unique corresponding protocol address, and this protocol address can as the mark of memory device.If which memory device user wishes be assigned in resource pool, then can input the protocol address of this memory device in the user interface.Such as, user wishes the first memory device to be assigned in resource pool now, then user will input the protocol address of the first memory device in the user interface.Server is the corresponding protocol address receiving the first memory device of user's input then.The protocol address of the first memory device, after the protocol address of the first memory device receiving user's input, can be encapsulated in message by server, then sends message by the mode of broadcast to memory device in network.First memory device is after receiving the message that server broadcasts, decapsulation is carried out to message, and find that the protocol address encapsulated in message is after the protocol address of oneself, then send response to server, and set up linking between server with the first memory device.The ability storage area of the first memory device is the region of the special ability information for storing the first memory device arranged in the first memory device, described ability storage area is written into the ability information of this equipment when dispatching from the factory after, can not be rewritten or be only had and just can be rewritten by special read-write equipment, so, when normal use the first memory device, be merely able to by read operation access ability storage area, and not by write operation access ability storage area.The ability information of the first memory device is the information for describing the first memory device ability, includes but not limited to the memory capacity of the storage efficiency of description first memory device, the first memory device and the memory function of the first memory device etc.After establishing the link between server and the first memory device, the ability storage area of protocol access first memory device of read module 510 by wireless or cable network and according to agreement, and from the ability storage area of the first memory device, read the ability information of the first memory device.
Memory module 520 is for by the protocol address corresponding stored of the ability information of the first memory device and the first memory device in a database.
In the particular embodiment, for the ease of managing the ability information of each memory device, the ability information read can be stored in a database from the ability storage area of the first memory device.During storage, memory module 520 by the protocol address association store of the ability information of the first memory device and the first memory device in a database, is retrieved according to the protocol address of the first memory device to facilitate.
Generation module 530, for receiving the ability information of the first memory device, generates the ability label of the first memory device according to the ability information of the first memory device, the ability label of the first memory device is sent to computing module 540 by generation module 530.
In the particular embodiment, because different producers is when production inventory equipment, the form of the ability information of write storage device may be different, in order to subsequent calculations is convenient, the ability information of the different-format of different storage device is needed to be converted into the consistent ability label of form, so server, after receiving ability recognition command, reads the ability information of the first memory device from database according to the protocol address of the first memory device in capability identification order.After the ability information reading the first memory device, also need the ability label generating the first memory device according to the ability information of the first memory device.
Ability label can comprise: efficient capacity mark, capacity mark, Functional Capability mark etc.Further, efficient capacity mark can comprise: the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size etc.Equipment total volume, equipment have used capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank etc. with capacity, storage pool total volume, storage pool; Whether Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, support to simplify configuration, whether support local High Availabitity etc.
Computing module 540 is for receiving ability mark, and calculate the standard capacity of the first memory device according to the ability label of the first memory device, the standard capacity of the first memory device is sent to the first judge module 550 by computing module 540.
In the particular embodiment, ability label due to the first memory device is generally and comprises efficient capacity mark, capacity identifies, Functional Capability is identified at interior multiple marking type, and, efficient capacity identifies, capacity mark and Functional Capability mark comprise many indexes usually all respectively, so, the index that the ability label of the first memory device comprises is too many, be difficult to the ability describing the first memory device intuitively, need the standard capacity calculating simple first memory device according to the ability label of the first memory device, thus facilitate the ability of description first memory device.
In the particular embodiment, as shown in table 1, itemize the first memory device in a specific embodiment, the marking type that ability label comprises, the index that often kind of marking type comprises and the value corresponding to often kind of index.
Computing module 540 calculates the standard capacity of described first memory device according to formula (1),
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibiliy ≤ 100 . Formula (1)
Wherein, V possibilitybe the standard capacity of the first memory device, n is the quantity of efficient capacity mark or capacity mark or Functional Capability mark, and β is the first weighted value, and Value is for referring to target value, and α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
As shown in table 2, first weighted value β in formula (1) is artificially set, the value of the second weighted value α, and the value of index determination additional factor belonging to Value, and the ability label of the first memory device according to formula (1) his-and-hers watches 1 calculates, thus obtain the standard capacity of the first memory device.Wherein, the first weighted value β, and the value of the second weighted value α can be arranged according to the actual conditions of the first memory device and experience.
So can know according to table 2, the ability label of first memory device of computing module 540 according to formula (1) his-and-hers watches 1 carries out calculating thus the standard capacity obtaining the first memory device is 70.344.
First judge module 550 is for receiving the standard capacity of the first memory device, and judge whether the first memory device to be assigned in existing resource pool according to the standard capacity of the first memory device, judged result is sent to respective modules 560 by the first judge module 550.
In the particular embodiment, resource pool is normally made up of the memory device that multiple standard capacity is close or identical.The standard capacity of the first memory device calculated according to the ability label of the first memory device may be identical with the standard capacity of other memory devices in existing resource or close, also may differ greatly with the standard capacity of other memory devices in existing resource.So, if the standard capacity of the first memory device is identical with the standard capacity of other memory devices of certain resource pool in existing resource pool or close, then the first memory device is assigned in this resource pool, if the standard capacity of other memory devices in all resource pools in the standard capacity of the first memory device and existing resource pool all differs greatly, then the first memory device can not be assigned in existing resource pool.More specifically, can be each resource pool and certain standard capacity scope is set.If the standard capacity of the first memory device falls into the standard capacity scope of certain resource pool of existing resource pool, then the first judge module 550 judges the first memory device to be assigned in this resource pool, if the standard capacity of the first memory device does not fall into the standard capacity scope of any one resource pool of existing resource pool, then the first judge module 550 judges the first memory device to be assigned in existing resource pool.
In a particular embodiment, suppose that there are resource pool A, resource pool B in existing resource pond, wherein, the standard capacity scope of resource pool A be (40-60], the standard capacity scope of resource pool B be (60-80].If the standard capacity of the first memory device is 70.344, then the standard capacity of the first memory device is dropped in the standard capacity scope of resource pool B, so, the first judge module 550 is judged that the first memory device is assigned in the B of existing resource pond.If the standard capacity of the first memory device is 82.5, then the standard capacity of the first memory device does not drop in the standard capacity scope of any one resource pool in existing resource pond, so the first judge module 550 judges the first memory device to be assigned in any one resource pool existing.
Respective modules 560 for be the first memory device is assigned in existing resource pool time, by the protocol address of the first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; Be not the first memory device is assigned in existing resource pool time, newly-built resource pool, and by the mark corresponding stored of the protocol address of the first memory device and newly-built resource pool in this locality, to generate resource pool.
In the particular embodiment, be the first memory device is assigned in existing resource pool time, in order to identify which resource pool memory device specifically belongs to, be required to be each resource pool arrange one's own, can carry out with other resource pools the mark distinguished.Described mark can be one group of identical identification code, also can be identification code that one group of part is identical etc.Such as, all memory devices being designated " 11 " all belong to resource pool A, and all memory devices being designated " 22 " all belong to resource pool B.Or, the memory device being designated " 11 " is first memory device belonged in resource pool A, the memory device being designated " 12 " is second memory device belonged in resource pool A, the memory device being designated " 21 " is first memory device belonged in resource pool B, and the memory device being designated " 22 " is second memory device belonged in resource pool B etc.The table of comparisons of existing resource pond and mark is stored in server, so, after determining which resource pool that the first memory device is assigned in existing resource pond, respective modules 560 is searched the table of comparisons of resource pool and mark and the protocol address of the mark of this resource pool and the first memory device is stored in this locality, thus achieves and be assigned in existing resource pool by the first memory device.
Be not the first memory device is assigned in existing resource pool time, in order to distinguish with existing resource pool, newly-built resource pool must arrange the mark not identical with the mark of existing all resource pools.Be described further with the above embodiments.In order to distinguish with existing resource pool, all memory devices being designated " 33 " all belong to resource pool C, or, the memory device being designated " 31 " is first memory device belonged in resource pool C, and the memory device being designated " 32 " is second memory device belonged in resource pool C.The corresponding relation of the mark of newly-built resource pool and setting is stored in the table of comparisons of existing resource pond and mark by server.Then, the protocol address corresponding stored of the mark of newly-built resource pool and the first memory device in this locality, thus achieves and is assigned in newly-built resource pool by the first memory device by respective modules 560.
Second judge module 570 reaches the default time for judging whether, and is reaching the default time, calls generation module 530.
In a particular embodiment, server can preset a time, and wherein, the time of presetting can be that user carries out setting as required, and the present invention does not do concrete restriction.Such as can arrange the default time is 1 day etc.
Consult Fig. 6, Fig. 6 is the structural representation of server one embodiment of the present invention.The server of present embodiment comprises: receiver 610, processor 620, storer 640 and bus 650.
Receiver 610 for reading the ability information of the first memory device from the ability storage area of the first memory device.
Processor 620 is for generating the ability label of the first memory device according to the ability information of the first memory device, the standard capacity of the first memory device is calculated according to the ability label of the first memory device, judge whether the first memory device to be assigned in existing resource pool according to the standard capacity of the first memory device, and be that the first memory device is assigned in existing resource pool, then by the protocol address of the first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; Be assigned in existing resource pool if not by the first memory device, then newly-built resource pool, and by the mark corresponding stored of the protocol address of the first memory device and newly-built resource pool in this locality, to generate resource pool.
Server in present embodiment also comprises storer 640, and storer 640 can comprise ROM (read-only memory) and random access memory, and provides instruction and data to processor 620.A part for storer 640 can also comprise nonvolatile RAM (NVRAM).
Storer 640 stores following element, executable module or data structure, or their subset, or their superset:
Operational order: comprise various operational order, for realizing various operation.
Operating system: comprise various system program, for realizing various basic business and processing hardware based task.
In embodiments of the present invention, the operational order (this operational order can store in an operating system) that processor 620 stores by calling storer 640, performs aforesaid operations.
Processor 620 can also be called CPU (Central Processing Unit, CPU (central processing unit)).Storer 640 can comprise ROM (read-only memory) and random access memory, and provides instruction and data to processor 620.A part for storer 640 can also comprise nonvolatile RAM (NVRAM).In concrete application, each assembly of server is coupled by bus system 650, and wherein bus system 650 is except comprising data bus, can also comprise power bus, control bus and status signal bus in addition etc.But for the purpose of clearly demonstrating, in the drawings various bus is all designated as bus system 650.
The method that the invention described above embodiment discloses can be applied in processor 620, or is realized by processor 620.Processor 620 may be a kind of integrated circuit (IC) chip, has the processing power of signal.In implementation procedure, each step of said method can be completed by the instruction of the integrated logic circuit of the hardware in processor 620 or software form.Above-mentioned processor 620 can be general processor, digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components.Can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.The processor etc. of general processor can be microprocessor or this processor also can be any routine.Step in conjunction with the method disclosed in the embodiment of the present invention directly can be presented as that hardware decoding processor is complete, or combines complete by the hardware in decoding processor and software module.Software module can be positioned at random access memory, flash memory, ROM (read-only memory), in the storage medium of this area maturations such as programmable read only memory or electrically erasable programmable storer, register.This storage medium is positioned at storer 640, and processor 620 reads the information in storer 640, completes the step of said method in conjunction with its hardware.
Alternatively, described ability label comprises: at least one in efficient capacity mark, capacity mark, Functional Capability mark, wherein, described efficient capacity mark comprises: at least one index in the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size; Described capacity mark comprises: equipment total volume, equipment have used at least one index in capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank with capacity, storage pool total volume, storage pool; Described Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support to simplify configuration, at least one index whether supported in local High Availabitity.
Alternatively, described processor 620 for calculating the standard capacity of described first memory device according to formula (1),
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibiliy ≤ 100 . Formula (1)
Wherein, V possibilityfor the standard capacity of described first memory device, n is the quantity of described efficient capacity mark or described capacity mark or described Functional Capability mark, and β is the first weighted value, and Value is described finger target value, α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
Alternatively, described processor 620 judges whether described first memory device to be assigned to existing resource pool for the standard capacity scope whether falling into existing resource pond according to the standard capacity of described first memory device.
Alternatively, described processor 620 is for by the protocol address corresponding stored of the ability information of described first memory device and described first memory device in a database; Receiving ability recognition command, reads the ability information of described first memory device from described database according to the protocol address of described first memory device in described capability identification order, and identifies according to the ability information generative capacity of described first memory device.
Alternatively, described processor 620 reaches the default time for judging whether, is reaching the default time, is repeating receiving ability recognition command.
By implementing the embodiment of the present invention, automatically the ability information reading the first memory device from the ability storage area of the first memory device can be realized, the ability label of the first memory device is generated according to the ability information of the first memory device, the standard capacity of the first memory device is calculated again according to the ability label of the first memory device, finally, then according to the standard capacity of the first memory device the first memory device is assigned in corresponding resource pool.So, in the whole process that resource pool generates, do not need artificial participation, substantially increase the efficiency that resource pool generates, and, in the process that resource pool generates, memory allocated equipment is standard capacity to the foundation of resource pool, and standard capacity is all calculate according to the ability information of the memory device acquired, there is objectivity, thus avoid because the criterion of keeper when judging the ability of memory device has very large subjectivity, thus cause being assigned in resource pool not meeting resource pool Capability Requirement storage device error.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (12)

1. a resource pool generation method, is characterized in that, comprising:
From the ability storage area of the first memory device, read the ability information of described first memory device, and generate the ability label of the first memory device according to the ability information of described first memory device;
The standard capacity of described first memory device is calculated according to the ability label of described first memory device;
Judge whether described first memory device to be assigned in existing resource pool according to the standard capacity of described first memory device;
If described first memory device is assigned in existing resource pool, then by the protocol address of described first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; If not described first memory device is assigned in existing resource pool, then newly-built resource pool, and by the protocol address of described first memory device and the mark corresponding stored of newly-built resource pool in this locality, to generate resource pool.
2. method according to claim 1, is characterized in that, described ability label comprises: at least one in efficient capacity mark, capacity mark, Functional Capability mark, wherein,
Described efficient capacity mark comprises: at least one index in the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size;
Described capacity mark comprises: equipment total volume, equipment have used at least one index in capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank with capacity, storage pool total volume, storage pool;
Described Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support to simplify configuration, at least one index whether supported in local High Availabitity.
3. method according to claim 2, it is characterized in that, the standard capacity that the described ability label according to described first memory device calculates described first memory device is specially: the standard capacity calculating described first memory device according to formula (1)
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibility ≤ 100 . Formula (1)
Wherein, V possibilityfor the standard capacity of described first memory device, n is the quantity of described efficient capacity mark or described capacity mark or described Functional Capability mark, and β is the first weighted value, and Value is described finger target value, α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
4. the method according to any one of claims 1 to 3, is characterized in that, judges whether described first memory device to be assigned in existing resource pool to be specially according to the standard capacity of described first memory device:
The standard capacity scope whether falling into existing resource pond according to the standard capacity of described first memory device judges whether described first memory device to be assigned to existing resource pool.
5. the method according to any one of Claims 1-4, is characterized in that, also comprises after reading the ability information of described first memory device from the ability storage area of the first memory device:
By the protocol address corresponding stored of the ability information of described first memory device and described first memory device in a database;
The ability label generating the first memory device according to the ability information of described first memory device comprises:
Receiving ability recognition command, reads the ability information of described first memory device from described database according to the protocol address of described first memory device in described capability identification order, and identifies according to the ability information generative capacity of described first memory device.
6. the method according to any one of claim 1 to 5, it is characterized in that, if described first memory device is assigned in existing resource pool, then by the mark corresponding stored of the protocol address of described first memory device and the resource pool be assigned in this locality, to generate resource pool; If not described first memory device is assigned in existing resource pool, then newly-built resource pool, and by the agreement of described first memory device and the mark corresponding stored of newly-built resource pool in this locality, also comprise after generating resource pool:
Judge whether to reach the default time;
If reached the default time, then return receiving ability recognition command step.
7. a resource pool generating apparatus, is characterized in that, comprising: read module, generation module, computing module, the first judge module and respective modules,
Described read module is used for the ability information reading described first memory device from the ability storage area of the first memory device, and the ability information of described first memory device is sent to described generation module by described read module;
Described generation module is for receiving the ability information of described first memory device, generate the ability label of the first memory device according to the ability information of described first memory device, the ability label of described first memory device is sent to described computing module by described generation module;
Described computing module is for receiving described ability label, and calculate the standard capacity of described first memory device according to the ability label of described first memory device, the standard capacity of described first memory device is sent to described first judge module by described computing module;
Described first judge module is for receiving the standard capacity of described first memory device, judge whether described first memory device to be assigned in existing resource pool according to the standard capacity of described first memory device, judged result is sent to described respective modules by described first judge module;
Described respective modules be used for be described first memory device is assigned in existing resource pool time, by the protocol address of described first memory device with the mark corresponding stored of resource pool be assigned in this locality, to generate resource pool; Be not described first memory device is assigned in existing resource pool time, newly-built resource pool, and by the protocol address of described first memory device and the mark corresponding stored of newly-built resource pool in this locality, to generate resource pool.
8. device according to claim 7, is characterized in that, described ability label comprises: at least one in efficient capacity mark, capacity mark, Functional Capability mark, wherein,
Described efficient capacity mark comprises: at least one index in the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth, equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size;
Described capacity mark comprises: equipment total volume, equipment have used at least one index in capacity, storage pool maximum number, LUN maximum number, disk maximum quantity, storage device type, support disk array RAID rank with capacity, storage pool total volume, storage pool;
Described Functional Capability mark comprises: whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support to simplify configuration, at least one index whether supported in local High Availabitity.
9. device according to claim 8, is characterized in that,
Described computing module specifically for calculating the standard capacity of described first memory device according to formula (1),
V possibility = Σ 1 3 ( Σ 1 n ( β × Value ) λ ) × α ( β × Value ) λ ≤ 10 , V possibility ≤ 100 . Formula (1)
Wherein, V possibilityfor the standard capacity of described first memory device, n is the quantity of described efficient capacity mark or described capacity mark or described Functional Capability mark, and β is the first weighted value, and Value is described finger target value, α is the second weighted value, when Value ∈ { the maximum I/O per second of equipment, the maximum I/O per second of controller, the maximum I/O per second of storage pool, the maximum I/O per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidth } time, additional factor λ equals 1000, when Value ∈ { equipment CPU frequency, controller CPU dominant frequency, device memory capacity, controller memory size } time, additional factor λ equals 10, when Value ∈ { equipment total volume, storage pool total volume, equipment uses capacity, storage pool uses capacity, storage pool maximum number, LUN maximum number, disk maximum quantity } time, additional factor λ ∈ { 10, 100, 1000}, when Value ∈ { storage device type }, { 0.1,0.01}, when whether Value ∈ { supports snapshot for additional factor λ ∈, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether configuration is simplified in support, whether support local High Availabitity } time, additional factor λ equals 1.
10. the device according to any one of claim 7 to 9, it is characterized in that, described first judge module judges whether described first memory device to be assigned to existing resource pool specifically for the standard capacity scope whether falling into existing resource pond according to the standard capacity of described first memory device.
11. devices according to any one of claim 7 to 10, it is characterized in that, described device also comprises memory module,
Described memory module is used for by the protocol address corresponding stored of the ability information of described first memory device and described first memory device in a database;
Described generation module is also for receiving ability recognition command, and from described database, read the ability information of described first memory device according to the protocol address of described first memory device in described capability identification order, and identify according to the ability information generative capacity of described first memory device.
12. devices according to any one of claim 7 to 11, it is characterized in that, described device also comprises the second judge module, and described second judge module reaches the default time for judging whether, and reaching the default time, call described generation module.
CN201410584347.5A 2014-10-27 2014-10-27 Resource pool generation method and device Active CN104331330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410584347.5A CN104331330B (en) 2014-10-27 2014-10-27 Resource pool generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410584347.5A CN104331330B (en) 2014-10-27 2014-10-27 Resource pool generation method and device

Publications (2)

Publication Number Publication Date
CN104331330A true CN104331330A (en) 2015-02-04
CN104331330B CN104331330B (en) 2018-05-01

Family

ID=52406064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410584347.5A Active CN104331330B (en) 2014-10-27 2014-10-27 Resource pool generation method and device

Country Status (1)

Country Link
CN (1) CN104331330B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201723A (en) * 2016-07-13 2016-12-07 浪潮(北京)电子信息产业有限公司 The resource regulating method of a kind of data center and device
WO2017113278A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Data processing method, apparatus and system
WO2017140131A1 (en) * 2016-02-17 2017-08-24 杭州海康威视数字技术股份有限公司 Data writing and reading method and apparatus, and cloud storage system
CN112099990A (en) * 2020-08-31 2020-12-18 新华三信息技术有限公司 Disaster recovery backup method, device, equipment and machine readable storage medium
CN114785806A (en) * 2022-02-09 2022-07-22 紫光云(南京)数字技术有限公司 Automatic setting method for resource scheduling label

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100083272A1 (en) * 2008-10-01 2010-04-01 Microsoft Corporation Managing pools of dynamic resources
CN102012891A (en) * 2010-11-18 2011-04-13 浪潮(北京)电子信息产业有限公司 Computer cluster management method, device and system
CN102087618A (en) * 2011-02-12 2011-06-08 浪潮(北京)电子信息产业有限公司 Resource management method and system for cloud computing operating system
CN103095853A (en) * 2013-02-27 2013-05-08 北京航空航天大学 Cloud data center calculation capacity management system
CN103365781A (en) * 2012-03-29 2013-10-23 国际商业机器公司 Method and device for dynamically reconfiguring storage system
CN103823709A (en) * 2014-02-28 2014-05-28 华为技术有限公司 Virtualized cluster system, resource distributing method and management node
CN103888530A (en) * 2014-03-18 2014-06-25 成都盛思睿信息技术有限公司 Experiment teaching system based on cloud desktop
CN103973803A (en) * 2014-05-19 2014-08-06 英华达(上海)科技有限公司 Cloud resource distribution system and method, and computer readable record medium of stored program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100083272A1 (en) * 2008-10-01 2010-04-01 Microsoft Corporation Managing pools of dynamic resources
CN102012891A (en) * 2010-11-18 2011-04-13 浪潮(北京)电子信息产业有限公司 Computer cluster management method, device and system
CN102087618A (en) * 2011-02-12 2011-06-08 浪潮(北京)电子信息产业有限公司 Resource management method and system for cloud computing operating system
CN103365781A (en) * 2012-03-29 2013-10-23 国际商业机器公司 Method and device for dynamically reconfiguring storage system
CN103095853A (en) * 2013-02-27 2013-05-08 北京航空航天大学 Cloud data center calculation capacity management system
CN103823709A (en) * 2014-02-28 2014-05-28 华为技术有限公司 Virtualized cluster system, resource distributing method and management node
CN103888530A (en) * 2014-03-18 2014-06-25 成都盛思睿信息技术有限公司 Experiment teaching system based on cloud desktop
CN103973803A (en) * 2014-05-19 2014-08-06 英华达(上海)科技有限公司 Cloud resource distribution system and method, and computer readable record medium of stored program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113278A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Data processing method, apparatus and system
US10915365B2 (en) 2015-12-31 2021-02-09 Huawei Technologies Co., Ltd. Determining a quantity of remote shared partitions based on mapper and reducer nodes
WO2017140131A1 (en) * 2016-02-17 2017-08-24 杭州海康威视数字技术股份有限公司 Data writing and reading method and apparatus, and cloud storage system
US11586673B2 (en) 2016-02-17 2023-02-21 Hangzhou Hikvision Digital Technology Co., Ltd. Data writing and reading method and apparatus, and cloud storage system
CN106201723A (en) * 2016-07-13 2016-12-07 浪潮(北京)电子信息产业有限公司 The resource regulating method of a kind of data center and device
CN112099990A (en) * 2020-08-31 2020-12-18 新华三信息技术有限公司 Disaster recovery backup method, device, equipment and machine readable storage medium
CN114785806A (en) * 2022-02-09 2022-07-22 紫光云(南京)数字技术有限公司 Automatic setting method for resource scheduling label

Also Published As

Publication number Publication date
CN104331330B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN108011935B (en) Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment
EP3605323A1 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN104331330A (en) Resource pool generation method and device
CN105049268A (en) Distributed computing resource allocation system and task processing method
CN109002424B (en) File format conversion method and device, computer equipment and storage medium
CN110209348B (en) Data storage method and device, electronic equipment and storage medium
CN110830234B (en) User traffic distribution method and device
CN105653630A (en) Data migration method and apparatus for distributed database
CN109254839B (en) Method for determining task trigger time, method and system for constructing task timer
CN104239083A (en) Method, device and system for migrating application of mobile terminals
CN102915249A (en) Method and device for remotely realizing firmware updating
CN107656807A (en) The automatic elastic telescopic method and device of a kind of virtual resource
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
CN112115039A (en) Test case generation method, device and equipment
CN110569129A (en) Resource allocation method and device, storage medium and electronic device
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN110535919B (en) Network access method and device of concentrator and power peak regulation system
CN110716690B (en) Data recovery method and system
CN113377396B (en) Upgrading method and device, electronic equipment and storage medium
CN107784548B (en) Order processing method and device
CN115550427A (en) Equipment upgrading method, device, equipment and storage medium
CN109297150A (en) Air conditioning control method, device, system, air-conditioning, terminal and readable storage medium storing program for executing
CN113448747B (en) Data transmission method, device, computer equipment and storage medium
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN114490015A (en) Method and device for configuring computing mode and computing equipment

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
TR01 Transfer of patent right

Effective date of registration: 20220902

Address after: 611731 No. 1899, Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right