[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104317675B - The disaster tolerance treating method and apparatus of application - Google Patents

The disaster tolerance treating method and apparatus of application Download PDF

Info

Publication number
CN104317675B
CN104317675B CN201410670620.6A CN201410670620A CN104317675B CN 104317675 B CN104317675 B CN 104317675B CN 201410670620 A CN201410670620 A CN 201410670620A CN 104317675 B CN104317675 B CN 104317675B
Authority
CN
China
Prior art keywords
lun
application
data storage
packet
storage information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410670620.6A
Other languages
Chinese (zh)
Other versions
CN104317675A (en
Inventor
江勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410670620.6A priority Critical patent/CN104317675B/en
Publication of CN104317675A publication Critical patent/CN104317675A/en
Application granted granted Critical
Publication of CN104317675B publication Critical patent/CN104317675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The present embodiments relate to the disaster tolerance treating method and apparatus of application, this method includes:The first data storage information that timing acquiring first is applied from application server;First data storage information is analyzed, the first LUN LUN of the disk space that first application is used is obtained;It is that first application determines that first is grouped, first packet includes the first LUN according to the first LUN;The first LUN included according to the described first packet carries out disaster tolerance processing for the described first application.Therefore, in the embodiment of the present invention, it can not only ensure the integrality of the disaster tolerance data of application, and can be that the used LUN of application implements remote copy or snapshot automatically, implement simple, efficiency high, cost low.

Description

The disaster tolerance treating method and apparatus of application
Technical field
The present invention relates to the disaster tolerance treating method and apparatus of field of computer technology, more particularly to application.
Background technology
With continuing to develop for computer technology, in order to when meeting with disaster, using remaining able to normally use, it is necessary to right Using progress disaster tolerance processing.Government, enterprise, finance, the application type of the crucial application provided of telecommunications industry are usually several According to storehouse or virtual machine, these applications can all use storage area network (SAN, Storage Area Network) disk array Magnanimity, high performance storage are provided, and using the copy function of disk array itself, such as remote copy, snapshot, copy are deployment The data of application on disk array provide protection.Due to application and LUN (LUN, the Logical of disk space Uni t Number) between there are complicated storehouse and mapping relations, thus when carrying out disaster tolerance processing to application, how to ensure The integrality of the disaster tolerance data of application is that disaster tolerance is successfully crucial and basic.
In the prior art, when carrying out disaster tolerance processing to application, the disaster tolerance data of application are ensured by way of manual Integrality, idiographic flow generally includes:According to application the characteristics of and application to memory space the need for, SAN disk battle array Corresponding LUN is created on row;By the LUN mapping created to application server, such as database server or virtual machine service Device;Create the division successively on the application server, create physical volume, create logical volume group, create logical volume, establishment file system System, carry file system;Application is deployed on the file system created;Record application and LUN mapping relations;According to The mapping relations of record, set up remote copy for the used LUN of application or do snapshot.
Therefore, in the prior art when implementing disaster tolerance, in order to ensure the integrality of the disaster tolerance data of application, it will usually Strict limitation is done, such as some database or virtual machine monopolize a LUN or multiple LUN, artificial is the used LUN of application Implement remote copy or snapshot, the difficulty of implementation is big, efficiency is low, cost is high.
The content of the invention
The embodiment of the present invention provides a kind of disaster tolerance treating method and apparatus of application, can be that application is used automatically LUN implements remote copy or snapshot, implements simple, efficiency high, cost low.
First aspect includes there is provided a kind of disaster tolerance processing method of application, methods described:
The first data storage information that timing acquiring first is applied from application server;
First data storage information is analyzed, obtain the disk space that first application is used first is patrolled Collect unit number LUN;
It is that first application determines that first is grouped, first packet includes described first according to the first LUN LUN;
The first LUN included according to the described first packet carries out disaster tolerance processing for the described first application.
With reference in a first aspect, in the first implementation of first aspect, the application server is database service Device, the type of first application is database,
The first data storage information that the timing acquiring from application server first is applied, is specifically included:From described The store path information for the database file that timing acquiring first is applied on database server;
It is described that first data storage information is analyzed, obtain the of the disk space that first application is used One LUN LUN, is specifically included:
The store path information of the database file of first application is analyzed, the text where the database file is obtained Part systematic name;According to the file system title, the corresponding logical volume name of the file system is obtained;According to the logic File label claims, and obtains the corresponding logical volume group name of the logical volume;According to the logical volume group name, the logical volume group is obtained Corresponding physical volume title;According to the physical volume title, the corresponding disk partition title of the physical volume is obtained;According to described Disk partition title, obtains the LUN LUN of the corresponding disk space of the disk partition.
With reference to the first implementation of first aspect, in second of implementation of first aspect, the database File includes data file and journal file.
With reference in a first aspect, in the third implementation of first aspect, the application server is virtual machine service Device, the type of first application is virtual machine,
The first data storage information that the timing acquiring from application server first is applied, is specifically included:From virtual The data storage mark that timing acquiring first is applied on machine server;
It is described that first data storage information is analyzed, obtain the of the disk space that first application is used One LUN LUN, is specifically included:
According to the data storage mark of the described first application, obtain the data storage and identify patrolling for corresponding disk space Collect unit number LUN.
With reference to the first any one implementation into the third implementation of first aspect or first aspect, Described that first data storage information is analyzed in 4th kind of implementation of first aspect, obtaining described first should Before the first LUN LUN of the disk space used, methods described also includes:
Whether judge first application is newly-increased application;
When judging first application for newly-increased apply, execution is described to be divided first data storage information Analysis, the step of obtaining the first LUN LUN of the disk space that first application is used.
With reference to the 4th kind of implementation of first aspect, in the 5th kind of implementation of first aspect, methods described is also Including:
When judging first application not for newly-increased apply, judge whether first data storage information becomes Change;
When judging that first data storage information changes, perform described to first data storage information Analyzed, the step of obtaining the first LUN LUN of the disk space that first application is used.
It is described according to the first LUN with reference in a first aspect, in the 6th kind of implementation of first aspect, it is described First application determines that first is grouped, and first packet includes the first LUN, specifically includes:
Existing group list is read, each packet of the existing group list includes Apply Names list, LUN lists With Apply Names and LUN mapping relations list;
According to any one LUN in the first LUN, search and included in LUN lists in the existing group list The second packet of any one LUN;
When finding the second packet, the second packet is updated according to the first LUN, and by the institute after renewal Second packet is stated as the first packet;
When not finding the second packet, create first according to the first LUN and be grouped.
Second aspect includes there is provided a kind of disaster tolerance processing unit of application, described device:
Collecting unit, for the first data storage information that timing acquiring first is applied from application server;
Analytic unit, for analyzing the first data storage information that the collecting unit is gathered, obtains described the First LUN LUN of the disk space that one application is used;
Determining unit is grouped, is that first application determines first for the first LUN obtained according to the analytic unit Packet, first packet includes the first LUN;
Disaster tolerance processing unit, first for being determined according to the packet determining unit is grouped include described first LUN is that the described first application carries out disaster tolerance processing.
With reference to second aspect, in the first implementation of second aspect, the application server is database service Device, the type of first application is database,
The collecting unit, specifically for the database file applied from timing acquiring first on the database server Store path information;
The analytic unit, the storage of the database file of the first application specifically for analyzing the collecting unit collection Routing information, obtains the file system title where the database file;According to the file system title, the text is obtained The corresponding logical volume name of part system;According to the logical volume name, the corresponding logical volume group name of the logical volume is obtained;Root According to the logical volume group name, the corresponding physical volume title of the logical volume group is obtained;According to the physical volume title, institute is obtained State the corresponding disk partition title of physical volume;According to the disk partition title, the corresponding disk of the disk partition is obtained empty Between LUN LUN.
With reference to the first implementation of second aspect, in second of implementation of second aspect, the database File includes data file and journal file.
With reference to second aspect, in the third implementation of second aspect, the application server is virtual machine service Device, the type of first application is virtual machine,
The collecting unit, is identified specifically for the data storage that timing acquiring first is applied from virtual machine server;
The analytic unit, the data storage of the first application specifically for being gathered according to the collecting unit is identified, and is obtained The data storage is taken to identify the LUN LUN of corresponding disk space.
With reference to the first any one implementation into the third implementation of second aspect or second aspect, In 4th kind of implementation of second aspect, described device also includes:
First judging unit, for being analyzed in the analytic unit first data storage information, obtains institute Whether before the first LUN LUN for stating the disk space that the first application is used, it is newly-increased answer to judge first application With;
The analytic unit, specifically for judging that first application is newly-increased application when first judging unit When, first data storage information is analyzed, the first logic list of the disk space that first application is used is obtained Member LUN.
With reference to the 4th kind of implementation of second aspect, in the 5th kind of implementation of second aspect, described device is also Including:
Second judging unit, for when first judging unit judges first application for newly-increased apply, Judge whether first data storage information changes;
The analytic unit, specifically for judging that first data storage information occurs when second judging unit During change, first data storage information is analyzed, obtain the disk space that first application is used first is patrolled Collect unit number LUN.
With reference to second aspect, in the 6th kind of implementation of second aspect, the packet determining unit is specifically included:
Subelement is read, for reading existing group list, each packet of the existing group list includes application The mapping relations list of name list, LUN lists and Apply Names and LUN;
Subelement is searched, for any one LUN in the first LUN, is read in the reading subelement The second packet that any one LUN is included in LUN lists is searched in existing group list;
Update subelement, for when it is described lookup subelement find the second packet when, according to the first LUN more The new second packet, and it regard the second packet after renewal as the first packet;
Subelement is created, for when the lookup subelement does not find the second packet, according to the first LUN First is created to be grouped.
In the embodiment of the present invention, first will from application server timing acquiring first apply the first data storage information, Then the first data storage information is analyzed, the first LUN of the disk space that the first application is used is obtained, according to first LUN, is that the first application determines that first is grouped, the first packet includes the first LUN, first included further according to the first packet LUN is that the first application carries out disaster tolerance processing.Therefore, in the embodiment of the present invention, it can not only ensure the disaster tolerance data of application Integrality, and can be that the used LUN of application implements remote copy or snapshot automatically, implement simple, efficiency high, cost It is low.
Brief description of the drawings
Fig. 1 is network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the disaster tolerance processing method for the application that the embodiment of the present invention one is provided;
Fig. 3 is the flow chart of the disaster tolerance processing method for the application that the embodiment of the present invention two is provided;
Fig. 4 is the flow chart of the disaster tolerance processing method for the application that the embodiment of the present invention three is provided;
Fig. 5 is the structural representation of the disaster tolerance processing unit for the application that the embodiment of the present invention four is provided.
Embodiment
Below by drawings and examples, technical scheme is described in further detail.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
For ease of the understanding to the embodiment of the present invention, it is further explained below in conjunction with accompanying drawing with specific embodiment Bright, embodiment does not constitute the restriction to the embodiment of the present invention.
Fig. 1 is network architecture schematic diagram provided in an embodiment of the present invention.The network architecture is by application server 101, storage Array 102 and disaster recovery management server 103 are constituted, wherein, application server 101 be specifically as follows database server or Virtual machine server, storage array 102 can create LUN, and LUN is used to identify the disk space on storage array 102, and disk is empty Between can be the application memory application data on application server 101, disaster recovery management server 103 can be used for realizing this The disaster tolerance processing method for the application that inventive embodiments are provided.
In order to be able to which the store storehouse to application and application are dynamically monitored with the application relation between storage, gather and divided Analysis, can develop a set of software deployment in disaster recovery management server 103, and keep running without interruption for 24 hours, so as to , should to application message, application memory stack information and application and the dynamic monitoring, collection and analysis of mapping relations between storage It can be connected with server 101 by SAN with storage array 102, and the corresponding disks of the LUN provided using storage array 102 Space stores application data.Disaster recovery management server 103 is by LAN (LAN, Local Area Network) with answering It is connected with server 101, and storage array, and obtains application message and data storage information on application server 101.
Fig. 2 is the flow chart of the disaster tolerance processing method for the application that the embodiment of the present invention one is provided.The disaster tolerance processing of the application Method is based on the network architecture shown in Fig. 1, and the executive agent of methods described is disaster recovery management server 103, such as Fig. 2 institutes Show, methods described is specifically included:
Step 201, the first data storage information that timing acquiring first is applied from application server.
Wherein, it is described when the application server is database server, and the type of first application is database The first data storage information that timing acquiring first is applied from application server, can specifically include:From database clothes The store path information for the database file that timing acquiring first is applied on business device.
The database file can specifically include data file and journal file.
When the application server be virtual machine server, it is described first application type be virtual machine when, it is described from should The first data storage information applied with timing acquiring on server first, can specifically include:It is fixed from virtual machine server When collection first application data storage mark.
Step 202, first data storage information is analyzed, obtains the disk space that first application is used The first LUN LUN.
When step 201 specifically includes depositing for the database file applied from timing acquiring first on the database server It is described that first data storage information is analyzed when storing up routing information, obtain the disk sky that first application is used Between the first LUN LUN, can specifically include:Analyze the store path letter of the database file of first application Breath, obtains the file system title where the database file;According to the file system title, the file system is obtained Corresponding logical volume name;According to the logical volume name, the corresponding logical volume group name of the logical volume is obtained;According to described Logical volume group name, obtains the corresponding physical volume title of the logical volume group;According to the physical volume title, the physics is obtained Roll up corresponding disk partition title;According to the disk partition title, the corresponding disk space of the disk partition is obtained LUN。
When step 201 specifically includes the data storage mark that timing acquiring first is applied from virtual machine server, institute State and first data storage information is analyzed, obtain the first LUN of the disk space that first application is used, specifically It can include:According to the data storage mark of the described first application, obtain the data storage and identify corresponding disk space LUN。
Before step 202, methods described can also include:Whether judge first application is newly-increased application;When sentencing Break when first application for newly-increased apply, perform step 202.
Methods described can also include:When judging first application not for newly-increased apply, first number is judged Whether changed according to storage information;When judging that first data storage information changes, step 202 is performed.
Step 203, it is that first application determines that first is grouped, first packet includes according to the first LUN First LUN.
Specifically, following processing procedures can be included:Read existing group list, each point of the existing group list Group includes Apply Names list, LUN lists and Apply Names and LUN mapping relations list;According in the first LUN Any one LUN, searches the second packet for including any one LUN in LUN lists in the existing group list;When When finding the second packet, the second packet is updated according to the first LUN, and by the second packet after renewal It is used as the first packet;When not finding the second packet, create first according to the first LUN and be grouped.
Step 204, the first LUN included according to the described first packet is carried out at disaster tolerance for the described first application Reason.
In above-mentioned processing procedure, the embodiment of the present invention, first timing acquiring first to be applied from application server The first data storage information, then the first data storage information is analyzed, the first disk space for using of application is obtained The first LUN, according to the first LUN, be first application determine first be grouped, first packet include the first LUN, further according to first The first LUN that packet includes is that the first application carries out disaster tolerance processing.Therefore, in the embodiment of the present invention, it can not only protect The integrality of the disaster tolerance data of application is demonstrate,proved, and can be that the used LUN of application implements remote copy or snapshot automatically, is implemented Simply, efficiency high, cost are low.
Fig. 3 is the flow chart of the disaster tolerance processing method for the application that the embodiment of the present invention two is provided.The embodiment of the present invention two is One specific embodiment of the disaster tolerance processing method of application, the application server is database server, and described first should Type is database, and the disaster tolerance processing method of the application is based on the network architecture shown in Fig. 1, the executive agent of methods described For disaster recovery management server 103, as shown in figure 3, methods described is specifically included:
Step 301, from database server timing acquiring first apply database file store path information.
Step 302, the store path information of the database file of the application of analysis first, obtains the text where database file Part systematic name;According to the file system title, the corresponding logical volume name of the file system is obtained;According to the logic File label claims, and obtains the corresponding logical volume group name of the logical volume;According to the logical volume group name, the logical volume group is obtained Corresponding physical volume title;According to the physical volume title, the corresponding disk partition title of the physical volume is obtained;According to described Disk partition title, obtains the LUN of the corresponding disk space of the disk partition.
The database file includes data file and journal file.
Step 303, whether judge the first application is newly-increased application.
If judged result is that first application is newly-increased application, step 305 is performed, if judged result is described first Using being not newly-increased application, then step 304 is performed.
Step 304, judge whether the first data storage information changes.
When judging that first data storage information changes, step 305 is performed, otherwise without processing.
Step 305, first data storage information is analyzed, obtains the disk space that first application is used The first LUN.
Step 306, existing group list is read, each packet of the existing group list includes Apply Names row The mapping relations list of table, LUN lists and Apply Names and LUN.
Step 307, any one LUN in the first LUN, LUN row are searched in the existing group list The second packet of any one LUN is included in table.
Step 308, when finding the second packet, the second packet is updated according to the first LUN, and will more The second packet after new is used as the first packet.
Step 309, when not finding the second packet, create first according to the first LUN and be grouped.
In the embodiment of the present invention, the application identities that can apply one press a group storage with the used LUN of the application, also LUN used in the application identities of multiple applications and above-mentioned multiple applications can be deposited by group, for example, making using 1 and using 2 With LUN1, LUN2, LUN3, then simultaneously comprising using 1, using 2 and LUN1, LUN2, LUN3 in group.It can include in each packet Three category information below, the corresponding relation of the information, i.e. application identities and LUN of ProtectGroup keeping records packet; The object of the disaster tolerance protection of ProtectObject record packets, i.e. application identities, such as database, virtual machine etc.; The storage information of ProtectObjectStorageInfo record applications, i.e. LUN.
From above-mentioned processing procedure, using the disaster tolerance processing method of the application of the embodiment of the present invention, enter when to database During row storage dilatation, remote copy is set up together to the storage information of new dilatation and existing storage without craft or does fast together According to;When increasing new application in existing storage, it can be protected automatically for newly-increased application, such as in one group of LUN (LUN1, LUN2, LUN3) distributes to database server, and disposes database 1, if added newly in LUN1, LUN2, LUN3 Database 2, then without update the data mapping relations between storehouse 1 and database 2 and LUN1, LUN2 and LUN3 by hand.
Fig. 4 is the flow chart of the disaster tolerance processing method for the application that the embodiment of the present invention three is provided.The embodiment of the present invention three is One specific embodiment of the disaster tolerance processing method of application, the application server is virtual machine server, and described first should Type is virtual machine, and the disaster tolerance processing method of the application is based on the network architecture shown in Fig. 1, the executive agent of methods described For disaster recovery management server 103, as shown in figure 4, methods described is specifically included:
Step 401, the data storage mark that timing acquiring first is applied from virtual machine server.
Step 402, identified according to the data storage of the first application, obtain the data storage and identify corresponding disk space LUN.
Step 403, whether judge the first application is newly-increased application.
If judged result is that first application is newly-increased application, step 405 is performed, if judged result is described first Using being not newly-increased application, then step 404 is performed.
Step 404, judge whether the first data storage information changes.
When judging that first data storage information changes, step 405 is performed, otherwise without processing.
Step 405, first data storage information is analyzed, obtains the disk space that first application is used The first LUN.
Step 406, existing group list is read, each packet of the existing group list includes Apply Names row The mapping relations list of table, LUN lists and Apply Names and LUN.
Step 407, any one LUN in the first LUN, LUN row are searched in the existing group list The second packet of any one LUN is included in table.
Step 408, when finding the second packet, the second packet is updated according to the first LUN, and will more The second packet after new is used as the first packet.
Step 409, when not finding the second packet, create first according to the first LUN and be grouped.
, can also be to multiple using the disaster tolerance processing method of the application of the embodiment of the present invention from above-mentioned processing procedure The scene implementation calamity of Application share storage is standby, such as in virtualized environment, many feelings of corresponding relation of virtual machine and bottom storage Condition is multi-to-multi, and such as virtual machine VM1 uses LUN1, LUN2, LUN3, and virtual machine VM2 uses LUN3, LUN4, now only only Remote copy or snapshot are done to LUN1, LUN2, LUN3 or LUN3, LUN4 all cannot be while ensure that virtual machine VM1 and VM2 data are complete Whole property, and by the way that the mapping relations of application and storage manually can not be also easily recognized, the embodiment of the present invention from application by taking The first data storage information that timing acquiring first is applied on business device, is analyzed first data storage information, is obtained First LUN LUN of the disk space that first application is used, it is real so as to meet the disaster tolerance under this scene Apply.
Fig. 5 is the structural representation of the disaster tolerance processing unit for the application that the embodiment of the present invention four is provided.Described device can be with It is arranged in disaster recovery management server 103, as shown in figure 5, described device includes:
Collecting unit 501, for the first data storage information that timing acquiring first is applied from application server;
Analytic unit 502, for analyzing the first data storage information that the collecting unit 501 is gathered, is obtained First LUN LUN of the disk space that first application is used;
Determining unit 503 is grouped, is that first application is true for the first LUN obtained according to the analytic unit 502 Fixed first packet, first packet includes the first LUN;
Disaster tolerance processing unit 504, described in being included according to the first packet that the packet determining unit 503 is determined First LUN is that the described first application carries out disaster tolerance processing.
Preferably, the application server is database server, and the type of first application is database,
The collecting unit 501, specifically for the database applied from timing acquiring first on the database server The store path information of file;
The analytic unit 502, the database file specifically for analyzing the first application that the collecting unit 501 is gathered Store path information, obtain the file system title where the database file;According to the file system title, obtain The corresponding logical volume name of the file system;According to the logical volume name, the corresponding logical volume group of the logical volume is obtained Title;According to the logical volume group name, the corresponding physical volume title of the logical volume group is obtained;According to the physics file label Claim, obtain the corresponding disk partition title of the physical volume;According to the disk partition title, the disk partition correspondence is obtained Disk space LUN LUN.
Preferably, the database file includes data file and journal file.
Preferably, the application server is virtual machine server, and the type of first application is virtual machine,
The collecting unit 501, specifically for the data storage mark that timing acquiring first is applied from virtual machine server Know;
The analytic unit 502, specifically for the data storage mark of the first application gathered according to the collecting unit 501 Know, obtain the LUN LUN that the data storage identifies corresponding disk space.
Preferably, described device also includes:
First judging unit, for being analyzed in 502 pairs of analytic unit, first data storage information, is obtained Before first LUN LUN of the disk space that first application is used, judge whether first application is newly-increased Using;
The analytic unit 502, specifically for judging that first application is answered to be newly-increased when first judging unit Used time, first data storage information is analyzed, obtain the first logic of the disk space that first application is used Unit number LUN.
Preferably, described device also includes:
Second judging unit, for when first judging unit judges first application for newly-increased apply, Judge whether first data storage information changes;
The analytic unit 502, specifically for judging first data storage information when second judging unit When changing, first data storage information is analyzed, the of the disk space that first application is used is obtained One LUN LUN.
Preferably, the packet determining unit 503 is specifically included:
Subelement is read, for reading existing group list, each packet of the existing group list includes application The mapping relations list of name list, LUN lists and Apply Names and LUN;
Subelement is searched, for any one LUN in the first LUN, is read in the reading subelement The second packet that any one LUN is included in LUN lists is searched in existing group list;
Update subelement, for when it is described lookup subelement find the second packet when, according to the first LUN more The new second packet, and it regard the second packet after renewal as the first packet;
Subelement is created, for when the lookup subelement does not find the second packet, according to the first LUN First is created to be grouped.
In the disaster tolerance processing unit of the application of the embodiment of the present invention, first to be determined by collecting unit 501 from application server When collection first application the first data storage information, then analyzed by 502 pair of first data storage information of analytic unit, The first LUN of the disk space that the first application is used is obtained, is that the first application is true by packet determining unit 503 according to the first LUN Fixed first packet, the first packet includes the first LUN, then first included by disaster tolerance processing unit 504 according to the first packet LUN is that the first application carries out disaster tolerance processing.Therefore, in the embodiment of the present invention, it can not only ensure the disaster tolerance data of application Integrality, and can be that the used LUN of application implements remote copy or snapshot automatically, implement simple, efficiency high, cost It is low.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, hard in order to clearly demonstrate The interchangeability of part and software, generally describes the composition and step of each example according to function in the above description. These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme. Professional and technical personnel can realize described function to each specific application using distinct methods, but this realize It is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included Within protection scope of the present invention.

Claims (12)

1. the disaster tolerance processing method of a kind of application, it is characterised in that methods described includes:
The first data storage information that timing acquiring first is applied from application server;
First data storage information is analyzed, the first logic list of the disk space that first application is used is obtained Member LUN;
It is that the described first application determines that first is grouped according to the first LUN, first packet includes the first LUN;
The first LUN included according to the described first packet, is that first application carries out disaster tolerance processing;
Described is the first packet of the first application determination according to the first LUN, and first packet includes described first LUN, is specifically included:
Existing group list is read, each packet of the existing group list includes Apply Names list, LUN lists and answered With title and LUN mapping relations list;
According to any one LUN in the first LUN, searched in the existing group list in LUN lists comprising described Any one LUN second packet;
When finding the second packet, the second packet is updated according to the first LUN, and by described the after renewal Two packets are used as the first packet;
When not finding the second packet, create first according to the first LUN and be grouped, first packet includes institute State the first LUN.
2. according to the method described in claim 1, it is characterised in that the application server is database server, described the The type of one application is database,
The first data storage information that the timing acquiring from application server first is applied, is specifically included:From the data The store path information for the database file that timing acquiring first is applied on the server of storehouse;
Described that first data storage information is analyzed, obtain the disk space that first application is used first is patrolled Unit number LUN is collected, is specifically included:
The store path information of the database file of first application is analyzed, the file system where the database file is obtained System title;According to the file system title, the corresponding logical volume name of the file system is obtained;According to the logic file label Claim, obtain the corresponding logical volume group name of the logical volume;According to the logical volume group name, the logical volume group correspondence is obtained Physical volume title;According to the physical volume title, the corresponding disk partition title of the physical volume is obtained;According to the disk Partition name, obtains the LUN LUN of the corresponding disk space of the disk partition.
3. method according to claim 2, it is characterised in that the database file includes data file and daily record text Part.
4. according to the method described in claim 1, it is characterised in that the application server is virtual machine server, described the The type of one application is virtual machine,
The first data storage information that the timing acquiring from application server first is applied, is specifically included:From virtual machine clothes The data storage mark that timing acquiring first is applied on business device;
Described that first data storage information is analyzed, obtain the disk space that first application is used first is patrolled Unit number LUN is collected, is specifically included:
According to the data storage mark of the described first application, the logic list that the data storage identifies corresponding disk space is obtained Member LUN.
5. the method according to any claim in Claims 1-4, it is characterised in that described to first data Storage information is analyzed, before the first LUN LUN for obtaining the disk space that first application is used, the side Method also includes:
Whether judge first application is newly-increased application;
When judging first application for newly-increased apply, execution is described to be analyzed first data storage information, The step of obtaining the first LUN LUN of the disk space that first application is used.
6. method according to claim 5, it is characterised in that methods described also includes:
When judging first application not for newly-increased apply, judge whether first data storage information changes;
When judging that first data storage information changes, perform described to first data storage information progress Analysis, the step of obtaining the first LUN LUN of the disk space that first application is used.
7. the disaster tolerance processing unit of a kind of application, it is characterised in that described device includes:
Collecting unit, for the first data storage information that timing acquiring first is applied from application server;
Analytic unit, for analyzing the first data storage information that the collecting unit is gathered, obtaining described first should With the first LUN LUN of the disk space used;
Determining unit is grouped, is that first application determines first point for the first LUN obtained according to the analytic unit Group, first packet includes the first LUN;
Disaster tolerance processing unit, first for being determined according to the packet determining unit, which is grouped the first LUN included, is First application carries out disaster tolerance processing;
The packet determining unit is specifically included:
Subelement is read, for reading existing group list, each packet of the existing group list includes Apply Names The mapping relations list of list, LUN lists and Apply Names and LUN;
Subelement is searched, for any one LUN in the first LUN, in having that the reading subelement is read The second packet that any one LUN is included in LUN lists is searched in group list;
Subelement is updated, for when the lookup subelement finds the second packet, institute to be updated according to the first LUN Second packet is stated, and regard the second packet after renewal as the first packet;
Subelement is created, for when the lookup subelement does not find the second packet, being created according to the first LUN First packet.
8. device according to claim 7, it is characterised in that the application server is database server, described the The type of one application is database,
The collecting unit, is deposited specifically for the database file applied from timing acquiring first on the database server Store up routing information;
The analytic unit, the store path of the database file of the first application specifically for analyzing the collecting unit collection Information, obtains the file system title where the database file;According to the file system title, the file system is obtained Unite corresponding logical volume name;According to the logical volume name, the corresponding logical volume group name of the logical volume is obtained;According to institute Logical volume group name is stated, the corresponding physical volume title of the logical volume group is obtained;According to the physical volume title, the thing is obtained The corresponding disk partition title of reason volume;According to the disk partition title, the corresponding disk space of the disk partition is obtained LUN LUN.
9. device according to claim 8, it is characterised in that the database file includes data file and daily record text Part.
10. device according to claim 7, it is characterised in that the application server is virtual machine server, described the The type of one application is virtual machine,
The collecting unit, is identified specifically for the data storage that timing acquiring first is applied from virtual machine server;
The analytic unit, the data storage of the first application specifically for being gathered according to the collecting unit is identified, and obtains institute State the LUN LUN that data storage identifies corresponding disk space.
11. the device according to any claim in claim 7 to 10, it is characterised in that described device also includes:
First judging unit, for being analyzed in the analytic unit first data storage information, obtains described the Whether before first LUN LUN of the disk space that one application is used, it is newly-increased application to judge first application;
The analytic unit, it is right specifically for when first judging unit judges first application for newly-increased apply First data storage information is analyzed, and obtains the first LUN of the disk space that first application is used LUN。
12. device according to claim 11, it is characterised in that described device also includes:
Second judging unit, for when first judging unit judges first application not for newly-increased apply, judging Whether first data storage information changes;
The analytic unit, specifically for judging that first data storage information changes when second judging unit When, first data storage information is analyzed, the first logic list of the disk space that first application is used is obtained Member LUN.
CN201410670620.6A 2014-11-21 2014-11-21 The disaster tolerance treating method and apparatus of application Active CN104317675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410670620.6A CN104317675B (en) 2014-11-21 2014-11-21 The disaster tolerance treating method and apparatus of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410670620.6A CN104317675B (en) 2014-11-21 2014-11-21 The disaster tolerance treating method and apparatus of application

Publications (2)

Publication Number Publication Date
CN104317675A CN104317675A (en) 2015-01-28
CN104317675B true CN104317675B (en) 2017-08-11

Family

ID=52372910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410670620.6A Active CN104317675B (en) 2014-11-21 2014-11-21 The disaster tolerance treating method and apparatus of application

Country Status (1)

Country Link
CN (1) CN104317675B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203327B (en) 2016-03-16 2020-02-28 伊姆西Ip控股有限责任公司 Method and device for storage system
CN107391192B (en) * 2017-07-21 2020-07-10 苏州浪潮智能科技有限公司 Database server upgrading method and device
CN108874317A (en) * 2018-06-07 2018-11-23 郑州云海信息技术有限公司 The automatic flash chamber of logical volume subregion and method under a kind of linux system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838055A (en) * 2005-01-28 2006-09-27 惠普开发有限公司 Storage replication system with data tracking
CN101241456A (en) * 2008-02-28 2008-08-13 华为技术有限公司 Data protection method, device and memory apparatus
CN101359301A (en) * 2008-08-19 2009-02-04 成都市华为赛门铁克科技有限公司 Auto snapshot method and device
CN101366011A (en) * 2005-10-12 2009-02-11 存储器械有限公司 Data backup devices and methods for backing up data
CN101562761A (en) * 2009-05-18 2009-10-21 杭州华三通信技术有限公司 Method and system for backup storage in optical network
CN102929748A (en) * 2012-11-08 2013-02-13 华为技术有限公司 Method and device for data backup
CN103034592A (en) * 2012-12-05 2013-04-10 华为技术有限公司 Data processing method and device
CN103559101A (en) * 2013-10-15 2014-02-05 华为技术有限公司 Data backup and recovery method of operating system, storage device and terminal
CN103631682A (en) * 2013-12-18 2014-03-12 华为技术有限公司 Data backup implement method and device
CN103838646A (en) * 2014-02-13 2014-06-04 中国科学院国家天文台 System and method for big data remote disaster recovery backup of ground application
US8769334B1 (en) * 2010-10-04 2014-07-01 Symantec Corporation Techniques for providing instant disaster recovery

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838055A (en) * 2005-01-28 2006-09-27 惠普开发有限公司 Storage replication system with data tracking
CN101366011A (en) * 2005-10-12 2009-02-11 存储器械有限公司 Data backup devices and methods for backing up data
CN101241456A (en) * 2008-02-28 2008-08-13 华为技术有限公司 Data protection method, device and memory apparatus
CN101359301A (en) * 2008-08-19 2009-02-04 成都市华为赛门铁克科技有限公司 Auto snapshot method and device
CN101562761A (en) * 2009-05-18 2009-10-21 杭州华三通信技术有限公司 Method and system for backup storage in optical network
US8769334B1 (en) * 2010-10-04 2014-07-01 Symantec Corporation Techniques for providing instant disaster recovery
CN102929748A (en) * 2012-11-08 2013-02-13 华为技术有限公司 Method and device for data backup
CN103034592A (en) * 2012-12-05 2013-04-10 华为技术有限公司 Data processing method and device
CN103559101A (en) * 2013-10-15 2014-02-05 华为技术有限公司 Data backup and recovery method of operating system, storage device and terminal
CN103631682A (en) * 2013-12-18 2014-03-12 华为技术有限公司 Data backup implement method and device
CN103838646A (en) * 2014-02-13 2014-06-04 中国科学院国家天文台 System and method for big data remote disaster recovery backup of ground application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"点对点容灾解决方案V100R001C00";华为技术有限公司;《技术白皮书》;20140120;第5页第2段、第6页第5段、第16页第1-5段,图2-1、图2-5、图3-1 *

Also Published As

Publication number Publication date
CN104317675A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
US11087329B2 (en) Method and apparatus of identifying a transaction risk
US11601351B2 (en) Aggregation of select network traffic statistics
CN104182508B (en) A kind of data processing method and data processing equipment
US20090249213A1 (en) User interface providing information system topology presentation
CN107094143B (en) Method and device for detecting policy redundancy
CN107070897B (en) Network log storage method based on more attribute Hash duplicate removals in intruding detection system
CN104317675B (en) The disaster tolerance treating method and apparatus of application
CN106407224A (en) Method and device for file compaction in KV (Key-Value)-Store system
CN112019449B (en) Traffic identification packet capturing method and device
CN107608860A (en) A kind of method, apparatus, the equipment of error log classification storage
CN111580915A (en) Topological graph drawing method and device, storage medium and processor
CN106021048A (en) Out-of-order verification method and device of disk pack
WO2015042206A1 (en) Dynamic discovery of applications, external dependencies, and relationships
CN104881483B (en) Automatic detection evidence collecting method for the attack of Hadoop platform leaking data
CN106933644A (en) Data processing method and device
CN107678906A (en) Hard disk management method and system
US9916068B1 (en) Graphical user interface for displaying alarm security level of groups of elements
CN112486914A (en) Data packet storage and fast check method and system
CN107515807B (en) Method and device for storing monitoring data
CN109582509A (en) Distributed file system disaster tolerance configuration method, device and readable storage medium storing program for executing
CN109446167A (en) A kind of storage of daily record data, extracting method and device
CN107590160B (en) Method and device for monitoring internal structure of radix tree to realize test
CN103942012B (en) A kind of method, device and equipment for reading data
Hermon et al. Ntfs: Introduction and analysis from forensics point of view
CN106855888A (en) Daily record monitoring system based on Logstash distributed systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant