CN104765571A - Virtual data writing and reading method and system - Google Patents

Virtual data writing and reading method and system Download PDF

Info

Publication number
CN104765571A
CN104765571A CN201510117261.6A CN201510117261A CN104765571A CN 104765571 A CN104765571 A CN 104765571A CN 201510117261 A CN201510117261 A CN 201510117261A CN 104765571 A CN104765571 A CN 104765571A
Authority
CN
China
Prior art keywords
write
reading
virtual data
storage area
virtual
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.)
Pending
Application number
CN201510117261.6A
Other languages
Chinese (zh)
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.)
Sangfor Network Technology Shenzhen Co Ltd
Original Assignee
Sangfor Network Technology Shenzhen 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 Sangfor Network Technology Shenzhen Co Ltd filed Critical Sangfor Network Technology Shenzhen Co Ltd
Priority to CN201510117261.6A priority Critical patent/CN104765571A/en
Publication of CN104765571A publication Critical patent/CN104765571A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses a virtual data writing method. The virtual data writing method comprises the following steps of receiving a virtual data writing request; obtaining a writing object and writing attributes of the writing object after the virtual data writing request is received and determining a first storage area corresponding to the writing attributes, wherein the writing request is generated and triggered by the writing object; writing virtual data corresponding to the writing request into the first storage area. The invention also provides a virtual data reading method, a virtual data writing system and a virtual data reading system. Compared with the prior art, the reduction on the waste of the storage space and computational resources is implemented and the difficulty of data processing and data management is reduced.

Description

Virtual data write, the method and system read
Technical field
The present invention relates to virtual store field, the method and system particularly relate to virtual data write, reading.
Background technology
In virtual storage system traditional at present, due to the data that virtual machine produces cannot be distinguished, and then cause the data that virtual machine produces to be carried out classification process, make in traditional virtual storage system, virtual-machine data integrally can only be stored, but the memory attribute of the application in virtual machine or file is not identical.Such as: some particular importance data needs three parts of redundancies, and a redundant data of some data, just whole virtual-machine data can only be stored by most highly redundant requirement in traditional virtual storage system, cause the significant wastage of storage space and computational resource, and then the read-write time delay of virtual storage system is strengthened, Consumer's Experience reduces, and reading and writing data pressure is large, even can threaten the stability of whole virtual storage system.Again such as: if some data need cryptographic storage in virtual machine, then need that the data of whole virtual machine are all encrypted operation and just can achieve the goal, greatly reduce the dirigibility of data management, add the difficulty of data management.To sum up, in existing virtual storage system, virtual-machine data is integrally stored, cause the significant wastage of storage space and computational resource, considerably increase the difficulty of data processing and data management.Therefore, existing virtual storage system cannot distinguish data in virtual machine and the problem that stores of carrying out classifying is anxious treats that inventor solves.
Foregoing, only for auxiliary understanding technical scheme of the present invention, does not represent and admits that foregoing is prior art.
Summary of the invention
Fundamental purpose of the present invention is the method and system providing a kind of virtual data to write, read, and is intended to solve existing virtual storage system and cannot distinguishes data in virtual machine and carry out the technical matters stored of classifying.
For achieving the above object, the invention provides a kind of virtual store wiring method, described virtual store wiring method comprises the following steps:
Receive the write request of virtual data;
After the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute, said write object is the object triggering said write request;
At the virtual data that described first storage area write is corresponding with said write request.
Preferably, before the step of described reception virtual data write request, also comprise:
First configuration interface is provided, selects write object to be also said write object configuration write attribute for user based on described first configuration interface;
When detecting the complete instruction of configuration that user sends based on described first configuration interface, set up the corresponding relation of write object and said write attribute;
For said write attribute configuration first storage area, and set up the corresponding relation of said write attribute and described first storage area.
Preferably, after the step of the corresponding relation of the write attribute described in described foundation and described first storage area, also comprise:
First amendment interface is provided, selects write object for user based on described first amendment interface and revise the write attribute of said write object;
When detecting user based on the described first complete instruction of the amendment amendment that sends of interface, the corresponding relation of amendment said write object and said write attribute.
For achieving the above object, the present invention also provides a kind of virtual data read method further, and described virtual data read method comprises the following steps:
Receive the read requests of virtual data;
After receiving the read requests of virtual data, obtain and produce the reading object of described read requests and the reading attributes of described reading object, determine second storage area corresponding with described reading attributes, described reading object is trigger the object of described read requests;
Read the virtual data corresponding with described read requests at described second storage area and be sent to described reading object.
Preferably, before the step of the read requests of described reception virtual data, also comprise:
Second configuration interface is provided, selects reading object to be also described reading object configuration reading attributes for user based on described second configuration interface;
When detecting the complete instruction of configuration that user sends based on described second configuration interface, set up the corresponding relation of described reading object and described reading attributes;
For described reading attributes configures the second storage area, and set up the corresponding relation of described reading attributes and described second storage area.
Preferably, described set up the step of the corresponding relation of described reading attributes and described second storage area after, also comprise:
Second amendment interface is provided, selects reading object for user based on described second amendment interface and revise the reading attributes of described reading object;
When detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revise the corresponding relation of described reading object and described reading attributes.
For achieving the above object, the present invention is further a kind of virtual data writing system also, and described virtual data writing system comprises:
First receiver module, receives the write request of virtual data;
First processing module, after the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute, said write object is the object triggering said write request;
Writing module, at the virtual data that described first storage area write is corresponding with said write request.
Preferably, described virtual data writing system also comprises:
First interface provides module, for providing the first configuration interface, selects write object to be also said write object configuration write attribute for user based on described first configuration interface;
First creation module, for when detecting the complete instruction of configuration that user sends based on described first configuration interface, sets up the corresponding relation of write object and said write attribute; Also for being said write attribute configuration first storage area, and set up the corresponding relation of said write attribute and described first storage area.
For achieving the above object, the present invention is further a kind of virtual data reading system also, and described virtual data reading system comprises:
Second receiver module, for receiving the read requests of virtual data;
Second processing module, for after receiving the read requests of virtual data, obtain and produce the reading object of described read requests and the reading attributes of described reading object, determine second storage area corresponding with described reading attributes, described reading object is trigger the object of described read requests;
Read module, for reading the virtual data corresponding with described read requests at described second storage area and be sent to described reading object.
Preferably, described virtual data reading system also comprises:
Second contact surface provides module, for providing the second amendment interface, selecting reading object for user and revising the reading attributes of described reading object based on described second amendment interface;
Second creation module, for when detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revises the corresponding relation of described reading object and described reading attributes.
Relative to prior art, the present invention stores by distinguishing data in virtual machine and carrying out classification, decreases the waste of storage space and computational resource, reduces the difficulty of data processing and data management.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of virtual data wiring method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of virtual data wiring method second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of virtual data wiring method the 3rd embodiment of the present invention;
Fig. 4 is the schematic flow sheet of virtual data read method first embodiment of the present invention;
Fig. 5 is the schematic flow sheet of virtual data read method second embodiment of the present invention;
Fig. 6 is the schematic flow sheet of virtual data read method the 3rd embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of virtual data writing system first embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of virtual data writing system second embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram of virtual data reading system first embodiment of the present invention;
Figure 10 is the high-level schematic functional block diagram of virtual data reading system second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Be described further with regard to technical scheme of the present invention below in conjunction with drawings and the specific embodiments.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, be the schematic flow sheet of the first embodiment of a kind of virtual data wiring method of the present invention;
It is emphasized that: process flow diagram shown in Fig. 1 is only a preferred embodiment, those skilled in the art is when knowing, any embodiment built around inventive concept should not depart from the scope contained in following technical scheme:
Receive the write request of virtual data; After the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute; At the virtual data that described first storage area write is corresponding with said write request.Below the concrete steps that the present embodiment progressively realizes virtual data wiring method:
Step S10, receives virtual data write request;
In embodiments of the present invention, the main body performing virtual data wiring method of the present invention can be terminal (such as, server, virtual machine etc.), be further carried in the virtual data write application (such as, virtual data write software) of end side.Be preferably virtual data write application in embodiments of the present invention.
In the present embodiment, described virtual data write request can be, when carrying out data storage by the application in virtual machine or file, send, the write request of virtual data to the storage system in virtual machine.Described virtual data write request, can comprise following information: an order writing data; Article one, produce the application of described request or the address information of file.In the present embodiment, virtual data write request is received by the client utility be loaded in dummy machine system, described client utility can monitor the virtual data write request of virutal machine memory storage system, when the application in virtual machine or file send virtual data write request, described client utility just can catch described request before described request reaches storage area, and can process described request, again described request is sent after treatment, like this, all virtual data write requests of the storage system in virtual machine all can through the process of client utility.
In other embodiments of the invention, also the virtual data write request of virutal machine memory storage system can be monitored by the program segment of the information processing of hook in dummy machine system, when the application in virtual machine or file send virtual data write request, before described request reaches storage area, catch described request, preferred described program segment also can be linked up with in the storage system of described virtual machine; Or the virtual data write request of virutal machine memory storage system is monitored by the hook program of a hook in dummy machine system, when the application in virtual machine or file send virtual data write request, described request was caught before described request reaches storage area, and described request is modified, preferred described hook program also can be linked up with in the storage system in described virtual machine.
Step S20, after the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute, said write object is the object triggering said write request;
In the present embodiment, said write object comprises application in virtual machine and file, and said write object can send virtual data write request to storage area, the virtual data that described storage area write said write object sends.Client utility in virtual machine is after the request of acquisition said write, said write request is analyzed, obtain wherein relevant with the write object producing said write request information, and determine the write object producing said write request, according to the corresponding relation of the write object preset with write attribute, determine the write attribute that said write object is corresponding, according to the write attribute preset and the corresponding relation of storage area, determine the first storage area that said write attribute is corresponding.Said write attribute includes but not limited to: storage medium, storage redundancy number, whether encrypt, whether read-only, whether visible, compression, duplicate removal.
Preferably, the client utility in described virtual machine, according to the first storage area determined, sends a virtual data write request to described first storage area.In the virtual data write request that also can be sent by write object by the client utility in described virtual machine, the information of address, pertinent storage area is modified, the first storage area is revised as in the address of pertinent storage area in request, and amended request is sent to the first storage area.
Step S30, at the virtual data that described first storage area write is corresponding with said write request.
In the present embodiment, described first storage area is after receiving the virtual data write request sent by described client utility, and described first storage area is waited for and received the virtual data corresponding with said write request that said write object sends and preserve described virtual data.Preferably, described virtual data also can be included in described virtual data write request, includes in said write request: storage area address to be written, relevant information, the virtual data to be written writing data command, write object.Described first storage area identifies the order of write data after receiving said write request, read and preserve virtual data wherein.
Adopt technique scheme, relative to prior art, by distinguishing the virtual data writing storage area in virtual machine, carry out classification to the virtual data of write storage area to store, storage space and computational resource are saved, reduce the write time delay of virtual storage system, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
As shown in Figure 2, be the schematic flow sheet of the second embodiment of the wiring method of a kind of virtual data of the present invention.
Based on above-mentioned first embodiment, before described step S10, also comprise:
Step S11, provides the first configuration interface, selects write object to be also said write object configuration write attribute for user based on described first configuration interface;
First configuration interface is provided, selects write object to be also said write object configuration write attribute for user based on described first configuration interface.Create in virtual storage system process, virtual memory management system sends the instruction of write attribute configuration, when virtual memory management system configuration module detects the instruction of said write attribute configuration, write object is selected to be also said write object configuration write attribute based on described first configuration interface.Preferably, described first configuration interface provides the write object in described virtual machine to select for user, and correspondence provides default write attribute select for user and configure to said write object, repeat successively to select write object and the step of configuration write attribute, until the configuration of all write objects is complete.Certainly, user also only can write the write instruction of object by configuration section.Said write object can be application single in virtual machine and file, also can be the set of multiple application in virtual machine or multiple file.The write attribute of said write object can be single as encryption, also can be the multiple as storage medium, storage redundancy number, the set of whether encrypting of combination.
Step S12, when detecting the complete instruction of configuration that user sends based on described first configuration interface, sets up the corresponding relation of write object and said write attribute;
In the present embodiment, when detecting the complete instruction of configuration that user sends based on described first configuration interface, and when virtual memory management systems scan is to when existing the write object not configuring write attribute, automatically configure default write attribute to the write object not configuring write attribute by described virtual memory management system.Automatically configure the step of write attribute in described virtual storage system before, there is provided and remind interface, select whether automatically to be configured by the write attribute preset by virtual storage system for user, if user determines automatically to be configured by system based on described prompting interface, then complete the configuration of said write attribute; If user selects automatically not configure based on described prompting interface, then return the first configuration interface, perform the configuration of the write object not configuring write attribute.When detecting the complete instruction of configuration that user sends based on described first configuration interface, setting up the corresponding relation of write object and said write attribute, and the corresponding relation of said write object and said write attribute is sent to described client utility.
The corresponding relation of said write object and said write attribute, it can be relation one to one, by a corresponding write attribute of write object, also can be the corresponding relation of multi-to-multi, a write object can corresponding multiple write attribute, and multiple write object can corresponding same write attribute.
Step S13, is said write attribute configuration first storage area, and sets up the corresponding relation of said write attribute and described first storage area.
In the present embodiment, virtual storage system is said write attribute configuration first storage area, and set up the corresponding relation of said write attribute and described first storage area, and the corresponding relation of said write attribute and described first storage area is sent to client utility.
Further, with reference to figure 3, after described step S13, also comprise:
S14, provides the first amendment interface, selects write object for user and revises the write attribute of said write object based on described first amendment interface;
S15, when detecting user based on the described first complete instruction of the amendment amendment that sends of interface, the corresponding relation of amendment said write object and said write attribute.
In the present embodiment, provide the first amendment interface, select write object for user based on described first amendment interface and revise the write attribute of said write object.User, when needing the write attribute of amendment write object, based on described amendment interface, by menu setecting write attribute modification option, writes attribute modification instruction to trigger; Or user, when needing the write attribute of amendment write object, by the write attribute modification shortcut icon of desktop, triggers the instruction of write attribute modification.Described amendment comprises a newly-built write object, and is described newly-built write object configuration write attribute.When detecting user based on the described first complete instruction of the amendment amendment that sends of interface, the corresponding relation of amendment said write object and said write attribute, and perform step S10.
Adopt technique scheme, relative to prior art, by configuring write object and attribute thereof in advance, the virtual data writing storage area is distinguished in virtual machine by the write attribute writing object, carry out classification to the virtual data of write storage area to store, saved storage space and computational resource, reduced the write time delay of virtual storage system, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
In addition, the present invention also provides a kind of read method of virtual data.
As shown in Figure 4, be the schematic flow sheet of the first embodiment of the read method of a kind of virtual data of the present invention.
Step S100, receives the read requests of virtual data;
In the present embodiment, described virtual data read requests can be, when carrying out data storage by the application in virtual machine or file, send, read the request of data to the storage system in virtual machine.Described virtual data read requests, can comprise following information: the order of a read data; Article one, produce the application of described request or the address information of file.In the present embodiment, virtual data read requests is received by the client utility be loaded in dummy machine system, described client utility can monitor the virtual data read requests of virutal machine memory storage system, when the application in virtual machine or file send virtual data read requests, described client utility just can catch described request before described request reaches storage area, and can process described request, again described request is sent after treatment, like this, all virtual data read requests of the storage system in virtual machine all can through the process of client utility.In other embodiments of the invention, also the virtual data read requests of virutal machine memory storage system can be monitored by the program segment of the information processing of hook in dummy machine system, when the application in virtual machine or file send virtual data read requests, before described request reaches storage area, catch described request, described program segment also can be linked up with in the storage system of described virtual machine; Or the virtual data read requests of virutal machine memory storage system is monitored by the hook program of a hook in dummy machine system, when the application in virtual machine or file send virtual data read requests, described request was caught before described request reaches storage area, and described request is modified, preferred described hook program also can be linked up with in the storage system in described virtual machine.
Step S200, after receiving the read requests of virtual data, obtain and produce the reading object of described read requests and the reading attributes of described reading object, determine second storage area corresponding with described reading attributes, described reading object is trigger the object of described read requests;
In the present embodiment, described reading object comprises application in virtual machine and file, and described reading object can send virtual data read requests to storage area, and described storage area reads the virtual data that described reading object sends.Client utility in virtual machine is after the described read requests of acquisition, described request is analyzed, obtain wherein relevant with the reading object producing described request information, and determine the reading object producing described request, according to the reading object preset and the corresponding relation of reading attributes, determine described reading attributes, according to the reading attributes preset and the corresponding relation of storage area, determine the second storage area that described reading attributes is corresponding.Described reading attributes includes but not limited to: storage medium, storage redundancy number, whether encrypt, whether read-only, whether visible, compression, duplicate removal.
Preferably, the client utility in described virtual machine, according to the second storage area determined, sends a virtual data read requests to described second storage area.In the virtual data read requests that also reading object can be sent by the client utility in described virtual machine, the information of address, pertinent storage area is modified, the second storage area is revised as in the address of pertinent storage area in request, and amended request is sent to the second storage area.
Step S300, read the virtual data corresponding with described read requests described virtual data is sent to described reading object at described second storage area.
In the present embodiment, described second storage area, after receiving the virtual data read requests sent by described client utility, reads virtual data corresponding to described read requests at described second storage area and described virtual data is sent to described reading object.Include in described read requests: storage area address to be read, write data command, the relevant information of reading object, virtual data to be read.Described second storage area identifies the order of write data after receiving described read requests, read and preserve virtual data wherein.
Adopt technique scheme, relative to prior art, by distinguishing the request of reading virtual data in virtual machine, and then classification reading is carried out to virtual data, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
As shown in Figure 5, be the schematic flow sheet of the second embodiment of the read method of a kind of virtual data of the present invention.
Based on above-mentioned first embodiment, before described step S100, also comprise
Step S110, provides the second configuration interface, selects reading object to be also described reading object configuration reading attributes for user based on described second configuration interface;
In the present embodiment, provide the second configuration interface, select reading object to be also described reading object configuration reading attributes for user based on described second configuration interface.Create in virtual storage system process, virtual memory management system sends reading attributes configuration-direct, when virtual memory management system configuration module detects described reading attributes configuration-direct, reading object is selected to be also described reading object configuration reading attributes based on described second configuration interface.Preferably, described second configuration interface provides the reading object in described virtual machine to select for user, and correspondence provides default reading attributes select for user and configure to described reading object, repeat successively to select reading object and the step configuring reading attributes, until the configuration of all reading object is complete.
Certainly, user also can the reading command of only configuration section reading object, when virtual memory management systems scan does not configure the reading object of reading attributes to existence, automatically configure default reading attributes to the reading object not configuring reading attributes by described virtual memory management system.Before described virtual storage system configures the step of reading attributes automatically, there is provided and remind interface, select whether automatically to be configured by the reading attributes preset by virtual storage system for user, if user determines automatically to be configured by system based on described prompting interface, then complete the configuration of the reading attributes of reading object; If user selects no based on described prompting interface, then return the second configuration interface, perform the configuration not configuring the reading object of reading attributes.Preferably, described reading object can be application single in virtual machine and file, also can be the set of multiple application in virtual machine or multiple file.The reading attributes of described reading object can be single as encryption, also can be the multiple as storage medium, storage redundancy number, the set of whether encrypting of combination.
Step S120, when detecting the complete instruction of configuration that user sends based on described second configuration interface, sets up the corresponding relation of reading object and described reading attributes;
In the present embodiment, when detecting the complete instruction of configuration that user sends based on described second configuration interface, set up the corresponding relation of reading object and described reading attributes, and the corresponding relation of described reading object and described reading attributes is sent to described client utility.The corresponding relation of described reading object and described reading attributes, it can be relation one to one, by the corresponding reading attributes of a reading object, also can be the corresponding relation of multi-to-multi, reading object can corresponding multiple reading attributes, and multiple reading object can corresponding same reading attributes.
Step S130, for described reading attributes configures the second storage area, and sets up the corresponding relation of described reading attributes and described second storage area.
In the present embodiment, virtual storage system is that described reading attributes configures the second storage area, and set up the corresponding relation of described reading attributes and described second storage area, and the corresponding relation of described reading attributes and described second storage area is sent to client utility.
Further, with reference to figure 6, after described step S130, also comprise:
S140, provides the second amendment interface, selects reading object for user and revises the reading attributes of described reading object based on described second amendment interface;
S150, when detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revises the corresponding relation of described reading object and described reading attributes.
In the present embodiment, provide the second amendment interface, select reading object for user based on described second amendment interface and revise the reading attributes of described reading object.User, when needing the reading attributes revising reading object, revises option, to trigger reading attributes modify instruction by menu setecting reading attributes; Or user, when needing the reading attributes revising reading object, by the reading attributes amendment shortcut icon of desktop, triggers reading attributes modify instruction.When detecting reading attributes modify instruction, based on described amendment interface, by menu setecting write attribute modification option, to trigger the instruction of write attribute modification.Described amendment comprises a newly-built reading object, and is described newly-built reading object configuration reading attributes.When detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revising the corresponding relation of described reading object and described reading attributes, and performing step S100.
Adopt technique scheme, relative to prior art, by configuring write object and attribute thereof in advance, the request of reading virtual data is distinguished in virtual machine by the write attribute writing object, and then classification reading is carried out to virtual data, save storage space and computational resource, reduce the read latch of virtual storage system, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
In addition, the present invention also provides a kind of writing system of virtual data.
As shown in Figure 7, be the high-level schematic functional block diagram of the first embodiment of the writing system of a kind of virtual data of the present invention.The writing system of described virtual data comprises:
First receiver module 11, receives virtual data write request;
In the present embodiment, described virtual data write request, can be that application in virtual machine or file carry out data when storing, send, the write request of virtual data to the storage system in virtual machine.Described virtual data write request, can comprise following information: an order writing data; Article one, produce the application of described request or the address information of file.In the present embodiment, virtual data write request is received by the client utility be loaded in dummy machine system, described client utility comprises the first receiver module 11, described client utility can monitor the virtual data write request of virutal machine memory storage system, when the application in virtual machine or file send virtual data write request, described client utility just can catch described request before described request reaches storage area, and can process described request, again described request is sent after treatment, like this, all virtual data write requests of the storage system in virtual machine all can through the process of client utility.In other embodiments of the invention, also the virtual data write request of virutal machine memory storage system can be monitored by the program segment of the information processing of hook in dummy machine system, the program segment of described information processing comprises the first receiver module 11, when the application in virtual machine or file send virtual data write request, before described request reaches storage area, catch described request, preferred described program segment also can be linked up with in the storage system of described virtual machine; Or the virtual data write request of virutal machine memory storage system is monitored by the hook program of a hook in dummy machine system, described hook program comprises the first receiver module 11, when the application in virtual machine or file send virtual data write request, described request was caught before described request reaches storage area, and described request is modified, preferred described hook program also can be linked up with in the storage system in described virtual machine.
First processing module 12, after the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute, said write object is the object triggering said write request;
In the present embodiment, said write object comprises application in virtual machine and file, and said write object can send virtual data write request to storage area, the virtual data that described storage area write said write object sends.Client utility in virtual machine is after the request of acquisition said write, described client utility comprises the first processing module 12, described request is analyzed, obtain wherein relevant with the write object producing described request information, and determine the write object producing described request, according to the corresponding relation of the write object preset with write attribute, determine said write attribute, according to the write attribute preset and the corresponding relation of storage area, determine the first storage area that said write attribute is corresponding.Said write attribute includes but not limited to: storage medium, storage redundancy number, whether encrypt, whether read-only, whether visible, compression, duplicate removal.Preferably, the client utility in described virtual machine, according to the first storage area determined, sends a virtual data write request to described first storage area.In the virtual data write request that also can be sent by write object by the client utility in described virtual machine, the information of address, pertinent storage area is modified, the first storage area is revised as in the address of pertinent storage area in request, and amended request is sent to the first storage area.
Writing module 13, for writing the virtual data corresponding with said write request at described first storage area.
In the present embodiment, described first storage area is after receiving the virtual data write request sent by described client utility, and described first storage area is waited for and received the virtual data corresponding with said write request that said write object sends and preserve described virtual data.Described first memory module 13 comprises the first storage area.Preferably, described virtual data also can be included in described virtual data write request, includes in said write request: storage area address to be written, relevant information, the virtual data to be written writing data command, write object.Described first storage area identifies the order of write data after receiving said write request, read and preserve virtual data wherein.
Further, with reference to figure 8, described virtual data writing system also comprises:
First interface provides module 14, for providing the first configuration interface, selects write object to be also said write object configuration write attribute for user based on described first configuration interface;
In the present embodiment, provide the first configuration interface, select write object to be also said write object configuration write attribute for user based on described first configuration interface.Create in virtual storage system process, virtual memory management system sends the instruction of write attribute configuration, when virtual memory management system configuration module detects the instruction of said write attribute configuration, write object is selected to be also said write object configuration write attribute based on described first configuration interface.Preferably, described first configuration interface provides the write object in described virtual machine to select for user, and correspondence provides default write attribute select for user and configure to said write object, repeat successively to select write object and the step of configuration write attribute, until the configuration of all write objects is complete.Certainly, user also only can write the write instruction of object by configuration section.Said write object can be application single in virtual machine and file, also can be the set of multiple application in virtual machine or multiple file.The write attribute of said write object can be single as encryption, also can be the multiple as storage medium, storage redundancy number, the set of whether encrypting of combination.
First creation module 15, also for when detecting the complete instruction of configuration that user sends based on described first configuration interface, sets up the corresponding relation of write object and said write attribute;
In the present embodiment, when detecting the complete instruction of configuration that user sends based on described first configuration interface, and when virtual memory management systems scan is to when existing the write object not configuring write attribute, automatically configure default write attribute to the write object not configuring write attribute by described virtual memory management system.Automatically configure the step of write attribute in described virtual storage system before, there is provided and remind interface, select whether automatically to be configured by the write attribute preset by virtual storage system for user, if user determines automatically to be configured by system based on described prompting interface, then complete the configuration of said write attribute; If user selects automatically not configure based on described prompting interface, then return the first configuration interface, perform the configuration of the write object not configuring write attribute.When detecting the complete instruction of configuration that user sends based on described first configuration interface, setting up the corresponding relation of write object and said write attribute, and the corresponding relation of said write object and said write attribute is sent to described client utility.
The corresponding relation of said write object and said write attribute, it can be relation one to one, by a corresponding write attribute of write object, also can be the corresponding relation of multi-to-multi, a write object can corresponding multiple write attribute, and multiple write object can corresponding same write attribute.
Described first creation module 15, also for being said write attribute configuration first storage area, and sets up the corresponding relation of said write attribute and described first storage area.
In the present embodiment, described first storage area is after receiving the virtual data write request sent by described client utility, and described first storage area is waited for and received virtual data that said write object sends and preserve described virtual data.Preferably, described virtual data also can be included in described virtual data write request, includes in said write request: storage area address to be written, relevant information, the virtual data to be written writing data command, write object.Described first storage area identifies the order of write data after receiving said write request, read and preserve virtual data wherein.
Further, described first interface provides module 14, also for providing the first amendment interface, selecting write object for user and revising the write attribute of said write object based on described first amendment interface;
Described first creation module 15, also for when detecting user based on the described first complete instruction of the amendment amendment that sends of interface, the corresponding relation of amendment said write object and said write attribute.
In the present embodiment, provide the first amendment interface, select write object for user based on described first amendment interface and revise the write attribute of said write object.User, when needing the write attribute of amendment write object, based on described amendment interface, by menu setecting write attribute modification option, writes attribute modification instruction to trigger; Or user, when needing the write attribute of amendment write object, by the write attribute modification shortcut icon of desktop, triggers the instruction of write attribute modification.Described amendment comprises a newly-built write object, and is described newly-built write object configuration write attribute.When detecting user based on the described first complete instruction of the amendment amendment that sends of interface, the corresponding relation of amendment said write object and said write attribute.
Adopt technique scheme, relative to prior art, by distinguishing the virtual data writing storage area in virtual machine, carry out classification to the virtual data of write storage area to store, storage space and computational resource are saved, reduce the write time delay of virtual storage system, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
In addition, the present invention also provides a kind of reading system of virtual data.
As shown in Figure 9, be the high-level schematic functional block diagram of the first embodiment of the reading system of a kind of virtual data of the present invention.
Second receiver module 21, for receiving the read requests of virtual data;
In the present embodiment, described virtual data read requests, can be that application in virtual machine or file carry out data when storing, send, read the request of data to the storage system in virtual machine.Described virtual data read requests, can comprise following information: the order of a read data; Article one, produce the application of described request or the address information of file.In the present embodiment, virtual data read requests is received by the client utility be loaded in dummy machine system, described client utility comprises the second receiver module 21, described client utility can monitor the virtual data write request of virutal machine memory storage system, when the application in virtual machine or file send virtual data read requests, described client utility just can catch described request before described request reaches storage area, and can process described request, again described request is sent after treatment, like this, all virtual data read requests of the storage system in virtual machine all can through the process of client utility.In other embodiments of the invention, also the virtual data read requests of virutal machine memory storage system can be monitored by the program segment of the information processing of hook in dummy machine system, the program segment of described information processing comprises the second receiver module 21, when the application in virtual machine or file send virtual data read requests, before described request reaches storage area, catch described request.Described program segment also can be linked up with in the storage system of described virtual machine; Or the virtual data read requests of virutal machine memory storage system is monitored by the hook program of a hook in dummy machine system, described hook program comprises the second receiver module 21, when the application in virtual machine or file send virtual data read requests, described request was caught before described request reaches storage area, and described request is modified, preferred described hook program also can be linked up with in the storage system in described virtual machine.
Second processing module 22, for after receiving the read requests of virtual data, obtain and produce the reading object of described read requests and the reading attributes of described reading object, determine second storage area corresponding with described reading attributes, described reading object is trigger the object of described read requests;
In the present embodiment, described reading object comprises application in virtual machine and file, and described reading object can send virtual data read requests to storage area, and described storage area reads the virtual data that described reading object sends.Client utility in virtual machine is after the described read requests of acquisition, described client utility comprises the second processing module 22, described request is analyzed, obtain wherein relevant with the reading object producing described request information, and determine to produce the reading object of described request, according to the corresponding relation of the reading object preset and reading attributes, determine described reading attributes, according to the reading attributes preset and the corresponding relation of storage area, determine the second storage area that described reading attributes is corresponding.Described reading attributes includes but not limited to: storage medium, storage redundancy number, whether encrypt, whether read-only, whether visible, compression, duplicate removal.Preferably, the client utility in described virtual machine, according to the second storage area determined, sends a virtual data read requests to described second storage area.In the virtual data read requests that also reading object can be sent by the client utility in described virtual machine, the information of address, pertinent storage area is modified, the second storage area is revised as in the address of pertinent storage area in request, and amended request is sent to the second storage area.
Read module 23, for reading the virtual data corresponding with described read requests at described second storage area and described virtual data be sent to described reading object.
In the present embodiment, described second storage area, after receiving the virtual data read requests sent by described client utility, reads virtual data corresponding to described read requests at described second storage area and described virtual data is sent to described reading object.Include in described read requests: storage area address to be read, write data command, the relevant information of reading object, virtual data to be read.Described second storage area identifies the order of write data after receiving described read requests, read and preserve virtual data wherein.
Adopt technique scheme, relative to prior art, by distinguishing the request of reading virtual data in virtual machine, and then classification reading is carried out to virtual data, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
Further, with reference to Figure 10, described virtual data reading system also comprises:
Second contact surface provides module 24, for providing the second configuration interface, selects reading object to be also described reading object configuration reading attributes for user based on described second configuration interface;
In the present embodiment, provide the second configuration interface, select reading object to be also described reading object configuration reading attributes for user based on described second configuration interface.Create in virtual storage system process, virtual memory management system sends reading attributes configuration-direct, when virtual memory management system configuration module detects described reading attributes configuration-direct, reading object is selected to be also described reading object configuration reading attributes based on described second configuration interface.Preferably, described second configuration interface provides the reading object in described virtual machine to select for user, and correspondence provides default reading attributes select for user and configure to described reading object, repeat successively to select reading object and the step configuring reading attributes, until the configuration of all reading object is complete.
Certainly, user also can the reading command of only configuration section reading object, when virtual memory management systems scan does not configure the reading object of reading attributes to existence, automatically configure default reading attributes to the reading object not configuring reading attributes by described virtual memory management system.Before described virtual storage system configures the step of reading attributes automatically, there is provided and remind interface, select whether automatically to be configured by the reading attributes preset by virtual storage system for user, if user determines automatically to be configured by system based on described prompting interface, then complete the configuration of the reading attributes of reading object; If user selects no based on described prompting interface, then return the second configuration interface, perform the configuration not configuring the reading object of reading attributes.Preferably, described reading object can be application single in virtual machine and file, also can be the set of multiple application in virtual machine or multiple file.The reading attributes of described reading object can be single as encryption, also can be the multiple as storage medium, storage redundancy number, the set of whether encrypting of combination.
Second creation module 25, for when detecting the complete instruction of configuration that user sends based on described second configuration interface, sets up the corresponding relation of the reading attributes of reading object and described reading object;
In the present embodiment, when detecting the complete instruction of configuration that user sends based on described second configuration interface, set up the corresponding relation of the reading attributes of reading object and described reading object, and the corresponding relation of described reading object and described reading attributes is sent to described client utility.The corresponding relation of described reading object and described reading attributes, it can be relation one to one, by the corresponding reading attributes of a reading object, also can be the corresponding relation of multi-to-multi, reading object can corresponding multiple reading attributes, and multiple reading object can corresponding same reading attributes.
Described second creation module 25, also for configuring the second storage area for described reading attributes, and sets up the corresponding relation of described reading attributes and described second storage area.
In the present embodiment, virtual storage system is that described reading attributes configures the second storage area, and set up the corresponding relation of described reading attributes and described second storage area, and the corresponding relation of described reading attributes and described second storage area is sent to client utility.
Further, described second contact surface provides module 24, also for providing the second amendment interface, selecting reading object for user and revising the reading attributes of described reading object based on described second amendment interface;
Described second creation module 25, also for when detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revises the corresponding relation of described reading object and described reading attributes.
In the present embodiment, provide the second amendment interface, select reading object for user based on described second amendment interface and revise the reading attributes of described reading object.User, when needing the reading attributes revising reading object, revises option, to trigger reading attributes modify instruction by menu setecting reading attributes; Or user, when needing the reading attributes revising reading object, by the reading attributes amendment shortcut icon of desktop, triggers reading attributes modify instruction.When detecting reading attributes modify instruction, based on described amendment interface, by menu setecting write attribute modification option, to trigger the instruction of write attribute modification.Described amendment comprises a newly-built reading object, and is described newly-built reading object configuration reading attributes.When detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revise the corresponding relation of described reading object and described reading attributes.
Adopt technique scheme, relative to prior art, by configuring write object and attribute thereof in advance, the request of reading virtual data is distinguished in virtual machine by the write attribute writing object, and then classification reading is carried out to virtual data, save storage space and computational resource, reduce the read latch of virtual storage system, realize the waste decreasing storage space and computational resource, reduce the difficulty of data processing and data management.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a virtual data wiring method, is characterized in that, described virtual data wiring method comprises the following steps:
Receive the write request of virtual data;
After the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute, said write object is the object triggering said write request;
At the virtual data that described first storage area write is corresponding with said write request.
2. virtual data wiring method as claimed in claim 1, is characterized in that, before the step of described reception virtual data write request, also comprise:
First configuration interface is provided, selects write object to be also said write object configuration write attribute for user based on described first configuration interface;
When detecting the complete instruction of configuration that user sends based on described first configuration interface, set up the corresponding relation of said write object and said write attribute;
For said write attribute configuration first storage area, and set up the corresponding relation of said write attribute and described first storage area.
3. virtual data wiring method as claimed in claim 2, is characterized in that, described set up the step of the corresponding relation of said write attribute and said write attribute after, also comprise:
First amendment interface is provided, selects write object for user based on described first amendment interface and revise the write attribute of said write object;
When detecting user based on the described first complete instruction of the amendment amendment that sends of interface, the corresponding relation of amendment said write object and said write attribute.
4. a virtual data read method, is characterized in that, described virtual data read method comprises the following steps:
Receive the read requests of virtual data;
After receiving the read requests of virtual data, obtain and produce the reading object of described read requests and the reading attributes of described reading object, determine second storage area corresponding with described reading attributes, described reading object is trigger the object of described read requests;
Read the virtual data corresponding with described read requests at described second storage area and be sent to described reading object.
5. the method for reading data of virtual store as claimed in claim 4, is characterized in that, before the step of the read requests of described reception virtual data, also comprise:
Second configuration interface is provided, selects reading object to be also described reading object configuration reading attributes for user based on described second configuration interface;
When detecting the complete instruction of configuration that user sends based on described second configuration interface, set up the corresponding relation of described reading object and described reading attributes;
For described reading attributes configures the second storage area, and set up the corresponding relation of described reading attributes and described second storage area.
6. the method for reading data of virtual store as claimed in claim 5, is characterized in that, described set up the step of the corresponding relation of described reading attributes and described second storage area after, also comprise:
Second amendment interface is provided, selects reading object for user based on described second amendment interface and revise the reading attributes of described reading object;
When detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revise the corresponding relation of described reading object and described reading attributes.
7. a virtual data writing system, is characterized in that, described virtual data writing system comprises:
First receiver module, receives the write request of virtual data;
First processing module, after the write request receiving described virtual data, obtain and produce the write object of said write request and the write attribute of said write object, determine first storage area corresponding with said write attribute, said write object is the object triggering said write request;
Writing module, at the virtual data that described first storage area write is corresponding with said write request.
8. virtual data writing system as claimed in claim 7, it is characterized in that, described virtual data writing system also comprises:
First interface provides module, for providing the first configuration interface, selects write object to be also said write object configuration write attribute for user based on described first configuration interface;
First creation module, for when detecting the complete instruction of configuration that user sends based on described first configuration interface, sets up the corresponding relation of write object and said write attribute; Also for being said write attribute configuration first storage area, and set up the corresponding relation of said write attribute and described first storage area.
9. a virtual data reading system, is characterized in that, described virtual data reading system comprises:
Second receiver module, for receiving the read requests of virtual data;
Second processing module, for after receiving the read requests of virtual data, obtain and produce the reading object of described read requests and the reading attributes of described reading object, determine second storage area corresponding with described reading attributes, described reading object is trigger the object of described read requests;
Read module, for reading the virtual data corresponding with described read requests at described second storage area and be sent to described reading object.
10. the system of virtual store as claimed in claim 9, it is characterized in that, described virtual data reading system also comprises:
Second contact surface provides module, for providing the second amendment interface, selecting reading object for user and revising the reading attributes of described reading object based on described second amendment interface;
Second creation module, for when detecting user based on the described second complete instruction of the amendment amendment that sends of interface, revises the corresponding relation of described reading object and described reading attributes.
CN201510117261.6A 2015-03-17 2015-03-17 Virtual data writing and reading method and system Pending CN104765571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510117261.6A CN104765571A (en) 2015-03-17 2015-03-17 Virtual data writing and reading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510117261.6A CN104765571A (en) 2015-03-17 2015-03-17 Virtual data writing and reading method and system

Publications (1)

Publication Number Publication Date
CN104765571A true CN104765571A (en) 2015-07-08

Family

ID=53647435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510117261.6A Pending CN104765571A (en) 2015-03-17 2015-03-17 Virtual data writing and reading method and system

Country Status (1)

Country Link
CN (1) CN104765571A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310170A (en) * 2020-01-16 2020-06-19 深信服科技股份有限公司 Anti-leakage method and device for application program and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193219A1 (en) * 2008-01-29 2009-07-30 Hitachi, Ltd. Storage subsystem
CN102609360A (en) * 2012-01-12 2012-07-25 华为技术有限公司 Data processing method, data processing device and data processing system
CN103064797A (en) * 2012-12-21 2013-04-24 华为技术有限公司 Data processing method and virtual machine management platform
CN103399823A (en) * 2011-12-31 2013-11-20 华为数字技术(成都)有限公司 Method, equipment and system for storing service data
CN103593147A (en) * 2013-11-07 2014-02-19 华为技术有限公司 Data reading method and device
CN103620606A (en) * 2013-06-20 2014-03-05 华为技术有限公司 Storage detecting apparatus, system, and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193219A1 (en) * 2008-01-29 2009-07-30 Hitachi, Ltd. Storage subsystem
CN103399823A (en) * 2011-12-31 2013-11-20 华为数字技术(成都)有限公司 Method, equipment and system for storing service data
CN102609360A (en) * 2012-01-12 2012-07-25 华为技术有限公司 Data processing method, data processing device and data processing system
CN103064797A (en) * 2012-12-21 2013-04-24 华为技术有限公司 Data processing method and virtual machine management platform
CN103620606A (en) * 2013-06-20 2014-03-05 华为技术有限公司 Storage detecting apparatus, system, and method
CN103593147A (en) * 2013-11-07 2014-02-19 华为技术有限公司 Data reading method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310170A (en) * 2020-01-16 2020-06-19 深信服科技股份有限公司 Anti-leakage method and device for application program and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11296940B2 (en) Centralized configuration data in a distributed file system
US11210257B2 (en) Article, device, and techniques for serverless streaming message processing
CN110362356B (en) Function data processing method and device, computer equipment and storage medium
CN103310460A (en) Image characteristic extraction method and system
WO2016130349A1 (en) Systems and methods for adaptive cloning of mobile devices
CN106843644B (en) Method and device for establishing desktop icon
CN108234551B (en) Data processing method and device
CN104899049A (en) File deletion method and device
US10545754B2 (en) Application hot deploy method to guarantee application version consistency and computer program stored in computer readable medium therefor
CN110908837A (en) Application program exception handling method and device, electronic equipment and storage medium
CN114281263A (en) Storage resource processing method, system and equipment of container cluster management system
CN113791735A (en) Video data storage method and device, computer equipment and storage medium
CN102419753A (en) Information processing equipment, information processing method and information processing system
CN109218345A (en) Obtain method, storage medium, electronic equipment and the system of target resource
CN113742023A (en) Authority configuration method and device, computer equipment and storage medium
JP6418419B2 (en) Method and apparatus for hard disk to execute application code
CN105468941A (en) Right control method and device
CN110442636B (en) Data reading and writing method and device and data reading and writing equipment
US10693731B2 (en) Flow entry management method and device
CN112527416A (en) Task processing method and device, computer equipment and storage medium
CN111858020B (en) User resource limiting method and device and computer storage medium
CN106919812B (en) Application process authority management method and device
CN104765571A (en) Virtual data writing and reading method and system
CN111339054A (en) Storage system hierarchical management method, device, equipment and storage medium
US20220229817A1 (en) Smart near-real-time folder scan based on a breadth first search

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708