CN106227470B - A kind of storage resource management method and device - Google Patents
A kind of storage resource management method and device Download PDFInfo
- Publication number
- CN106227470B CN106227470B CN201610635931.8A CN201610635931A CN106227470B CN 106227470 B CN106227470 B CN 106227470B CN 201610635931 A CN201610635931 A CN 201610635931A CN 106227470 B CN106227470 B CN 106227470B
- Authority
- CN
- China
- Prior art keywords
- disk resource
- disk
- resource
- information
- storage adapter
- 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
- 238000007726 management method Methods 0.000 title claims abstract description 16
- 230000001360 synchronised effect Effects 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 21
- 239000000835 fiber Substances 0.000 claims description 29
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 claims description 12
- 238000005192 partition Methods 0.000 claims description 6
- 230000006978 adaptation Effects 0.000 claims description 4
- 230000007613 environmental effect Effects 0.000 abstract description 4
- 238000012423 maintenance Methods 0.000 abstract description 4
- 238000004883 computer application Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000010408 sweeping Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of storage resource management method and devices.Method includes the following steps:, for each disk resource in host node, according to the type of the disk resource, establishing the incidence relation of the disk resource Yu respective type storage adapter when adding host node into current storage system;For each type of storage adapter, inquiry has the disk resource list of incidence relation with the type storage adapter;According to preset disk resource synchronization policy, the information of the disk resource recorded in the information of disk resource in disk resource list and system database is synchronized;Obtain the block device information under each disk resource;According to preset block device synchronization policy, the block device information recorded in the block device information of acquisition and system database is synchronized.Using technical solution provided by the embodiment of the present invention, the multiplexing to used equipment may be implemented, improve the utilization rate of storage resource, reduce the complexity of maintenance cost and environmental structure.
Description
Technical field
The present invention relates to technical field of memory, more particularly to a kind of storage resource management method and device.
Background technique
With the fast development of computer technology, data warehouse, e-commerce etc. are that the computer application of representative gradually increases
More, information content is also with geometry grade trend growth.Correspondingly, the core of computer application is also slowly transferred to from centered on calculating
It is data-centered.Consequent stores the relevant technologies also even more complex and diversification, and computer application is to storage system
It is required that it is also higher and higher, such as storage system is required to have high availability, dynamic extending, be easily managed and safeguard.
With business data and application scale expansion and corresponding technical solution upgrading, bring be before deposit
Storage resource how to reuse and different types of storage resource between compatibility issue.In consideration of it, needing a kind of effective
Storage resource management method.
Summary of the invention
The object of the present invention is to provide a kind of storage resource management method and devices.
A kind of storage resource management method, comprising:
When adding host node into current storage system, for each disk resource in the host node, root
According to the type of the disk resource, the incidence relation of the disk resource Yu respective type storage adapter is established;
For each type of storage adapter, inquiry has the disk resource of incidence relation with the type storage adapter
List;
According to preset disk resource synchronization policy, by the information of disk resource in the disk resource list and system number
It is synchronized according to the information of the disk resource recorded in library;
Obtain the block device information under each disk resource;
According to preset block device synchronization policy, the block that will be recorded in the block device information of acquisition and the system database
Facility information synchronizes.
In a kind of specific embodiment of the invention, the type according to the disk resource establishes the disk resource
With the incidence relation of respective type storage adapter, comprising:
If the disk resource is local disk, being associated with for the disk resource and local Local storage adapter is established
Relationship;
If the disk resource is the disk resource accessed by Fibre Channel Host Bus adapter card, the magnetic is established
The incidence relation of disk resource and fiber channel FC storage adapter;
If the disk resource is the small computer system interface scsi disk resource by Ethernet access, create
The network small computer system interface iSCSI object machine of the disk resource establishes disk money by the iscsi target device
The incidence relation in source and iSCSI storage adapter;
If the disk resource is the fiber plant by Ethernet access, it is suitable to add ether Fibre Channel oE storage
Orchestration, and establish the incidence relation of the disk resource Yu the FCoE storage adapter.
In a kind of specific embodiment of the invention, it is described be directed to each type of storage adapter, inquiry and such
Type storage adapter has the disk resource list of incidence relation, comprising:
By scanning the Local storage adapter on the host node, acquisition has with the Local storage adapter
The disk resource list of incidence relation;
By inquiring FC storage adapter on the host node, the whole FC storage obtained on the host node is suitable
Orchestration, after the FC storage adapter recorded in the FC storage adapter of acquisition and system database is synchronized, inquiry
There is the disk resource list of incidence relation with each FC storage adapter;
By scanning the iSCSI storage adapter on the host node, iscsi target device information is obtained, will be described
After iscsi target device synchronizing information in iscsi target device information and the system database, for each iscsi target
Device inquires the disk resource list relevant with the iscsi target utensil;
By scanning the FCoE storage adapter on the host node, the whole FCoE obtained on the host node are deposited
Adapter is stored up, after the FCoE storage adapter in the FCoE storage adapter of acquisition and system database is synchronized,
Inquiry has the disk resource list of incidence relation with each FCoE storage adapter.
In a kind of specific embodiment of the invention, the disk resource follows SCSI protocol, each disk resource
It is identified with unique SCSI.
It is described according to preset disk resource synchronization policy in a kind of specific embodiment of the invention, by the magnetic
The information of the disk resource recorded in the information of disk resource and system database in disk the Resources list synchronizes, comprising:
For each disk resource in the disk resource list, determining in the system database whether there is and this
The SCSI of disk resource identifies consistent disk resource;
If it is, the capacity information of the disk resource is synchronized in the system database;
If it is not, then recording the correlation attribute information of the disk resource in the system database.
In a kind of specific embodiment of the invention, the method also includes:
For each disk resource in the system database, determine whether the disk resource is the disk resource column
The disk resource for including in table;
If it is not, then deleting the information of the disk resource in the system database, and release the disk resource and phase
Answer the incidence relation of storage adapter.
In a kind of specific embodiment of the invention, the disk resource and its storage adapter with incidence relation
Between be configured with multipath.
In a kind of specific embodiment of the invention, the method also includes:
The state of state and the corresponding path of each disk resource to each disk resource is monitored;
When receiving the inquiry request for the state of disk resource or the state in path, corresponding monitoring knot is returned
Fruit.
A kind of storage resource management device, comprising:
Incidence relation establishes module, for being provided for each disk in the host node when adding host node
The incidence relation of the disk resource Yu respective type storage adapter is established according to the type of the disk resource in source;
Disk resource list query module, for being directed to each type of storage adapter, inquiry and the type storage are suitable
Orchestration has the disk resource list of incidence relation;
First information synchronization module is used for according to preset disk resource synchronization policy, will be in the disk resource list
The information of the disk resource recorded in the information and system database of disk resource synchronizes;
Block device information acquisition module, for obtaining the block device information under each disk resource;
Second synchronizing information module is used for according to preset block device synchronization policy, by the block device information of acquisition and institute
The block device information recorded in system database is stated to synchronize.
In a kind of specific embodiment of the invention, the incidence relation establishes module, is specifically used for:
If the disk resource is local disk, being associated with for the disk resource and local Local storage adapter is established
Relationship;
If the disk resource is the disk resource accessed by Fibre Channel Host Bus adapter card, the magnetic is established
The incidence relation of disk resource and fiber channel FC storage adapter;
If the disk resource is the small computer system interface scsi disk resource by Ethernet access, create
The network minicomputer interface iscsi target of the disk resource, by the iscsi target establish the disk resource with
The incidence relation of iSCSI storage adapter;
If the disk resource is the fiber plant by Ethernet access, it is suitable to add ether Fibre Channel oE storage
Orchestration, and establish the incidence relation of the disk resource Yu the FCoE storage adapter.
Using technical solution provided by the embodiment of the present invention, when adding host node into current storage system, root
According to the type of each disk resource in host node, being associated with for each disk resource and the storage adapter of respective type is established
Relationship, inquiry obtain the associated disk resource list of each type storage adapter, and the disk in the disk resource list is provided
The information of disk resource synchronizes in the information and system database in source, and to the information of the block device under each disk resource
Synchronized with the information of block device in system database, by different types of storage adapter can to striding equipment, across factory
Family, cross-platform disk resource are managed collectively, and the multiplexing to used equipment may be implemented, improve the utilization of storage resource
Rate reduces the complexity of maintenance cost and environmental structure.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of implementation flow chart of storage resource management method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of storage resource management device in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
It is shown in Figure 1, it is a kind of implementation flow chart of storage resource management method provided by the embodiment of the present invention, it should
Method may comprise steps of:
S110: when adding host node into current storage system, for each disk resource in host node, root
According to the type of the disk resource, the incidence relation of the disk resource Yu respective type storage adapter is established.
In practical applications, into current storage system add host node when, can first on the host node
Some storage relevant configurations, resource record etc. are cleared up.There may be multiple disk resources on each host node.It can adjust
Order is found with disk to find the disk resource in host node.It, can be according to the disk resource for each disk resource
Type, establish the incidence relation of the disk resource Yu respective type storage adapter.
In embodiments of the present invention, storage adapter can be the storage adapter of following four type: Local (local)
Storage adapter, FC (Fiber Channel, fiber channel) storage adapter, FCoE (Fiber Channel over
Ethernet, Ethernet optical-fibre channel) storage adapter, iSCSI (internet Small Computer Interface, net
Network small computer system interface) storage adapter.
Specifically, establishing the disk resource and local Local storage adapter if the disk resource is local disk
Incidence relation;
If the disk resource is the disk resource accessed by Fibre Channel Host Bus adapter card, the magnetic is established
The incidence relation of disk resource and fiber channel FC storage adapter;
If the disk resource is the small computer system interface scsi disk resource by Ethernet access, create
The network small computer system interface iSCSI object machine of the disk resource, by iscsi target device establish the disk resource with
The incidence relation of iSCSI storage adapter;
If the disk resource is the fiber plant by Ethernet access, it is suitable to add ether Fibre Channel oE storage
Orchestration, and establish the incidence relation of the disk resource Yu FCoE storage adapter.
In embodiments of the present invention, when each host node initializes, only one Local storage adapter, one
ISCSI storage adapter not or has multiple FC storage adapters, does not have FCoE storage adapter.
It can directly be established for each disk resource in host node if the disk resource is local disk
The incidence relation of the disk resource and Local storage adapter.
For each disk resource in host node, if the disk resource is Fibre Channel Host Bus adapter FC
HBA be clamped into disk resource, then can directly establish the incidence relation of the disk resource Yu fiber channel FC storage adapter.
For each disk resource in host node, if the disk resource is the scsi disk by Ethernet access
Resource then needs the iscsi target device for creating the disk resource.Iscsi target device, i.e. iSCSI target are attached to difference
ISCSI store target object, have recorded connection needed for ip, port (port), iqn (iSCSI qualified Name,
ISCSI proprietary name), the information such as auth (certification), wherein auth information be it is optional, selected according to whether storage end configures
Corresponding certification policy.After creating iscsi target device, which is established by iscsi target device and iSCSI is stored and fitted
The incidence relation of orchestration.
For each disk resource in host node, if the disk resource is to be set by the optical fiber of Ethernet access
It is standby, then can carry out the addition of FCoE storage adapter by way of selecting specified network interface card, and establish the disk resource with
The incidence relation of FCoE storage adapter.Ten thousand Broadcoms need to be selected when adding FCoE storage adapter, and ten thousand Broadcoms are
It is configured in exchange generator terminal complete.After adding FCoE storage adapter, it is suitable that current FCoE storage can be recorded in system database
The relevant information of orchestration, such as adapter name, identifier, network interface card used.
S120: being directed to each type of storage adapter, and inquiry has the magnetic of incidence relation with the type storage adapter
Disk the Resources list.
In step S110, this is established according to the type of the disk resource for each disk resource in host node
The incidence relation of disk resource and respective type storage adapter.For each type of storage adapter, can be somebody's turn to do with inquiry
Type storage adapter has the disk resource list of incidence relation.
In a kind of specific embodiment of the invention, step S120 be may comprise steps of:
Step 1: by the Local storage adapter on scanning host node, acquisition has with Local storage adapter
The disk resource list of incidence relation.
Only have a Local storage adapter on each host node, all local disk resources have been included below.By sweeping
The Local storage adapter on host node is retouched, can find one or more disk resources under the Local storage adapter
Object obtains the disk resource list for having incidence relation with the Local storage adapter.
Step 2: by inquiring FC storage adapter on host node, the whole FC storage obtained on host node is suitable
Orchestration, after the FC storage adapter recorded in the FC storage adapter of acquisition and system database is synchronized, inquiry
There is the disk resource list of incidence relation with each FC storage adapter.
Not or there may be multiple FC storage adapters on each host node.It is deposited by inquiring FC on host node
Adapter is stored up, whole FC storage adapters on the host node can be obtained.It can be by all FC storage adapters of acquisition
It is synchronized with the FC storage adapter recorded in system database.
Can specifically following synchronization policy be referred to:
FC storage adapter such as sentences at the conditions are as follows: its attribute wwnn and wwpn are equal;
The FC storage adapter inquired on host node is subject in the synchronization of FC storage adapter.
After FC storage adapter is synchronous, it can inquire to obtain the disk that there is incidence relation with each FC storage adapter
The Resources list.
Step 3: by the iSCSI storage adapter on scanning host node, obtaining iscsi target device information, is inciting somebody to action
After iscsi target device synchronizing information in iscsi target device information and system database, for each iscsi target device, look into
Ask the disk resource list relevant with the iscsi target utensil.
Only have an iSCSI storage adapter on each host node, is contained under the iSCSI storage adapter different
Iscsi target device, i.e. iSCSI target.
By the iSCSI storage adapter on scanning host node, iscsi target information can be obtained.By iscsi target
Device information is synchronized with the iscsi target device information in system database.
Can specifically following synchronization policy be referred to:
Iscsi target device such as sentences at the conditions are as follows: whether ip, port, iqn are consistent;
It is subject to the iscsi target device information recorded in system database;
When iscsi target device exists simultaneously in the query result neutralized system database of host node, it is not processed;
In the query result that iscsi target device exists only in host node, when being not present in system database, delete
The iscsi target device on host node;
When iscsi target device exists only in system database, when being not present in the query result of host node, in master
The related data of the iscsi target device is created on machine node.
After iscsi target device synchronizing information, for each iscsi target device, it can inquire and the iscsi target utensil
Relevant disk resource list.
Step 4: by the FCoE storage adapter on scanning host node, the whole FCoE obtained on host node are deposited
Adapter is stored up, after the FCoE storage adapter in the FCoE storage adapter of acquisition and system database is synchronized,
Inquiry has the disk resource list of incidence relation with each FCoE storage adapter.
Not or there can be multiple FCoE storage adapters on each host node, each FCoE storage adapter is exclusive
One piece of physical network card.FCoE storage adapter is by interface creating and to be recorded in system database.By scanning host section
FCoE storage adapter on point can obtain whole FCoE storage adapters on the host node.The FCoE of acquisition is deposited
Storage adapter is synchronized with the FCoE storage adapter in system database.
Can specifically following synchronization policy be referred to:
FCoE storage adapter such as sentences at the conditions are as follows: network interface card information used in FCoE storage adapter;
It is subject to the FCoE storage adapter recorded in system database.
After FCoE storage adapter is synchronous, can inquire to obtain has incidence relation with each FCoE storage adapter
Disk resource list.
It should be noted that limitation of the embodiment of the present invention to sequence is not carried out between aforementioned four step.
S130: according to preset disk resource synchronization policy, by the information and system of disk resource in disk resource list
The information of the disk resource recorded in database synchronizes.
In embodiments of the present invention, disk resource follows SCSI protocol, and each disk resource is identified with unique SCSI.
It, can basis after step S120 inquires to obtain the associated disk resource list of each type of storage adapter
Preset disk resource synchronization policy, the disk that will be recorded in the information of disk resource in disk resource list and system database
The information of resource synchronizes.
In a kind of specific embodiment of the invention, step S130 be may comprise steps of:
First step: for each disk resource in disk resource list, determining in system database whether there is
Consistent disk resource is identified with the SCSI of the disk resource, if it is, execute second step, if it is not, then executing the
Three steps;
Second step: the capacity information of the disk resource is synchronized in system database;
Third step: the correlation attribute information of the disk resource is recorded in system database.
It is illustrated for ease of description, above three step is combined.
For each disk resource in disk resource list, can inquire in system database whether there is and the magnetic
The SCSI of disk resource identifies consistent disk resource, if it is present the capacity information of the disk resource can be synchronized to and be
In system database, if it does not exist, then recording the correlation attribute information of the disk resource in system database.The association attributes
Information may include the information such as manufacturer, model, specification, SCSI mark, capacity, at the same can also include the disk resource with it is upper
Related information between layer storage adapter.
In a kind of specific embodiment of the invention, this method may also comprise the following steps::
For each disk resource in system database, determine whether the disk resource is in disk resource list and includes
Disk resource;If it is not, then delete the information of the disk resource in system database, and release the disk resource and corresponding
The incidence relation of storage adapter.
For each disk resource in system database, if not including the disk resource in disk resource list,
Show that the disk resource exists only in system database, in such a case, it is possible to delete the disk in system database
The information of resource, and release the incidence relation of the disk resource Yu respective stored adapter.
S140: the block device information under each disk resource is obtained.
After disk resource synchronously completes, the block device information in host node under each disk resource can be obtained.
Block device is as the most basic storage logical units provided for upper layer application, including but not limited to CFS
(Cluster File system, cluster file system), HBD (Heart Beat Device, heartbeat equipment), LVM
(Logical Volume Manager, logical volume management), NBD (Naked Block Device, naked block device), LDSD
(Local Data Store Device, local data storage device) etc..The perception that upper layer application stores bottom can be reduced
Degree.
S150: according to preset block device synchronization policy, by what is recorded in the block device information of acquisition and system database
Block device information synchronizes.
In embodiments of the present invention, a block device is pertaining only to the fixed disk resource of SCSI mark, and each piece sets
It is standby that there is unique partition number in its affiliated disk resource.If SCSI mark is identical, and partition number is identical, then can determine
Block device is identical.
According to preset block device synchronization policy, the block device that will be recorded in the block device information of acquisition and system database
Information synchronizes.Specific block device synchronization policy can refer to disk resource synchronization policy, and the embodiment of the present invention is herein not
It repeats again.
In a kind of specific embodiment of the invention, between disk resource and its storage adapter with incidence relation
Configured with multipath.
In embodiments of the present invention, the concept of multipath is mainly between disk resource and storage adapter.It is directed to
Each disk resource configures multiple paths between storage adapter and the disk resource.Storage adapter may be implemented to depositing
Store up the path redundancy and load balancing of resource.
For different physical environments, different multipath configuration strategies can be used to meet the needs of current environment.
Such as path group policy path_grouping_policy, path status strategy path_checker, fail-over policy are determined
Failback, failing path retry tactful no_path_retry, routing strategy path_selector, priority policy
Prio etc..
In embodiments of the present invention, storage system can support two kinds of configuration modes of front and back.Foreground configuration mode refers to,
Manual configuration is carried out by user interface within the storage system;Backstage configuration mode refers to, by logging in background server, connection
Given host node, manual configuration multipath meet complicated business scenario demand.
In one embodiment of the invention, this method may also comprise the following steps::
Step 1: the state of state and the corresponding path of each disk resource to each disk resource is monitored;
Step 2: it when receiving the inquiry request for the state of disk resource or the state in path, returns corresponding
Monitored results.
In practical applications, host node is added to storage system, and complete disk resource it is synchronous with block device it
Afterwards, storage system can the state of state and the corresponding path of each disk resource to each disk resource be monitored.When
When receiving the inquiry request for the state of disk resource or the state in path, corresponding monitored results can be returned.
Using method provided by the embodiment of the present invention, when adding host node into current storage system, according to master
The type of each disk resource in machine node establishes being associated with for each disk resource and the storage adapter of respective type
System, inquiry obtains the associated disk resource list of each type storage adapter, by the disk resource in the disk resource list
Information and system database in the information of disk resource synchronize, and to the information of the block device under each disk resource with
The information of block device synchronizes in system database, by different types of storage adapter can to striding equipment, across producer,
Cross-platform disk resource is managed collectively, and the multiplexing to used equipment may be implemented, and is improved the utilization rate of storage resource, is subtracted
The complexity of maintenance cost and environmental structure is lacked.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of storage resource management devices.
Shown in Figure 2, the apparatus may include with lower module:
Incidence relation establishes module 210, for being provided for each disk in host node when adding host node
The incidence relation of the disk resource Yu respective type storage adapter is established according to the type of the disk resource in source;
Disk resource list query module 220, for being directed to each type of storage adapter, inquiry is stored with the type
Adapter has the disk resource list of incidence relation;
First information synchronization module 230 is used for according to preset disk resource synchronization policy, by magnetic in disk resource list
The information of the disk resource recorded in the information and system database of disk resource synchronizes;
Block device information acquisition module 240, for obtaining the block device information under each disk resource;
Second synchronizing information module 250, for according to preset block device synchronization policy, by the block device information of acquisition with
The block device information recorded in system database synchronizes.
Using device provided by the embodiment of the present invention, when adding host node into current storage system, according to master
The type of each disk resource in machine node establishes being associated with for each disk resource and the storage adapter of respective type
System, inquiry obtains the associated disk resource list of each type storage adapter, by the disk resource in the disk resource list
Information and system database in the information of disk resource synchronize, and to the information of the block device under each disk resource with
The information of block device synchronizes in system database, by different types of storage adapter can to striding equipment, across producer,
Cross-platform disk resource is managed collectively, and the multiplexing to used equipment may be implemented, and is improved the utilization rate of storage resource, is subtracted
The complexity of maintenance cost and environmental structure is lacked.
In a kind of specific embodiment of the invention, incidence relation establishes module 210, is specifically used for:
If the disk resource is local disk, being associated with for the disk resource and local Local storage adapter is established
Relationship;
If the disk resource is the disk resource accessed by Fibre Channel Host Bus adapter card, the magnetic is established
The incidence relation of disk resource and fiber channel FC storage adapter;
If the disk resource is the small computer system interface scsi disk resource by Ethernet access, create
The network minicomputer interface iscsi target of the disk resource, establishes the disk resource by iscsi target and deposits with iSCSI
Store up the incidence relation of adapter;
If the disk resource is the fiber plant by Ethernet access, it is suitable to add ether Fibre Channel oE storage
Orchestration, and establish the incidence relation of the disk resource Yu FCoE storage adapter.
In a kind of specific embodiment of the invention, disk resource list query module 220 is specifically used for:
By the Local storage adapter on scanning host node, obtaining has incidence relation with Local storage adapter
Disk resource list;
By the inquiry FC storage adapter on host node, whole FC storage adapters on host node are obtained,
After the FC storage adapter recorded in the FC storage adapter of acquisition and system database is synchronized, inquiry and each FC
Storage adapter has the disk resource list of incidence relation;
By the iSCSI storage adapter on scanning host node, iscsi target device information is obtained, by iscsi target
After iscsi target device synchronizing information in device information and system database, for each iscsi target device, inquires and be somebody's turn to do
The relevant disk resource list of iscsi target utensil;
By the FCoE storage adapter on scanning host node, the whole FCoE obtained on host node store adaptation
Device, after the FCoE storage adapter in the FCoE storage adapter of acquisition and system database is synchronized, inquiry with
Each FCoE storage adapter has the disk resource list of incidence relation.
In a kind of specific embodiment of the invention, disk resource follows SCSI protocol, and each disk resource has
Unique SCSI mark.
In a kind of specific embodiment of the invention, first information synchronization module 230 is specifically used for:
For each disk resource in disk resource list, determining in system database whether there is and the disk resource
SCSI identify consistent disk resource;
If it is, the capacity information of the disk resource is synchronized in system database;
If it is not, then recording the correlation attribute information of the disk resource in system database.
In a kind of specific embodiment of the invention, which can also include disk resource information deletion module, use
In:
For each disk resource in system database, determine whether the disk resource is in disk resource list and includes
Disk resource;
If it is not, then deleting the information of the disk resource in system database, and releases the disk resource and accordingly deposit
Store up the incidence relation of adapter.
In a kind of specific embodiment of the invention, between disk resource and its storage adapter with incidence relation
Configured with multipath.
In a kind of specific embodiment of the invention, which can also include state monitoring module, be used for:
The state of state and the corresponding path of each disk resource to each disk resource is monitored;
When receiving the inquiry request for the state of disk resource or the state in path, corresponding monitoring knot is returned
Fruit.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
A kind of storage resource management method and device provided by the present invention is described in detail above.It answers herein
With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage
Solve method and its core concept of the invention.It should be pointed out that for those skilled in the art, not departing from
, can be with several improvements and modifications are made to the present invention under the premise of the principle of the invention, these improvement and modification also fall into this hair
In bright scope of protection of the claims.
Claims (8)
1. a kind of storage resource management method characterized by comprising
When adding host node into current storage system, for each disk resource in the host node, according to this
The type of disk resource establishes the incidence relation of the disk resource Yu respective type storage adapter;
For each type of storage adapter, inquiry with the type storage adapter there is the disk resource of incidence relation to arrange
Table;
According to preset disk resource synchronization policy, by the information and system database of disk resource in the disk resource list
The information of the disk resource of middle record synchronizes;
Obtain the block device information under each disk resource;
According to preset block device synchronization policy, the block device that will be recorded in the block device information of acquisition and the system database
Information synchronizes;
The disk resource follows SCSI protocol, and each disk resource is identified with unique SCSI, described according to preset magnetic
Disk source synchronous strategy, the disk resource that will be recorded in the information of disk resource in the disk resource list and system database
Information synchronize, comprising:
For each disk resource in the disk resource list, determining in the system database whether there is and the disk
The SCSI of resource identifies consistent disk resource;
If it is, the capacity information of the disk resource is synchronized in the system database;
If it is not, then recording the correlation attribute information of the disk resource in the system database;
One block device is pertaining only to the fixed disk resource of SCSI mark, and each block device has in its affiliated disk resource
There is unique partition number, it is described according to preset block device synchronization policy, by the block device information of acquisition and the system data
The block device information recorded in library synchronizes, comprising:
For each block device of each disk resource, determine in the system database with the presence or absence of the SCSI with the block device
Mark and the consistent block device of partition number;
If it is, the capacity information of the block device is synchronized in the system database;
If it is not, then recording the correlation attribute information of the block device in the system database.
2. the method according to claim 1, wherein the type according to the disk resource, establishes the disk
The incidence relation of resource and respective type storage adapter, comprising:
If the disk resource is local disk, the incidence relation of the disk resource Yu local Local storage adapter is established;
If the disk resource is the disk resource accessed by Fibre Channel Host Bus adapter card, disk money is established
The incidence relation in source and fiber channel FC storage adapter;
If the disk resource is the small computer system interface scsi disk resource by Ethernet access, the magnetic is created
The network small computer system interface iSCSI object machine of disk resource, by the iscsi target device establish the disk resource with
The incidence relation of iSCSI storage adapter;
If the disk resource is the fiber plant by Ethernet access, ether Fibre Channel oE storage adaptation is added
Device, and establish the incidence relation of the disk resource Yu the FCoE storage adapter.
3. according to the method described in claim 2, it is characterized in that, it is described be directed to each type of storage adapter, inquiry with
The type storage adapter has the disk resource list of incidence relation, comprising:
By scanning the Local storage adapter on the host node, acquisition has with the Local storage adapter to be associated with
The disk resource list of relationship;
By inquiring FC storage adapter on the host node, whole FC storage adaptation on the host node is obtained
Device, after the FC storage adapter recorded in the FC storage adapter of acquisition and system database is synchronized, inquiry with
Each FC storage adapter has the disk resource list of incidence relation;
By scanning the iSCSI storage adapter on the host node, iscsi target device information is obtained, by the iSCSI
After iscsi target device synchronizing information in object machine information and the system database, for each iscsi target device, look into
Ask the disk resource list relevant with the iscsi target utensil;
By scanning the FCoE storage adapter on the host node, the whole FCoE storage obtained on the host node is suitable
Orchestration, after the FCoE storage adapter in the FCoE storage adapter of acquisition and system database is synchronized, inquiry
There is the disk resource list of incidence relation with each FCoE storage adapter.
4. the method according to claim 1, wherein the method also includes:
For each disk resource in the system database, determine whether the disk resource is in the disk resource list
The disk resource for including;
If it is not, then deleting the information of the disk resource in the system database, and releases the disk resource and accordingly deposit
Store up the incidence relation of adapter.
5. method according to any one of claims 1 to 4, which is characterized in that the disk resource has with it to be associated with
Multipath is configured between the storage adapter of system.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
The state of state and the corresponding path of each disk resource to each disk resource is monitored;
When receiving the inquiry request for the state of disk resource or the state in path, corresponding monitored results are returned.
7. a kind of storage resource management device characterized by comprising
Incidence relation establishes module, is used for when adding host node, for each disk resource in the host node, root
According to the type of the disk resource, the incidence relation of the disk resource Yu respective type storage adapter is established;
Disk resource list query module, for being directed to each type of storage adapter, inquiry and the type storage adapter
Disk resource list with incidence relation;
First information synchronization module is used for according to preset disk resource synchronization policy, by disk in the disk resource list
The information of the disk resource recorded in the information and system database of resource synchronizes;
Block device information acquisition module, for obtaining the block device information under each disk resource;
Second synchronizing information module is used for according to preset block device synchronization policy, by the block device information of acquisition and the system
The block device information recorded in system database synchronizes;
The disk resource follows SCSI protocol, and each disk resource is identified with unique SCSI, and the first information is synchronous
Module is specifically used for:
For each disk resource in the disk resource list, determining in the system database whether there is and the disk
The SCSI of resource identifies consistent disk resource;
If it is, the capacity information of the disk resource is synchronized in the system database;
If it is not, then recording the correlation attribute information of the disk resource in the system database;
One block device is pertaining only to the fixed disk resource of SCSI mark, and each block device has in its affiliated disk resource
There is unique partition number, second synchronizing information module is specifically used for:
For each block device of each disk resource, determine in the system database with the presence or absence of the SCSI with the block device
Mark and the consistent block device of partition number;
If it is, the capacity information of the block device is synchronized in the system database;
If it is not, then recording the correlation attribute information of the block device in the system database.
8. device according to claim 7, which is characterized in that the incidence relation establishes module, is specifically used for:
If the disk resource is local disk, the incidence relation of the disk resource Yu local Local storage adapter is established;
If the disk resource is the disk resource accessed by Fibre Channel Host Bus adapter card, disk money is established
The incidence relation in source and fiber channel FC storage adapter;
If the disk resource is the small computer system interface scsi disk resource by Ethernet access, the magnetic is created
The network minicomputer interface iscsi target of disk resource, establishes the disk resource by the iscsi target and deposits with iSCSI
Store up the incidence relation of adapter;
If the disk resource is the fiber plant by Ethernet access, ether Fibre Channel oE storage adaptation is added
Device, and establish the incidence relation of the disk resource Yu the FCoE storage adapter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610635931.8A CN106227470B (en) | 2016-08-05 | 2016-08-05 | A kind of storage resource management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610635931.8A CN106227470B (en) | 2016-08-05 | 2016-08-05 | A kind of storage resource management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106227470A CN106227470A (en) | 2016-12-14 |
CN106227470B true CN106227470B (en) | 2019-05-10 |
Family
ID=57547568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610635931.8A Active CN106227470B (en) | 2016-08-05 | 2016-08-05 | A kind of storage resource management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227470B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491786A (en) * | 2018-11-01 | 2019-03-19 | 郑州云海信息技术有限公司 | A kind of task processing method and device based on cloud platform |
CN111723245B (en) * | 2019-03-18 | 2024-04-26 | 阿里巴巴集团控股有限公司 | Method for establishing association relation of different types of storage objects in data storage system |
CN112148222B (en) * | 2020-09-21 | 2023-08-25 | 浙江大华技术股份有限公司 | Configuration method and device of database hard disk, storage medium and electronic device |
CN112685341B (en) * | 2020-12-25 | 2024-02-23 | 北京浪潮数据技术有限公司 | Configuration method, device and equipment of storage system adapter and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040213220A1 (en) * | 2000-12-28 | 2004-10-28 | Davis Arlin R. | Method and device for LAN emulation over infiniband fabrics |
CN101808123B (en) * | 2010-03-09 | 2013-04-17 | 浪潮(北京)电子信息产业有限公司 | Method and device for accessing storage resources in storage system |
CN102025550A (en) * | 2010-12-20 | 2011-04-20 | 中兴通讯股份有限公司 | System and method for managing data in distributed cluster |
-
2016
- 2016-08-05 CN CN201610635931.8A patent/CN106227470B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106227470A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9716746B2 (en) | System and method using software defined continuity (SDC) and application defined continuity (ADC) for achieving business continuity and application continuity on massively scalable entities like entire datacenters, entire clouds etc. in a computing system environment | |
CN106227470B (en) | A kind of storage resource management method and device | |
EP2784675B1 (en) | Method, device and system for data reconstruction | |
JP4815449B2 (en) | System and method for balancing user workload in real time across multiple storage systems with shared backend storage | |
CN105407117B (en) | The methods, devices and systems of distributed backup data | |
US20150234674A1 (en) | Method, System and Apparatus for Creating Virtual Machine | |
US20090043878A1 (en) | Virtual network storage system, network storage device and virtual method | |
US11836513B2 (en) | Transitioning volumes between storage virtual machines | |
CN109218100A (en) | Distributed objects storage cluster and its request responding method, system and storage medium | |
CN105975214A (en) | Configuring object storage system for input/output operations | |
CN108696581A (en) | Caching method, device, computer equipment and the storage medium of distributed information | |
CN105635311A (en) | Method for synchronizing resource pool information in cloud management platform | |
TW201434300A (en) | Service migration across cluster boundaries | |
CN109918021B (en) | Data processing method and device | |
CN104536852B (en) | Data recovery method and device | |
US20200265008A1 (en) | Converting storage objects between formats in a copy-free transition | |
CN104793981B (en) | A kind of online snapshot management method and device of cluster virtual machine | |
CN109302494A (en) | A kind of configuration method of network store system, device, equipment and medium | |
CN108234551A (en) | A kind of data processing method and device | |
CN109407975A (en) | Data writing method and calculate node and distributed memory system | |
CN108228099A (en) | A kind of method and device of data storage | |
CN114879907A (en) | Data distribution determination method, device, equipment and storage medium | |
US11256584B2 (en) | One-step disaster recovery configuration on software-defined storage systems | |
US9983810B2 (en) | Avoiding data loss in a copy-free transition of storage objects | |
CN110321077A (en) | A kind of management method and device of centrally stored file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |