CN108984106A - Method and apparatus for data duplication switching - Google Patents

Method and apparatus for data duplication switching Download PDF

Info

Publication number
CN108984106A
CN108984106A CN201710409904.3A CN201710409904A CN108984106A CN 108984106 A CN108984106 A CN 108984106A CN 201710409904 A CN201710409904 A CN 201710409904A CN 108984106 A CN108984106 A CN 108984106A
Authority
CN
China
Prior art keywords
data
duplication
file system
source device
session
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.)
Granted
Application number
CN201710409904.3A
Other languages
Chinese (zh)
Other versions
CN108984106B (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.)
EMC Corp
Original Assignee
EMC IP Holding Co LLC
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 EMC IP Holding Co LLC filed Critical EMC IP Holding Co LLC
Priority to CN201710409904.3A priority Critical patent/CN108984106B/en
Publication of CN108984106A publication Critical patent/CN108984106A/en
Application granted granted Critical
Publication of CN108984106B publication Critical patent/CN108984106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The method and apparatus that embodiment of the disclosure is related to replicating switching for data.This method includes the duplication for starting primary data from source device to destination equipment, and wherein the primary data is the data for the file system being stored on source device on startup.This method further includes the duplication in response to completing primary data, updates session associated with file system.Furthermore, this method further includes after session is updated, triggering source device and destination equipment enter data down state, and to execute duplication of the incremental data from source device to destination equipment, wherein the incremental data is the data that file system changes during the duplication of primary data.The handover mechanism proposed using the disclosure can be effectively reduced data unavailable time.

Description

Method and apparatus for data duplication switching
Technical field
Embodiment of the disclosure relates in general to data duplication, and in particular to the method and apparatus for data duplication switching.
Background technique
In technical field of network storage, NAS (network attached storage) is widely used, to provide the file of large capacity Storage service.Due to there is such as demand of upgrading or dilatation NAS system hardware, NAS device (is also known as NAS herein Server, or referred to as NAS) manager may need in face of by the NAS device of source data duplication (also claimed herein For " migration " or " movement ") to destination NAS device the technical issues of.For example, all by what is installed on older source NAS device In file system migration to newer destination NAS device.Since NAS device has very big data capacity, whole equipment Transition process it is more very long, it usually needs data completely could be transferred to purpose from source by several hours or even several days time Ground.The considerations of for Security and Integrality of Data, during entire data migration process (or in part-time wherein), User is not available the state of NAS by being in, this leverages the usage experience of user.
In general, what user was connected to before NAS Data Migration is source NAS device, and it is connected to purpose after migration Ground NAS device.For source and destination NAS device, there are switching (cutover) processes.For the owner of NAS Or for manager, it is generally desirable to be reduced as far as possible due to NAS Data Migration or be switched to user's bring inconvenience.Cause This, how the mechanism of reasonable design Data Migration switching becomes a challenge to provide faster handoff procedure.
Summary of the invention
Embodiment of the disclosure is provided for providing the method and apparatus of quick nas server migration switching.
According to the disclosure in a first aspect, providing the method for data duplication switching.This method comprises: starting is initial Duplication of the data from source device to destination equipment, the primary data are the file system being stored on source device on startup Data;In response to completing the duplication of primary data, session associated with file system is updated;After the update of session, touching The equipment that rises and destination equipment enter data down state, to execute incremental data answering from source device to destination equipment System, incremental data is the data that file system changes during the duplication of primary data.
According to the second aspect of the disclosure, a kind of electronic equipment for data duplication switching is provided.The equipment includes: At least one processing unit;At least one processor, at least one processor be coupled at least one processing unit and The instruction executed by least one processing unit is stored, the instruction by least one processing unit when being executed, so that the device Movement is executed, movement includes: the duplication for starting primary data from source device to destination equipment, which is on startup It is stored in the data of the file system on source device;In response to completing the duplication of primary data, update associated with file system Session;After the update of session, triggers source device and destination equipment enters data down state, to execute incremental number According to the duplication from source device to destination equipment, incremental data is that file system changes during the duplication of primary data Data.
According to the third aspect of the disclosure, computer program product is provided.The computer program product is visibly deposited Storage is in non-transient computer-readable media and including machine-executable instruction.Machine-executable instruction makes when executed The arbitrary steps of machine execution method according to described in the first aspect of the disclosure.
The above Summary is their below specific in order to introduce the selection to concept in simplified form It will be further described in embodiment.Summary be not intended to identify the disclosure key feature or main feature, also without Meaning limits the scope of the present disclosure.
Detailed description of the invention
Disclosure exemplary embodiment is described in more detail in conjunction with the accompanying drawings, the disclosure it is above-mentioned and other Purpose, feature and advantage will be apparent, wherein in disclosure exemplary embodiment, identical reference label is usual Represent same parts.
Fig. 1 shows the schematic diagram of the framework of Data Migration hand-off process according to an embodiment of the present disclosure;
Fig. 2 shows the flow charts of Data Migration hand-off process according to an embodiment of the present disclosure;
Fig. 3 shows the flow chart of the method according to an embodiment of the present disclosure for realizing Data Migration hand-off process;
Fig. 4 shows the schematic diagram of the reproduction process of primary data according to an embodiment of the present disclosure;
Fig. 5 shows the schematic diagram of the reproduction process of incremental data according to an embodiment of the present disclosure;
Fig. 6 shows the flow chart of starting handoff process according to an embodiment of the present disclosure;
Fig. 7 shows the schematic diagram of effect of optimization according to an embodiment of the present disclosure;And
Fig. 8 shows the schematic block diagram that can be used to implement the example apparatus of embodiment of the disclosure.
Specific embodiment
Preferred embodiment of the present disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Preferred embodiment, however, it is to be appreciated that may be realized in various forms the disclosure without that should be limited by embodiments set forth here System.On the contrary, thesing embodiments are provided so that the disclosure is more thorough and complete, and can be complete by the scope of the present disclosure Ground is communicated to those skilled in the art.
Terminology used in this article " comprising " and its deformation indicate that opening includes, i.e., " including but not limited to ".Unless Especially statement, term "or" indicate "and/or".Term "based" indicates " being based at least partially on ".Term " implemented by an example Example " and " one embodiment " expression " at least one example embodiment "." at least one is other for term " another embodiment " expression Embodiment ".Term " first ", " second " etc. may refer to different or identical object.Hereafter it is also possible that other are bright True and implicit definition.
Terminology used in this article " duplication " can be used interchangeably with " migration " and " movement ".Only pass through exemplary side Formula describes implementation of the disclosure example based on server and file system.
In general, being stored with multiple relatively independent file system on NAS device, net is based on for providing to multiple users The service of network file system protocol (NFS).In the occasion of NAS migration, the file system installed on the nas server of source is copied to The file system installed on the nas server of destination, it usually needs long period (for example, several hours were to several days).NAS service Device may include dozens of, hundreds of or even greater number of file system, and each file system is executed separately in referred to as band The file system level of Migration tools packet (IMT) copy session replicates.
In the reproduction process, the handoff procedure from source NAS to destination NAS will be executed, before the handoff process, will be used Family is connected to source NAS, and after handoff procedure is finally completed, that user is connected to is destination NAS, and by destination NAS File system service is provided again to user.User may not need to know NAS used in him experienced Data Migration with And handoff procedure.It should be understood that in each file system level reproduction process, for for the data inside file system Integrality or safety the considerations of, duplication start after certain time period within, NAS will be unable to external user provide number According to will be unable to be connected to NAS, this is because user will bring the accessing operation of file system to data migration process this moment Problem.This period is also referred to as data unavailable (DU) period.
Traditionally, once Data Migration, it is necessary to the connection of external user and nas server is disconnected, to protect The data safety of transition process.But there is very big drawback in the case where transition process needs a large amount of time-consuming in such scheme. For commercial nas server, the acceptable DU period cannot be too long, for example, having the case where several hundred a file system Under, it is desirable that the DU period was no more than 90 seconds.Since length of the nas server to the DU period is more sensitive, therefore, it is desirable to propose one Kind can be effectively reduced the migration mechanism of DU period.
In order at least be partially solved the above problem and other potential problems, the example embodiment of the disclosure proposes use In the mechanism for fast implementing NAS migration switching.Data reproduction process is divided into two stages and is directed to the two by the mechanism Stage, the treatment process for optimizing migration switching reduce the data unavailable period to effectively improve switching efficiency.
Fig. 1 shows the schematic diagram of the framework of Data Migration switching according to an embodiment of the present disclosure.It should be appreciated that only going out The structure and function of framework 100 is described in exemplary purpose rather than implies any restrictions for the scope of the present disclosure.This Disclosed embodiment can be embodied in different structure and/or function.
As shown in Figure 1, framework 100 may include: client 110, source device 120 and destination equipment 130.Multiple source documents Part system 121-123 is mounted on source device 120, and will be moved to destination by source device after Data Migration starts and be set It is standby.After migration is completed, multiple destination document system 131-133s corresponding with source file system are located at destination equipment On 130.For example, source device 120 and destination equipment 130 can be server.Specifically, source device 120 can be NAS clothes The older version of business device, and destination equipment 130 can be the more recent version of file server.Alternatively, source device 120 can be with It is the equipment with destination equipment equity.
It will be appreciated that any number of source file system can be installed on source device 120.Each source file system can be with It executes and is referred to as the file system level duplication with interior migration kit (IMT) copy session.The duplication of multiple file system levels can be with It carries out simultaneously.During data duplication, the accessible source device 120 of client 110, to change the data of file system.
Framework 100 can also include replication engine 135, be mounted in destination equipment 130, for controlling each source document Part system 121-123 is replicated to the data of destination document system 131-133.
Fig. 2 shows the flow charts of data replication processes 200 according to an embodiment of the present disclosure.For example, at data duplication Reason 200 can be executed by replication engine 135 as shown in Figure 1.It should be understood that data replication processes 200 can also wrap It includes unshowned supplementary frame and/or can be omitted shown frame, the scope of the present disclosure is not limited in this respect.
Data replication processes 200 start from frame 210.In frame 210, the connection between two nas servers is set, with creation Server level copy session.Such as there are three source file system 121-123, the then services for installation on source device 120 shown in FIG. 1 Device grade copy session can have three file system level IMT copy sessions being performed simultaneously.Based on above-mentioned copy session, duplication Engine can manage the corresponding reproduction process of each file system between source device 120 and destination equipment 130.
In frame 220, for each file system level copy session, log-on data duplication, will at the time of replicating starting source Primary data (also referred to as historical data) copies to destination document system present on file system 121.This stage quilt The initial stage referred to as replicated.In the initial stage, user still may be coupled to source file system and execute data access Operation, but any data occurred in this stage change, and all will not be copied to destination equipment in the initial stage.
In frame 230, replication engine receives the switching command that administrator sends, for the duplication meeting of each file system level Words replicate incremental data.The operation will remove the IMT in the duplication for replicating primary data of initial stage creation first Session, and create the IMT session for replicating incremental data.Here, incremental data includes at least the source during the initial stage Data that file system is accumulated, changing, this stage are referred to as the incremental stages replicated.It is readily appreciated that, above-mentioned institute The data to change may include the data of the data that user increases newly, the data that user deletes and user's change.
In frame 240, replication engine 135 deletes file system level copy session, and entire reproduction process is completed, and by destination Equipment provides a user NAS service.
As it can be seen that file system level copy session executes in two stages: the initial stage in the embodiment of the disclosure And incremental stages.The initial stage of duplication will create IMT session, when to replicate starting present on source file system 121 Primary data copies in destination document system 131.The IMT meeting that the incremental stages of duplication create removal in the initial stage Words, and create the IMT session for replicating incremental data.Since migrating data of file system process is divided by the embodiment Two stages, to realize in the transition process of primary data, external user still be able to normal use nas server into Row data access, effectively improves user experience.
In the above scheme, after entering frame 230, there are data unavailable (DU) periods.That is, in replication engine Receive the switching command that administrator sends and start execute hand-off process after, replication engine will control each file system into Enter the duplication of incremental data.In in this stage, user will both cannot connect to source device for some time, also cannot connect to Destination equipment.The unavailable time section completes the incremental stages for being continued until duplication.After this, external user will be even It is connected to destination equipment, and accesses the file system inside destination equipment.The unavailable time section is to guarantee that data are complete Whole property and there must be, but this will inevitably impact on the usage experience of user.
Fig. 3 shows the flow chart of the method according to an embodiment of the present disclosure for realizing Data Migration hand-off process. This embodiment offers the further improvements to previous embodiment.Method 300 for example can be by replication engine as shown in Figure 1 135 execute.It should be understood that method 300 can also include unshowned supplementary frame and/or can be omitted shown Frame, the scope of the present disclosure are not limited in this respect.
In frame 310,135 log-on data of replication engine is from the source file system 121 on source device in destination equipment The duplication of destination document system 131.As described above, the duplication of data is divided into two stages: initial stage and increment rank Section.
Fig. 4 shows the schematic diagram of the reproduction process 400 of primary data according to an embodiment of the present disclosure.It should be understood that It is for the sake of description simplicity, to be illustrated only in Fig. 4 in single source file system 121 and the destination equipment in source device Single destination document system 131.And in fact, source device can be for example similar with source file system 121 with several hundred Alternative document system, each file system migration when be copied to destination equipment.Each file system is individually It executes and is known as the file system level reproduction process with interior migration kit (IMT) copy session.
In the initial stage 400, when replicating starting, primary data present on source file system 121 is replicated.Specifically For, when replicating starting, replication engine 135 will scan data present on (traversal) source file system 121.It is scanned Data are will be in the primary data 1211 that the initial stage is replicated.Wherein, for the file data that does not scan temporarily Modification is considered as primary data 1211 due to that will be scanned.On the contrary, being repaired to what scanned file data was done Change, it will be considered as incremental data 1213.
After scanned, replication engine will be directed to each file system, create associated with the duplication of primary data IMT session 401 (calls the first session in the following text), and primary data 1211 is copied to destination document system 131, as the first of duplication Beginning data 1311.In the initial stage 400 of duplication, client 110 still is able to continuous access source device 120, thus in source document Incremental data 1213 is generated in part system 121., it is understood that incremental data 1213 is only remembered in the initial stage 400 Record, without being copied to destination equipment.
Until when replicating starting, all primary datas 1211 present on source file system 121 are copied to destination Side, the IMT session for the initial stage 400 are completed.
Referring back to Fig. 3, meeting associated with file system is updated in response to completing the duplication of primary data in frame 320 Words.In this step, replication engine 135 will remove the first session 401 established in the initial stage 400, and create with The associated session of the incremental stages of subsequent duplication (calls the second session in the following text).After second conversation establishing finishes, replication engine 135 do not immediately begin to the second session to enter the incremental stages of duplication, but enable the second session it is in the temporary of waiting for the start Stop state.
It is worth noting that, in this embodiment, after the initial stage for completing duplication, replication engine 135 is immediately It executes and removes the first session associated with the duplication of primary data and creation the second meeting associated with the duplication of incremental data The operation of words, and the second session is made to be in the state of waiting for the start.Due to switching when executing the operation of above-mentioned more new session Processing does not start, namely does not start the reproduction process of incremental data, so external user being capable of continuous access source file system System, therefore not yet enter the data unavailable period at this time.Compared with the embodiment referring to Fig. 2 description, the further improved reality Apply example by script hand-off process starting after, entered the more new session executed in data unavailable time section operation move It is carried out before having arrived hand-off process, after the initial stage completion of duplication, and just triggers replication engine after the update of session Hand-off process is executed, namely triggering source device and destination equipment enter data down state, so that incremental data be replicated To destination document system.
The operation of frame 320 is seen clearly based on such: the duplication phase after primary data duplication is completed, with primary data Associated session will be nonsensical, needs to be deleted;And session needs associated with the duplication of incremental data are established, to hold The duplication of row incremental data.Increment after such step is placed on hand-off process by embodiment corresponding with Fig. 2, as duplication The preparation in stage operates, it will occupies the data unavailable period.And if the operation of more new session is creatively moved to initial number It carries out, then can be reduced as far as in the data unavailable period performed after being completed according to duplication, before hand-off process starting Operation, and reductions of these operations not will lead to entire data migration process and be adversely affected.To which data are unavailable The duration of period is reduced as far as possible, to provide better user experience.
In one embodiment, replication engine also performs the following operations in the initial stage: will be with Network File System (NFS) associated configuration information copies to destination equipment from source device.The configuration information for example can be, with export (exports) or quota (quotas) associated configuration information.
Referring still to Fig. 3, in frame 330, after session is updated, administrator by send order, triggering replication engine into Enter handoff process, to trigger source device and destination equipment enters data down state, with execute incremental data from Duplication of the source device to destination equipment.As previously mentioned, incremental data is source file system 121 during the duplication of primary data The data to change
Fig. 5 shows the schematic diagram of the reproduction process 500 of incremental data according to an embodiment of the present disclosure.It should be understood that It is, it is similar with Fig. 4, for the sake of description simplicity, single source file system 121 and the mesh in source device are illustrated only in Fig. 5 Ground equipment in single destination document system 131.And in fact, source device can be for example with several hundred and source file system It unites 121 similar alternative document systems, each file system, which is executed separately, copies to destination document system for incremental data The reproduction process of system 131.
In the incremental stages 500 of duplication, those incremental datas 1213 accumulated during the initial stage of duplication will be answered Destination document system 131 is made, the incremental data 1313 of duplication is become.For each file system, replication engine will start The second session being pre-created before, being in waiting for the start state, and execute the reproduction process for being directed to incremental data.? The incremental stages 500 of duplication, client 110 will be unable to access source device 120, while also will be unable to access destination equipment 130. Such data down state will continue up to after the end of incremental stages 500.It should be understood that in the unavailable shape of data After state terminates, user will be connected to destination equipment 130, to realize the access to destination document system 131.
As it can be seen that compared with the embodiment referring to Fig. 2 description, above-described embodiment of the disclosure will be by that will update and file system The associated session of reproduction process move to before hand-off process and carry out, it is unavailable can effectively, further to reduce data Time.
In the above-described embodiments, replication engine 135 is based on multiple second sessions of following manner starting: starting each one by one The second session being waited for, namely after obtaining the state that second session is successfully started up, just continue to hold Row starts the operation of another the second session.In another embodiment of the disclosure, in order to further increase hand-off process Efficiency further provides a kind of Asynchronous Invocation.Specifically, replication engine will after entering the incremental replication stage Execute " the group's starting " to the set of multiple second sessions.Multiple second session for example can be the second session whole or A part.In " group's starting " mode, for each of multiple second sessions, start command is uniformly issued, and And its state whether successfully started up is no longer obtained after issuing, but default each second session and be activated and voluntarily started It executes.Then, every fixed period renewal time, unified send is obtained current sessions state by replication engine 135 It orders to each second session, to understand whether each second session has been completed.By using parallel mode as described above, Multiple second sessions can be efficiently managed, and further save the time.
Fig. 6 shows the flow chart of starting handoff process according to an embodiment of the present disclosure.According to this embodiment, exist After the replication engine 135 of destination equipment receives the switching command that administrator sends, performed by handoff process Specifically also include the following specific steps:
In frame 610, information associated with network lock management (NLM) of source device is received, these information include user's letter Breath and file lock information.
In frame 620, freeze the file system of source device.For source file system, in fact until frame 620 it Before, I/O operation is executing always.At this moment, the I/O of source file system may write a part, and just be written to In the caching of operating system.If hand-off process does not freeze file system, the data in caching would not be written into hard disk In, to cause loss of data.After file system is frozen, other any NFS operations associated there, NLM lock behaviour Work etc. will be all rejected.Namely since frame 620, into the data unavailable period.
In frame 630, the network interface of source device is disabled, and restores network interface in destination equipment;
In frame 640, the file system of defrosting source device, the incremental data reproduction process will to start in frame 650 is prepared;
In frame 650, starts incremental replication session, incremental data is copied into destination document system.It should be understood that Frame 650 is the core procedure of entire hand-off process.
In frame 660, the network interface of destination equipment is enabled.Destination equipment is after this, it will be able to external user Offer services.It should be understood that the data unavailable period leaves it at that.
In frame 670, destination equipment, which is locked based on NLM to user, sends the notice that state changes.
It follows that the data unavailable period since the frame 620, until frame 660 terminates.In the meantime, performed by frame 650 It is related with the duplication of incremental data operation be the most core the step of.One of ordinary skill in the art should be appreciated that in addition to frame 650 Step corresponding to other each frames in addition be all it is complementary or alternative, can be by NAS manager according to reality Situation is modified, deletes or increases.
Fig. 7 shows the schematic diagram of effect of optimization according to an embodiment of the present disclosure.In Fig. 7, upper drawing shows bases The experimental measurements of user's unavailable time of the embodiment of Fig. 2 of the disclosure.It can be seen from the figure that with NAS device It is capable of providing to the increase of the network interface quantity of user, corresponding data unavailable time also increases with it.It is connect in user When mouth quantity is, for example, 5, data unavailable time is 85 seconds.In Fig. 7, bottom panel show according to remaining embodiment institute of the disclosure The statistical result of user's unavailable time of the prioritization scheme of description.The prioritization scheme may include: will update and file system The step of associated session, carries out before moving on to hand-off process from the incremental replication stage after hand-off process.The prioritization scheme It can also include: the multiple sessions associated with incremental replication of parallel starting based on asynchronous mechanism, and execute incremental replication. It can be seen from the figure that corresponding data unavailable time has been significantly reduced to 33 seconds when user interface quantity is 5.For The example of other users interface quantity can also obtain same conclusion.
As it can be seen that the scheme proposed using the disclosure, is capable of the mechanism of more reasonable ground design data migration switching, more had The hand-off process for efficient executing NAS duplication improves the use of user to provide the data unavailable time significantly shortened Experience.
Fig. 8 shows the schematic block diagram that can be used to implement the example apparatus 800 of embodiment of the disclosure.As schemed Show, equipment 800 includes central processing unit (CPU) 801, can be according to the calculating being stored in read-only memory (ROM) 802 Machine program instruction is loaded into the computer program instructions in random access storage device (RAM) 803 from storage unit 808, comes Execute various movements appropriate and processing.In RAM 803, it can also store equipment 800 and operate required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.
Multiple components in equipment 800 are connected to I/O interface 805, comprising: input unit 806, such as keyboard, mouse etc.; Output unit 807, such as various types of displays, loudspeaker etc.;Storage unit 808, such as disk, CD etc.;And it is logical Believe unit 809, such as network interface card, modem, wireless communication transceiver etc..Communication unit 809 allows equipment 800 by such as The computer network of internet and/or various telecommunication networks exchange information/data with other equipment.
Each process as described above and processing, such as method 300 can be executed by processing unit 801.For example, one In a little embodiments, method 300 can be implemented as computer software programs, be tangibly embodied in machine readable media, such as Storage unit 808.In some embodiments, some or all of of computer program can be via ROM 802 and/or communication unit Member 809 and be loaded into and/or be installed in equipment 800.When computer program is loaded into RAM 803 and is executed by CPU 801 When, one or more frames of method as described above 300 can be executed.Alternatively, CPU 801 can also be suitable by any other When mode (for example, by means of firmware) and be configured as execute method as described above 300.
The disclosure can be method, apparatus, system and/or computer program product.Computer program product may include Computer readable storage medium, containing the computer-readable program instructions for executing various aspects of the disclosure.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present disclosure and computer program product and/ Or block diagram describes various aspects of the disclosure.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processing unit of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable numbers When being executed according to the processing unit of processing unit, produces and provided in one or more boxes in implementation flow chart and/or block diagram Function action device.These computer-readable program instructions can also be stored in a computer-readable storage medium, this A little instructions so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, be stored with finger The computer-readable medium of order then includes a manufacture comprising the one or more side in implementation flow chart and/or block diagram The instruction of the various aspects of function action specified in frame.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the disclosure The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or improvement to the technology in market for best explaining each embodiment, or make the art Other those of ordinary skill can understand each embodiment disclosed herein.

Claims (12)

1. a kind of method for data duplication switching, comprising:
Start duplication of the primary data from source device to destination equipment, the primary data is that institute is stored in the starting State the data of the file system on source device;
In response to completing the duplication of the primary data, session associated with the file system is updated;
After the update of the session, triggers the source device and the destination equipment enters data down state, with Incremental data is executed from the source device to the duplication of the destination equipment, the incremental data is the file system in institute The data to change during the duplication for stating primary data.
2. according to the method described in claim 1, wherein update associated with file system session include it is following at least One:
Delete session associated with the duplication of the primary data;
Create session associated with the duplication of the incremental data;And
Session associated with the duplication of the incremental data is set to wait for state.
3. according to the method described in claim 1, further include:
In the data down state, concurrently start related to the duplication of the incremental data in being waited for Multiple sessions of connection.
4. according to the method described in claim 1, further include: in the data down state, also execute following at least one :
Freeze the file system of the source device;
Disable the network interface of the source device;
It thaws the file system of the source device;And
Enable the network interface of the destination equipment.
5. a kind of electronic equipment, comprising:
At least one processing unit;
At least one processor, at least one processor are coupled at least one described processing unit and store by institute The instruction of at least one processing unit execution is stated, described instruction by least one described processing unit when being executed, so that described Device executes movement, and the movement includes:
Start duplication of the primary data from source device to destination equipment, the primary data is that institute is stored in the starting State the data of the file system on source device;
In response to completing the duplication of the primary data, session associated with the file system is updated;
After the update of the session, triggers the source device and the destination equipment enters data down state, with Incremental data is executed from the source device to the duplication of the destination equipment, the incremental data is the file system in institute The data to change during the duplication for stating primary data.
6. equipment according to claim 5, wherein update session associated with the file system include it is following at least One:
Delete session associated with the duplication of the primary data;
Create session associated with the duplication of the incremental data;And
Session associated with the duplication of the incremental data is set to wait for state.
7. equipment according to claim 5, wherein the movement further include:
In the data down state, concurrently start related to the duplication of the incremental data in being waited for Multiple sessions of connection.
8. equipment according to claim 5, wherein the movement further include: in the data down state, also hold At least one of below row:
Freeze the file system of the source device;
Disable the network interface of the source device;
It thaws the file system of the source device;And
Enable the network interface of the destination equipment.
9. a kind of computer program product, the computer program product is tangibly stored in non-transient computer-readable media Above and including machine-executable instruction, the machine-executable instruction makes machine execute following steps when executed:
Start duplication of the primary data from source device to destination equipment, the primary data is that institute is stored in the starting State the data of the file system on source device;
In response to completing the duplication of the primary data, session associated with the file system is updated;
After the update of the session, triggers the source device and the destination equipment enters data down state, with Incremental data is executed from the source device to the duplication of the destination equipment, the incremental data is the file system in institute The data to change during the duplication for stating primary data.
10. computer program product according to claim 9, wherein updating session packet associated with the file system It includes at least one of following:
Delete session associated with the duplication of the primary data;
Create session associated with the duplication of the incremental data;And
Session associated with the duplication of the incremental data is set to wait for state.
11. computer program product according to claim 9, wherein concurrently being opened in the data down state Move multiple sessions associated with the duplication of the incremental data in being waited for.
12. computer program product according to claim 9, wherein in the data down state, also execute with It is at least one of lower:
Freeze the file system of the source device;
Disable the network interface of the source device;
It thaws the file system of the source device;And
Enable the network interface of the destination equipment.
CN201710409904.3A 2017-06-02 2017-06-02 Method and apparatus for data copy switching Active CN108984106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710409904.3A CN108984106B (en) 2017-06-02 2017-06-02 Method and apparatus for data copy switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710409904.3A CN108984106B (en) 2017-06-02 2017-06-02 Method and apparatus for data copy switching

Publications (2)

Publication Number Publication Date
CN108984106A true CN108984106A (en) 2018-12-11
CN108984106B CN108984106B (en) 2021-09-10

Family

ID=64501600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710409904.3A Active CN108984106B (en) 2017-06-02 2017-06-02 Method and apparatus for data copy switching

Country Status (1)

Country Link
CN (1) CN108984106B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112640508A (en) * 2019-01-16 2021-04-09 Oppo广东移动通信有限公司 Data replication transmission control method, terminal equipment and network equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739703A (en) * 2011-04-02 2012-10-17 中兴通讯股份有限公司 Method and system for data migration in peer-to-peer network
US20130110778A1 (en) * 2010-05-03 2013-05-02 Panzura, Inc. Distributing data for a distributed filesystem across multiple cloud storage systems
CN103544075A (en) * 2011-12-31 2014-01-29 华为数字技术(成都)有限公司 Data processing method and system
CN103617096A (en) * 2013-11-04 2014-03-05 华为技术有限公司 Storage data copying method, equipment and system
US20150052320A1 (en) * 2013-08-14 2015-02-19 International Business Machines Corporation Reducing data backup time during incremental snapshots
CN105049258A (en) * 2015-08-14 2015-11-11 深圳市傲冠软件股份有限公司 Data transmission method of network disaster-tolerant system
CN106777225A (en) * 2016-12-26 2017-05-31 腾讯科技(深圳)有限公司 The moving method and system of a kind of data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130110778A1 (en) * 2010-05-03 2013-05-02 Panzura, Inc. Distributing data for a distributed filesystem across multiple cloud storage systems
CN102739703A (en) * 2011-04-02 2012-10-17 中兴通讯股份有限公司 Method and system for data migration in peer-to-peer network
CN103544075A (en) * 2011-12-31 2014-01-29 华为数字技术(成都)有限公司 Data processing method and system
US20150052320A1 (en) * 2013-08-14 2015-02-19 International Business Machines Corporation Reducing data backup time during incremental snapshots
CN103617096A (en) * 2013-11-04 2014-03-05 华为技术有限公司 Storage data copying method, equipment and system
CN105049258A (en) * 2015-08-14 2015-11-11 深圳市傲冠软件股份有限公司 Data transmission method of network disaster-tolerant system
CN106777225A (en) * 2016-12-26 2017-05-31 腾讯科技(深圳)有限公司 The moving method and system of a kind of data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112640508A (en) * 2019-01-16 2021-04-09 Oppo广东移动通信有限公司 Data replication transmission control method, terminal equipment and network equipment
CN112640508B (en) * 2019-01-16 2023-06-27 Oppo广东移动通信有限公司 Control method for data replication and transmission, terminal equipment and network equipment

Also Published As

Publication number Publication date
CN108984106B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN108964982A (en) For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain
US9621420B2 (en) Network device configuration management
US7937432B2 (en) State transition management according to a workflow management policy
CN110059037A (en) For managing the method, equipment and computer program product of input/output
CN104360892B (en) Create the system and method for virtual machine
WO2019086011A1 (en) Method and device for managing services in network function virtualization architecture
US11468087B1 (en) System and method for bi-directional replication of data objects in a heterogeneous storage environment
CN110389859A (en) Method, equipment and computer program product for copied chunks
CN109327557A (en) A kind of management method and device of virtual machine IP address
CN110413200A (en) Data synchronous method, equipment and computer program product
CN109598427B (en) Robot management method and device and electronic equipment
CN107247648A (en) Method, the apparatus and system of remote items system supervisory are realized based on Docker
CN103841178B (en) The method and system of the in-band management of network-attached storage environment
CN110489150A (en) A kind of hot upgrade method of virtual machine, device and its relevant device
CN110032543A (en) A kind of management method of storage file system
CN109257228A (en) A kind of data-updating method and Edge Server
CN108228481A (en) For ensureing the method and apparatus of data consistency
CN109726038A (en) Method and apparatus for managing virtual machine
CN108984106A (en) Method and apparatus for data duplication switching
CN109726039A (en) Method and apparatus for managing virtual machine
CN104901998B (en) integrated cloud service monitoring method
US11200197B2 (en) Method and device for data duplication cutover
US10761940B2 (en) Method, device and program product for reducing data recovery time of storage system
CN107341203A (en) The access control and optimiged index method and apparatus of a kind of distributed search engine
CN110275893A (en) A kind of data manipulation method and device

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
GR01 Patent grant
GR01 Patent grant