CN104331330B - Resource pool generation method and device - Google Patents
Resource pool generation method and device Download PDFInfo
- Publication number
- CN104331330B CN104331330B CN201410584347.5A CN201410584347A CN104331330B CN 104331330 B CN104331330 B CN 104331330B CN 201410584347 A CN201410584347 A CN 201410584347A CN 104331330 B CN104331330 B CN 104331330B
- Authority
- CN
- China
- Prior art keywords
- storage device
- resource pool
- capacity
- storage
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of resource pool generation method and device.The described method includes:The ability information of the first storage device is read from the ability storage region of the first storage device, and the ability label of the first storage device is generated according to the ability information of the first storage device;The standard capacity of the first storage device is calculated according to the ability label of the first storage device;Judge whether the first storage device being assigned in existing resource pool according to the standard capacity of the first storage device;If the first storage device is assigned in existing resource pool, then local is stored in by the mark of resource pool of the protocol address of the first storage device with being assigned to is corresponding, to generate resource pool;It is assigned to if not by the first storage device in existing resource pool, then creates resource pool, and be stored in local by the agreement of the first storage device is corresponding with the mark of newly-built resource pool, generates resource pool.The above method, which realizes, automatically generates resource pool, and improves the accuracy of resource pool generation.
Description
Technical field
The present invention relates to field of cloud calculation, more particularly to a kind of resource pool generation method and device.
Background technology
In the environment of current cloud computing is advanced by leaps and bounds, virtually turn to cloud computing and established solid foundation.However, now
Calculate virtualization to have begun to take shape, network virtualization is also in development without any confusion, and Storage Virtualization is also in saving up strength only
Stage pending.Now, Storage Virtualization is mainly to be realized by building memory resource pool.When building resource pool,
All it is after understanding the situation of storage device in advance by administrator, then which resource pool is subjective judgement storage device should be assigned to
In, so as to generate resource pool.Under this resource pool generating mode, can there are it is following the problem of.
First, criterion of the administrator when the ability to storage device judges has very big subjectivity, so that
Cause to be assigned in resource pool resource pool Capability Requirement storage device error is not met.
2nd, the generation of resource pool is the pure manual operations by administrator, so, distribution it is inefficient.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of resource pool generation method and device, it is real
Show and automatically generated resource pool, and improved the accuracy of resource pool generation.
In a first aspect, the present invention provides a kind of resource pool generation method, including:Stored from the ability of the first storage device
The ability information of first storage device is read in region, and first is generated according to the ability information of first storage device
The ability label of storage device;The benchmark energy of first storage device is calculated according to the ability label of first storage device
Power;Judged whether first storage device being assigned to existing resource pool according to the standard capacity of first storage device
In;If first storage device is assigned in existing resource pool, then by the agreement of first storage device
The mark of resource pool of the location with being assigned to is corresponding to be stored in local, to generate resource pool;Set if not by the described first storage
Back-up is fitted in existing resource pool, then creates resource pool, and by the protocol address of first storage device and newly-built resource
The mark in pond corresponds to and is stored in local, to generate resource pool.
With reference to first aspect, in the first possible embodiment of first aspect present invention, the ability label includes:
At least one of efficient capacity mark, capacity mark, Functional Capability mark, wherein, the efficient capacity mark includes:
The input/output per second of equipment maximum, the input/output per second of controller maximum, the input/output per second of storage pool maximum, logic list
The input/output per second of member LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN read-write bands
At least one of width, equipment CPU frequency, controller CPU frequency, device memory capacity, controller memory size index;It is described
Capacity mark includes:Equipment total capacity, equipment have used capacity, storage pool most with capacity, storage pool total capacity, storage pool
At least one of big number, LUN maximum numbers, disk maximum quantity, storage device type, support disk array RAID level
Index;The Functional Capability mark includes:Whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING,
Whether support simplify configuration, whether support at least one of local High Availabitity index.
The possible embodiment of with reference to first aspect the first, second of possible embodiment party of first aspect present invention
In formula, the standard capacity according to the ability label of first storage device calculating first storage device is specially:
The standard capacity of first storage device is calculated according to formula (1),
Formula (1)
Wherein, VpossibilityFor the standard capacity of first storage device, n is identified for the efficient capacity or the appearance
The quantity of ability label or Functional Capability mark is measured, β is the first weighted value, and Value is the finger target value, α second
Weighted value, as Value ∈, { input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool maximum are per second
Input/output, the input/output per second of logical unit number LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool are read
Write bandwidth, LUN readwrite bandwidths } when, additional factor λ be equal to 1000, when Value ∈ equipment CPU frequency, controller CPU frequency,
Device memory capacity, controller memory size } when, additional factor λ is equal to 10, and as Value ∈, { equipment total capacity, storage pool are total
Capacity, equipment are with capacity, storage pool with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity } when,
Additional factor λ ∈ { 10,100,1000 }, when Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, when
Value ∈ whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration,
Whether local High Availabitity is supported } when, additional factor λ is equal to 1.
With reference to first aspect or the first or first aspect of first aspect second of possible embodiment, this hair
In the third possible embodiment of bright first aspect, judged whether according to the standard capacity of first storage device by institute
State the first storage device and be assigned in existing resource pool and be specially:Whether fallen according to the standard capacity of first storage device
The standard capacity scope for entering existing resource pond judges whether first storage device being assigned in existing resource pool.
With reference to first aspect or first aspect the first to first aspect the third in any possible implementation
Mode, in the 4th kind of possible embodiment of first aspect present invention, reads from the ability storage region of the first storage device
The ability information of first storage device is taken to further include afterwards:By the ability information of first storage device and described
The protocol address of one storage device corresponds to storage in the database;First is generated according to the ability information of first storage device
The ability label of storage device includes:Receiving ability recognition command, first storage in the capability identification order
The protocol address of equipment reads the ability information of first storage device from the database, and according to the described first storage
The ability information generative capacity mark of equipment.
With reference to first aspect or first aspect the first any possible implementation into the 4th kind of first aspect
Mode, in the 5th kind of possible embodiment of first aspect present invention, if first storage device is assigned to
In existing resource pool, then it is stored in the mark of resource pool of the protocol address of first storage device with being assigned to is corresponding
It is local, to generate resource pool;It is assigned to if not by first storage device in existing resource pool, then creates resource
Pond, and be stored in local by the agreement of first storage device is corresponding with the mark of newly-built resource pool, with generate resource pool it
After further include:Judge whether to have had arrived at the default time;If having had arrived at the default time, receiving ability is returned
Recognition command step.
Second aspect, the present invention provides a kind of resource pool generating means, including:Read module, generation module, calculate mould
Block, the first judgment module and respective modules, the read module are used to read from the ability storage region of the first storage device
The ability information of first storage device is taken, the ability information of first storage device is sent to institute by the read module
State generation module;The generation module is used for the ability information for receiving first storage device, is set according to the described first storage
Standby ability information generates the ability label of the first storage device, and the generation module is by the ability mark of first storage device
Knowledge is sent to the computing module;The computing module is used to receive the ability label, according to first storage device
Ability label calculates the standard capacity of first storage device, and the computing module is by the benchmark energy of first storage device
Power is sent to first judgment module;First judgment module is used for the standard capacity for receiving first storage device,
Judge whether first storage device being assigned in existing resource pool according to the standard capacity of first storage device,
First judgment module will determine that result is sent to the respective modules;The respective modules, which are used for, is deposited described first
When storage equipment is assigned in existing resource pool, by the protocol address of first storage device and the mark for the resource pool being assigned to
Know correspondence and be stored in local, to generate resource pool;When not being that first storage device is assigned in existing resource pool,
Newly-built resource pool, and local is stored in by the protocol address of first storage device is corresponding with the mark of newly-built resource pool, with
Generate resource pool.
With reference to second aspect, in the first possible embodiment of second aspect of the present invention, the ability label includes:
At least one of efficient capacity mark, capacity mark, Functional Capability mark, wherein, the efficient capacity mark includes:
The input/output per second of equipment maximum, the input/output per second of controller maximum, the input/output per second of storage pool maximum, logic list
The input/output per second of member LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN read-write bands
At least one of width, equipment CPU frequency, controller CPU frequency, device memory capacity, controller memory size index;It is described
Capacity mark includes:Equipment total capacity, equipment have used capacity, storage pool most with capacity, storage pool total capacity, storage pool
At least one of big number, LUN maximum numbers, disk maximum quantity, storage device type, support disk array RAID level
Index;The Functional Capability mark includes:Whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING,
Whether support simplify configuration, whether support at least one of local High Availabitity index.
With reference to the first possible embodiment of second aspect, second of possible embodiment party of second aspect of the present invention
In formula, the computing module is specifically used for the standard capacity that first storage device is calculated according to formula (1),
Formula (1)
Wherein, VpossibilityFor the standard capacity of first storage device, n is identified for the efficient capacity or the appearance
The quantity of ability label or Functional Capability mark is measured, β is the first weighted value, and Value is the finger target value, α second
Weighted value, as Value ∈, { input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool maximum are per second
Input/output, the input/output per second of logical unit number LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool are read
Write bandwidth, LUN readwrite bandwidths } when, additional factor λ be equal to 1000, when Value ∈ equipment CPU frequency, controller CPU frequency,
Device memory capacity, controller memory size } when, additional factor λ is equal to 10, and as Value ∈, { equipment total capacity, storage pool are total
Capacity, equipment are with capacity, storage pool with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity } when,
Additional factor λ ∈ { 10,100,1000 }, when Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, when
Value ∈ whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration,
Whether local High Availabitity is supported } when, additional factor λ is equal to 1.
With reference to second of possible embodiment of the first or second aspect of second aspect or second aspect, this hair
In the third possible embodiment of bright second aspect, first judgment module is specifically used for being set according to the described first storage
The standard capacity scope whether standby standard capacity falls into existing resource pond judges whether first storage device being assigned to
In existing resource pool.
With reference to the first of second aspect or second aspect to second aspect the third in any possible implementation
Mode, in the 4th kind of possible embodiment of second aspect of the present invention, described device further includes memory module, the storage mould
Block, which is used to correspond to the protocol address of the ability information of first storage device and first storage device, is stored in number
According in storehouse;The generation module is additionally operable to receiving ability recognition command, and described first in the capability identification order
The protocol address of storage device reads the ability information of first storage device from the database, and according to described first
The ability information generative capacity mark of storage device.
With reference to any possible implementation in the 4th kind of the first of second aspect or second aspect to second aspect
Mode, in the 5th kind of possible embodiment of second aspect of the present invention, described device further includes the second judgment module, and described
Two judgment modules are used to judging whether to have had arrived at the default time, and are having arrived at the default time, described in calling
Generation module.
By implementing the embodiment of the present invention, it can automatically realize and is read from the ability storage region of the first storage device
The ability information of one storage device, the ability label of the first storage device is generated according to the ability information of the first storage device, then
The standard capacity of the first storage device is calculated according to the ability label of the first storage device, finally, further according to the first storage device
Standard capacity the first storage device is assigned in corresponding resource pool.So during the entire process of resource pool generation, all
It need not manually participate in, substantially increase the efficiency of resource pool generation, moreover, during resource pool generates, distribution storage
The foundation of equipment to resource pool is standard capacity, and standard capacity is all the ability information meter according to the storage device acquired
Obtain, there is objectivity, so as to avoid the judgement mark due to administrator when the ability to storage device judges
Standard has very big subjectivity, so as to cause to be assigned in resource pool resource pool Capability Requirement storage device error is not met.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of schematic diagram of application scenarios disclosed by the embodiments of the present invention;
Fig. 2 is the flow chart of one embodiment of resource pool generation method of the present invention;
Fig. 3 is the flow chart of another embodiment of resource pool generation method of the present invention;
Fig. 4 is the structure diagram of one embodiment of resource pool generating means of the present invention;
Fig. 5 is the structure diagram of another embodiment of resource pool generating means of the present invention;
Fig. 6 is the structure diagram of one embodiment of server of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment
, and it is not intended to be limiting the present invention." the one of the embodiment of the present invention and singulative used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other implications.It is also understood that this
Term "and/or" used herein refers to and comprising any or all possible group associated of list items purpose of one or more
Close.
The embodiment of the invention discloses a kind of resource pool generation method, device and relevant device, can realize automatic
Resource pool is generated, and improves the accuracy of resource pool generation.In order to be better understood from the embodiment of the present invention, below first to this
The application scenarios of inventive embodiments are described.
Referring to Fig. 1, Fig. 1 is a kind of schematic diagram of application scenarios disclosed by the embodiments of the present invention.In the application shown in Fig. 1
In scene, server 110 is typically provided in computer room, to carry out manual maintenance;Storage device 120 can be single hard
Disk, can be made of multiple hard disks, wherein, hard disk can be mechanical hard disk or solid state hard disc (Solid State
Disk, SSD).Storage device 120 can with scattering device, can also concentrated setting, only need to ensure that server 110 can pass through net
Network 130 has access to storage device 120.Network 130 can be using air as medium, using electromagnetic wave or infrared ray etc. as
Wireless network that carrier is transmitted or what is be transmitted using coaxial cable, twisted-pair feeder or optical fiber etc. as carrier have
Gauze network.The cable network can use following any communication standard or agreement, include but not limited to ICP/IP protocol, IPX/
SPX agreements, NetBEUI agreements etc..The wireless network can use following any communication standard or agreement, including but unlimited
In 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, code
Point multiple access), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long
Term Evolution, Long Term Evolution) etc..
Referring to Fig. 2, Fig. 2 is the flow chart of one embodiment of resource pool generation method of the present invention.Present embodiment is from clothes
The angle of business device is described, and the resource pool generation method of present embodiment includes:
210:Server reads the ability information of the first storage device from the ability storage region of the first storage device, and
The ability label of the first storage device is generated according to the ability information of the first storage device.
In the particular embodiment, the ability storage region of the first storage device is specially to be set in the first storage device
The region for being used to store the ability information of the first storage device, the ability storage region is written into this equipment when dispatching from the factory
After ability information, it is impossible to it is written over or could be only rewritten by special read-write equipment, so, in normal use the
During one storage device, it is merely able to by read operation access ability storage region, and write operation access ability memory block cannot be passed through
Domain.The ability information of first storage device is the information for describing the first storage device ability, including but not limited to describes the
Store function of the storage efficiency of one storage device, the memory capacity of the first storage device and the first storage device etc..Clothes
The ability storage region for protocol access first storage device of the device by wirelessly or non-wirelessly network and according to agreement of being engaged in, and from first
The ability information of the first storage device is read in the ability storage region of storage device.
Since different producers is in production inventory equipment, the form of the ability information of write storage device may differ
Sample, for follow-up convenience of calculation, it is necessary to which the ability information of the different-format of different storage device is converted into the consistent energy of form
Power identifies, so, server is after the ability information of the first storage device is read, it is also necessary to according to the energy of the first storage device
Force information generates the ability label of the first storage device.
220:Server calculates the standard capacity of the first storage device according to the ability label of the first storage device.
In the particular embodiment, since the ability label of the first storage device is usually to include efficient capacity mark, appearance
Measure ability label, Functional Capability mark including a variety of identity types, moreover, efficient capacity mark, capacity mark and
Functional Capability mark usually all includes many indexes respectively, so, the index that the ability label of the first storage device is included is too
It is more, it is difficult to intuitively to describe the ability of the first storage device, it is necessary to calculate one according to the ability label of the first storage device
The standard capacity of simple first storage device is described, so that the ability of the first storage device of convenient description.
230:Server judges whether the first storage device being assigned to existing according to the standard capacity of the first storage device
Resource pool in.
In the particular embodiment, resource pool is typically to be made of the close or identical storage device of multiple standard capacities
's.The standard capacity for the first storage device being calculated according to the ability label of the first storage device may be with existing resource
In other storage devices standard capacity it is same or similar, it is also possible to the base with other storage devices in existing resource
Quasi- ability differs greatly.So if the standard capacity of the first storage device and some resource pool in existing resource pool
The standard capacity of other storage devices is same or similar, then the first storage device is assigned in the resource pool, if first
The standard capacity of storage device and standard capacity all phases of other storage devices in all resource pools in existing resource pool
Difference is very remote, then the first storage device cannot be assigned in existing resource pool.More specifically, can be that each resource pool sets one
Fixed standard capacity scope.If the standard capacity of the first storage device falls into the base of some resource pool in existing resource pool
First storage device, then be assigned in the resource pool by quasi- limit of power, if the standard capacity of the first storage device does not fall
Enter the standard capacity scope of any one resource pool in existing resource pool, then the first storage device cannot be assigned to existing
Resource pool in.
If the first storage device is assigned in existing resource pool, then 240 are entered step;If not by first
Storage device is assigned in existing resource pool, then enters step 250.
240:Server is stored in this by the mark of resource pool of the protocol address of the first storage device with being assigned to is corresponding
Ground, to generate resource pool.
In the particular embodiment, each storage device has a unique corresponding protocol address, which can
Using the mark as storage device.And in order to identify which resource pool is storage device particularly belong to, need to be that each resource pool is set
Mark that is one's own, being distinguished with other resource pools.The mark can be one group of identical identification code, can also
It is identical identification code in one group of part etc..For example, all storage devices for being identified as " 11 " belong to resource pool A, Suo Youbiao
The storage device known for " 22 " belongs to resource pool B.Alternatively, the storage device for being identified as " 11 " is belonged in resource pool A
One storage device, the storage device for being identified as " 12 " are second storage device belonged in resource pool A, are identified as " 21 "
Storage device is first storage device belonged in resource pool B, and the storage device for being identified as " 22 " is to belong in resource pool B
Second storage device etc..
Existing resource pond and the table of comparisons of mark are stored with server, so, it is assigned in definite first storage device
After which of existing resource pond resource pool, whois lookup resource pool with mark the table of comparisons and by the mark of the resource pool with
The protocol address of first storage device is stored in local, it is achieved thereby that the first storage device is assigned to existing resource pool
In.
250:Server creates resource pool, and the protocol address of the first storage device is corresponding with the mark of newly-built resource pool
Local is stored in, to generate resource pool.
In the particular embodiment, in order to be distinguished with existing resource pool, newly-built resource pool must be provided with
The mark that the mark of existing all resource pools is different from.It is further illustrated with step the above embodiments.In order to
Distinguished with existing resource pool, all storage devices for being identified as " 33 " belong to resource pool C, alternatively, being identified as " 31 "
Storage device be first storage device belonged in resource pool C, be identified as the storage device of " 32 " to belong in resource pool C
Second storage device.Server by newly-built resource pool and the correspondence storage of mark that sets to existing resource pond with
In the table of comparisons of mark, and local is stored in by the mark of newly-built resource pool is corresponding with the protocol address of the first storage device,
It is achieved thereby that the first storage device is assigned in newly-built resource pool.
Referring to Fig. 3, Fig. 3 is the flow chart of another embodiment of resource pool generation method of the present invention.Present embodiment from
The angle of server is described, and the resource pool generation method of present embodiment includes:
310:Server receives protocol address input by user.
In the particular embodiment, each storage device has a unique corresponding protocol address, which can
Using the mark as storage device.If the user desired which storage device is assigned in resource pool, then can be in user circle
The protocol address of the storage device is inputted in face.For example, user now desires to the first storage device being assigned in resource pool, then
User will input the protocol address of the first storage device in the user interface.Server then correspondingly received input by user first is deposited
Store up the protocol address of equipment.
320:Server searches storage device according to the protocol address of storage device, and finds and protocol address
Corresponding first storage device.
In the particular embodiment, server, can after the protocol address of the first storage device input by user is received
With by the encapsulation of the protocol address of the first storage device, in messages, then into network, storage device is sent by way of broadcast
Message.First storage device decapsulates message after the message that server is broadcasted is received, and finds to seal in message
After the protocol address of dress is the protocol address of oneself, then sends and respond to server, and establish server and the first storage device
Between link.
330:Server reads the ability information of the first storage device from the ability storage region of the first storage device, will
The protocol address of the ability information of first storage device and the first storage device corresponds to storage in the database.
In the particular embodiment, the ability storage region of the first storage device is specially to be set in the first storage device
The region for being used to store the ability information of the first storage device, the ability storage region is written into this equipment when dispatching from the factory
After ability information, it is impossible to it is written over or could be only rewritten by special read-write equipment, so, in normal use the
During one storage device, it is merely able to by read operation access ability storage region, and write operation access ability memory block cannot be passed through
Domain.The ability information of first storage device is the information for describing the first storage device ability, including but not limited to describes the
Store function of the storage efficiency of one storage device, the memory capacity of the first storage device and the first storage device etc..
After being established the link between server and the first storage device, server is visited by wirelessly or non-wirelessly network and according to the agreement of agreement
Ask the ability storage region of the first storage device, and read the first storage from the ability storage region of the first storage device and set
Standby ability information.
For the ease of being managed to the ability information of each storage device, will can be deposited from the ability of the first storage device
The ability information storage read in storage area domain is in the database.During storage, by the ability information of the first storage device and
The protocol address associated storage of one storage device in the database, is examined with facilitating according to the protocol address of the first storage device
Rope.
340:Receiving ability recognition command, the protocol address of the first storage device in capability identification order is from data
The ability information of the first storage device is read in storehouse, and is identified according to the ability information generative capacity of the first storage device.
In the particular embodiment, since different producers is in production inventory equipment, the ability letter of write storage device
The form of breath may be different, for follow-up convenience of calculation, it is necessary to which the ability information of the different-format of different storage device is turned
The consistent ability label of form is turned to, so, server is after receiving ability recognition command, and in capability identification order
The protocol address of one storage device reads the ability information of the first storage device from database.Reading the first storage device
Ability information after, it is also necessary to according to the ability information of the first storage device generate the first storage device ability label.
Ability label can include:Efficient capacity mark, capacity mark, Functional Capability mark etc..Further,
Efficient capacity mark can include:The input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool are maximum
The maximum input/output per second of input/output per second, logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage
Pond readwrite bandwidth, LUN readwrite bandwidths, equipment CPU frequency, controller CPU frequency, device memory capacity, controller memory size
Etc..Equipment total capacity, equipment have used capacity, storage pool maximum number, LUN most with capacity, storage pool total capacity, storage pool
Big number, disk maximum quantity, storage device type, support disk array RAID level etc.;Functional Capability mark includes:It is
Whether no support snapshot, support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, whether supporting this
Ground High Availabitity etc..
350:The standard capacity of the first storage device is calculated according to the ability label of the first storage device.
In the particular embodiment, since the ability label of the first storage device is usually to include efficient capacity mark, appearance
Measure ability label, Functional Capability mark including a variety of marking types, moreover, efficient capacity mark, capacity mark and
Functional Capability mark usually all includes many indexes respectively, so, the index that the ability label of the first storage device is included is too
It is more, it is difficult to intuitively to describe the ability of the first storage device, it is necessary to calculate one according to the ability label of the first storage device
The standard capacity of simple first storage device, so that the ability of the first storage device of convenient description.
In the particular embodiment, as shown in table 1, the first storage device is itemized in a specific embodiment,
The marking type that ability label is included, the value corresponding to index and every kind of index that every kind of marking type is included.
1 first storage device ability label of table, index and corresponding value
The computational methods of standard capacity that the first storage device is calculated according to the ability label of the first storage device are specially:
The standard capacity of first storage device is calculated according to formula (1),
Formula (1)
Wherein, VpossibilityFor the standard capacity of the first storage device, n identified for efficient capacity or capacity mark or
The quantity of Functional Capability mark, β are the first weighted value, and Value is refers to target value, and α is the second weighted value, when Value ∈ { equipment
Maximum input/output per second, the input/output per second of controller maximum, the input/output per second of storage pool maximum, logical unit number
The input/output per second of LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidths }
When, additional factor λ is equal to 1000, when Value ∈ { equipment CPU frequency, controller CPU frequency, device memory capacity, controller
Memory size } when, additional factor λ be equal to 10, when Value ∈ equipment total capacity, storage pool total capacity, equipment with capacity, deposit
Reservoir with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity when, additional factor λ ∈ 10,100,
1000 }, as Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, when whether Value ∈ { support that snapshot is standby
Whether part, support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, whether support local High Availabitity } when,
Additional factor λ is equal to 1.
As shown in table 2, the first weighted value β in formula (1) is artificially set, the value of the second weighted value α, and according to Value
Affiliated index determines the value of additional factor, and the ability label of the first storage device shown in table 1 is carried out according to formula (1)
Calculate, so as to obtain the standard capacity of the first storage device.Wherein, the first weighted value β, and the value of the second weighted value α can be with
It is configured according to the actual conditions of the first storage device and experience.
The standard capacity of the first storage device is calculated according to formula (1) for table 2
So according to table 2 it is recognised that being carried out according to formula (1) to the ability label of the first storage device shown in table 1
Calculate so as to which the standard capacity for obtaining the first storage device is 70.344.
360:Judged whether the first storage device being assigned to existing resource according to the standard capacity of the first storage device
Chi Zhong.
In the particular embodiment, resource pool is typically to be made of the close or identical storage device of multiple standard capacities
's.The standard capacity for the first storage device being calculated according to the ability label of the first storage device may be with existing resource
In other storage devices standard capacity it is same or similar, it is also possible to the base with other storage devices in existing resource
Quasi- ability differs greatly.So if the standard capacity of the first storage device and some resource pool in existing resource pool
The standard capacity of other storage devices is same or similar, then the first storage device is assigned in the resource pool, if first
The standard capacity of storage device and standard capacity all phases of other storage devices in all resource pools in existing resource pool
Difference is very remote, then the first storage device cannot be assigned in existing resource pool.More specifically, can be that each resource pool sets one
Fixed standard capacity scope.If the standard capacity of the first storage device falls into the base of some resource pool in existing resource pool
First storage device, then be assigned in the resource pool by quasi- limit of power, if the standard capacity of the first storage device does not fall
Enter the standard capacity scope of any one resource pool in existing resource pool, then the first storage device cannot be assigned to existing
Resource pool in.
In a particular embodiment, it is assumed that there are resource pool A, resource pool B in existing resource pond, wherein, the benchmark of resource pool A
Limit of power for (40-60], the standard capacity scope of resource pool B for (60-80].If the standard capacity of the first storage device is
70.344, then the standard capacity of the first storage device is dropped into the standard capacity scope of resource pool B, so, first is deposited
Storage equipment is assigned in the B of existing resource pond.If the standard capacity of the first storage device is 82.5, the base of the first storage device
Quasi- ability is not fallen under in the standard capacity scope of any one resource pool in existing resource pond, so, it is impossible to first is deposited
Storage equipment is assigned in any one existing resource pool.
If the first storage device is assigned in existing resource pool, then 370 are entered step;If not by first
Storage device is assigned in existing resource pool, then enters step 380.
370:Local is stored in by the mark of resource pool of the protocol address of the first storage device with being assigned to is corresponding, with life
Into resource pool.
In the particular embodiment, need to be that each resource pool is set in order to identify which resource pool is storage device particularly belong to
Put mark that is one's own, being distinguished with other resource pools.The mark can be one group of identical identification code, also may be used
To be identical identification code in one group of part etc..For example, all storage devices for being identified as " 11 " belong to resource pool A, own
The storage device for being identified as " 22 " belongs to resource pool B.Alternatively, the storage device for being identified as " 11 " is to belong in resource pool A
First storage device, the storage device for being identified as " 12 " are second storage device belonged in resource pool A, are identified as " 21 "
Storage device be first storage device belonged in resource pool B, be identified as the storage device of " 22 " to belong in resource pool B
Second storage device etc..
Existing resource pond and the table of comparisons of mark are stored with server, as shown in table 3,
3 existing resource pond of table 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) |
So after definite first storage device is assigned to which of existing resource pond resource pool, whois lookup money
The mark of the resource pool simultaneously corresponding with the protocol address of the first storage device is stored in local by source pond and the table of comparisons that identifies.
380:Newly-built resource pool, and the mark of newly-built resource pool is sent to the first storage device, to generate resource pool.
In the particular embodiment, in order to be distinguished with existing resource pool, newly-built resource pool must be provided with
The mark that the mark of existing all resource pools is different from.The correspondence of mark of the newly-built resource pool with setting is stored
Into the table of comparisons of existing resource pond and mark.It is further illustrated with the embodiment shown in step 350 and step 360.
If the standard capacity of the first storage device is 82.5, it is impossible to is assigned in any one existing resource pool, then creates one
A resource pool C, wherein, the standard capacity scope of resource pool C for (80-100].In order to be distinguished with existing resource pool,
All storage devices for being identified as " 33 " belong to resource pool C, alternatively, the storage device for being identified as " 31 " is to belong to resource pool C
In first storage device, the storage device for being identified as " 32 " is second storage device belonged in resource pool C.Will be newly-built
Resource pool with set mark correspondence storage to existing resource pond with mark the table of comparisons after, the existing money after renewal
Source pond and the table of comparisons identified are as shown in table 4.
Existing resource pond and the table of comparisons of mark after the renewal of table 4
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 newly-built resource pool is identified be stored in originally corresponding with the protocol address of the first storage device by server
Ground, it is achieved thereby that the first storage device is assigned in newly-built resource pool.
390:Judge whether to have had arrived at the default time.
In a particular embodiment, server can preset a time, wherein, the default time can be user's root
According to needing what is set, the present invention is not especially limited.Such as it is 1 day etc. that can set the default time.Judge whether
The default time has been had arrived at, if having not arrived the default time, has been continued waiting for;If had arrived at default
Between, return to step 340.
The above-mentioned method for illustrating the embodiment of the present invention, following for easy to preferably implementing the embodiment of the present invention
Such scheme, correspondingly, is also provided below the relevant device for implementing such scheme for coordinating.
Refering to Fig. 4, Fig. 4 is the structure diagram of one embodiment of resource pool generating means of the present invention.Present embodiment
Resource pool generating means 400 include:Generation module 410, generation module 420, computing module 430, the first judgment module 440 and
Respective modules 450.
Read module 410 is used for the ability letter that the first storage device is read from the ability storage region of the first storage device
Breath.The ability information of first storage device is sent to generation module 420 by read module 410.
In the particular embodiment, the ability storage region of the first storage device is specially to be set in the first storage device
The region for being used to store the ability information of the first storage device, the ability storage region is written into this equipment when dispatching from the factory
After ability information, it is impossible to it is written over or could be only rewritten by special read-write equipment, so, in normal use the
During one storage device, it is merely able to by read operation access ability storage region, and write operation access ability memory block cannot be passed through
Domain.The ability information of first storage device is the information for describing the first storage device ability, including but not limited to describes the
Store function of the storage efficiency of one storage device, the memory capacity of the first storage device and the first storage device etc..Clothes
The ability storage region for protocol access first storage device of the device by wirelessly or non-wirelessly network and according to agreement of being engaged in, and from first
The ability information of the first storage device is read in the ability storage region of storage device.
Generation module 420 is used for the ability label that the first storage device is generated according to the ability information of the first storage device,
The ability label of first storage device is sent to computing module 430 by generation module 420.
In the particular embodiment, since different producers is in production inventory equipment, the ability letter of write storage device
The form of breath may be different, for follow-up convenience of calculation, it is necessary to which the ability information of the different-format of different storage device is turned
The consistent ability label of form is turned to, so, generation module 420 also needs after the ability information of the first storage device is read
The ability label of the first storage device is generated according to the ability information of the first storage device.
Computing module 430 is identified for receiving ability, and calculating the first storage according to the ability label of the first storage device sets
The standard capacity of first storage device is sent to the first judgment module 440 by standby standard capacity, computing module 430.
In the particular embodiment, since the ability label of the first storage device is usually to include efficient capacity mark, appearance
Measure ability label, Functional Capability mark including a variety of identity types, moreover, efficient capacity mark, capacity mark and
Functional Capability mark usually all includes many indexes respectively, so, the index that the ability label of the first storage device is included is too
It is more, it is difficult to intuitively to describe the ability of the first storage device, it is necessary to which computing module 430 is according to the ability label of the first storage device
The standard capacity of simple first storage device of description is calculated, so that the ability of the first storage device of convenient description.
First judgment module 440 is used for the standard capacity for receiving the first storage device, according to the benchmark of the first storage device
Ability judges whether the first storage device being assigned in existing resource pool, and the first judgment module 440 will determine that result is sent
To respective modules 450.
In the particular embodiment, resource pool is typically to be made of the close or identical storage device of multiple standard capacities
's.The standard capacity for the first storage device being calculated according to the ability label of the first storage device may be with existing resource
In other storage devices standard capacity it is same or similar, it is also possible to the base with other storage devices in existing resource
Quasi- ability differs greatly.So if the standard capacity of the first storage device and some resource pool in existing resource pool
The standard capacity of other storage devices is same or similar, then the first judgment module 440 judges the first storage device being assigned to
In the resource pool, if the standard capacity of the first storage device and other storages in all resource pools in existing resource pool
The standard capacity of equipment all differs greatly, then the first judgment module 440 judges that the first storage device cannot be assigned to existing
In resource pool.More specifically, can be that each resource pool sets certain standard capacity scope.If the benchmark of the first storage device
Ability falls into the standard capacity scope of some resource pool in existing resource pool, then the first judgment module 440 is judged first
Storage device is assigned in the resource pool, if the standard capacity of the first storage device does not fall within appointing in existing resource pool
First storage device cannot be assigned to existing by the standard capacity scope of one resource pool of meaning, then the first judgment module 440 judgement
Resource pool in.
Respective modules 450 are used for when being that the first storage device is assigned in existing resource pool, and the first storage is set
The mark of resource pool of the standby protocol address with being assigned to is corresponding to be stored in local, to generate resource pool;It is not to be deposited first
Storage equipment is when being assigned in existing resource pool, creates resource pool, and by the protocol address of the first storage device and newly-built resource
The mark in pond corresponds to and is stored in local, to generate resource pool.
In the particular embodiment, each storage device has a unique corresponding protocol address, which can
Using the mark as storage device.When being that the first storage device is assigned in existing resource pool, in order to identify that storage is set
It is standby which resource pool particularly belonged to, need to be that each resource pool sets mark that is one's own, being distinguished with other resource pools
Know.The mark can be identical identification code of one group of identical identification code or one group of part etc..It is for example, all
The storage device for being identified as " 11 " belongs to resource pool A, and all storage devices for being identified as " 22 " belong to resource pool B.Alternatively,
The storage device for being identified as " 11 " is first storage device belonged in resource pool A, and the storage device for being identified as " 12 " is category
Second storage device in resource pool A, the storage device for being identified as " 21 " are that first storage belonged in resource pool B is set
Standby, the storage device for being identified as " 22 " is to belong to second storage device in resource pool B etc..It is stored with server existing
Resource pool and the table of comparisons of mark, so, after definite first storage device is assigned to which of existing resource pond resource pool,
Respective modules 450 search the table of comparisons of resource pool and mark and by the marks and the protocol address of the first storage device of the resource pool
Local is stored in, it is achieved thereby that the first storage device is assigned in existing resource pool.
When not being that the first storage device is assigned in existing resource pool, in order to carry out area with existing resource pool
Point, newly-built resource pool must be provided with the mark being different from the mark of existing all resource pools.With the above embodiments
It is further illustrated.In order to be distinguished with existing resource pool, all storage devices for being identified as " 33 " belong to money
Source pond C, alternatively, the storage device for being identified as " 31 " is first storage device belonged in resource pool C, is identified as depositing for " 32 "
It is second storage device belonged in resource pool C to store up equipment.Server is corresponding with the mark of setting by newly-built resource pool
Relation storage is into the table of comparisons of existing resource pond and mark.Then, respective modules 450 are by the mark of newly-built resource pool and the
The protocol address of one storage device corresponds to and is stored in local, it is achieved thereby that the first storage device to be assigned to newly-built resource pool
In.
Refering to Fig. 5, Fig. 5 is the structure diagram of another embodiment of resource pool generating means of the present invention.Present embodiment
Resource pool generating means 500 include:Read module 510, memory module 520, generation module 530, computing module 540, first
Judgment module 550,560 and second judgment module 570 of respective modules.
Read module 510 is used for the ability letter that the first storage device is read from the ability storage region of the first storage device
The ability information of first storage device is sent to memory module 520 by breath, read module 510.
In the particular embodiment, each storage device has a unique corresponding protocol address, which can
Using the mark as storage device.If the user desired which storage device is assigned in resource pool, then can be in user circle
The protocol address of the storage device is inputted in face.For example, user now desires to the first storage device being assigned in resource pool, then
User will input the protocol address of the first storage device in the user interface.Server then correspondingly received input by user first is deposited
Store up the protocol address of equipment.Server, can be by first after the protocol address of the first storage device input by user is received
In messages, then into network, storage device sends message by way of broadcast for the protocol address encapsulation of storage device.The
One storage device decapsulates message after the message that server is broadcasted is received, and finds the association encapsulated in message
Address is discussed after the protocol address of oneself, then to send and responding to server, and establish between server and the first storage device
Link.The ability storage region of first storage device is that first storage that is used to store specially set in the first storage device is set
The region of standby ability information, after the ability storage region is written into the ability information of this equipment when dispatching from the factory, it is impossible to changed
Write or could only be rewritten by special read-write equipment, so, in the first storage device of normal use, it is merely able to
By read operation access ability storage region, and write operation access ability storage region cannot be passed through.The energy of first storage device
Force information is the information for describing the first storage device ability, including but not limited to describes the storage effect of the first storage device
Store function of rate, the memory capacity of the first storage device and the first storage device etc..Set in server and the first storage
After being established the link between standby, read module 510 is set by wirelessly or non-wirelessly network and according to the storage of protocol access first of agreement
Standby ability storage region, and read from the ability storage region of the first storage device the ability letter of the first storage device
Breath.
Memory module 520 is used to correspond to the protocol address of the ability information of the first storage device and the first storage device
Storage is in the database.
In the particular embodiment, can will be from for the ease of being managed to the ability information of each storage device
The ability information storage read in the ability storage region of one storage device is in the database.During storage, memory module 520 will
The protocol address associated storage of the ability information of first storage device and the first storage device in the database, to facilitate basis
The protocol address of first storage device is retrieved.
Generation module 530 is used for the ability information for receiving the first storage device, according to the ability information of the first storage device
The ability label of the first storage device is generated, the ability label of the first storage device is sent to computing module by generation module 530
540。
In the particular embodiment, since different producers is in production inventory equipment, the ability letter of write storage device
The form of breath may be different, for follow-up convenience of calculation, it is necessary to which the ability information of the different-format of different storage device is turned
The consistent ability label of form is turned to, so, server is after receiving ability recognition command, and in capability identification order
The protocol address of one storage device reads the ability information of the first storage device from database.Reading the first storage device
Ability information after, it is also necessary to according to the ability information of the first storage device generate the first storage device ability label.
Ability label can include:Efficient capacity mark, capacity mark, Functional Capability mark etc..Further,
Efficient capacity mark can include:The input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool are maximum
The maximum input/output per second of input/output per second, logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage
Pond readwrite bandwidth, LUN readwrite bandwidths, equipment CPU frequency, controller CPU frequency, device memory capacity, controller memory size
Etc..Equipment total capacity, equipment have used capacity, storage pool maximum number, LUN most with capacity, storage pool total capacity, storage pool
Big number, disk maximum quantity, storage device type, support disk array RAID level etc.;Functional Capability mark includes:It is
Whether no support snapshot, support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, whether supporting this
Ground High Availabitity etc..
Computing module 540 is identified for receiving ability, and calculating the first storage according to the ability label of the first storage device sets
The standard capacity of first storage device is sent to the first judgment module 550 by standby standard capacity, computing module 540.
In the particular embodiment, since the ability label of the first storage device is usually to include efficient capacity mark, appearance
Measure ability label, Functional Capability mark including a variety of marking types, moreover, efficient capacity mark, capacity mark and
Functional Capability mark usually all includes many indexes respectively, so, the index that the ability label of the first storage device is included is too
It is more, it is difficult to intuitively to describe the ability of the first storage device, it is necessary to calculate one according to the ability label of the first storage device
The standard capacity of simple first storage device, so that the ability of the first storage device of convenient description.
In the particular embodiment, as shown in table 1, the first storage device is itemized in a specific embodiment,
The marking type that ability label is included, the value corresponding to index and every kind of index that every kind of marking type is included.
Computing module 540 calculates the standard capacity of first storage device according to formula (1),
Formula (1)
Wherein, VpossibilityFor the standard capacity of the first storage device, n identified for efficient capacity or capacity mark or
The quantity of Functional Capability mark, β are the first weighted value, and Value is refers to target value, and α is the second weighted value, when Value ∈ { equipment
Maximum input/output per second, the input/output per second of controller maximum, the input/output per second of storage pool maximum, logical unit number
The input/output per second of LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidths }
When, additional factor λ is equal to 1000, when Value ∈ { equipment CPU frequency, controller CPU frequency, device memory capacity, controller
Memory size } when, additional factor λ be equal to 10, when Value ∈ equipment total capacity, storage pool total capacity, equipment with capacity, deposit
Reservoir with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity when, additional factor λ ∈ 10,100,
1000 }, as Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, when whether Value ∈ { support that snapshot is standby
Whether part, support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, whether support local High Availabitity } when,
Additional factor λ is equal to 1.
As shown in table 2, the first weighted value β in formula (1) is artificially set, the value of the second weighted value α, and according to Value
Affiliated index determines the value of additional factor, and the ability label of the first storage device shown in table 1 is carried out according to formula (1)
Calculate, so as to obtain the standard capacity of the first storage device.Wherein, the first weighted value β, and the value of the second weighted value α can be with
It is configured according to the actual conditions of the first storage device and experience.
So according to table 2 it is recognised that computing module 540 according to formula (1) to the first storage device shown in table 1
Ability label calculate so as to which the standard capacity for obtaining the first storage device is 70.344.
First judgment module 550 is used for the standard capacity for receiving the first storage device, according to the benchmark of the first storage device
Ability judges whether the first storage device being assigned in existing resource pool, and the first judgment module 550 will determine that result is sent
To respective modules 560.
In the particular embodiment, resource pool is typically to be made of the close or identical storage device of multiple standard capacities
's.The standard capacity for the first storage device being calculated according to the ability label of the first storage device may be with existing resource
In other storage devices standard capacity it is same or similar, it is also possible to the base with other storage devices in existing resource
Quasi- ability differs greatly.So if the standard capacity of the first storage device and some resource pool in existing resource pool
The standard capacity of other storage devices is same or similar, then the first storage device is assigned in the resource pool, if first
The standard capacity of storage device and standard capacity all phases of other storage devices in all resource pools in existing resource pool
Difference is very remote, then the first storage device cannot be assigned in existing resource pool.More specifically, can be that each resource pool sets one
Fixed standard capacity scope.If the standard capacity of the first storage device falls into the base of some resource pool in existing resource pool
Quasi- limit of power, then the first judgment module 550 judges the first storage device being assigned in the resource pool, if the first storage is set
Standby standard capacity does not fall within the standard capacity scope of any one resource pool in existing resource pool, then first judges mould
Block 550 judges the first storage device cannot be assigned in existing resource pool.
In a particular embodiment, it is assumed that there are resource pool A, resource pool B in existing resource pond, wherein, the benchmark of resource pool A
Limit of power for (40-60], the standard capacity scope of resource pool B for (60-80].If the standard capacity of the first storage device is
70.344, then the standard capacity of the first storage device is dropped into the standard capacity scope of resource pool B, so, first is sentenced
Disconnected module 550 judges that the first storage device is assigned in the B of existing resource pond.If the standard capacity of the first storage device is
82.5, then the standard capacity of the first storage device do not fall under the standard capacity model of any one resource pool in existing resource pond
In enclosing, so, the first judgment module 550 judges to be assigned to the first storage device in any one existing resource pool.
Respective modules 560 are used for when being that the first storage device is assigned in existing resource pool, and the first storage is set
The mark of resource pool of the standby protocol address with being assigned to is corresponding to be stored in local, to generate resource pool;It is not to be deposited first
Storage equipment is when being assigned in existing resource pool, creates resource pool, and by the protocol address of the first storage device and newly-built resource
The mark in pond corresponds to and is stored in local, to generate resource pool.
In the particular embodiment, when being that the first storage device is assigned in existing resource pool, deposited to identify
Which resource pool is storage equipment particularly belong to, and need to be that the setting of each resource pool is one's own, can be distinguished with other resource pools
Mark.The mark can be identical identification code of one group of identical identification code or one group of part etc..For example,
All storage devices for being identified as " 11 " belong to resource pool A, and all storage devices for being identified as " 22 " belong to resource pool B.
Alternatively, the storage device for being identified as " 11 " is first storage device belonged in resource pool A, the storage device of " 12 " is identified as
To belong to second storage device in resource pool A, the storage device for being identified as " 21 " is that first belonged in resource pool B deposits
Equipment is stored up, the storage device for being identified as " 22 " is to belong to second storage device in resource pool B etc..It is stored with server
Existing resource pond and the table of comparisons of mark, so, it is assigned to which of existing resource pond resource in definite first storage device
Chi Hou, respective modules 560 search the table of comparisons of resource pool and mark and by the mark of the resource pool and the associations of the first storage device
View address is stored in local, it is achieved thereby that the first storage device is assigned in existing resource pool.
When not being that the first storage device is assigned in existing resource pool, in order to carry out area with existing resource pool
Point, newly-built resource pool must be provided with the mark being different from the mark of existing all resource pools.With the above embodiments
It is further illustrated.In order to be distinguished with existing resource pool, all storage devices for being identified as " 33 " belong to money
Source pond C, alternatively, the storage device for being identified as " 31 " is first storage device belonged in resource pool C, is identified as depositing for " 32 "
It is second storage device belonged in resource pool C to store up equipment.Server is corresponding with the mark of setting by newly-built resource pool
Relation storage is into the table of comparisons of existing resource pond and mark.Then, respective modules 560 are by the mark of newly-built resource pool and the
The protocol address of one storage device corresponds to and is stored in local, it is achieved thereby that the first storage device to be assigned to newly-built resource pool
In.
Second judgment module 570 is used to judge whether to have had arrived at the default time, and default having had arrived at
Time, calls generation module 530.
In a particular embodiment, server can preset a time, wherein, the default time can be user's root
According to needing what is set, the present invention is not especially limited.Such as it is 1 day etc. that can set the default time.
Refering to Fig. 6, Fig. 6 is the structure diagram of one embodiment of server of the present invention.The server bag of present embodiment
Include:Receiver 610, processor 620, memory 640 and bus 650.
Receiver 610 is used for the ability letter that the first storage device is read from the ability storage region of the first storage device
Breath.
Processor 620 is used for the ability label that the first storage device is generated according to the ability information of the first storage device, root
The standard capacity of the first storage device is calculated according to the ability label of the first storage device, according to the standard capacity of the first storage device
Judge whether the first storage device being assigned in existing resource pool, and be that the first storage device is assigned to existing money
In the pond of source, then local is stored in by the mark of resource pool of the protocol address of the first storage device with being assigned to is corresponding, with generation
Resource pool;It is assigned to if not by the first storage device in existing resource pool, then creates resource pool, and the first storage is set
Standby protocol address is corresponding with the mark of newly-built resource pool to be stored in local, to generate resource pool.
Server in present embodiment further includes memory 640, and memory 640 can include read-only storage and random
Memory is accessed, and instruction and data is provided to processor 620.Memory 640 it is a part of can also include it is non-volatile with
Machine access memory (NVRAM).
Memory 640 stores following element, executable modules or data structures, either their subset or
Their superset:
Operational order:Including various operational orders, various operations are used for realization.
Operating system:Including various system programs, various basic businesses and the hardware based task of processing are used for realization.
In embodiments of the present invention, processor 620 is by calling operational order (operational order that memory 640 stores
It is storable in operating system), to perform aforesaid operations.
Processor 620 can also be known as CPU (Central Processing Unit, central processing unit).Memory
640 can include read-only storage and random access memory, and provide instruction and data to processor 620.Memory 640
A part can also include nonvolatile RAM (NVRAM).In specific application, the various components of server are led to
Bus system 650 is crossed to be coupled, wherein bus system 650 in addition to including data/address bus, can also include power bus,
Controlling bus and status signal bus in addition etc..But for the sake of clear explanation, various buses are all designated as bus system in figure
650。
The method that the embodiments of the present invention disclose can be applied in processor 620, or be realized by processor 620.
Processor 620 is probably a kind of IC chip, has the disposal ability of signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 620 or the instruction of software form.Above-mentioned processing
Device 620 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array
(FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.Can realize or
Person performs disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or
Person's processor can also be any conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, can be straight
Connect and be presented as that hardware decoding processor performs completion, or performed with the hardware in decoding processor and software module combination
Into.Software module can be located at random access memory, and flash memory, read-only storage, programmable read only memory or electrically-erasable can
In the storage medium of this areas such as programmable memory, register maturation.The storage medium is located at memory 640, and processor 620 is read
Information in access to memory 640, with reference to the step of its hardware completion above method.
Alternatively, the ability label includes:In efficient capacity mark, capacity mark, Functional Capability mark extremely
Few one kind, wherein, the efficient capacity mark includes:The input/output per second of equipment maximum, the maximum input per second of controller/defeated
Go out, the maximum input/output per second of the maximum input/output per second of storage pool, logical unit number LUN, equipment readwrite bandwidth, controller
Readwrite bandwidth, storage pool readwrite bandwidth, LUN readwrite bandwidths, equipment CPU frequency, controller CPU frequency, device memory capacity, control
At least one of device memory size processed index;The capacity mark includes:Equipment total capacity, equipment with capacity, deposit
Reservoir total capacity, storage pool are with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity, storage device class
Type, support at least one of disk array RAID level index;The Functional Capability mark includes:Whether support that snapshot is standby
Whether whether part, support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, support in local High Availabitity
At least one index.
Alternatively, the processor 620 is used for the standard capacity that first storage device is calculated according to formula (1),
Formula (1)
Wherein, VpossibilityFor the standard capacity of first storage device, n is identified for the efficient capacity or the appearance
The quantity of ability label or Functional Capability mark is measured, β is the first weighted value, and Value is the finger target value, α second
Weighted value, as Value ∈, { input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool maximum are per second
Input/output, the input/output per second of logical unit number LUN maximums, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool are read
Write bandwidth, LUN readwrite bandwidths } when, additional factor λ be equal to 1000, when Value ∈ equipment CPU frequency, controller CPU frequency,
Device memory capacity, controller memory size } when, additional factor λ is equal to 10, and as Value ∈, { equipment total capacity, storage pool are total
Capacity, equipment are with capacity, storage pool with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity } when,
Additional factor λ ∈ { 10,100,1000 }, when Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, when
Value ∈ whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration,
Whether local High Availabitity is supported } when, additional factor λ is equal to 1.
Alternatively, the processor 620 is used to whether fall into existing money according to the standard capacity of first storage device
The standard capacity scope in source pond judges whether first storage device being assigned in existing resource pool.
Alternatively, the processor 620 is used for the ability information of first storage device and first storage
The protocol address of equipment corresponds to storage in the database;Receiving ability recognition command, according to the institute in the capability identification order
The protocol address for stating the first storage device reads the ability information of first storage device from the database, and according to institute
State the ability information generative capacity mark of the first storage device.
Alternatively, the processor 620 is used to judge whether to have had arrived at the default time, default having had arrived at
Time, repeat receiving ability recognition command.
By implementing the embodiment of the present invention, it can automatically realize and is read from the ability storage region of the first storage device
The ability information of one storage device, the ability label of the first storage device is generated according to the ability information of the first storage device, then
The standard capacity of the first storage device is calculated according to the ability label of the first storage device, finally, further according to the first storage device
Standard capacity the first storage device is assigned in corresponding resource pool.So during the entire process of resource pool generation, all
It need not manually participate in, substantially increase the efficiency of resource pool generation, moreover, during resource pool generates, distribution storage
The foundation of equipment to resource pool is standard capacity, and standard capacity is all the ability information meter according to the storage device acquired
Obtain, there is objectivity, so as to avoid the judgement mark due to administrator when the ability to storage device judges
Standard has very big subjectivity, so as to cause to be assigned in resource pool resource pool Capability Requirement storage device error is not met.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosed power for being only a kind of preferred embodiment of the present invention, the present invention cannot being limited with this certainly
Sharp scope, one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and is weighed according to the present invention
Profit requires made equivalent variations, still falls within and invents covered scope.
Claims (8)
- A kind of 1. resource pool generation method, it is characterised in that including:The ability information of first storage device is read from the ability storage region of the first storage device, and according to described The ability information of one storage device generates the ability label of the first storage device, and the ability label includes:Efficient capacity mark, At least one of capacity mark, Functional Capability mark, wherein,The efficient capacity mark includes:The input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool The maximum input/output per second of maximum input/output per second, logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, Storage pool readwrite bandwidth, LUN readwrite bandwidths, equipment CPU frequency, controller CPU frequency, device memory capacity, controller memory At least one of capacity index;The capacity mark includes:Equipment total capacity, equipment with capacity, storage pool total capacity, storage pool with capacity, In storage pool maximum number, LUN maximum numbers, disk maximum quantity, storage device type, support disk array RAID level At least one index;The Functional Capability mark includes:Whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, Whether support simplify configuration, whether support at least one of local High Availabitity index;The standard capacity of first storage device is calculated according to formula (1),Wherein, VpossibilityFor the standard capacity of first storage device, n is identified for the efficient capacity or the capacity energy Power identifies or the quantity of Functional Capability mark, and β is the first weighted value, and Value is the finger target value, and α is the second weighting Value, as Value ∈, { input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool are maximum per second defeated Enter/export, the maximum input/output per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool read-write Bandwidth, LUN readwrite bandwidths } when, additional factor λ is equal to 1000, and as Value ∈, { equipment CPU frequency, controller CPU frequency, set Standby memory size, controller memory size } when, additional factor λ is equal to 10, and as Value ∈, { equipment total capacity, storage pool always hold Amount, equipment are with capacity, storage pool with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity } when, it is attached Add factor lambda ∈ { 10,100,1000 }, when Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, work as Value Whether whether ∈ { support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, prop up Hold local High Availabitity } when, additional factor λ is equal to 1;Judged whether first storage device being assigned to existing resource according to the standard capacity of first storage device Chi Zhong;If first storage device is assigned in existing resource pool, then by the agreement of first storage device The mark of resource pool of the location with being assigned to is corresponding to be stored in local, to generate resource pool;Set if not by the described first storage Back-up is fitted in existing resource pool, then creates resource pool, and by the protocol address of first storage device and newly-built resource The mark in pond corresponds to and is stored in local, to generate resource pool.
- 2. according to the method described in claim 1, it is characterized in that, it is according to the judgement of the standard capacity of first storage device It is no to be assigned to first storage device in existing resource pool specially:According to the standard capacity of first storage device whether fall into existing resource pond standard capacity scope judge whether by First storage device is assigned in existing resource pool.
- 3. according to the method described in claim 1, it is characterized in that, read institute from the ability storage region of the first storage device The ability information for stating the first storage device further includes afterwards:The protocol address of the ability information of first storage device and first storage device is corresponded to and is stored in data In storehouse;The ability label of the first storage device is generated according to the ability information of first storage device to be included:Receiving ability recognition command, the protocol address of first storage device in the capability identification order is from described The ability information of first storage device is read in database, and energy is generated according to the ability information of first storage device Power identifies.
- 4. according to the method described in claim 1, it is characterized in that, if first storage device is assigned to existing Resource pool in, then be stored in this by the mark of resource pool of the protocol address of first storage device with being assigned to is corresponding Ground, to generate resource pool;It is assigned to if not by first storage device in existing resource pool, then creates resource pool, And be stored in local by the protocol address of first storage device is corresponding with the mark of newly-built resource pool, with generate resource pool it After further include:Judge whether to have had arrived at the default time;If having had arrived at the default time, return reads described first from the ability storage region of the first storage device The ability information of storage device, and according to the ability label of the ability information of first storage device the first storage device of generation Step.
- A kind of 5. resource pool generating means, it is characterised in that including:Read module, generation module, computing module, first judge Module and respective modules,The read module is used for the ability that first storage device is read from the ability storage region of the first storage device The ability information of first storage device is sent to the generation module by information, the read module;The generation module is used for the ability information for receiving first storage device, according to the ability of first storage device Information generates the ability label of the first storage device, and the ability label of first storage device is sent to by the generation module The computing module, the ability label include:In efficient capacity mark, capacity mark, Functional Capability mark at least One kind, wherein,The efficient capacity mark includes:The input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool The maximum input/output per second of maximum input/output per second, logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, Storage pool readwrite bandwidth, LUN readwrite bandwidths, equipment CPU frequency, controller CPU frequency, device memory capacity, controller memory At least one of capacity index;The capacity mark includes:Equipment total capacity, equipment with capacity, storage pool total capacity, storage pool with capacity, In storage pool maximum number, LUN maximum numbers, disk maximum quantity, storage device type, support disk array RAID level At least one index;The Functional Capability mark includes:Whether support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, Whether support simplify configuration, whether support at least one of local High Availabitity index;The computing module is specifically used for receiving the ability label, and the base of first storage device is calculated according to formula (1) Quasi- ability,Wherein, VpossibilityFor the standard capacity of first storage device, n is identified for the efficient capacity or the capacity energy Power identifies or the quantity of Functional Capability mark, and β is the first weighted value, and Value is the finger target value, and α is the second weighting Value, as Value ∈, { input/output per second of equipment maximum, the input/output per second of controller maximum, storage pool are maximum per second defeated Enter/export, the maximum input/output per second of logical unit number LUN, equipment readwrite bandwidth, controller readwrite bandwidth, storage pool read-write Bandwidth, LUN readwrite bandwidths } when, additional factor λ is equal to 1000, and as Value ∈, { equipment CPU frequency, controller CPU frequency, set Standby memory size, controller memory size } when, additional factor λ is equal to 10, and as Value ∈, { equipment total capacity, storage pool always hold Amount, equipment are with capacity, storage pool with capacity, storage pool maximum number, LUN maximum numbers, disk maximum quantity } when, it is attached Add factor lambda ∈ { 10,100,1000 }, when Value ∈ { storage device type }, additional factor λ ∈ { 0.1,0.01 }, work as Value Whether whether ∈ { support snapshot, whether support disaster-tolerant backup, whether support AUTOMATIC ZONING, whether support simplify configuration, prop up Hold local High Availabitity } when, additional factor λ is equal to 1, and the standard capacity of first storage device is sent to by the computing module First judgment module;First judgment module is used for the standard capacity for receiving first storage device, according to first storage device Standard capacity judges whether first storage device being assigned in existing resource pool, and first judgment module will determine that As a result the respective modules are sent to;The respective modules are used for when first storage device is assigned in existing resource pool, and described first is stored The mark of resource pool of the protocol address of equipment with being assigned to is corresponding to be stored in local, to generate resource pool;Be not will be described When first storage device is assigned in existing resource pool, resource pool is created, and by the protocol address of first storage device It is corresponding with the mark of newly-built resource pool to be stored in local, to generate resource pool.
- 6. device according to claim 5, it is characterised in that first judgment module is specifically used for according to described first The standard capacity the scope whether standard capacity of storage device falls into existing resource pond judges whether first storage device It is assigned in existing resource pool.
- 7. device according to claim 5, it is characterised in that described device further includes memory module,The memory module is used for by the agreement of the ability information of first storage device and first storage device Location corresponds to storage in the database;The generation module is additionally operable to receiving ability recognition command, and first storage in the capability identification order The protocol address of equipment reads the ability information of first storage device from the database, and according to the described first storage The ability information generative capacity mark of equipment.
- 8. device according to claim 5, it is characterised in that described device further includes the second judgment module, and described second Judgment module is used to judge whether to have had arrived at the default time, and is having arrived at the default time, calls the life Into module.
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 CN104331330A (en) | 2015-02-04 |
CN104331330B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3376399A4 (en) | 2015-12-31 | 2018-12-19 | Huawei Technologies Co., Ltd. | Data processing method, apparatus and system |
CN107092437B (en) * | 2016-02-17 | 2019-11-22 | 杭州海康威视数字技术股份有限公司 | Data write-in, read method and device, 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 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9875141B2 (en) * | 2008-10-01 | 2018-01-23 | Microsoft Technology Licensing, Llc | Managing pools of dynamic resources |
-
2014
- 2014-10-27 CN CN201410584347.5A patent/CN104331330B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104331330A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104331330B (en) | Resource pool generation method and device | |
US11088920B2 (en) | Cloud migration and maintenance controls | |
CN106445484B (en) | The method and system of data tracking are realized by Software Development Kit | |
CN108614726A (en) | Virtual machine creation method and device | |
CN109447609A (en) | Method of payment, device, computer equipment and storage medium | |
CN107077301A (en) | For the dynamic scaling for the storage volume for storing client file systems | |
CN105940378A (en) | Techniques to allocate configurable computing resources | |
CN110503534A (en) | Cloud computing service resource dynamic dispatching method and system based on price expectation | |
CN105306557A (en) | Bridge health monitoring system based on cloud platform | |
CN110427371A (en) | Server FRU field management method, device, equipment and readable storage medium storing program for executing | |
CN105631664A (en) | Non-contact payment method, device and system | |
CN107659609A (en) | A kind of deep learning support platform and deep learning training method based on cloud computing | |
CN111160793A (en) | Method, device and equipment for configuring number of self-service equipment of service network point | |
CN106502760B (en) | A kind of virtual machine compatibility strategy visualization method and device | |
CN112486491A (en) | Page generation method and device, computer equipment and storage medium | |
CN110290024A (en) | The online preceding test method of strategy, device and equipment | |
CN110187895A (en) | Allocating operating system method, apparatus, equipment and computer readable storage medium | |
CN108234266A (en) | The data transmission method and device and storage medium of bus-type communication network | |
KR101943398B1 (en) | Remote meter reading modem combining rf communication and mobile communication network technology | |
CN106685708A (en) | Determining method, device and system of service relationship | |
CN115097739A (en) | Intelligent household equipment batch setting method and equipment and storage medium | |
CN106871376B (en) | A kind of swing flap unit type determining device, method and air-conditioning | |
CN109297150A (en) | Air conditioning control method, device, system, air-conditioning, terminal and readable storage medium storing program for executing | |
CN112503813B (en) | Method and device for replacing air conditioner refrigerant | |
CN109800038A (en) | A kind of implementation method of STK menu, device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
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. |