The method and system to the general management of SAN are realized based on cloud platformTechnical field
The present invention relates to technical field of the computer network, particularly, relate to a kind of method and system of based on cloud platform, SAN storage being carried out to General adaptive management.
Background technology
Cloud computing platform is also referred to as cloud platform.Cloud computing platform can be divided into 3 classes: be stored as main storage-type cloud platform with data, the calculation type cloud platform based on data processing and calculating and the comprehensive cloud computing platform taken into account of data storage processing.
The positive cloud computing technology high speed development of society.The storage of each large cloud computing platform is all share to store, and shares all node visit same storage areas storing and allow in cloud platform.But storing in rear end is in the environment of IP/SAN, FC/SAN, lacks a kind of general adaptation method and come adaptive IP/SAN, FC/SAN.
Do not find explanation or the report of technology similar to the present invention at present, not yet collect similar data both at home and abroad yet.
Summary of the invention
For above shortcomings in prior art, the object of this invention is to provide a kind of based on the method and system of cloud platform realization to the general management of SAN (SAN-generic-provider), solve the adaptation issues of IP/SAN, FC/SAN.
For achieving the above object, the present invention is achieved by the following technical solutions.
According to an aspect of the present invention, provide a kind of based on the method for cloud platform realization to the general management of SAN, comprise the steps:
Computing node (NC) is connected by FC agreement or iSCSI agreement with storage Controlling vertex (SC), creates one or more LUN (LUN) and be loaded into respectively to store on Controlling vertex and computing node;
All LUN all add one or more volume group, and wherein each volume group all manages with LVM2; LUN enters snapshot (snapshot) special snapshotvolume;
Use vgscan instrument carrys out the LVM information between stores synchronized Controlling vertex and computing node;
When LUN is by multiple NC access, control only allow a NC to activate and use a LUN by an access control mechanisms;
When the abnormal disconnection of a NC, closed the lock on LUN by an exception control mechanism.
Preferably, when using vgscan instrument to carry out the LVM information between stores synchronized Controlling vertex and computing node, store Controlling vertex and perform write, computing node only performs read to understand LUN information.
Preferably, described access control mechanisms uses hosttag (main frame label), and described hosttag is entered by configuration of IP when iscsi initialization.
Preferably, described exception control mechanism is by locking to exterior read-write, avoids the competition of different consumer to same storage resources.
Preferably, on SC, realize being responsible for the general management of SAN based on cloud platform:
When new LUN is loaded into SC and NC time, create, expand volumegroup;
Cloud computing Controlling vertex (CLC) notifies that SC creates and/or deletes book (LV);
CLC notifies that SC creates and/or deletes snapshot data volume (snapshotLV);
CLC notifies that SC creates and/or deletes main frame label (hosttag).
Preferably, on NC, realize being responsible for the general management of SAN based on cloud platform:
NC can only active have hosttag mark LV;
NC, before attachlvm, needs to scan whole LV, obtains LV management information.
According to another aspect of the present invention, provide a kind of based on the system of cloud platform realization to the general management of SAN, comprising:
-block storage management system, for creating PV (physical volume) and volume group;
In running, be responsible for creating and/or deleting LV, according to the order of CLC or NC, increase and/or delete the hosttag of lv (logical volume);
-LVM2 client locks, for controlling the access of user to volume group; The LV that each volume group creates is all by LVM2 client's locking;
-NC service packs module, for synchronous LV information, the activation of control LV and access, attachLV is to virtual machine.
Compared with prior art, the present invention has following beneficial effect:
1) the present invention is the environment of IP/SAN, FC/SAN to rear end storage, provides a kind of scheme of general management;
2) provided by the invention based on the method and system of cloud platform realization to the general management of SAN, be more applicable to the needs that storage is shared in cloud computing.
Accompanying drawing explanation
By reading the detailed description done non-limiting example with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is the inventive method flow chart;
Fig. 2 is present system structural representation.
Embodiment
Below embodiments of the invention are elaborated: the present embodiment is implemented under premised on technical solution of the present invention, give detailed execution mode and concrete operating process.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.
Embodiment
Present embodiments provide a kind of based on the method for cloud platform realization to the general management of SAN, comprise the steps:
Computing node (NC) is connected by FC agreement or iSCSI agreement with storage Controlling vertex (SC), creates one or more LUN (LUN) and is loaded on storage Controlling vertex (SC) and computing node (NC) respectively;
All LUN add one or more volume group, and wherein each volume group is all with lvm2 management, and entering snapshot (snapshot) has special snapshotvolume;
Use the LVM information between next synchronous SC and NC of vgscan instrument, wherein, write is that SC performs, and NC only performs read to understand LUN information;
When LUN is by multiple NC access, an access control mechanisms is needed to control only allow a NC to activate and use a LUN.Further, main frame label (hosttag) (described main frame label configuration of IP when iSCSI is initialized is entered) can be used;
When a NC disconnects, because lock can not discharge automatically, if another NC is just accessing this LUN, then fissure can caused; Therefore, in this case, an exception control mechanism is needed, when the abnormal disconnection of NC, to close the lock on LUN.This exception control mechanism adopts by locking to exterior read-write, avoids the competition of different consumer to same storage resources.
Further, on SC, realize being responsible for the general management of SAN (SAN-generic-provider) based on cloud platform:
When new LUNattach to SC and NC, create, expand volumegroup;
Cloud computing Controlling vertex (CLC) notifies that SC creates and/or deletes book (LV);
CLC notifies that SC creates and/or deletes snapshot data volume (snapshotLV);
CLC notifies that SC creates and/or deletes hosttag;
On NC, SAN-generic-provider is responsible for:
NC can only load the LV with hosttag mark;
NC, before loading lvm, needs to scan whole LV, obtains LV management information.
The present embodiment provides a kind based on the system of cloud platform realization to the general management of SAN simultaneously, and this system can perform above-mentioned kind based on the method for cloud platform realization to the general management of SAN, comprising:
-block storage management system:
Function:
Be responsible for creating PV (physical volume) and volume group
In running, be responsible for creating and/or deleting LV, according to the order of CLC or NC, increase and/or delete lv (logical volume) hosttag;
-LVM2 client locks
Function:
Control user to the access of volume group; The LV that each volume group creates needs to lock locking by LVM2 client.
-NC service packs module
Function: synchronous LV information, the activation of control LV and access, load LV to virtual machine.
The part noun that the present embodiment relates to:
CLC: cloud computing Controlling vertex;
SC: store Controlling vertex;
NC: computing node;
LV: book.
What the present embodiment provided realizes method and system to the general management of SAN based on cloud platform, and storing rear end is the environment of IP/SAN, FC/SAN, provides a kind of scheme of general management; What the present embodiment provided realizes method and system to the general management of SAN based on cloud platform, is more applicable to the needs that storage is shared in cloud computing.
Above specific embodiments of the invention are described.It is to be appreciated that the present invention is not limited to above-mentioned particular implementation, those skilled in the art can make various distortion or amendment within the scope of the claims, and this does not affect flesh and blood of the present invention.