CN103618767B - Virtual machine configuration method and related equipment - Google Patents

Virtual machine configuration method and related equipment Download PDF

Info

Publication number
CN103618767B
CN103618767B CN201310570990.8A CN201310570990A CN103618767B CN 103618767 B CN103618767 B CN 103618767B CN 201310570990 A CN201310570990 A CN 201310570990A CN 103618767 B CN103618767 B CN 103618767B
Authority
CN
China
Prior art keywords
virtual machine
server
quota
value
redundancy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310570990.8A
Other languages
Chinese (zh)
Other versions
CN103618767A (en
Inventor
何益
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310570990.8A priority Critical patent/CN103618767B/en
Publication of CN103618767A publication Critical patent/CN103618767A/en
Application granted granted Critical
Publication of CN103618767B publication Critical patent/CN103618767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a virtual machine configuration method and related equipment. The virtual machine configuration method comprises the following steps: when sharing connection is conducted with a virtual machine server, an authentication request carrying user information sent by the virtual machine server is received, and the authentication request is forwarded to an authentication server; when the authentication server verifies authentication of the user information, preset redundancy configuration information corresponding to the user information sent by the authentication server is received; when a file creation request initiated by the virtual machine server is received, redundancy configuration is conducted on a created file according to the redundancy configuration information. By the adoption of the virtual machine configuration method and the related equipment, corresponding redundancy ratios are configured to virtual machine operating disks of different users.

Description

A kind of method of virtual machine configuration and relevant device
Technical field
The present invention relates to communication technical field, more particularly, to a kind of method of virtual machine configuration and relevant device.
Background technology
In current distributed nas(network attached storage, network attached storage) storage in, in order to protect Demonstrate,prove the reliability of data in distributed nas storage it will usually redundant configuration is carried out to the data being stored, of the prior art superfluous Remaining collocation method is based on fixing rule, for example, sets to certain catalogue in storage system or certain file system and fixes Redundant fashion and redundancy proportioning value.
For the Virtual Machine Worker disk creating in virtual machine server, different users has different purposes, storage Data also can be different, so the requirement to redundancy protecting for the different users is also different.But in the prior art, point The storage of cloth nas can only set fixing redundancy protecting mode it is impossible to make a distinction according to user type to virtual machine file.Example As when using virtual machine, they may require that the Virtual Machine Worker disk of oneself has higher redundancy proportioning value to financial system, and right In domestic consumer, using relatively low redundancy proportioning value, but existing redundancy proportioning mode cannot be respectively financial system The redundancy proportioning value different with the Virtual Machine Worker disk configuration that domestic consumer is used.
Content of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of method of virtual machine configuration and correlation to set Standby, the Virtual Machine Worker disk that can be different from different user configures corresponding redundancy proportioning.
First aspect present invention provides a kind of method of virtual machine configuration, comprising:
When carrying out shared connection with virtual machine server, what reception virtual machine server sent carries user profile Certification request, and described certification request is forwarded to certificate server;
When described certificate server is by, during to the certification of described user profile, receiving the institute that described certificate server sends Preset redundancy configuration information corresponding with described user profile;
When receiving the document creation request that described virtual machine server is initiated, according to described redundancy configuration information to institute The file creating carries out redundant configuration.
In the first possible implementation, the described document creation that ought receive described virtual machine server initiation please When asking, redundant configuration is carried out to the file being created according to described redundancy configuration information, comprising:
When receiving the document creation request that described virtual machine server is initiated, extract from described redundancy configuration information Redundant fashion and redundancy proportioning value;
Described redundant fashion, redundancy proportioning value and the file being created are sent to local distributed file system, Redundant configuration is carried out to the file being created according to described redundant fashion and redundancy proportioning value by described distributed file system.
In conjunction with the first possible implementation of first aspect or first aspect, in the possible implementation of second In, when receiving the document creation request that described virtual machine server is initiated, according to described redundancy configuration information to being created Before the file built carries out redundant configuration, also include:
Receive the preset quota quota value corresponding with described user equipment that described certificate server sends;
Described quota quota value is sent to described virtual machine server, so that described virtual machine server is according to described Quota quota value distributes the capability value of Virtual Machine Worker disk.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, also include:
Detect whether the total capacity of created file is more than described quota quota value;
When detect created file total capacity be more than described quota quota value when, transmission miscue information to Using the user equipment of described virtual machine server so that described user equipment send dilatation ask described certificate server with Update described quota quota value;
When described virtual machine server is detected and reloading Virtual Machine Worker disk, receive described certificate server and send Quota quota value after renewal, and the quota quota value after described renewal is sent to described virtual machine server, so that institute State the capability value that virtual machine server redistributes Virtual Machine Worker disk according to the quota quota value after described renewal.
In conjunction with a first aspect, or first aspect the first possible implementation, or first aspect second may Implementation, or the third possible implementation of first aspect, in the 4th kind of possible implementation, work as described When carrying out shared connection with virtual machine server, receive the certification request carrying user profile that virtual machine server sends, And before described certification request is forwarded to certificate server, also include:
The corresponding share directory of preset and described virtual machine server;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server are shared mapping relations.
In conjunction with a first aspect, or first aspect the first possible implementation, or first aspect second may Implementation, or the third possible implementation of first aspect, or the 4th kind of possible implementation of first aspect, In the 5th kind of possible implementation, described when carrying out shared connection with virtual machine server, reception virtual machine server The certification request carrying user profile sending, and described certification request is forwarded to certificate server, comprising:
When carrying out shared connection with virtual machine server, what reception virtual machine server sent carries user profile Certification request, and detect the storage agreement that the described certification request that described virtual machine server sends is used;
By the described storage agreement detecting, described certification request is forwarded to and the described storage corresponding certification of agreement Server.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, described pass through Described certification request is forwarded to and the described storage corresponding certificate server of agreement by the described storage agreement detecting, comprising:
When used storage agreement is detected for SMB smb agreement, by described SMB Described certification request is forwarded to Active Directory ad server by smb agreement;Or,
When used storage agreement is detected for NFS nfs agreement, by described NFS Described certification request is forwarded to Light Directory Access Protocol ldap server by nfs agreement.
Second aspect present invention provides a kind of method of virtual machine configuration, comprising:
Receive the certification request that storage server forwards, described certification request is by carrying that virtual machine server sends The certification request of user profile;
According to described certification request, described user profile is authenticated;
When by during to the certification of described user profile, by corresponding for preset and described user profile redundancy configuration information Be sent to described storage server so that described storage server according to described redundancy configuration information to described virtual machine server The file being created carries out redundant configuration.
In the first possible implementation, before the described certification request receiving storage server forwarding, also wrap Include:
Preset user account information, and be the preset corresponding redundancy configuration information of described user account information and quota Quota value;
Wherein, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
In conjunction with the first possible implementation of second aspect or second aspect, in the possible implementation of second In, described when by during to the certification of described user profile, by corresponding for preset and described user profile redundancy configuration information Be sent to described storage server so that described storage server according to described redundancy configuration information to described virtual machine server The file being created carries out redundant configuration, comprising:
When by during to the certification of described user equipment, by corresponding for preset and described user equipment quota quota value It is sent to described storage server, so that described quota quota value is sent to described virtual machine service by described storage server Device is to distribute the capability value of Virtual Machine Worker disk corresponding with described quota quota value;
And corresponding for preset and described user profile redundancy configuration information is sent to described storage server, so that institute State storage server and redundant configuration is carried out according to the file that described redundancy configuration information is created to described virtual machine server.
In conjunction with the first possible implementation of second aspect, or the possible implementation of second of second aspect, In the third possible implementation, also include:
Receive and asked using the dilatation that the user equipment of described virtual machine server is sent, and asked according to described dilatation Update described quota quota value;
When described virtual machine server is detected and reloading Virtual Machine Worker disk, the quota after updating will be sent Quota value is in described storage server, so that the quota quota value after described renewal is sent to institute by described storage server State virtual machine server to redistribute the capability value with the quota quota value corresponding Virtual Machine Worker disk after described renewal.
Third aspect present invention provides a kind of storage server, comprising:
Receive forwarding module, for when carrying out shared connection with virtual machine server, receiving virtual machine server and sending The certification request carrying user profile, and described certification request is forwarded to certificate server;
First information receiver module, for when described certificate server is by, during to the certification of described user profile, receiving The preset redundancy configuration information corresponding with described user profile that described certificate server sends;
Configuration module, for when receiving the document creation request that described virtual machine server is initiated, according to described superfluous Remaining configuration information carries out redundant configuration to the file being created.
In the first possible implementation, described configuration module includes:
Extraction unit, for when receiving the document creation request that described virtual machine server is initiated, from described redundancy Redundant fashion and redundancy proportioning value is extracted in configuration information;
Redundant configuration unit, for being sent to locally described redundant fashion, redundancy proportioning value and the file being created Distributed file system, by described distributed file system to the file being created according to described redundant fashion and redundancy proportioning Value carries out redundant configuration.
In conjunction with the first possible implementation of the third aspect or the third aspect, in the possible implementation of second In, also include:
Second information receiving module, for receiving the preset and described user equipment pair that described certificate server sends The quota quota value answered;
Quota value sending module, for described quota quota value is sent to described virtual machine server, so that described void Plan machine server distributes the capability value of Virtual Machine Worker disk according to described quota quota value.
In conjunction with the possible implementation of the second of the third aspect, in the third possible implementation, also include:
Capacity check module, whether the total capacity for detecting created file is more than described quota quota value;
Prompting sending module, during for being more than described quota quota value when the total capacity created file is detected, sends out Send miscue information to the user equipment using described virtual machine server, so that described user equipment sends dilatation and asks Described certificate server is to update described quota quota value;
Update acquisition module, for when described virtual machine server is detected and reloading Virtual Machine Worker disk, receiving Described certificate server sends the quota quota value after updating, and the quota quota value after described renewal is sent to described void Plan machine server, so that described virtual machine server redistributes Virtual Machine Worker according to the quota quota value after described renewal The capability value of disk.
In conjunction with the third aspect, or the first possible implementation of the third aspect, or the second of the third aspect may Implementation, or the third possible implementation of the third aspect, in the 4th kind of possible implementation, also include:
Catalogue preset module, for the corresponding share directory of preset and described virtual machine server;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server are shared mapping relations.
In conjunction with the third aspect, or the first possible implementation of the third aspect, or the second of the third aspect may Implementation, or the third possible implementation of the third aspect, or the 4th kind of possible implementation of the third aspect, In the 5th kind of possible implementation, described reception forwarding module includes:
Protocol detection unit, for when carrying out shared connection with virtual machine server, receiving virtual machine server and sending The certification request carrying user profile, and detect that what the described certification request that described virtual machine server sends used deposits Storage agreement;
Described certification request is forwarded to for the described storage agreement by detecting and is deposited with described by protocol forward unit The storage corresponding certificate server of agreement.
In conjunction with the 5th kind of possible implementation of the third aspect, in the 6th kind of possible implementation, described agreement Retransmission unit includes:
First forwarding subelement, for when used storage agreement is detected for SMB smb agreement, leading to Cross described SMB smb agreement and described certification request is forwarded to Active Directory ad server;
Second forwarding subelement, for when used storage agreement is detected for NFS nfs agreement, leading to Cross described NFS nfs agreement and described certification request is forwarded to Light Directory Access Protocol ldap server.
Fourth aspect present invention provides a kind of certificate server, comprising:
Request receiving module, for receiving the certification request of storage server forwarding, described certification request is by virtual machine The certification request carrying user profile that server sends;
Authentication module, for being authenticated to described user profile according to described certification request;
Information sending module, for when by during to the certification of described user profile, by preset and described user profile Corresponding redundancy configuration information is sent to described storage server, so that described storage server is according to described redundancy configuration information The file that described virtual machine server is created carries out redundant configuration.
In the first possible implementation, also include:
Information preset module, for preset user account information, and is the preset corresponding redundancy of described user account information Configuration information and quota quota value;
Wherein, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
In conjunction with the first possible implementation of fourth aspect or fourth aspect, in the possible implementation of second In, described information sending module, it is additionally operable to when by during to the certification of described user equipment, by preset and described user equipment Corresponding quota quota value is sent to described storage server, so that described quota quota value is sent by described storage server To described virtual machine server to distribute the capability value of Virtual Machine Worker disk corresponding with described quota quota value.
In conjunction with the first possible implementation of fourth aspect, or the possible implementation of second of fourth aspect, In the third possible implementation, also include:
Receive update module, asked using the dilatation that the user equipment of described virtual machine server is sent for receiving, And ask to update described quota quota value according to described dilatation;
Update sending module, for when described virtual machine server is detected and reloading Virtual Machine Worker disk, sending out Send the quota quota value after renewal to described storage server so that described storage server by described update after quota Quota value is sent to described virtual machine server to redistribute and the corresponding virtual machine of quota quota value after described renewal The capability value of scratch diskette.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile that certificate server is sent, can So that according to described redundancy configuration information, the file that virtual machine corresponding with described user profile is created carries out redundant configuration, Make distributed nas storage can configure different redundancy proportionings to the Virtual Machine Worker disk of different user, to meet each user Required redundancy proportioning.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for virtual machine configuration provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another kind virtual machine configuration provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for one of which dilatation provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method for another virtual machine configuration provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the method for another virtual machine configuration provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of the system of virtual machine configuration provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of storage server provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another kind storage server provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of configuration module provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation receiving forwarding module provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation of certificate server provided in an embodiment of the present invention;
Figure 12 is the structural representation of another kind certificate server provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, be a kind of schematic flow sheet of the method for virtual machine configuration provided in an embodiment of the present invention, described side Method includes:
S101, when carrying out shared connection with virtual machine server, receive virtual machine server transmission carries user The certification request of information, and described certification request is forwarded to certificate server;
Specifically, before storage server and described virtual machine server are shared and be connected, described virtual machine server is first Install the virtual machine of user, enter back into described virtual machine and pass through to share certain being mapped to storage server by Virtual Machine Worker disk Under individual catalogue, now, user can use described virtual machine by user equipment.Because Virtual Machine Worker disk passes through shared mapping To in storage server, so when loading described Virtual Machine Worker disk, described virtual machine server will initiate described depositing The shared connection of storage server, and send certification request so that described storage server can receive virtual machine server transmission The certification request carrying user profile, and described certification request is forwarded to certificate server.Wherein, described storage service Device can be distributed nas storage server, and described user profile can comprise user account, password and virtual machine server The network address etc..
S102, when described certificate server is sent out by during to the certification of described user profile, receiving described certificate server The preset redundancy configuration information corresponding with described user profile sending;
Specifically, after described certification request is forwarded to described certificate server by described storage server, storage service Whether device can detect described certificate server by the certification to described user profile, or described certificate server can be sent out Send authentication result to arrive described storage server, when described certificate server is by during to the certification of described user profile, described deposit Storage server can receive the preset redundancy configuration information corresponding with described user profile that described certificate server sends. Wherein, described redundancy configuration information be by it manager in described certificate server be each user profile corresponding to user Preset redundancy configuration information, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
S103, when receiving the document creation request that described virtual machine server is initiated, believes according to described redundant configuration Breath carries out redundant configuration to the file being created;
Specifically, in certificate server after the certification to described user profile, user can be initiated by virtual machine Document creation is asked, and that is, described storage server can receive the document creation request that described virtual machine server is initiated, this When, described storage server can be according to getting described redundancy configuration information corresponding with described user profile to being created File carry out redundant configuration, using corresponding redundant fashion and redundancy proportioning value, redundancy is carried out to the file being created and joins Put, carry out frequency converter to realize the file in the Virtual Machine Worker disk to each user.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile that certificate server is sent, can So that according to described redundancy configuration information, the file that virtual machine corresponding with described user profile is created carries out redundant configuration, Make distributed nas storage can configure different redundancy proportionings to the Virtual Machine Worker disk of different user, to meet each user Required redundancy proportioning, simultaneously because Virtual Machine Worker disk can be shared is mapped to storage server, so virtual machine service Device only needs to the virtual machine image file of installation operation system, thus being conducive to migration and the clone of virtual machine.
Refer to Fig. 2 again, be the schematic flow sheet of the method for another kind virtual machine configuration provided in an embodiment of the present invention, institute The method of stating includes:
S201, the corresponding share directory of preset and described virtual machine server;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server are shared mapping relations.? Storage server is shared with described virtual machine server before being connected, and described storage server can preset and described virtual machine clothes Business the corresponding share directory of device, simultaneously described virtual machine server first install the virtual machine of user, enter back into described virtual machine Virtual Machine Worker disk is passed through to share and is mapped under preset share directory in storage server, now, user can be by using Family equipment uses described virtual machine.
S202, when carrying out shared connection with virtual machine server, receive virtual machine server transmission carries user The certification request of information, and detect the storage agreement that the described certification request that described virtual machine server sends is used;
It is mapped in storage server because Virtual Machine Worker disk passes through to share, so when the described Virtual Machine Worker disk of loading When, described virtual machine server will initiate the shared connection of described storage server, and sends certification request so that described Storage server can receive the certification request carrying user profile of virtual machine server transmission, now, described storage clothes Business device can also detect the storage agreement that the described certification request that described virtual machine server sends is used.
Described certification request is forwarded to corresponding with described storage agreement by s203 by the described storage agreement detecting Certificate server;
Described storage server can by the described storage agreement that detects by described certification request be forwarded to described The storage corresponding certificate server of agreement.Further, when detect used storage agreement for SMB smb assist During view, described certification request is forwarded to by Active Directory ad(active by described SMB smb agreement Directory, Active Directory) server, and in follow-up process, described storage server all will be using smb agreement and institute State certificate server and described virtual machine server interacts;Or, it is network literary composition when used storage agreement is detected Part system nfs(network file system, NFS) agreement when, by described NFS nfs agreement Described certification request is forwarded to Light Directory Access Protocol ldap(lightweight directory access Protocol, Light Directory Access Protocol) server, and in follow-up process, described storage server all will be assisted using nfs View is interacted with described certificate server and described virtual machine server.
S204, when described certificate server is sent out by during to the certification of described user profile, receiving described certificate server The preset redundancy configuration information corresponding with described user profile sending;
Specifically, after described certification request is forwarded to described certificate server by described storage server, storage service Whether device can detect described certificate server by the certification to described user profile, or described certificate server can be sent out Send authentication result to arrive described storage server, when described certificate server is by during to the certification of described user profile, described deposit Storage server can receive the preset redundancy configuration information corresponding with described user profile that described certificate server sends. Wherein, described redundancy configuration information be by it manager in described certificate server be each user profile corresponding to user Preset redundancy configuration information, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
S205, receives the preset quota quota value corresponding with described user equipment that described certificate server sends;
Described certificate server is detected by during to the certification of described user profile in described storage server, described deposit Storage server can also receive preset quota quota corresponding with described user equipment that described certificate server sends Value, described quota quota value refers to the capability value of Virtual Machine Worker disk, and described quota quota value is also in institute by it manager State the preset quota quota value of the user corresponding to each user profile in certificate server.
S206, described quota quota value is sent to described virtual machine server so that described virtual machine server according to Described quota quota value distributes the capability value of Virtual Machine Worker disk;
After described storage server gets described quota quota value, described storage server can be by described quota Quota value is sent to described virtual machine server, so that described virtual machine server is virtual according to the distribution of described quota quota value The capability value of machine scratch diskette.
S207, when receiving the document creation request that described virtual machine server is initiated, from described redundancy configuration information Middle extraction redundant fashion and redundancy proportioning value;
After described virtual machine server distributes the capability value of Virtual Machine Worker disk, user can pass through described virtual Machine server can initiate document creation request.When described storage server receives the file that described virtual machine server is initiated During request to create, described storage server can extract redundant fashion and redundancy proportioning value from described redundancy configuration information.
S208, described redundant fashion, redundancy proportioning value and the file being created are sent to local distributed document System, carries out redundancy to the file being created according to described redundant fashion and redundancy proportioning value by described distributed file system and joins Put;
After described storage server is extracted described redundant fashion and redundancy proportioning value, described storage server is by institute State redundant fashion, redundancy proportioning value and the file being created and be sent to local distributed file system, by described distributed File system carries out redundant configuration to the file being created according to described redundant fashion and redundancy proportioning value, for example, extraction superfluous Remaining mode is erasure code, and redundancy proportioning value is 9:3, then described distributed file system is by the file data being created Split into 12 parts, wherein 9 parts is valid data, 3 parts is verification data.
The embodiment of the present invention pass through to receive the redundancy configuration information corresponding with user profile that sent of certificate server and Quota quota value, can be according to described redundancy configuration information, the file that virtual machine corresponding with described user profile is created Carry out redundant configuration, and control virtual machine server to distribute the appearance of corresponding Virtual Machine Worker disk by described quota quota value Value is so that distributed nas storage can configure different redundancy proportionings to the Virtual Machine Worker disk of different user, and is difference User distribute different capabilities value Virtual Machine Worker disk, to meet redundancy proportioning and the quota quota value required by each user, Simultaneously because Virtual Machine Worker disk can be shared is mapped to storage server, so virtual machine server has only needed to installation operation The virtual machine image file of system, thus be conducive to migration and the clone of virtual machine.
Further, then refer to Fig. 3, it is that the flow process of the method for one of which dilatation provided in an embodiment of the present invention is illustrated Figure, methods described includes:
S301, detects whether the total capacity of created file is more than described quota quota value;
Specifically, the step of s301 can execute or above-mentioned after the s102 in the corresponding embodiment of above-mentioned Fig. 1 Execute after s204 in the corresponding embodiment of Fig. 2, described certificate server is detected by right in described storage server After the certification of described user profile, whether the total capacity of the file that described storage server can be created with real-time detection is more than institute State quota quota value, if detecting less than described quota quota value, described storage server can continue to described void The document creation request that plan machine server is initiated, and redundancy is carried out to the file being created according to described redundancy configuration information join Put;If detecting more than described quota quota value, illustrate that the capacity of Virtual Machine Worker disk is full, now by the step of execution s302 Suddenly.
S302, when the total capacity created file is detected is more than described quota quota value, sends miscue letter Cease the user equipment using described virtual machine server, so that described user equipment sends dilatation and asks described authentication service Device is to update described quota quota value;
When detect created file total capacity be more than described quota quota value when, transmission miscue information to Using the user equipment of described virtual machine server, full with the capacity that notifies Virtual Machine Worker disk described in user, now, described User equipment can send dilatation and ask described certificate server to update described quota quota value.
S303, when described virtual machine server is detected and reloading Virtual Machine Worker disk, receives described authentication service Device sends the quota quota value after updating, and the quota quota value after described renewal is sent to described virtual machine server, So that described virtual machine server redistributes the capability value of Virtual Machine Worker disk according to the quota quota value after described renewal;
Specifically, when described storage server detects described virtual machine server and reloads Virtual Machine Worker disk, Virtual machine server will initiate shared connection and certification request, in described certificate server again by described user letter again After the certification of breath, after described storage server can receive the described redundancy configuration information of described certificate server transmission and update Quota quota value, described storage server can by described update after quota quota value be sent to described virtual machine service Device, so that described virtual machine server redistributes the capacity of Virtual Machine Worker disk according to the quota quota value after described renewal Value so that the capacity of the Virtual Machine Worker disk of user can be increased, thus user can be continuing with virtual machine.
The embodiment of the present invention is passed through to update quota quota value, makes virtual machine server reload Virtual Machine Worker disk When, the capability value of Virtual Machine Worker disk can be redistributed according to the quota quota value after updating, such that it is able to simply realize Dilatation to Virtual Machine Worker disk, solves the problems, such as that Virtual Machine Worker disk dilatation is difficult.
Refer to Fig. 4, be the schematic flow sheet of the method for another virtual machine configuration provided in an embodiment of the present invention, described Method includes:
S401, receives the certification request that storage server forwards, and described certification request is sent by virtual machine server Carry the certification request of user profile;
Specifically, certificate server can receive the certification request of storage server forwarding, and described certification request is by void The certification request carrying user profile that plan machine server sends.Wherein, described storage server can be deposited for distributed nas Storage server, described user profile can comprise network address of user account, password and virtual machine server etc..
S402, is authenticated to described user profile according to described certification request;
Preset user account information and other information is preserved, described certificate server can in described certificate server To detect the user profile in described certification request with the presence or absence of in described preset user account information, if not existing, Authentification failure, described virtual machine server will be unable to be connected to storage server;When the user in described certification request is detected When information is present in described preset user account information, detected in described certification request according to preset user account information User profile legitimacy, when described user profile is detected and being legal, then passed through the certification to described user profile, no Then, the authentification failure to described user profile.
S403, when by, during to the certification of described user profile, corresponding for preset and described user profile redundancy being joined Confidence breath be sent to described storage server so that described storage server according to described redundancy configuration information to described virtual machine The file that server is created carries out redundant configuration;
Specifically, when described certificate server is by, during to the certification of described user profile, described certificate server is permissible Corresponding for preset and described user profile redundancy configuration information is sent to described storage server, so that described storage service Device carries out redundant configuration according to the file that described redundancy configuration information is created to described virtual machine server.Wherein, described deposit Storage server can receive the document creation request that described virtual machine server sends, and now, described storage server can root Carry out redundancy according to the file that the redundancy configuration information getting from certificate server is created to described virtual machine server to join Put.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile that certificate server is sent, and deposits Storage server can be according to described redundancy configuration information, and the file that virtual machine corresponding with described user profile is created is carried out Redundant configuration is so that distributed nas storage can configure different redundancy proportionings to the Virtual Machine Worker disk of different user, with full Redundancy proportioning required by each user of foot.
Refer to Fig. 5 again, be the schematic flow sheet of the method for another virtual machine configuration provided in an embodiment of the present invention, institute The method of stating includes:
S501, preset user account information, and for the preset corresponding redundancy configuration information of described user account information and join Volume quota value;
Certificate server can according to the preset corresponding user account information of each user, and be described user account information Preset corresponding redundancy configuration information and quota quota value.Wherein, described redundancy configuration information includes redundant fashion and redundancy is joined Ratio, described quota quota value refers to the capability value of Virtual Machine Worker disk.
S502, receives the certification request that storage server forwards, and described certification request is sent by virtual machine server Carry the certification request of user profile;
Specifically, described certificate server can receive the certification request of storage server forwarding, and described certification request is The certification request carrying user profile being sent by virtual machine server.Wherein, described virtual machine server is by virtual machine work Make disk share be mapped in described storage server so that virtual machine server load described Virtual Machine Worker disk when can send out Play shared connection and certification request.Described storage server can be distributed nas storage server, and described user profile is permissible Comprise network address of user account, password and virtual machine server etc..
S503, is authenticated to described user profile according to described certification request;
Preset user account information and other information is preserved, described certificate server can in described certificate server To detect the user profile in described certification request with the presence or absence of in described preset user account information, if not existing, Authentification failure, described virtual machine server will be unable to be connected to storage server;When the user in described certification request is detected When information is present in described preset user account information, detected in described certification request according to preset user account information User profile legitimacy, when described user profile is detected and being legal, then passed through the certification to described user profile, no Then, the authentification failure to described user profile.
S504, when by during to the certification of described user equipment, by corresponding for preset and described user equipment quota Quota value is sent to described storage server;
When by, during to the certification of described user equipment, described certificate server will be corresponding for preset and described user equipment Quota quota value be sent to described storage server, so that described quota quota value is sent to institute by described storage server State virtual machine server to distribute the capability value of Virtual Machine Worker disk corresponding with described quota quota value.
S505, and corresponding for preset and described user profile redundancy configuration information is sent to described storage server;
Described certificate server also by corresponding for preset and described user profile redundancy configuration information be sent to described in deposit Storage server, so that the file that described storage server is created to described virtual machine server according to described redundancy configuration information Carry out redundant configuration.
S506, is received and is asked using the dilatation that the user equipment of described virtual machine server is sent, and according to described expansion Hold request and update described quota quota value;
Specifically, when the capacity of Virtual Machine Worker disk is expired, the user equipment using described virtual machine server will Initiate dilatation request, now, described certificate server can receive and be sent using the user equipment of described virtual machine server Dilatation request, and according to described dilatation ask update described quota quota value.
S507, when described virtual machine server is detected and reloading Virtual Machine Worker disk, will send joining after updating Volume quota value is in described storage server;
Reload Virtual Machine Worker disk when certificate server detects described virtual machine server by storage server When, described virtual machine server will initiate shared connection and certification request, in described certificate server again by right again After the certification of described user profile, certificate server can send the quota quota value after renewal to described storage server, So that described storage server by the quota quota value after described renewal be sent to described virtual machine server redistributing and The capability value of the quota quota value corresponding Virtual Machine Worker disk after described renewal;Meanwhile, described certificate server can also weigh Newly described redundancy configuration information is sent in described storage server, so that described storage server still can be according to described The file that redundancy configuration information is created to described virtual machine server carries out redundant configuration.
The embodiment of the present invention pass through to receive the redundancy configuration information corresponding with user profile that sent of certificate server and Quota quota value, storage server can be according to described redundancy configuration information, to virtual machine institute corresponding with described user profile The file creating carries out redundant configuration, and controls virtual machine server to distribute corresponding virtual machine by described quota quota value The capability value of scratch diskette is so that distributed nas storage can the redundancy different to the Virtual Machine Worker disk configuration of different user be joined Than, and distribute the Virtual Machine Worker disk of different capabilities values for different users, with meet redundancy proportioning required by each user and Quota quota value, passes through to update quota quota value simultaneously, makes virtual machine server when reloading Virtual Machine Worker disk, can To redistribute the capability value of Virtual Machine Worker disk according to the quota quota value after updating, such that it is able to simply realize to void The dilatation of plan machine scratch diskette;Further, since Virtual Machine Worker disk can be shared is mapped to storage server, so virtual machine service Device only needs to the virtual machine image file of installation operation system, thus being conducive to migration and the clone of virtual machine.
Refer to Fig. 6, be a kind of structural representation of the system of virtual machine configuration provided in an embodiment of the present invention, described system System includes: storage server 1, certificate server 2, virtual machine server 3;
Described storage server 1, for when carrying out shared connection with virtual machine server 3, receiving virtual machine server 3 The certification request carrying user profile sending, and described certification request is forwarded to certificate server 2, when described certification clothes Business device 2 is by preset and described user letter during to the certification of described user profile, receiving that described certificate server 2 sends Cease corresponding redundancy configuration information, and when receiving the document creation request that described virtual machine server 3 is initiated, according to described Redundancy configuration information carries out redundant configuration to the file being created;
Described certificate server 2, for receiving the certification request of storage server 1 forwarding, described certification request is by void The certification request carrying user profile that plan machine server 3 sends, and according to described certification request, described user profile is entered Row certification, when by during to the certification of described user profile, by corresponding for preset and described user profile redundancy configuration information It is sent to described storage server 1;
Described virtual machine server 3, for when carrying out shared connection with described storage server 1, sending and carrying use The certification request of family information, to described storage server 1, is additionally operable to transmission document creation and asks described storage server 1.
Specifically, before storage server 1 and described virtual machine server 3 are shared and be connected, described virtual machine server 3 First install the virtual machine of user, enter back into described virtual machine and Virtual Machine Worker disk is mapped to storage server 1 by shared Certain catalogue under, now, user can by user equipment use described virtual machine.Because Virtual Machine Worker disk passes through to share It is mapped in storage server 1, so when loading described Virtual Machine Worker disk, described virtual machine server 3 will be initiated The shared connection of described storage server 1, and send certification request so that described storage server 1 can receive virtual machine clothes The certification request carrying user profile that business device 3 sends, and described certification request is forwarded to certificate server 2.Wherein, institute Stating storage server 1 can be distributed nas storage server 1, described user profile can comprise user account, password and Network address of virtual machine server 3 etc..
After described certification request is forwarded to described certificate server 2 by described storage server 1, storage server 1 can Whether with detection described certificate server 2 by the certification to described user profile, or described certificate server 2 can send Authentication result to described storage server 1, when described certificate server 2 is by during to the certification of described user profile, described is deposited Storage server 1 can receive the preset redundant configuration letter corresponding with described user profile that described certificate server 2 sends Breath.Wherein, described redundancy configuration information be by it manager in described certificate server 2 be each user profile corresponding to The preset redundancy configuration information of user, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
In certificate server 2 after the certification to described user profile, user can initiate file wound by virtual machine Build request, that is, described storage server 1 can receive the document creation request that described virtual machine server 3 is initiated, now, institute Stating storage server 1 can be according to getting described redundancy configuration information corresponding with described user profile to the literary composition being created Part carries out redundant configuration, carries out redundant configuration to the file being created using corresponding redundant fashion and redundancy proportioning value, with Realize carrying out frequency converter to the file in the Virtual Machine Worker disk of each user.
Wherein, described storage server 1, specifically for when the document creation receiving described virtual machine server 3 initiation During request, extract redundant fashion and redundancy proportioning value from described redundancy configuration information;
Described redundant fashion, redundancy proportioning value and the file being created are sent to local distributed file system, Redundant configuration is carried out to the file being created according to described redundant fashion and redundancy proportioning value by described distributed file system.
Wherein, described storage server 1, is additionally operable to receive the preset and described use that described certificate server 2 sends Family equipment corresponding quota quota value, and described quota quota value is sent to described virtual machine server 3;
Described virtual machine server 3, is additionally operable to receive the described quota quota value that described storage server 1 sends, and root Distribute the capability value of Virtual Machine Worker disk according to described quota quota value.
In addition, described storage server 1, it is additionally operable to detect whether the total capacity of created file is more than described quota Quota value, and when the total capacity created file is detected is more than described quota quota value, send miscue information To the user equipment using described virtual machine server 3, so that described user equipment sends dilatation and asks described authentication service Device 2 is to update described quota quota value, and when described virtual machine server 3 is detected and reloading Virtual Machine Worker disk, connects Receive described certificate server 2 and send the quota quota value after updating, and the quota quota value after described renewal is sent to institute State virtual machine server 3;
Described certificate server 2, is additionally operable to receive the dilatation being sent using the user equipment of described virtual machine server 3 Request, and ask to update described quota quota value according to described dilatation, reload when described virtual machine server 3 is detected During Virtual Machine Worker disk, the quota quota value after updating will be sent in described storage server 1;
Described virtual machine server 3, is additionally operable to the quota quota value after receiving the renewal that described storage server 1 sends, And the capability value of Virtual Machine Worker disk is redistributed according to the quota quota value after described renewal.
Specifically, described certificate server 2 is detected by the certification to described user profile in described storage server 1 Afterwards, whether the total capacity of the file that described storage server 1 can be created with real-time detection is more than described quota quota value, if Detect less than described quota quota value, then described storage server 1 can continue to described virtual machine server 3 and initiates Document creation request, and redundant configuration is carried out to the file being created according to described redundancy configuration information;If detect being more than Described quota quota value, illustrates that the capacity of Virtual Machine Worker disk is full.
When detect created file total capacity be more than described quota quota value when, transmission miscue information to Using the user equipment of described virtual machine server 3, full with the capacity that notifies Virtual Machine Worker disk described in user, now, institute State user equipment and can send dilatation and ask described certificate server 2 to update described quota quota value.
When described storage server 1 detects described virtual machine server 3 and reloads Virtual Machine Worker disk, virtual machine Server 3 will initiate shared connection and certification request, in described certificate server 2 again by described user profile again After certification, after described storage server 1 can receive the described redundancy configuration information of described certificate server 2 transmission and update Quota quota value, the quota quota value after described renewal can be sent to described virtual machine service by described storage server 1 Device 3, so that described virtual machine server 3 redistributes the appearance of Virtual Machine Worker disk according to the quota quota value after described renewal Value so that the capacity of the Virtual Machine Worker disk of user can be increased, thus user can be continuing with virtual machine.
Wherein, described certificate server 2, is additionally operable to reception and is sent using the user equipment of described virtual machine server 3 Dilatation request, and according to described dilatation ask update described quota quota value;
When described virtual machine server 3 is detected and reloading Virtual Machine Worker disk, the quota after updating will be sent Quota value is in described storage server 1, so that the quota quota value after described renewal is sent to by described storage server 1 Described virtual machine server 3 is to redistribute the capacity with the quota quota value corresponding Virtual Machine Worker disk after described renewal Value.
Specifically, when the capacity of Virtual Machine Worker disk is expired, the user equipment using described virtual machine server 3 will Initiate dilatation request, now, described certificate server 2 can receive to be sent out using the user equipment of described virtual machine server 3 The dilatation request sent, and ask to update described quota quota value according to described dilatation.
Reload Virtual Machine Worker when certificate server 2 detects described virtual machine server 3 by storage server 1 During disk, described virtual machine server 3 will initiate shared connection and certification request again, leads to again in described certificate server 2 After crossing the certification to described user profile, certificate server 2 can send the quota quota value after renewal to described storage service On device 1, so that the quota quota value after described renewal is sent to described virtual machine server 3 with weight by described storage server 1 The new capability value distributing with the quota quota value corresponding Virtual Machine Worker disk after described renewal;Meanwhile, described certificate server 2 can also again described redundancy configuration information be sent in described storage server 1, so that described storage server 1 is still Redundant configuration can be carried out according to the file that described redundancy configuration information is created to described virtual machine server 3.
Wherein, described storage server 1, specifically for when carrying out shared connection with virtual machine server 3, receiving virtual The certification request carrying user profile that machine server 3 sends, and detect the described certification that described virtual machine server 3 sends Ask used storage agreement;
By the described storage agreement detecting, described certification request is forwarded to and the described storage corresponding certification of agreement Server 2.
Specifically, it is mapped in storage server 1 because Virtual Machine Worker disk passes through to share, thus described virtual when loading During machine scratch diskette, described virtual machine server 3 will initiate the shared connection of described storage server 1, and send certification please Ask so that described storage server 1 can receive the certification request carrying user profile of virtual machine server 3 transmission, this When, described storage server 1 can also detect the storage association that the described certification request that described virtual machine server 3 sends is used View.
Described storage server 1 can by the described storage agreement that detects by described certification request be forwarded to described The storage corresponding certificate server of agreement 2.Further, when detect used storage agreement be SMB smb During agreement, described certification request is forwarded to by Active Directory ad server by described SMB smb agreement, and In follow-up process, described storage server 1 all will be using smb agreement and described certificate server 2 and described virtual machine server 3 Interact;Or, when used storage agreement is detected for NFS nfs agreement, by described network literary composition Described certification request is forwarded to Light Directory Access Protocol ldap server by part system nfs agreement, and in follow-up process, Described storage server 1 all will be interacted with described certificate server 2 and described virtual machine server 3 using nfs agreement.
Wherein, the Virtual Machine Worker disk in described virtual machine server 3 is mapped to described storage server 1 by shared In so that described virtual machine server 3 only needs to the virtual machine image file of installation operation system.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile of certificate server 2 transmission and is joined Volume quota value, storage server 1 can be according to described redundancy configuration information, to virtual machine institute corresponding with described user profile The file creating carries out redundant configuration, and controls virtual machine server 3 to distribute corresponding virtual machine by described quota quota value The capability value of scratch diskette is so that distributed nas storage can the redundancy different to the Virtual Machine Worker disk configuration of different user be joined Than, and distribute the Virtual Machine Worker disk of different capabilities values for different users, with meet redundancy proportioning required by each user and Quota quota value, passes through to update quota quota value simultaneously, makes virtual machine server 3 when reloading Virtual Machine Worker disk, The capability value of Virtual Machine Worker disk can be redistributed according to the quota quota value after updating, right such that it is able to simply realize The dilatation of Virtual Machine Worker disk.
Below the storage server 1 in Fig. 6 and certificate server 2 are described in detail.
Specifically, refer to Fig. 7, be a kind of structural representation of storage server 1 provided in an embodiment of the present invention, described Storage server 1 includes: receives forwarding module 11, first information receiver module 12, configuration module 13;
Described reception forwarding module 11, for when carrying out shared connection with virtual machine server 3, receiving virtual machine service The certification request carrying user profile that device 3 sends, and described certification request is forwarded to certificate server 2;
Specifically, when carrying out shared connection with virtual machine server 3, described reception forwarding module 11 can be empty by receiving The certification request carrying user profile that plan machine server 3 sends, and described certification request is forwarded to certificate server 2. Additionally, before storage server 1 and described virtual machine server 3 are shared and be connected, described virtual machine server 3 first installs use The virtual machine at family, enters back into described virtual machine and Virtual Machine Worker disk is passed through shared certain catalogue being mapped to storage server 1 Under, now, user can use described virtual machine by user equipment.It is mapped to storage because Virtual Machine Worker disk passes through to share On server 1, so when loading described Virtual Machine Worker disk, described virtual machine server 3 will initiate described storage clothes The shared connection of business device 1, and send certification request so that described reception forwarding module 11 can receive virtual machine server 3 The certification request carrying user profile sent, and described certification request is forwarded to certificate server 2.Wherein, described storage Server 1 can be distributed nas storage server, and described user profile can comprise user account, password and virtual machine Network address of server 3 etc..
Described first information receiver module 12, for when described certificate server 2 is by the certification to described user profile When, receive the preset redundancy configuration information corresponding with described user profile that described certificate server 2 sends;
Specifically, after described certification request is forwarded to described certificate server 2 by described reception forwarding module 11, described Whether first information receiver module 12 can detect described certificate server 2 by the certification to described user profile, or by Described certificate server 2 directly transmits authentication result to described storage server 1, when described certificate server 2 is by described During the certification of user profile, described first information receiver module 12 can receive the preset of described certificate server 2 transmission Redundancy configuration information corresponding with described user profile.Wherein, described redundancy configuration information is in described certification by it manager The preset redundancy configuration information of user corresponding to each user profile in server 2, described redundancy configuration information includes superfluous Remaining mode and redundancy proportioning value.
Described configuration module 13, during for asking when the document creation receiving described virtual machine server 3 initiation, according to Described redundancy configuration information carries out redundant configuration to the file being created;
Specifically, in certificate server 2 after the certification to described user profile, user can be initiated by virtual machine Document creation is asked, and that is, described storage server 1 can receive the document creation request that described virtual machine server 3 is initiated, Now, described configuration module 13 can be according to getting described redundancy configuration information corresponding with described user profile to being created The file built carries out redundant configuration, and that is, described configuration module 13 is joined using corresponding redundant fashion and redundancy to the file being created Ratio carries out redundant configuration, carries out frequency converter to realize the file in the Virtual Machine Worker disk to each user.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile that certificate server 2 sends, can So that according to described redundancy configuration information, the file that virtual machine corresponding with described user profile is created carries out redundant configuration, Make distributed nas storage can configure different redundancy proportionings to the Virtual Machine Worker disk of different user, to meet each user Required redundancy proportioning, simultaneously because Virtual Machine Worker disk can be shared is mapped to storage server 1, so virtual machine service Device 3 only needs to the virtual machine image file of installation operation system, thus being conducive to migration and the clone of virtual machine.
Refer to Fig. 8 again, be the structural representation of another kind storage server 1 provided in an embodiment of the present invention, described deposit Storage server 1 may include that reception forwarding module 11, first information receiver module 12, configuration module 13, catalogue preset module 14th, the second information receiving module 15, quota value sending module 16, capacity check module 17, prompting sending module 18, renewal obtain Module 19;
Described reception forwarding module 11, for when carrying out shared connection with virtual machine server 3, receiving virtual machine service The certification request carrying user profile that device 3 sends, and described certification request is forwarded to certificate server 2;
Specifically, when carrying out shared connection with virtual machine server 3, described reception forwarding module 11 can be empty by receiving The certification request carrying user profile that plan machine server 3 sends, and described certification request is forwarded to certificate server 2. Additionally, before storage server 1 and described virtual machine server 3 are shared and be connected, described virtual machine server 3 first installs use The virtual machine at family, enters back into described virtual machine and Virtual Machine Worker disk is passed through shared certain catalogue being mapped to storage server 1 Under, now, user can use described virtual machine by user equipment.It is mapped to storage because Virtual Machine Worker disk passes through to share On server 1, so when loading described Virtual Machine Worker disk, described virtual machine server 3 will initiate described storage clothes The shared connection of business device 1, and send certification request so that described reception forwarding module 11 can receive virtual machine server 3 The certification request carrying user profile sent, and described certification request is forwarded to certificate server 2.Wherein, described storage Server 1 can be distributed nas storage server, and described user profile can comprise user account, password and virtual machine Network address of server 3 etc..
Described first information receiver module 12, for when described certificate server 2 is by the certification to described user profile When, receive the preset redundancy configuration information corresponding with described user profile that described certificate server 2 sends;
Specifically, after described certification request is forwarded to described certificate server 2 by described reception forwarding module 11, described Whether first information receiver module 12 can detect described certificate server 2 by the certification to described user profile, or by Described certificate server 2 directly transmits authentication result to described storage server 1, when described certificate server 2 is by described During the certification of user profile, described first information receiver module 12 can receive the preset of described certificate server 2 transmission Redundancy configuration information corresponding with described user profile.Wherein, described redundancy configuration information is in described certification by it manager The preset redundancy configuration information of user corresponding to each user profile in server 2, described redundancy configuration information includes superfluous Remaining mode and redundancy proportioning value.
Described configuration module 13, during for asking when the document creation receiving described virtual machine server 3 initiation, according to Described redundancy configuration information carries out redundant configuration to the file being created;
Specifically, in certificate server 2 after the certification to described user profile, user can be initiated by virtual machine Document creation is asked, and that is, described storage server 1 can receive the document creation request that described virtual machine server 3 is initiated, Now, described configuration module 13 can be according to getting described redundancy configuration information corresponding with described user profile to being created The file built carries out redundant configuration, and that is, described configuration module 13 is joined using corresponding redundant fashion and redundancy to the file being created Ratio carries out redundant configuration, carries out frequency converter to realize the file in the Virtual Machine Worker disk to each user.
Described catalogue preset module 14, for the corresponding share directory of preset and described virtual machine server 3;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server 3 are shared mapping relations.? Storage server 1 is shared with described virtual machine server 3 before being connected, and described catalogue preset module 14 can preset and described void The corresponding share directory of plan machine server 3, simultaneously described virtual machine server 3 first install the virtual machine of user, enter back into institute State virtual machine to be mapped under preset share directory in storage server 1 Virtual Machine Worker disk by shared, now, Yong Huke So that described virtual machine is used by user equipment.
Described second information receiving module 15, for receiving the preset and described use that described certificate server 2 sends Family equipment corresponding quota quota value;
Described certificate server 2 is being detected by, during to the certification of described user profile, described second can also be passed through Information receiving module 15 receives preset quota quota corresponding with described user equipment that described certificate server 2 sends Value, described quota quota value refers to the capability value of Virtual Machine Worker disk, and described quota quota value is also in institute by it manager State the preset quota quota value of the user corresponding to each user profile in certificate server 2.
Described quota value sending module 16, for described quota quota value is sent to described virtual machine server 3, with Described virtual machine server 3 is made to distribute the capability value of Virtual Machine Worker disk according to described quota quota value;
After described second information receiving module 15 receives described quota quota value, described quota value sending module 16 Described quota quota value can be sent to described virtual machine server 3, so that described virtual machine server 3 is joined according to described Volume quota value distributes the capability value of Virtual Machine Worker disk.
Described capacity check module 17, whether the total capacity for detecting created file is more than described quota quota Value;
Specifically, described certificate server 2 is detected by the certification to described user profile in described storage server 1 Afterwards, whether the total capacity of the file that described capacity check module 17 can be created with real-time detection is more than described quota quota value, If described capacity check module 17 detects less than described quota quota value, described capacity check module 17 can notify institute State configuration module 13 and continue to the document creation request of described virtual machine server 3 initiation and according to described redundancy configuration information Redundant configuration is carried out to the file being created;If described capacity check module 17 detects more than described quota quota value, explanation The capacity of Virtual Machine Worker disk is full, and now described capacity check module 17 can notify described prompting sending module 18 execution phase Should operate.
Described prompting sending module 18, for being more than described quota quota when the total capacity created file is detected During value, send miscue information to the user equipment using described virtual machine server 3, so that described user equipment sends expanding Hold request to described certificate server 2 to update described quota quota value;
When the total capacity that described capacity check module 17 detects created file is more than described quota quota value, Described prompting sending module 18 can send miscue information to the user equipment using described virtual machine server 3, with logical Know that the capacity of Virtual Machine Worker disk described in user is full, now, described user equipment can send dilatation and ask described certification Server 2 is to update described quota quota value.
Described renewal acquisition module 19, reloads Virtual Machine Worker disk for described virtual machine server 3 is detected When, receive described certificate server 2 and send the quota quota value after updating, and the quota quota value after described renewal is sent To described virtual machine server 3, so that described virtual machine server 3 is redistributed according to the quota quota value after described renewal The capability value of Virtual Machine Worker disk;
Specifically, reload Virtual Machine Worker disk when described storage server 1 detects described virtual machine server 3 When, virtual machine server 3 will initiate shared connection and certification request, in described certificate server 2 again by described again After the certification of user profile, the described acquisition module 19 that updates can receive the described redundant configuration that described certificate server 2 sends Quota quota value after information and renewal, described renewal acquisition module 19 is it is also possible that the quota quota value after stating renewal is sent out Deliver to described virtual machine server 3, so that described virtual machine server 3 is divided again according to the quota quota value after described renewal Join the capability value of Virtual Machine Worker disk so that the capacity of the Virtual Machine Worker disk of user can be increased, thus user can continue Using virtual machine.
Further, then refer to Fig. 9, it is a kind of structural representation of configuration module 13 provided in an embodiment of the present invention, Described configuration module 13 may include that extraction unit 131, redundant configuration unit 132;
Described extraction unit 131, during for asking when the document creation receiving described virtual machine server 3 initiation, from Redundant fashion and redundancy proportioning value is extracted in described redundancy configuration information;
After described virtual machine server 3 distributes the capability value of Virtual Machine Worker disk, user can be by described void Plan machine server 3 can initiate document creation request.Initiate when described storage server 1 receives described virtual machine server 3 Document creation request when, described extraction unit 131 can extract redundant fashion from described redundancy configuration information and redundancy is joined Ratio.
Described redundant configuration unit 132, for by described redundant fashion, redundancy proportioning value and the file that created sends To local distributed file system, by described distributed file system to the file being created according to described redundant fashion and superfluous Remaining proportioning value carries out redundant configuration;
After described extraction unit 131 is extracted described redundant fashion and redundancy proportioning value, described redundant configuration unit Described redundant fashion, redundancy proportioning value and the file being created are sent to local distributed file system, by described by 132 Distributed file system carries out redundant configuration to the file being created according to described redundant fashion and redundancy proportioning value, for example, institute The redundant fashion stating extraction unit 131 extraction is erasure code, and redundancy proportioning value is 9:3, then described redundant configuration unit 132 will split into 12 parts the file data being created by described distributed file system, and wherein 9 parts is valid data, 3 parts It is verification data.
Further, then refer to Figure 10, it is that a kind of structure receiving forwarding module 11 provided in an embodiment of the present invention is shown It is intended to, described reception forwarding module 11 may include that protocol detection unit 111, protocol forward unit 112;
Described protocol detection unit 111, for when carrying out shared connection with virtual machine server 3, receiving virtual machine The certification request carrying user profile that server 3 sends, and detect that the described certification that described virtual machine server 3 sends please Seek used storage agreement;
It is mapped in storage server 1 because Virtual Machine Worker disk passes through to share, so when the described Virtual Machine Worker of loading During disk, described virtual machine server 3 will initiate the shared connection of described storage server 1, and send certification request so that Described protocol detection unit 111 can receive the certification request carrying user profile of virtual machine server 3 transmission, now, Described protocol detection unit 111 can also detect the storage that the described certification request that described virtual machine server 3 sends is used Agreement.
Described certification request is forwarded to by described protocol forward unit 112 for the described storage agreement by detecting With the described storage corresponding certificate server of agreement 2;
Wherein, described protocol forward unit 112 may include that
First forwarding subelement 1121, for being SMB smb agreement when used storage agreement is detected When, described certification request is forwarded to by Active Directory ad server by described SMB smb agreement;
Second forwarding subelement 1122, for being NFS nfs agreement when used storage agreement is detected When, described certification request is forwarded to by Light Directory Access Protocol ldap server by described NFS nfs agreement.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile of certificate server 2 transmission and is joined Volume quota value, storage server 1 can be according to described redundancy configuration information, to virtual machine institute corresponding with described user profile The file creating carries out redundant configuration, and controls virtual machine server 3 to distribute corresponding virtual machine by described quota quota value The capability value of scratch diskette is so that distributed nas storage can the redundancy different to the Virtual Machine Worker disk configuration of different user be joined Than, and distribute the Virtual Machine Worker disk of different capabilities values for different users, with meet redundancy proportioning required by each user and Quota quota value, passes through to update quota quota value simultaneously, makes virtual machine server 3 when reloading Virtual Machine Worker disk, The capability value of Virtual Machine Worker disk can be redistributed according to the quota quota value after updating, right such that it is able to simply realize The dilatation of Virtual Machine Worker disk;Further, since Virtual Machine Worker disk can be shared is mapped to storage server 1, so virtual machine Server 3 only needs to the virtual machine image file of installation operation system, thus being conducive to migration and the clone of virtual machine.
Refer to Figure 11, be a kind of structural representation of certificate server 2 provided in an embodiment of the present invention, described certification clothes Business device 2 includes: request receiving module 21, authentication module 22, information sending module 23;
Described request receiving module 21, for receive storage server 1 forwarding certification request, described certification request be by The certification request carrying user profile that virtual machine server 3 sends;
Specifically, described request receiving module 21 can receive the certification request of storage server 1 forwarding, and described certification please The certification request carrying user profile that Seeking Truth is sent by virtual machine server 3.Wherein, described storage server 1 can be Distributed nas storage server, described user profile can comprise the network of user account, password and virtual machine server 3 Address etc..
Described authentication module 22, for being authenticated to described user profile according to described certification request;
Preset user account information and other information, described authentication module 22 is preserved in described certificate server 2 Can detect that the user profile in described certification request whether there is in described preset user account information, if not existing, Then authentification failure, described virtual machine server 3 will be unable to be connected to storage server 1;When described authentication module 22 detects institute When stating the user profile in certification request and being present in described preset user account information, described authentication module 22 can basis Preset user account information detects the legitimacy of the user profile in described certification request, closes when described user profile is detected During method, then described authentication module 22 has passed through the certification to described user profile, and otherwise, the certification to described user profile is lost Lose.
Described information sending module 23, for when by during to the certification of described user profile, by preset and described use Information corresponding redundancy configuration information in family is sent to described storage server 1, so that described storage server 1 is according to described redundancy The file that configuration information is created to described virtual machine server 3 carries out redundant configuration;
Specifically, when described authentication module 22 is by during to the certification of described user profile, described information sending module 23 Corresponding for preset and described user profile redundancy configuration information can be sent to described storage server 1, so that described deposit Storage server 1 carries out redundant configuration according to the file that described redundancy configuration information is created to described virtual machine server 3.Its In, described storage server 1 can receive the document creation request that described virtual machine server 3 sends, now, described storage clothes The literary composition that business device 1 can be created to described virtual machine server 3 according to the redundancy configuration information getting from certificate server 2 Part carries out redundant configuration.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile that certificate server 2 sends, and deposits Storage server 1 can be according to described redundancy configuration information, and the file that virtual machine corresponding with described user profile is created enters Row redundant configuration so that distributed nas storage can be different to the configuration of the Virtual Machine Worker disk of different user redundancy proportionings, with Meet the redundancy proportioning required by each user.
Refer to Figure 12 again, be the structural representation of another kind certificate server 2 provided in an embodiment of the present invention, described recognize Card server 2 can include information preset module 24, request receiving module 21, authentication module 22, information sending module 23, receive Update module 25, renewal sending module 26;
Described information preset module 24, for preset user account information, and is the preset correspondence of described user account information Redundancy configuration information and quota quota value;
Described information preset module 24 can according to the preset corresponding user account information of each user, and be described user The preset corresponding redundancy configuration information of account information and quota quota value.Wherein, described redundancy configuration information includes redundant fashion With redundancy proportioning value, described quota quota value refers to the capability value of Virtual Machine Worker disk.
Described request receiving module 21, for receive storage server 1 forwarding certification request, described certification request be by The certification request carrying user profile that virtual machine server 3 sends;
Specifically, described request receiving module 21 can receive the certification request of storage server 1 forwarding, and described certification please The certification request carrying user profile that Seeking Truth is sent by virtual machine server 3.Wherein, described virtual machine server 3 is by void Plan machine scratch diskette is shared and is mapped in described storage server 1 so that virtual machine server 3 is loading described Virtual Machine Worker disk When can initiate shared connection and certification request.Described storage server 1 can be distributed nas storage server, described use Family information can comprise network address of user account, password and virtual machine server 3 etc..
Described authentication module 22, for being authenticated to described user profile according to described certification request;
Preset user account information and other information, described authentication module 22 is preserved in described certificate server 2 Can detect that the user profile in described certification request whether there is in described preset user account information, if not existing, Then authentification failure, described virtual machine server 3 will be unable to be connected to storage server 1;When described authentication module 22 detects institute When stating the user profile in certification request and being present in described preset user account information, described authentication module 22 can basis Preset user account information detects the legitimacy of the user profile in described certification request, closes when described user profile is detected During method, then described authentication module 22 has passed through the certification to described user profile, and otherwise, the certification to described user profile is lost Lose.
Described information sending module 23, for when by during to the certification of described user profile, by preset and described use Information corresponding redundancy configuration information in family is sent to described storage server 1, so that described storage server 1 is according to described redundancy The file that configuration information is created to described virtual machine server 3 carries out redundant configuration;
Specifically, when described authentication module 22 is by during to the certification of described user profile, described information sending module 23 Corresponding for preset and described user profile redundancy configuration information can be sent to described storage server 1, so that described deposit Storage server 1 carries out redundant configuration according to the file that described redundancy configuration information is created to described virtual machine server 3.
Described information sending module 23 can be also used for when by during to the certification of described user equipment, by preset with institute State user equipment corresponding quota quota value and be sent to described storage server 1, so that described storage server 1 is joined described Volume quota value is sent to described virtual machine server 3 to distribute the appearance of Virtual Machine Worker disk corresponding with described quota quota value Value.
Described reception update module 25, for receiving the expansion being sent using the user equipment of described virtual machine server 3 Hold request, and ask to update described quota quota value according to described dilatation;
Specifically, when the capacity of Virtual Machine Worker disk is expired, the user equipment using described virtual machine server 3 will Initiate dilatation request, now, described reception update module 25 can receive the user equipment institute using described virtual machine server 3 The dilatation request sending, and ask to update described quota quota value according to described dilatation.
Described renewal sending module 26, reloads Virtual Machine Worker disk for described virtual machine server 3 is detected When, the quota quota value after updating will be sent in described storage server 1, so that described storage server 1 is by described renewal It is corresponding with the quota quota value after described renewal to redistribute that quota quota value afterwards is sent to described virtual machine server 3 Virtual Machine Worker disk capability value;
Reload Virtual Machine Worker when certificate server 2 detects described virtual machine server 3 by storage server 1 During disk, described virtual machine server 3 will initiate shared connection and certification request again, leads to again in described certificate server 2 After crossing the certification to described user profile, described renewal sending module 26 can send the quota quota value after renewal to described In storage server 1, so that the quota quota value after described renewal is sent to described virtual machine clothes by described storage server 1 Business device 3 is to redistribute the capability value with the quota quota value corresponding Virtual Machine Worker disk after described renewal;Meanwhile, described Update sending module 26 can also again described redundancy configuration information be sent in described storage server 1, so that described deposit Storage server 1 still can carry out redundancy according to the file that described redundancy configuration information is created to described virtual machine server 3 Configuration.
The embodiment of the present invention is passed through to receive the redundancy configuration information corresponding with user profile of certificate server 2 transmission and is joined Volume quota value, storage server 1 can be according to described redundancy configuration information, to virtual machine institute corresponding with described user profile The file creating carries out redundant configuration, and controls virtual machine server 3 to distribute corresponding virtual machine by described quota quota value The capability value of scratch diskette is so that distributed nas storage can the redundancy different to the Virtual Machine Worker disk configuration of different user be joined Than, and distribute the Virtual Machine Worker disk of different capabilities values for different users, with meet redundancy proportioning required by each user and Quota quota value, passes through to update quota quota value simultaneously, makes virtual machine server 3 when reloading Virtual Machine Worker disk, The capability value of Virtual Machine Worker disk can be redistributed according to the quota quota value after updating, right such that it is able to simply realize The dilatation of Virtual Machine Worker disk;Further, since Virtual Machine Worker disk can be shared is mapped to storage server 1, so virtual machine Server 3 only needs to the virtual machine image file of installation operation system, thus being conducive to migration and the clone of virtual machine.
Embodiments provide another storage server, described storage server can include processor, communication Interface and memorizer (quantity of the processor in storage server can be one or more).Some embodiments of the present invention In, processor, communication interface and memorizer can be connected by communication bus or other modes.
Wherein, described communication interface, for being communicated with certificate server and virtual machine server;
Described memorizer is used for storage program;
Described processor is used for executing described program, to realize
When carrying out shared connection with virtual machine server, what reception virtual machine server sent carries user profile Certification request, and described certification request is forwarded to certificate server;
When described certificate server is by, during to the certification of described user profile, receiving the institute that described certificate server sends Preset redundancy configuration information corresponding with described user profile;
When receiving the document creation request that described virtual machine server is initiated, according to described redundancy configuration information to institute The file creating carries out redundant configuration.
Specifically, before storage server and described virtual machine server are shared and be connected, described virtual machine server is first Install the virtual machine of user, enter back into described virtual machine and pass through to share certain being mapped to storage server by Virtual Machine Worker disk Under individual catalogue, now, user can use described virtual machine by user equipment.Because Virtual Machine Worker disk passes through shared mapping To in storage server, so when loading described Virtual Machine Worker disk, described virtual machine server will initiate described depositing The shared connection of storage server, and send certification request so that described storage server can receive virtual machine server transmission The certification request carrying user profile, and described certification request is forwarded to certificate server.Wherein, described storage service Device can be distributed nas storage server, and described user profile can comprise user account, password and virtual machine server The network address etc..
After described certification request is forwarded to described certificate server by described storage server, storage server can be examined Whether survey described certificate server by the certification to described user profile, or described certificate server can send certification knot Fruit arrives described storage server, when described certificate server is by during to the certification of described user profile, described storage server The preset redundancy configuration information corresponding with described user profile that described certificate server sends can be received.Wherein, institute Stating redundancy configuration information is that in described certificate server, the user corresponding to each user profile is preset by it manager Redundancy configuration information, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
In certificate server after the certification to described user profile, user can initiate document creation by virtual machine Request, that is, described storage server can receive the document creation request that described virtual machine server is initiated, now, described deposit Storage server can enter to the file being created according to getting described redundancy configuration information corresponding with described user profile Row redundant configuration, carries out redundant configuration to the file being created using corresponding redundant fashion and redundancy proportioning value, to realize Frequency converter is carried out to the file in the Virtual Machine Worker disk of each user.
Wherein, described processor described carry out redundancy according to described redundancy configuration information to the file being created and joins executing During the step put, specifically for:
When receiving the document creation request that described virtual machine server is initiated, extract from described redundancy configuration information Redundant fashion and redundancy proportioning value;
Described redundant fashion, redundancy proportioning value and the file being created are sent to local distributed file system, Redundant configuration is carried out to the file being created according to described redundant fashion and redundancy proportioning value by described distributed file system.
Specifically, after described virtual machine server distributes the capability value of Virtual Machine Worker disk, user can pass through Described virtual machine server can initiate document creation request.Send out when described storage server receives described virtual machine server During the document creation request rising, described storage server can extract redundant fashion from described redundancy configuration information and redundancy is joined Ratio.
After described storage server is extracted described redundant fashion and redundancy proportioning value, described storage server is by institute State redundant fashion, redundancy proportioning value and the file being created and be sent to local distributed file system, by described distributed File system carries out redundant configuration to the file being created according to described redundant fashion and redundancy proportioning value, for example, extraction superfluous Remaining mode is erasure code, and redundancy proportioning value is 9:3, then described distributed file system is by the file data being created Split into 12 parts, wherein 9 parts is valid data, 3 parts is verification data.
Described processor is additionally operable to:
Receive the preset quota quota value corresponding with described user equipment that described certificate server sends;
Described quota quota value is sent to described virtual machine server, so that described virtual machine server is according to described Quota quota value distributes the capability value of Virtual Machine Worker disk.
Specifically, after described storage server gets described quota quota value, described storage server can be by institute State quota quota value and be sent to described virtual machine server, so that described virtual machine server is according to described quota quota value point Join the capability value of Virtual Machine Worker disk.
Wherein, described processor is additionally operable to:
Detect whether the total capacity of created file is more than described quota quota value;
When detect created file total capacity be more than described quota quota value when, transmission miscue information to Using the user equipment of described virtual machine server so that described user equipment send dilatation ask described certificate server with Update described quota quota value;
When described virtual machine server is detected and reloading Virtual Machine Worker disk, receive described certificate server and send Quota quota value after renewal, and the quota quota value after described renewal is sent to described virtual machine server, so that institute State the capability value that virtual machine server redistributes Virtual Machine Worker disk according to the quota quota value after described renewal.
Specifically, described certificate server is detected by the certification to described user profile in described storage server Afterwards, whether the total capacity of the file that described storage server can be created with real-time detection is more than described quota quota value, if inspection Measure less than described quota quota value, then described storage server can continue to the literary composition that described virtual machine server is initiated Part request to create, and redundant configuration is carried out to the file being created according to described redundancy configuration information;If detecting more than described Quota quota value, illustrates that the capacity of Virtual Machine Worker disk is full.
When detect created file total capacity be more than described quota quota value when, transmission miscue information to Using the user equipment of described virtual machine server, full with the capacity that notifies Virtual Machine Worker disk described in user, now, described User equipment can send dilatation and ask described certificate server to update described quota quota value.
When described storage server detects described virtual machine server and reloads Virtual Machine Worker disk, virtual machine takes Business device will initiate shared connection and certification request, in described certificate server again by the certification to described user profile again Afterwards, the quota after described storage server can receive the described redundancy configuration information of described certificate server transmission and update Quota value, the quota quota value after described renewal can be sent to described virtual machine server by described storage server, with Make described virtual machine server redistribute the capability value of Virtual Machine Worker disk according to the quota quota value after described renewal, make Obtain the capacity of the Virtual Machine Worker disk that can increase user, thus user can be continuing with virtual machine.
Wherein, described processor is additionally operable to:
The corresponding share directory of preset and described virtual machine server;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server are shared mapping relations.
Specifically, before storage server and described virtual machine server are shared and be connected, described storage server is permissible The corresponding share directory of preset and described virtual machine server, simultaneously described virtual machine server first install the virtual of user Machine, is entered back into described virtual machine and is mapped under preset share directory in storage server Virtual Machine Worker disk by shared, Now, user can use described virtual machine by user equipment.
Wherein, described processor receives virtual machine clothes described in execution when carrying out shared connection with virtual machine server The certification request carrying user profile that business device sends, and when described certification request being forwarded to the step of certificate server, Specifically for:
When carrying out shared connection with virtual machine server, what reception virtual machine server sent carries user profile Certification request, and detect the storage agreement that the described certification request that described virtual machine server sends is used;
By the described storage agreement detecting, described certification request is forwarded to and the described storage corresponding certification of agreement Server.
Specifically, it is mapped in storage server because Virtual Machine Worker disk passes through to share, thus described virtual when loading During machine scratch diskette, described virtual machine server will initiate the shared connection of described storage server, and sends certification request, Described storage server is allow to receive the certification request carrying user profile of virtual machine server transmission, now, institute State the storage agreement that storage server can also detect that the described certification request that described virtual machine server sends is used.
Wherein, described certification request is forwarded to by described processor in the described described storage agreement by detecting of execution During with the step of the described storage corresponding certificate server of agreement, specifically for:
When used storage agreement is detected for SMB smb agreement, by described SMB Described certification request is forwarded to Active Directory ad server by smb agreement;Or,
When used storage agreement is detected for NFS nfs agreement, by described NFS Described certification request is forwarded to Light Directory Access Protocol ldap server by nfs agreement.
Specifically, described certification request can be forwarded to by described storage server by the described storage agreement detecting With the described storage corresponding certificate server of agreement.Further, when detect used storage agreement be server info During block smb agreement, described certification request is forwarded to by Active Directory ad server by described SMB smb agreement, And in follow-up process, described storage server all will be using smb agreement and described certificate server and described virtual machine clothes Business device interacts;Or, when used storage agreement is detected for NFS nfs agreement, by described net Described certification request is forwarded to Light Directory Access Protocol ldap server by network file system nfs agreement, and in rear afterflow Cheng Zhong, described storage server all will be interacted with described certificate server and described virtual machine server using nfs agreement.
The embodiment of the present invention pass through to receive the redundancy configuration information corresponding with user profile that sent of certificate server and Quota quota value, can be according to described redundancy configuration information, the file that virtual machine corresponding with described user profile is created Carry out redundant configuration, and control virtual machine server to distribute the appearance of corresponding Virtual Machine Worker disk by described quota quota value Value is so that distributed nas storage can configure different redundancy proportionings to the Virtual Machine Worker disk of different user, and is difference User distribute different capabilities value Virtual Machine Worker disk, to meet redundancy proportioning and the quota quota value required by each user, Simultaneously because Virtual Machine Worker disk can be shared is mapped to storage server, so virtual machine server has only needed to installation operation The virtual machine image file of system, thus be conducive to migration and the clone of virtual machine.
Embodiments provide another certificate server, described certificate server can include processor, communication Interface and memorizer (quantity of the processor in certificate server can be one or more).Some embodiments of the present invention In, processor, communication interface and memorizer can be connected by communication bus or other modes.
Wherein, described communication interface, for being communicated with storage server;
Described memorizer is used for storage program;
Described processor is used for executing described program, to realize
Receive the certification request that storage server forwards, described certification request is by carrying that virtual machine server sends The certification request of user profile;
According to described certification request, described user profile is authenticated;
When by during to the certification of described user profile, by corresponding for preset and described user profile redundancy configuration information Be sent to described storage server so that described storage server according to described redundancy configuration information to described virtual machine server The file being created carries out redundant configuration.
Specifically, certificate server can receive the certification request of storage server forwarding, and described certification request is by void The certification request carrying user profile that plan machine server sends.Wherein, described storage server can be deposited for distributed nas Storage server, described user profile can comprise network address of user account, password and virtual machine server etc..
Preset user account information and other information is preserved, described certificate server can in described certificate server To detect the user profile in described certification request with the presence or absence of in described preset user account information, if not existing, Authentification failure, described virtual machine server will be unable to be connected to storage server;When the user in described certification request is detected When information is present in described preset user account information, detected in described certification request according to preset user account information User profile legitimacy, when described user profile is detected and being legal, then passed through the certification to described user profile, no Then, the authentification failure to described user profile.
When described certificate server is by during to the certification of described user profile, described certificate server can will be preset Redundancy configuration information corresponding with described user profile is sent to described storage server, so that described storage server is according to institute State the file that redundancy configuration information created to described virtual machine server and carry out redundant configuration.Wherein, described storage server The document creation request that described virtual machine server sends can be received, now, described storage server can be according to from certification The file that the redundancy configuration information getting in server is created to described virtual machine server carries out redundant configuration.
Wherein, described processor is additionally operable to:
Preset user account information, and be the preset corresponding redundancy configuration information of described user account information and quota Quota value;
Wherein, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
Certificate server can according to the preset corresponding user account information of each user, and be described user account information Preset corresponding redundancy configuration information and quota quota value.Wherein, described redundancy configuration information includes redundant fashion and redundancy is joined Ratio, described quota quota value refers to the capability value of Virtual Machine Worker disk.
Described processor execution described when by, during to the certification of described user profile, preset and described user being believed Cease corresponding redundancy configuration information and be sent to described storage server, so that described storage server is believed according to described redundant configuration When ceasing the step that the file that described virtual machine server is created carries out redundant configuration, specifically for:
When by during to the certification of described user equipment, by corresponding for preset and described user equipment quota quota value It is sent to described storage server, so that described quota quota value is sent to described virtual machine service by described storage server Device is to distribute the capability value of Virtual Machine Worker disk corresponding with described quota quota value;
And corresponding for preset and described user profile redundancy configuration information is sent to described storage server, so that institute State storage server and redundant configuration is carried out according to the file that described redundancy configuration information is created to described virtual machine server.
Wherein, described processor is additionally operable to:
Receive and asked using the dilatation that the user equipment of described virtual machine server is sent, and asked according to described dilatation Update described quota quota value;
When described virtual machine server is detected and reloading Virtual Machine Worker disk, the quota after updating will be sent Quota value is in described storage server, so that the quota quota value after described renewal is sent to institute by described storage server State virtual machine server to redistribute the capability value with the quota quota value corresponding Virtual Machine Worker disk after described renewal.
Specifically, when the capacity of Virtual Machine Worker disk is expired, the user equipment using described virtual machine server will Initiate dilatation request, now, described certificate server can receive and be sent using the user equipment of described virtual machine server Dilatation request, and according to described dilatation ask update described quota quota value.
Reload Virtual Machine Worker disk when certificate server detects described virtual machine server by storage server When, described virtual machine server will initiate shared connection and certification request, in described certificate server again by right again After the certification of described user profile, certificate server can send the quota quota value after renewal to described storage server, So that described storage server by the quota quota value after described renewal be sent to described virtual machine server redistributing and The capability value of the quota quota value corresponding Virtual Machine Worker disk after described renewal;Meanwhile, described certificate server can also weigh Newly described redundancy configuration information is sent in described storage server, so that described storage server still can be according to described The file that redundancy configuration information is created to described virtual machine server carries out redundant configuration.
The embodiment of the present invention pass through to receive the redundancy configuration information corresponding with user profile that sent of certificate server and Quota quota value, storage server can be according to described redundancy configuration information, to virtual machine institute corresponding with described user profile The file creating carries out redundant configuration, and controls virtual machine server to distribute corresponding virtual machine by described quota quota value The capability value of scratch diskette is so that distributed nas storage can the redundancy different to the Virtual Machine Worker disk configuration of different user be joined Than, and distribute the Virtual Machine Worker disk of different capabilities values for different users, with meet redundancy proportioning required by each user and Quota quota value, passes through to update quota quota value simultaneously, makes virtual machine server when reloading Virtual Machine Worker disk, can To redistribute the capability value of Virtual Machine Worker disk according to the quota quota value after updating, such that it is able to simply realize to void The dilatation of plan machine scratch diskette;Further, since Virtual Machine Worker disk can be shared is mapped to storage server, so virtual machine service Device only needs to the virtual machine image file of installation operation system, thus being conducive to migration and the clone of virtual machine.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (read-only memory, rom) or random access memory (random access Memory, ram) etc..
Above disclosed be only present pre-ferred embodiments, certainly the right model of the present invention can not be limited with this Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (14)

1. a kind of method of virtual machine configuration is it is characterised in that include:
When carrying out shared connection with virtual machine server, receive the certification carrying user profile that virtual machine server sends Request, and described certification request is forwarded to certificate server;
When described certificate server is preset by during to the certification of described user profile, receiving the institute that described certificate server sends Redundancy configuration information corresponding with described user profile and user equipment corresponding quota quota value;
Described quota quota value is sent to described virtual machine server, so that described virtual machine server is according to described quota Quota value distributes the capability value of Virtual Machine Worker disk;
When receiving the document creation request that described virtual machine server is initiated, whether the total capacity of the created file of detection More than described quota quota value;
When the total capacity created file is detected is less than described quota quota value, according to described redundancy configuration information pair The file being created carries out redundant configuration;
When the total capacity created file is detected is more than described quota quota value, send miscue information to use The user equipment of described virtual machine server, so that described user equipment sends dilatation and asks described certificate server to update Described quota quota value;
When described virtual machine server is detected and reloading Virtual Machine Worker disk, receive described certificate server and send and update Quota quota value afterwards, and the quota quota value after described renewal is sent to described virtual machine server, so that described void Plan machine server redistributes the capability value of Virtual Machine Worker disk according to the quota quota value after described renewal.
2. the method for claim 1 it is characterised in that described according to described redundancy configuration information to the file being created Carry out redundant configuration, comprising:
Redundant fashion and redundancy proportioning value is extracted from described redundancy configuration information;
Described redundant fashion, redundancy proportioning value and the file being created are sent to local distributed file system, by institute State distributed file system and according to described redundant fashion and redundancy proportioning value, redundant configuration is carried out to the file being created.
3. method as claimed in claim 1 or 2 is it is characterised in that ought carry out shared connection with virtual machine server described When, receive the certification request carrying user profile that virtual machine server sends, and described certification request is forwarded to certification Before server, also include:
The corresponding share directory of preset and described virtual machine server;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server are shared mapping relations.
4. method as claimed in claim 3 it is characterised in that described when carrying out shared connection with virtual machine server, connect Receive the certification request carrying user profile that virtual machine server sends, and described certification request is forwarded to authentication service Device, comprising:
When carrying out shared connection with virtual machine server, receive the certification carrying user profile that virtual machine server sends Request, and detect the storage agreement that the described certification request that described virtual machine server sends is used;
By the described storage agreement detecting, described certification request is forwarded to and the described storage corresponding authentication service of agreement Device.
5. method as claimed in claim 4 it is characterised in that described by the described storage agreement that detects by described certification Request is forwarded to and the described storage corresponding certificate server of agreement, comprising:
When used storage agreement is detected for SMB smb agreement, assisted by described SMB smb Described certification request is forwarded to Active Directory ad server by view;Or,
When used storage agreement is detected for NFS nfs agreement, assisted by described NFS nfs Described certification request is forwarded to Light Directory Access Protocol ldap server by view.
6. a kind of method of virtual machine configuration is it is characterised in that include:
Receive the certification request that storage server forwards, described certification request is to carry user by what virtual machine server sent The certification request of information;
According to described certification request, described user profile is authenticated;
When by during to the certification of described user profile, by corresponding for preset and described user profile redundancy configuration information and use Equipment corresponding quota quota value in family is sent to described storage server, so that described storage server is by described quota quota Value is sent to described virtual machine server to distribute the capability value of Virtual Machine Worker disk corresponding with described quota quota value, and When the total capacity file that described virtual machine server is created is detected is less than described quota quota value according to described redundancy The file that configuration information is created to described virtual machine server carries out redundant configuration, and the total of created file is being detected Capacity is more than transmission miscue information during described quota quota value to the user equipment using described virtual machine server;
When receiving the dilatation request that described user equipment is sent according to described miscue information, please according to described dilatation Seek the described quota quota value of renewal;
When described virtual machine server is detected and reloading Virtual Machine Worker disk, the quota quota value after updating will be sent To in described storage server so that described storage server by described update after quota quota value be sent to described virtual Machine server is to redistribute the capability value with the quota quota value corresponding Virtual Machine Worker disk after described renewal.
7. method as claimed in claim 6 it is characterised in that described receive storage server forward certification request it Before, also include:
Preset user account information, and be the preset corresponding redundancy configuration information of described user account information and quota quota value;
Wherein, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
8. a kind of storage server is it is characterised in that include:
Receive forwarding module, for when carrying out shared connection with virtual machine server, receiving taking of virtual machine server transmission Certification request with user profile, and described certification request is forwarded to certificate server;
First information receiver module, for when described certificate server described by, during to the certification of described user profile, receiving The preset redundancy configuration information corresponding with described user profile that certificate server sends;
Second information receiving module, for receiving the preset quota corresponding with user equipment that described certificate server sends Quota value;
Quota value sending module, for described quota quota value is sent to described virtual machine server, so that described virtual machine Server distributes the capability value of Virtual Machine Worker disk according to described quota quota value;
Capacity check module, for when receiving the document creation request that described virtual machine server is initiated, detection is created The total capacity of file whether be more than described quota quota value;
Configuration module, during for being less than described quota quota value when the total capacity created file is detected, according to described superfluous Remaining configuration information carries out redundant configuration to the file being created;
Prompting sending module, during for being more than described quota quota value when the total capacity created file is detected, sends wrong By mistake information is to the user equipment using described virtual machine server so that the transmission dilatation of described user equipment ask described Certificate server is to update described quota quota value;
Update acquisition module, described for when described virtual machine server is detected and reloading Virtual Machine Worker disk, receiving Certificate server sends the quota quota value after updating, and the quota quota value after described renewal is sent to described virtual machine Server, so that described virtual machine server redistributes Virtual Machine Worker disk according to the quota quota value after described renewal Capability value.
9. storage server as claimed in claim 8 is it is characterised in that described configuration module includes:
Extraction unit, for when receiving the document creation request that described virtual machine server is initiated, from described redundant configuration Redundant fashion and redundancy proportioning value is extracted in information;
Redundant configuration unit, for being sent to local dividing by described redundant fashion, redundancy proportioning value and the file being created Cloth file system, is entered according to described redundant fashion and redundancy proportioning value to the file being created by described distributed file system Row redundant configuration.
10. storage server as claimed in claim 8 or 9 is it is characterised in that also include:
Catalogue preset module, for the corresponding share directory of preset and described virtual machine server;
Wherein, described share directory and the Virtual Machine Worker disk in described virtual machine server are shared mapping relations.
11. storage servers as claimed in claim 10 are it is characterised in that described reception forwarding module includes:
Protocol detection unit, for when carrying out shared connection with virtual machine server, receiving taking of virtual machine server transmission Certification request with user profile, and detect the storage association that the described certification request that described virtual machine server sends is used View;
Described certification request is forwarded to and described storage association by protocol forward unit for the described storage agreement by detecting Discuss corresponding certificate server.
12. storage servers as claimed in claim 11 are it is characterised in that described protocol forward unit includes:
First forwarding subelement, for when used storage agreement is detected for SMB smb agreement, by institute State SMB smb agreement and described certification request is forwarded to Active Directory ad server;
Second forwarding subelement, for when used storage agreement is detected for NFS nfs agreement, by institute State NFS nfs agreement and described certification request is forwarded to Light Directory Access Protocol ldap server.
A kind of 13. certificate servers are it is characterised in that include:
Request receiving module, for receiving the certification request of storage server forwarding, described certification request is by virtual machine service The certification request carrying user profile that device sends;
Authentication module, for being authenticated to described user profile according to described certification request;
Information sending module, for when by during to the certification of described user profile, will be corresponding for preset and described user profile Redundancy configuration information and user equipment corresponding quota quota value be sent to described storage server so that described storage clothes It is corresponding virtual with described quota quota value to distribute that described quota quota value is sent to described virtual machine server by business device The capability value of machine scratch diskette, and when the total capacity created file is detected is less than described quota quota value according to described The file that redundancy configuration information is created to described virtual machine server carries out redundant configuration, and described virtual machine clothes is being detected The total capacity of the file that business device is created is more than transmission miscue information during described quota quota value to using described virtual machine The user equipment of server;
Receive update module, receive, for working as, the dilatation request that described user equipment is sent according to described miscue information When, ask to update described quota quota value according to described dilatation;
Update sending module, for when described virtual machine server is detected and reloading Virtual Machine Worker disk, sending more Quota quota value after new is in described storage server, so that described storage server is by quota quota after described renewal Value is sent to described virtual machine server to redistribute and the quota quota value corresponding Virtual Machine Worker disk after described renewal Capability value.
14. certificate servers as claimed in claim 13 are it is characterised in that also include:
Information preset module, for preset user account information, and is the preset corresponding redundant configuration of described user account information Information and quota quota value;
Wherein, described redundancy configuration information includes redundant fashion and redundancy proportioning value.
CN201310570990.8A 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment Active CN103618767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310570990.8A CN103618767B (en) 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310570990.8A CN103618767B (en) 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment

Publications (2)

Publication Number Publication Date
CN103618767A CN103618767A (en) 2014-03-05
CN103618767B true CN103618767B (en) 2017-01-18

Family

ID=50169471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310570990.8A Active CN103618767B (en) 2013-11-15 2013-11-15 Virtual machine configuration method and related equipment

Country Status (1)

Country Link
CN (1) CN103618767B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094692B (en) * 2014-05-22 2018-07-13 Tcl集团股份有限公司 A kind of Disk Quotas control method and system based on android system
CN107515725B (en) * 2016-06-16 2022-12-09 中兴通讯股份有限公司 Method and device for sharing disk by core network virtualization system and network management MANO system
CN110413584B (en) * 2019-07-24 2021-04-02 华云数据控股集团有限公司 Data storage method, device, equipment and storage medium
CN111240798A (en) * 2019-12-31 2020-06-05 北京安码科技有限公司 Method and system for initializing virtual machine based on mounted file system, electronic device and storage medium
CN117453816B (en) * 2023-10-24 2024-05-07 上海宁盾信息科技有限公司 User data unifying method, system, computer and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270161A (en) * 2011-06-09 2011-12-07 华中科技大学 Methods for storing, reading and recovering erasure code-based multistage fault-tolerant data
CN102333103A (en) * 2010-07-12 2012-01-25 戴元顺 Cloud storage system
CN102594899A (en) * 2011-12-31 2012-07-18 成都市华为赛门铁克科技有限公司 Storage service method and storage server using the same
CN103297496A (en) * 2012-03-02 2013-09-11 国际商业机器公司 Method and system of enhanced storage quota management for cloud computing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333103A (en) * 2010-07-12 2012-01-25 戴元顺 Cloud storage system
CN102270161A (en) * 2011-06-09 2011-12-07 华中科技大学 Methods for storing, reading and recovering erasure code-based multistage fault-tolerant data
CN102594899A (en) * 2011-12-31 2012-07-18 成都市华为赛门铁克科技有限公司 Storage service method and storage server using the same
CN103297496A (en) * 2012-03-02 2013-09-11 国际商业机器公司 Method and system of enhanced storage quota management for cloud computing system

Also Published As

Publication number Publication date
CN103618767A (en) 2014-03-05

Similar Documents

Publication Publication Date Title
CN103618767B (en) Virtual machine configuration method and related equipment
CN102947797B (en) The online service using directory feature extending transversely accesses and controls
CN104579732B (en) Virtualize management method, the device and system of network function network element
KR101868489B1 (en) Management of computing sessions
CN103491144B (en) A kind of construction method of Internet virtual platform
EP3014434B1 (en) Management of computing sessions
US20150067135A1 (en) Member-oriented hybrid cloud operating system architecture and communication method thereof
US9047443B2 (en) Data federation system and method for sociality storage service in cloud computing
EP2706700A1 (en) Computer account management system and implementation method thereof
KR101840222B1 (en) Management of computing sessions
CN103810444B (en) The method and system of multi-tenant application isolation in a kind of cloud computing platform
US20150006614A1 (en) Management of computing sessions
CN105094897B (en) A kind of virtual machine starting method, cloud access equipment and cloud computing center
CN105554015A (en) Management network and method for multi-tenant container cloud computing system
US20160057019A1 (en) Integrated cloud data center management
CN104168333A (en) Working method of PROXZONE service platform
CN106301822A (en) A kind of methods, devices and systems that AP is configured
CN106130843A (en) A kind of internet protocol address management system and method
CN110138577A (en) Cluster creation method, first server and readable storage medium storing program for executing
CN113821268A (en) Kubernetes network plug-in method fused with OpenStack Neutron
KR20150124001A (en) System for web hosting based cloud service
CN109474700A (en) Cut-in method, storage medium, client and the memory node of iSCSI client
CN106576068B (en) A kind of software security verification method, equipment and system
CN107707517A (en) A kind of HTTPs handshake methods, device and system
KR101250881B1 (en) Method for doubly processing data of block storage service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant