CN108182128A - Based on XEN without Agent virtual back-up restoring method - Google Patents
Based on XEN without Agent virtual back-up restoring method Download PDFInfo
- Publication number
- CN108182128A CN108182128A CN201711489829.2A CN201711489829A CN108182128A CN 108182128 A CN108182128 A CN 108182128A CN 201711489829 A CN201711489829 A CN 201711489829A CN 108182128 A CN108182128 A CN 108182128A
- Authority
- CN
- China
- Prior art keywords
- backup
- virtual machine
- virtual
- xen
- file
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
Abstract
The present invention relates to it is a kind of based on XEN without Agent virtual backup method, including:Obtain the details of backup job;Virtualization center is connected, obtains the disc information of virtual machine, preserves virtual machine configuration;Snapshot is created, the disk file of backup virtual machine simultaneously checks whether backup job needs to stop;When backup job does not need to stop, the backup point of the backup job is recorded, is return success.It is above-mentioned based on XEN without Agent virtual backup method, installation without software, reduce the burden of management and compatibility, due to need to only carry out the backup of data by virtualizing center, without agency, the influence of the host and application program to production environment is thus reduced, while reduces the consumption to production environment resource, has saved cost.
Description
Technical field
The present invention relates to virtual machine technique field, more particularly to it is a kind of based on XEN without Agent virtual Backup and Restore
Method.
Background technology
With the continuous renewal and development of virtual machine technology, virtualization product is increasingly favored by client, and XEN is empty
Planization technology is an open source code virtual machine monitor, it, which relies on, increases income, high-performance, takes up less resources and won both at home and abroad
The favor of numerous enterprises and institutions users.
Although XEN receives user's favor, in some practical production environments, if magnetic disk of virtual machine file damages
Bad, production environment is destroyed etc. unexpected, and virtual machine can not continue normal operation, so as to cause feelings such as application interruption, loss of data
Condition, loss can not be estimated to obtain by being brought to user, it is therefore desirable to a kind of data back up method.
However traditional data back up method has the resource of production environment in backup procedure very big consumption.
Invention content
Based on this, it is necessary to for production environment resource consumption it is big the problem of, provide it is a kind of based on XEN without Agent virtual
Change back-up restoring method.
It is a kind of based on XEN without Agent virtual backup method, including:
Obtain the details of backup job;
Virtualization center is connected, obtains the disc information of virtual machine, preserves virtual machine configuration;
Snapshot is created, the disk file of backup virtual machine simultaneously checks whether backup job needs to stop;
When backup job does not need to stop, the backup point of the backup job is recorded, is return success.
In one embodiment, it is described to be further included based on XEN without Agent virtual backup method:
When backup job needs to stop, snapshot is deleted, closes the connection with the virtualization center;
Delete generated backup file, backtracking Stop message.
In one embodiment, the step of details of the acquisition backup job, including:
Receive the request of backup job;
Obtain the details of the backup job;
The virtualization central information of the backup virtual machine is inquired from database;
The corresponding virtualization center of the virtual machine is remotely connected, obtains the size of backup virtual machine;
Long-range connection is closed, is more corrected students' papers as operating status.
In one embodiment, the establishment snapshot, the disk file of backup virtual machine simultaneously check whether backup job needs
The step of stopping, including:
Create backup virtual machine snapshot;
Job state is updated, by network transmission, the disk file of virtual machine is backuped to the storage pool specified;
Update job scheduling simultaneously checks whether backup job needs to stop.
It is a kind of based on XEN without Agent virtual back-up restoring method, including:
Obtain the details to resume operation;
Virtualization center is connected, redefines virtual machine, creates magnetic disk of virtual machine file;
The magnetic disk of virtual machine file is written into backup file, and checks the need for resuming operation described in stopping;
When resuming operation described in do not need to stop, the details that resuming operation described in record are return success.
In one embodiment, being further included without Agent virtual back-up restoring method based on XEN based on XEN:
When needing to resume operation described in stopping, the virtual machine and the magnetic disk of virtual machine file are deleted;
The details to resume operation described in record, backtracking Stop message.
In one embodiment, described the step of obtaining the details to resume operation, including:
Receive the request to resume operation;
The details to resume operation described in acquisition;
Backup point store path is inquired from database, obtains backup point size;
It updates the data library and updates job state.
In one embodiment, the connection virtualization center, redefines virtual machine, creates magnetic disk of virtual machine file
Step, including:
It is long-range to connect virtualization center when receiving former machine recovery instruction, if virtualization center is deleted there are the virtual machine
Except the disk file of the virtual machine and the virtual machine, virtual machine is redefined according to virtual machine configuration, creates virtual machine magnetic
Disk file;
Recovery is created when receiving former machine or when different host creates recovery instruction, it is long-range to connect virtualization center, if empty
There are virtual machines of the same name at planization center, and timestamp is added behind virtual machine title, virtual machine configuration is changed, is matched using this
Document definition virtual machine is put, creates magnetic disk of virtual machine file.
It is a kind of based on XEN without Agent virtual back-up device, including:
Backup acquisition device:For obtaining the details of backup job;
Backup attachment device:Connect virtualization center;
Backup save set:For obtaining the disc information of virtual machine, virtual machine configuration is preserved;
Backup creating device:For creating snapshot, the disk file of backup virtual machine simultaneously checks whether backup job needs
Stop;
Backup return mechanism:When backup job does not need to stop, the backup point of the backup job is recorded, is returned successfully
Information.
It is a kind of based on XEN without Agent virtual Backup and Restore device, which is characterized in that including:
Restore acquisition device:For obtaining the details to resume operation;
Restore creating device:For connecting virtualization center, virtual machine is redefined, creates magnetic disk of virtual machine file;
Restore writing station:For backup file to be written the magnetic disk of virtual machine file, and check the need for stopping
It is described to resume operation;
Restore return mechanism:When resuming operation described in do not need to stop, the details that resuming operation described in record are returned
Return successful information.
It is above-mentioned based on XEN without Agent virtual backup method and based on XEN without Agent virtual back-up restoring method,
Without the installation of software, reduce the burden of management and compatibility, due to need to only carry out the backup of data, nothing by virtualizing center
It needs to act on behalf of, thus reduces the influence of the host and application program to production environment, while reduce to production environment resource
Consumption, has saved cost.
Description of the drawings
Fig. 1 is for an embodiment based on XEN without Agent virtual backup method flow diagram;
Fig. 2 is the flow diagram without Agent virtual backup method based on XEN of another embodiment;
Fig. 3 is the flow diagram of the details of the acquisition backup job of an embodiment;
Fig. 4 is the disk file of the establishment snapshot virtual machine of an embodiment and checks whether backup job needs to stop
Flow diagram;
Fig. 5 is the flow diagram without Agent virtual back-up restoring method based on XEN of an embodiment;
Fig. 6 is the flow diagram without Agent virtual back-up restoring method based on XEN of another embodiment;
Fig. 7 is the flow diagram of details that the acquisition of an embodiment resumes operation;
Fig. 8 is that the connection of an embodiment virtualizes center, redefines virtual machine, creates the flow of magnetic disk of virtual machine file
Schematic diagram;
Fig. 9 is the schematic device without Agent virtual back-up device based on XEN of an embodiment;
Figure 10 is the schematic device without Agent virtual Backup and Restore device based on XEN of an embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is for an embodiment based on XEN without Agent virtual backup method flow diagram.As shown in Figure 1, this hair
It is bright provide it is a kind of based on XEN without Agent virtual backup method, including:
Step S101:Obtain the details of backup job.
Specifically, user is needed firstly the need of registration XEN virtualizations center, and user logs in Web calamities for management system, enters
The registration management page of Virtual Machine Manager selects XEN virtualizations center, the IP at input virtualization center, management virtualization center
User name, password, virtualization the center page by the information at the virtualization center be sent to backstage and return, receive registration from the background
Virtualize center requests, the IP at parsing virtualization center, user name, password simultaneously check its legitimacy, in long-range connection virtualization
The heart obtains the host and virtual machine information at virtualization center, the long-range connection with virtualization center is closed, by host's machine information
Database is recorded with virtual machine information, wherein host information includes including information, virtual machine informations such as network interface card information and IP
The information such as virtual machine name, uuid (Universally Unique Identifier), state.If succeeded in registration, the knot that succeeds in registration is returned to the page
Fruit if remotely connection virtualization center failure, returns to the result of registration failure.
More specifically, host is the physical basis of virtual machine, virtual machine is present in host, and being shared with host makes
Use hardware.The operation of host is the premise and basis that virtual machine is run, and virtual machine refers to be had completely firmly by what software was simulated
Part system function, operate in complete computer in a completely isolated environment.Host is exactly host, this concept
It is for handset, such as if virtual machine is installed, then for virtual machine, computer currently in use
It is exactly host, virtual machine is mounted on host, it is necessary to could be run on host, host is exactly one " host ".
Further, user enters the backup page of Virtual Machine Manager, selects XEN virtual management platforms, and selection needs
The virtual machine of backup selects backup policy, storage pool, fills in job names, creates backup job, and wherein backup policy includes one
Secondary property operation, time parameter method operation and without tactful operation etc., the information for creating backup job is sent to backstage by the page, and backstage solves
Analysis message content simultaneously checks its legitimacy, and job information is recorded database, is returned to the page and creates backup job success
Message, user enters the operation page of Virtual Machine Manager, starts the operation of establishment, and the page will start the message hair of backup job
Backstage is given, waits for returning the result for backstage.
Step S102:Virtualization center is connected, obtains the disc information of virtual machine, preserves virtual machine configuration.
Specifically, receive the request of backup job from the background, obtain the details of backup job first, if obtain into
Work(continues to execute in next step, otherwise, backtracking run-time error result.
The virtualization central information of backup virtual machine, the void being removably attached to where virtual machine are inquired in backstage from database
Planization center obtains the size of backup virtual machine, long-range connection is closed, if getting the size of backup virtual machine, more new work
Industry is operating status, continues subsequent operation, and otherwise, update job state is malfunctions and return to error message to the page.
Step S103:Create snapshot, the disk file of backup virtual machine.
Specifically, the virtualization center where the long-range connection backup virtual machine in backstage, obtains the disc information of virtual machine, protects
Virtual machine configuration is deposited, backup virtual machine is given to create snapshot, if creating failure, update job state is for error and by mistake
Information returns to the page.
The disk file of virtual machine by network transmission, is backuped to the storage pool specified by background update job state,
In transmission process, moment update job scheduling, including processing size and transmission size.
Step S104:Check whether backup job needs to stop.
Step S105:When backup job does not need to stop, the backup point of the backup job is recorded, returns and successfully believes
Breath.
Specifically, when backup is normal, backup job does not need to stop, and is transmitted until by the disk file of virtual machine,
Update backup job state be successfully, and record in the database the backup job generate backup point, by backup job successfully
Information returns to the page, can carry out the restoration methods of virtual machine.
It is above-mentioned based on XEN without Agent virtual backup method, without the installation of software, reduce the negative of management and compatibility
Load, due to need to only carry out the backup of data by virtualizing center, without agency, thus reduce to the host of production environment and
The influence of application program, while reduce the consumption to production environment resource, save cost.
Fig. 2 is the flow diagram without Agent virtual backup method based on XEN of another embodiment.As shown in Fig. 2,
In one embodiment, included based on XEN without Agent virtual backup method:
Step S201:Obtain the details of backup job.
Specifically, user is needed firstly the need of registration XEN virtualizations center, and user logs in Web calamities for management system, enters
The registration management page of Virtual Machine Manager selects XEN virtualizations center, the IP at input virtualization center, management virtualization center
User name, password, virtualization the center page by the information at the virtualization center be sent to backstage and return, receive registration from the background
Virtualize center requests, the IP at parsing virtualization center, user name, password simultaneously check its legitimacy, in long-range connection virtualization
The heart obtains the host and virtual machine information at virtualization center, the long-range connection with virtualization center is closed, by host's machine information
Database is recorded with virtual machine information, wherein host information includes including information, virtual machine informations such as network interface card information and IP
The information such as virtual machine name, uuid (Universally Unique Identifier), state.If succeeded in registration, the knot that succeeds in registration is returned to the page
Fruit if remotely connection virtualization center failure, returns to the result of registration failure.
More specifically, host is the physical basis of virtual machine, virtual machine is present in host, and being shared with host makes
Use hardware.The operation of host is the premise and basis that virtual machine is run, and virtual machine refers to be had completely firmly by what software was simulated
Part system function, operate in complete computer in a completely isolated environment.Host is exactly host, this concept
It is for handset, such as if virtual machine is installed, then for virtual machine, computer currently in use
It is exactly host, virtual machine is mounted on host, it is necessary to could be run on host, host is exactly one " host ".
Further, user enters the backup page of Virtual Machine Manager, selects XEN virtual management platforms, and selection needs
The virtual machine of backup selects backup policy, storage pool, fills in job names, creates backup job, and wherein backup policy includes one
Secondary property operation, time parameter method operation and without tactful operation etc., the information for creating backup job is sent to backstage by the page, and backstage solves
Analysis message content simultaneously checks its legitimacy, and job information is recorded database, is returned to the page and creates backup job success
Message, user enters the operation page of Virtual Machine Manager, starts the operation of establishment, and the page will start the message hair of backup job
Backstage is given, waits for returning the result for backstage.
Step S202:Virtualization center is connected, obtains the disc information of virtual machine, preserves virtual machine configuration.
Specifically, receive the request of backup job from the background, obtain the details of backup job first, if obtain into
Work(continues to execute in next step, otherwise, backtracking run-time error result.
The virtualization central information of backup virtual machine is inquired on backstage from database, remotely where connection backup virtual machine
Virtualization center obtains the size of backup virtual machine, closes long-range connection, if getting the size of backup virtual machine, update
Operation is operating status, continues subsequent operation, and otherwise, update job state is malfunctions and return to error message to the page.
Step S203:Create snapshot, the disk file of backup virtual machine.
Specifically, the virtualization center where the long-range connection backup virtual machine in backstage, obtains the disc information of virtual machine, protects
Virtual machine configuration is deposited, snapshot is created to backup virtual machine, if creating failure, long-range connection is closed, updates job state
To malfunction and error message being returned to the page.
The disk file of virtual machine by network transmission, is backuped to the storage pool specified by background update job state,
In transmission process, moment update job scheduling including processing size and transmission size, and checks whether backup job needs to stop
Only.
Step S204:Check whether backup job needs to stop.
Step S205:When backup job needs to stop, snapshot is deleted, closes the connection with the virtualization center.
Specifically, the snapshot of the backup virtual machine created is deleted on backstage, closes the long-range connection with virtualization center, backstage
The state of backup job is checked, if backup job malfunctions or in halted state, deletes backup storage catalogue, update backup
Backup job error message is simultaneously returned to the page by job state, if backup job is in normal condition, continues to back up
Operation.
Step S206:The backup point of the backup job is recorded, is return success.
Specifically, update backup job state be successfully, and record in the database the backup job generate backup point,
Backup job successful information is returned into the page, the restoration methods of virtual machine can be carried out.
Fig. 3 is the flow diagram of the details of the acquisition backup job of an embodiment.As shown in figure 3, obtain backup
The step of details of operation, including:
Step S301:Receive the request of backup job.
Specifically, the request of backup job is received by backstage.
Step S302:Obtain the details of the backup job.
Specifically, the details of backup job are obtained, if obtaining the details success of backup job, are continued to execute
In next step, otherwise, backtracking run-time error result.
Step S303:The virtualization central information of the backup virtual machine is inquired from database.
Specifically, the virtualization central information of backup virtual machine is inquired from database from the background, remotely connects standby virtual
Virtualization center where machine.
Step S304:The corresponding virtualization center of the virtual machine is remotely connected, obtains the size of backup virtual machine.
Specifically, the size of backup virtual machine is obtained, closes long-range connection, if getting the size of backup virtual machine,
More new job is operating status, continues subsequent operation, and otherwise, update job state is malfunctions and return to error message to page
Face.
Step S305:Long-range connection is closed, is more corrected students' papers as operating status.
Fig. 4 is the disk file of the establishment snapshot virtual machine of an embodiment and checks whether backup job needs to stop
Flow diagram.As shown in figure 4, in one embodiment, creating snapshot, the disk file of backup virtual machine simultaneously checks backup
The step of whether operation needs to stop, including:
Step S401:Create backup virtual machine snapshot.
Specifically, the virtualization center where the long-range connection backup virtual machine in backstage, obtains the disc information of virtual machine, protects
Virtual machine configuration is deposited, snapshot is created to backup virtual machine.
Step S402:Job state is updated, by network transmission, the disk file of virtual machine is backuped to the storage specified
Pond.
Specifically, if creating failure, update job state is malfunctions and error message is returned to the page, if created
The disk file of virtual machine, then by network transmission, is backuped to the storage pool specified by success.
Step S403:Update job scheduling.
Specifically, in transmission process, moment update job scheduling including processing size, transmission size, and checks backup
Whether operation, which needs, stops.
Fig. 5 is the flow diagram without Agent virtual back-up restoring method based on XEN of an embodiment.Such as Fig. 5 institutes
Show, the present invention also provides it is a kind of based on XEN without Agent virtual back-up restoring method, including:
Step S501:Obtain the details to resume operation.
Specifically, user enters the recovery page of Virtual Machine Manager, and complete machine is selected to restore, XEN virtual management platforms, into
Enter the recovery resource page, selection needs the backup point for restoring virtual machine to enter to restore the target machine page, select former machine create recovery or
Person's original machine restores or different host creates and restores three kinds of reset modes, if different host is selected to create recovery, needs to use
Family selection needs which virtualization center be restored to, and user fills in the name for restoring virtual machine, the name to resume operation.
The page by the establishment of previous step resume operation information be sent to backstage, backstage parse message content simultaneously check that its is legal
Property, database is recorded in job information, is returned to the page and creates the successful message that resumes operation.
User enters the operation page of Virtual Machine Manager, and what is created in startup previous step resumes operation, and backstage is waited for return
Job result.
Backstage receive the request to resume operation, obtain the details to resume operation first, if obtained successfully, continue into
Row resumes operation, if obtaining failure, backtracking run-time error result.
Step S502:Virtualization center is connected, redefines virtual machine, creates magnetic disk of virtual machine file.
Specifically, backup point store path is inquired from database from the background, obtains backup point size, update to database
And update job state.
If user selects former machine to restore, virtualization center is inquired according to target virtualization center IP in the database from the background
Link information, it is long-range to connect virtualization center, inquire the virtualization center with the presence or absence of the virtual machine, if it does not exist, then
Return resumes operation failure result;If it is successful, the virtual machine and the disk file of the virtual machine are deleted, from the background according to virtual machine
Configuration file redefines virtual machine, creates magnetic disk of virtual machine file, if creating successfully, continues subsequent step, if creating failure,
Background update resumes operation state to malfunction and returning to error message to the page.
If user selects, former machine creates recovery or different host creates recovery, from the background according to target virtualization center IP
The link information at inquiry virtualization center in the database, it is long-range to connect virtualization center, inquire whether the virtualization center deposits
In virtual machine of the same name, if it does, by virtual machine behind the name plus timestamp, to distinguish, modification virtual machine configuration text
Part defines virtual machine using the configuration file, creates magnetic disk of virtual machine file, if creating the failure of magnetic disk of virtual machine file, after
Virtual machine defined in platform deletion simultaneously updates the state that resumes operation to malfunction and returning to error message to the page.
Step S503:The magnetic disk of virtual machine file is written into backup file.
Specifically, backup directory is inquired according to backup point information in the database from the background, by network transmission, by backup text
Part is written to magnetic disk of virtual machine file, until backup file is transmitted.
Step S504:It checks the need for resuming operation described in stopping.
Specifically, in backup document transmission process, the transmission size and processing size of moment update backup file are simultaneously examined
Whether look into needs to stop resuming operation.
Step S505:When resuming operation described in do not need to stop, the details that resuming operation described in record are returned into
Work(information.
Specifically, the details to resume operation are recorded from the background, including operation result, are completed size and are waited until database simultaneously
Return resumes operation success message to the page.
If user select stop resume operation, checks the state to resume operation from the background, if operation in stopping or
Error status, deletes the virtual machine of establishment and magnetic disk of virtual machine file, and the error message to resume operation is recorded database simultaneously
Error message is returned into the page;
If user's selection continues to resume operation, backup file is checked from the background be transmitted and resume operation and be in successfully
State, the storage pool of host where the long-range update recovery machine in backstage, and the recovery machine information is recorded into virtualization center.
Fig. 6 is the flow diagram without Agent virtual back-up restoring method based on XEN of another embodiment.Such as Fig. 6
It is shown, in one embodiment, included based on XEN without Agent virtual back-up restoring method:
Step S601:Obtain the details to resume operation.
Specifically, user enters the recovery page of Virtual Machine Manager, and complete machine is selected to restore, XEN virtual management platforms, into
Enter the recovery resource page, selection needs the backup point for restoring virtual machine to enter to restore the target machine page, select former machine create recovery or
Person's original machine restores or different host creates and restores three kinds of reset modes, if different host is selected to create recovery, needs to use
Family selection needs which virtualization center be restored to, and user fills in the name for restoring virtual machine, the name to resume operation.
The page by the establishment of previous step resume operation information be sent to backstage, backstage parse message content simultaneously check that its is legal
Property, database is recorded in job information, is returned to the page and creates the successful message that resumes operation.
User enters the operation page of Virtual Machine Manager, and what is created in startup previous step resumes operation, and backstage is waited for return
Job result.
Backstage receive the request to resume operation, obtain the details to resume operation first, if obtained successfully, continue into
Row resumes operation, if obtaining failure, backtracking run-time error result.
Step S602:Virtualization center is connected, redefines virtual machine, creates magnetic disk of virtual machine file.
Specifically, backup point store path is inquired from database from the background, obtains backup point size, update to database
And update job state.
If user selects former machine to restore, virtualization center is inquired according to target virtualization center IP in the database from the background
Link information, it is long-range to connect virtualization center, inquire the virtualization center with the presence or absence of the virtual machine, if it does not exist, then
Return resumes operation failure result;If it is successful, the virtual machine and the disk file of the virtual machine are deleted, from the background according to virtual machine
Configuration file redefines virtual machine, creates magnetic disk of virtual machine file, if creating successfully, continues backup-step, if creating failure,
Background update resumes operation state to malfunction and returning to error message to the page.
If user selects, former machine creates recovery or different host creates recovery, from the background according to target virtualization center IP
The link information at inquiry virtualization center in the database, it is long-range to connect virtualization center, inquire whether the virtualization center deposits
In virtual machine of the same name, if it does, by virtual machine behind the name plus timestamp, to distinguish, modification virtual machine configuration text
Part defines virtual machine using the configuration file, creates magnetic disk of virtual machine file, if creating the failure of magnetic disk of virtual machine file, after
Platform deletion defines virtual machine and updates the state that resumes operation to malfunction and returning to error message to the page.
Step S603:The magnetic disk of virtual machine file is written into backup file.Specifically, existed from the background according to backup point information
Backup directory is inquired in database, by network transmission, backup file is written to magnetic disk of virtual machine file, until backup file
It is transmitted;In backup document transmission process, the transmission size and processing size of moment update backup file simultaneously check whether
It needs to stop resuming operation.
If user select stop resume operation, checks the state to resume operation from the background, if operation in stopping or
Error status, deletes the virtual machine of establishment and magnetic disk of virtual machine file, and the error message to resume operation is recorded database simultaneously
Error message is returned into the page;
If user's selection continues to resume operation, backup file is checked from the background be transmitted and resume operation and be in successfully
State, the storage pool of host where the long-range update recovery machine in backstage, and the recovery machine information is recorded into virtualization center.
Step S604:It checks the need for resuming operation described in stopping.
Step S605:When needing to resume operation described in stopping, the virtual machine and the magnetic disk of virtual machine file are deleted.
Specifically, the state to resume operation is checked from the background, if operation is in stopping or error status, deletes establishment
Virtual machine and magnetic disk of virtual machine file, are recorded database by the error message to resume operation and error message are returned to page
Face.
Step S606:The details to resume operation described in record, return success.
Fig. 7 is the flow diagram of details that the acquisition of an embodiment resumes operation.As shown in fig. 7, in a reality
The step of applying in example, obtaining the details to resume operation, including:
Step S701:Receive the request to resume operation
Step S702:The details to resume operation described in acquisition.
Step S703:Backup point store path is inquired from database, obtains backup point size.
Step S704:It updates the data library and updates job state.
Fig. 8 is that the connection of an embodiment virtualizes center, redefines virtual machine, creates the flow of magnetic disk of virtual machine file
Schematic diagram.As shown in figure 8, in one embodiment, connection virtualization center redefines virtual machine, creates magnetic disk of virtual machine
The step of file, including:
Step S801:It is long-range to connect virtualization center when receiving former machine recovery instruction.
Step S802:Judge to whether there is the virtual machine in virtualization center.
Step S803:If there are the virtual machines at the center of virtualization, the virtual machine and the disk file of the virtual machine, root are deleted
Virtual machine is redefined according to virtual machine configuration, creates magnetic disk of virtual machine file.
Step S804:When receiving, former machine creates recovery or different host is created when restoring instruction, remotely connection virtualization
Center if there are virtual machines of the same name at virtualization center, adds timestamp in virtual machine file name, changes virtual machine configuration,
Virtual machine is defined using the configuration file, creates magnetic disk of virtual machine file.
Fig. 9 is the schematic device without Agent virtual back-up device based on XEN of an embodiment.As shown in figure 9, this
Invention provide it is a kind of based on XEN without Agent virtual back-up device, including:
Backup acquisition device 110:For obtaining the details of backup job;
Backup attachment device 120:Connect virtualization center;
Backup creating device 130:For obtaining the disc information of virtual machine, virtual machine configuration is preserved;
Backup check device 140:For creating snapshot, the disk file of backup virtual machine simultaneously checks whether backup job needs
Stop;
Backup return mechanism 150:When backup job does not need to stop, the backup point of the backup job is recorded, is returned
Successful information.
Figure 10 is the schematic device without Agent virtual Backup and Restore device based on XEN of an embodiment.Such as Figure 10
It is shown, the present invention provide it is a kind of based on XEN without Agent virtual Backup and Restore device, including:
Restore acquisition device 210:For obtaining the details to resume operation;
Restore attachment device 220:For connecting virtualization center, virtual machine is redefined, creates magnetic disk of virtual machine file;
Restore writing station 230:For backup file to be written the magnetic disk of virtual machine file.
Restore check device 240:For and check the need for stop described in resuming operation;
Restore return mechanism 250:For when not needing to resume operation described in stopping, resuming operation described in record detailed
Information is return success.
It is above-mentioned based on XEN without Agent virtual back-up device and based on XEN without Agent virtual Backup and Restore device,
Without the installation of software, reduce the burden of management and compatibility, due to need to only carry out the backup of data, nothing by virtualizing center
It needs to act on behalf of, thus reduces the influence of the host and application program to production environment, while reduce to production environment resource
Consumption, has saved cost.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that those of ordinary skill in the art are come
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. it is a kind of based on XEN without Agent virtual backup method, which is characterized in that including:
Obtain the details of backup job;
Virtualization center is connected, obtains the disc information of virtual machine, preserves virtual machine configuration;
Snapshot is created, the disk file of backup virtual machine simultaneously checks whether backup job needs to stop;
When backup job does not need to stop, the backup point of the backup job is recorded, is return success.
2. it is according to claim 1 based on XEN without Agent virtual backup method, which is characterized in that it is described be based on XEN
Further included without Agent virtual backup method:
When backup job needs to stop, snapshot is deleted, closes the connection with the virtualization center;
Delete generated backup file, backtracking Stop message.
3. it is according to claim 1 based on XEN without Agent virtual backup method, which is characterized in that it is described obtain it is standby
The step of details of part operation, including:
Receive the request of backup job;
Obtain the details of the backup job;
The virtualization central information of the backup virtual machine is inquired from database;
The corresponding virtualization center of the virtual machine is remotely connected, obtains the size of backup virtual machine;
Long-range connection is closed, is more corrected students' papers as operating status.
4. it is according to claim 1 based on XEN without Agent virtual backup method, which is characterized in that it is described create it is fast
According to, the disk file of backup virtual machine simultaneously checks the step of whether backup job needs to stop, including:
Create backup virtual machine snapshot;
Job state is updated, by network transmission, the disk file of virtual machine is backuped to the storage pool specified;
Update job scheduling simultaneously checks whether backup job needs to stop.
5. it is a kind of based on XEN without Agent virtual back-up restoring method, which is characterized in that including:
Obtain the details to resume operation;
Virtualization center is connected, redefines virtual machine, creates magnetic disk of virtual machine file;
The magnetic disk of virtual machine file is written into backup file, and checks the need for resuming operation described in stopping;
When resuming operation described in do not need to stop, the details that resuming operation described in record are return success.
6. it is according to claim 5 based on XEN without Agent virtual back-up restoring method, which is characterized in that the base
It is further included in XEN based on XEN without Agent virtual back-up restoring method:
When needing to resume operation described in stopping, the virtual machine and the magnetic disk of virtual machine file are deleted;
The details to resume operation described in record, backtracking Stop message.
7. it is according to claim 5 based on XEN without Agent virtual back-up restoring method, which is characterized in that it is described to obtain
The step of taking the details to resume operation, including:
Receive the request to resume operation;
The details to resume operation described in acquisition;
Backup point store path is inquired from database, obtains backup point size;
It updates the data library and updates job state.
8. it is according to claim 5 based on XEN without Agent virtual back-up restoring method, which is characterized in that the company
The step of connecing virtualization center, redefining virtual machine, create magnetic disk of virtual machine file, including:
It is long-range to connect virtualization center when receiving former machine recovery instruction, if virtualization center, there are the virtual machine, deletion should
The disk file of virtual machine and the virtual machine redefines virtual machine according to virtual machine configuration, creates magnetic disk of virtual machine text
Part;
Recovery is created when receiving former machine or when different host creates recovery instruction, it is long-range to connect virtualization center, if virtualization
There are virtual machines of the same name at center, and timestamp is added behind virtual machine title, changes virtual machine configuration, utilize configuration text
Part defines virtual machine, creates magnetic disk of virtual machine file.
9. it is a kind of based on XEN without Agent virtual back-up device, which is characterized in that including:
Backup acquisition device:For obtaining the details of backup job;
Backup attachment device:Connect virtualization center;
Backup save set:For obtaining the disc information of virtual machine, virtual machine configuration is preserved;
Backup creating device:For creating snapshot, the disk file of backup virtual machine simultaneously checks whether backup job needs to stop;
Backup return mechanism:When backup job does not need to stop, the backup point of the backup job is recorded, returns and successfully believes
Breath.
10. it is a kind of based on XEN without Agent virtual Backup and Restore device, which is characterized in that including:
Restore acquisition device:For obtaining the details to resume operation;
Restore creating device:For connecting virtualization center, virtual machine is redefined, creates magnetic disk of virtual machine file;
Restore writing station:For backup file to be written the magnetic disk of virtual machine file, and check the need for described in stopping
It resumes operation;
Restore return mechanism:When resuming operation described in do not need to stop, the details that resuming operation described in record are returned into
Work(information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711489829.2A CN108182128A (en) | 2017-12-29 | 2017-12-29 | Based on XEN without Agent virtual back-up restoring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711489829.2A CN108182128A (en) | 2017-12-29 | 2017-12-29 | Based on XEN without Agent virtual back-up restoring method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108182128A true CN108182128A (en) | 2018-06-19 |
Family
ID=62549595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711489829.2A Pending CN108182128A (en) | 2017-12-29 | 2017-12-29 | Based on XEN without Agent virtual back-up restoring method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108182128A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376036A (en) * | 2018-11-01 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method and apparatus for backup virtual machine |
CN111949441A (en) * | 2019-05-14 | 2020-11-17 | Emc知识产权控股有限公司 | System and method for extensible backup search |
CN112395133A (en) * | 2020-11-17 | 2021-02-23 | 平安科技(深圳)有限公司 | Data backup method and device based on virtual machine and computer equipment |
CN113366450A (en) * | 2019-02-01 | 2021-09-07 | 三菱电机株式会社 | Information processing apparatus, backup method, recovery method, and program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541686A (en) * | 2011-11-29 | 2012-07-04 | 中标软件有限公司 | Method for achieving backup and disaster recovery of system by utilizing virtual machine |
CN102981931A (en) * | 2012-12-03 | 2013-03-20 | 中国联合网络通信集团有限公司 | Backup method and device for virtual machine |
CN104050014A (en) * | 2014-05-23 | 2014-09-17 | 上海爱数软件有限公司 | Efficient storage management method based on virtualization platform |
CN106598787A (en) * | 2016-12-31 | 2017-04-26 | 云宏信息科技股份有限公司 | Xen-based agent-free backup and recovery method and system |
-
2017
- 2017-12-29 CN CN201711489829.2A patent/CN108182128A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541686A (en) * | 2011-11-29 | 2012-07-04 | 中标软件有限公司 | Method for achieving backup and disaster recovery of system by utilizing virtual machine |
CN102981931A (en) * | 2012-12-03 | 2013-03-20 | 中国联合网络通信集团有限公司 | Backup method and device for virtual machine |
CN104050014A (en) * | 2014-05-23 | 2014-09-17 | 上海爱数软件有限公司 | Efficient storage management method based on virtualization platform |
CN106598787A (en) * | 2016-12-31 | 2017-04-26 | 云宏信息科技股份有限公司 | Xen-based agent-free backup and recovery method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376036A (en) * | 2018-11-01 | 2019-02-22 | 郑州云海信息技术有限公司 | A kind of method and apparatus for backup virtual machine |
CN113366450A (en) * | 2019-02-01 | 2021-09-07 | 三菱电机株式会社 | Information processing apparatus, backup method, recovery method, and program |
CN113366450B (en) * | 2019-02-01 | 2022-12-09 | 三菱电机株式会社 | Information processing apparatus, backup method, recovery method, and program |
CN111949441A (en) * | 2019-05-14 | 2020-11-17 | Emc知识产权控股有限公司 | System and method for extensible backup search |
CN112395133A (en) * | 2020-11-17 | 2021-02-23 | 平安科技(深圳)有限公司 | Data backup method and device based on virtual machine and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10114834B2 (en) | Exogenous virtual machine synchronization and replication | |
US11288130B2 (en) | Container-based application data protection method and system | |
US10169173B2 (en) | Preserving management services with distributed metadata through the disaster recovery life cycle | |
US9785523B2 (en) | Managing replicated virtual storage at recovery sites | |
US8321377B2 (en) | Creating host-level application-consistent backups of virtual machines | |
US10353790B1 (en) | Disaster recovery rehearsals | |
CN104239166B (en) | A kind of method that file backup is realized to virtual machine in operation | |
US8689047B2 (en) | Virtual disk replication using log files | |
US20200099692A1 (en) | System and method for protection of entities across availability zones | |
US8234474B2 (en) | Method of constructing replication environment and storage system | |
US7000235B2 (en) | Method and apparatus for managing data services in a distributed computer system | |
US20140297597A1 (en) | Computer system and management method for the same | |
CN108182128A (en) | Based on XEN without Agent virtual back-up restoring method | |
CN104040525B (en) | Overwrite media is accessed by network connection | |
US11604705B2 (en) | System and method for cloning as SQL server AG databases in a hyperconverged system | |
US11886902B2 (en) | Physical-to-virtual migration method and apparatus, and storage medium | |
US20200192693A1 (en) | Container provision support system and container provision support method | |
EP3750066A1 (en) | Protection of infrastructure-as-a-service workloads in public cloud | |
CN107111530A (en) | A kind of disaster recovery method, system and device | |
US11281550B2 (en) | Disaster recovery specific configurations, management, and application | |
US20050188251A1 (en) | Restricting the execution of copy services commands | |
KR101618992B1 (en) | System for providing virtual desktop service, control method thereof, recording medium for recording program for executing the control method, application saved in the recording medium for executing the control method being combined with hardware | |
Dell | ||
CN113127151B (en) | Real-time copying method, system and medium for data in virtualization environment | |
KR20230100902A (en) | Management system for data included in a container and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20180619 |