CN107368486A - A kind of business migration method and device - Google Patents

A kind of business migration method and device Download PDF

Info

Publication number
CN107368486A
CN107368486A CN201610312829.4A CN201610312829A CN107368486A CN 107368486 A CN107368486 A CN 107368486A CN 201610312829 A CN201610312829 A CN 201610312829A CN 107368486 A CN107368486 A CN 107368486A
Authority
CN
China
Prior art keywords
storage system
task
source
business
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610312829.4A
Other languages
Chinese (zh)
Other versions
CN107368486B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610312829.4A priority Critical patent/CN107368486B/en
Publication of CN107368486A publication Critical patent/CN107368486A/en
Application granted granted Critical
Publication of CN107368486B publication Critical patent/CN107368486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of business migration method and device, this method includes:After by the file migration of source storage system to target storage system, when for the first task of the document creation source storage system migrated, the second task of target storage system is created, second task corresponds to the first task;Perform the first task and second task;Compare the first task implementing result and second task action result;After it is determined that comparison result is consistent, by the business migration that source storage system provides to target storage system.

Description

A kind of business migration method and device
Technical field
The application is related to areas of information technology, more particularly to a kind of business migration method and device.
Background technology
With developing rapidly for information technology and Internet technology, magnanimity letter can be all produced on internet daily Breath, for the ease of recycling, caused many information can all be stored in the form of a file.It is common Document storage mode have network attached storage (Network Attached Storage, NAS) mode, right As storage (Object-Based Storage, OS) mode etc..
In the prior art, it will usually use the storage system based on a certain document storage mode, be user File storage related service is provided, these related services can carry out such as following operation using user:Read The file that is stored in storage system, into storage system upper transmitting file, download file into storage system, etc. Deng.When user carries out these operations, storage system can create corresponding task, and perform appointing for generation Business, such as, the operation for the upper transmitting file into storage system, accordingly creating for task is in storage system The task of middle generation this document.
Due to the continuous change of file storage demand, it may be necessary to which currently used document storage mode is also entered Row change.In particular it is required that the storage system based on certain document storage mode (is referred to as:Source storage system System) in various files and source storage system provide business, to depositing based on another document storage mode Storage system migrates.
But in actual applications, the file type of the file in the storage system of source typically has many kinds, very Inheritance between multifile type is complicated, and file migration needs to change the related basis of file type Class, it is difficult to ensure the stability of target storage system after file migration, therefore, the risk of business migration is higher.
The content of the invention
The embodiment of the present application provides a kind of business migration method and device, is deposited to solve prior art in file The problem of business migration risk between storage system is larger.
The embodiment of the present application provides another business migration method and device.
The embodiment of the present application uses following technical proposals:
A kind of business migration method that the embodiment of the present application provides, including:
After by the file migration of source storage system to target storage system, in the document creation for being migrated During the first task of source storage system, the second task of target storage system is created, second task is corresponding In the first task;
Perform the first task and second task;
Compare the first task implementing result and second task action result;
After it is determined that comparison result is consistent, by the business migration that source storage system provides to target storage system.
A kind of business migration device that the embodiment of the present application provides, including:
File task module, for after by the file migration of source storage system to target storage system, in pin During to the first task of the document creation source storage system migrated, second of target storage system is created Business, second task correspond to the first task;
Execution module, for performing the first task and second task;
Comparing module, for comparing the first task implementing result and second task action result;
Business migration module, for after it is determined that comparison result is consistent, the business that source storage system provides to be moved Move to target storage system.
Another business migration method that the embodiment of the present application provides, including:
After by the file migration of source storage system to target storage system, in the document creation for being migrated During the first task of source storage system, the second task of target storage system is created, second task is corresponding In the file that the first task, the document storage mode that source storage system uses use with target storage system Storage mode is different;
Perform the first task and second task;
Compare the first task implementing result and second task action result;
After it is determined that comparison result is consistent, by the business migration that source storage system provides to target storage system.
Another business migration device that the embodiment of the present application provides, including:
File task module, for after by the file migration of source storage system to target storage system, in pin During to the first task of the document creation source storage system migrated, second of target storage system is created Business, second task correspond to the first task, the document storage mode and mesh that source storage system uses It is different to mark the document storage mode that storage system uses;
Execution module, for performing the first task and second task;
Comparing module, for comparing the first task implementing result and second task action result;
Business migration module, for after it is determined that comparison result is consistent, the business that source storage system provides to be moved Move to target storage system.
Above-mentioned at least one technical scheme that the embodiment of the present application uses can reach following beneficial effect:For The file of migration, this document can be related to by being performed respectively in source storage system and target storage system The mode of task so that source storage system and target storage system are run parallel, and can be according to parallel operation Situation decides whether progress business migration, and therefore, compared to prior art, the scheme of the application can reduce The risk of business migration, therefore, can partly or entirely solve the problems of the prior art.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms one of the application Point, the schematic description and description of the application is used to explain the application, does not form to the application not Work as restriction.In the accompanying drawings:
Fig. 1 is a kind of process for business migration method that the embodiment of the present application provides;
Fig. 2 be the embodiment of the present application also provide under a kind of practical application scene, to the stage of transition process Divide schematic diagram;
Fig. 3 is the process for another business migration method that the embodiment of the present application provides;
Fig. 4 is the business migration apparatus structure schematic diagram corresponding to Fig. 1 that the embodiment of the present application provides;
Fig. 5 is the business migration apparatus structure schematic diagram corresponding to Fig. 3 that the embodiment of the present application provides.
Embodiment
It is specifically real below in conjunction with the application to make the purpose, technical scheme and advantage of the application clearer Apply example and technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, it is described Embodiment is only some embodiments of the present application, rather than whole embodiments.Based on the implementation in the application Example, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belong to the scope of the application protection.
In the embodiment of the present application, source storage system can use different files to store from target storage system Mode, such as, source storage system can use NAS modes, and target storage system can use OS modes, Etc.;Source storage system can also use identical document storage mode with target storage system.Following reality Apply example and be mainly based upon what the previous case illustrated.
The purpose migrated from source storage system to target storage system can be:So that system is stored by source before migration The business that system provides, is changed into by target storage system after migration to provide.Seen on surface, the migration The migration of file in the storage system of source can be referred to, substantially, the migration can be with reference and the file migrated Part or all of business migration.For example before migration, user uploads lower publish papers for source storage system Part, after migration, user can no longer upload for source storage system and download file, but be deposited for target Storage system, which uploads, downloads file.
Moved for the file between the source storage system using different document storage modes and target storage system Move, can include:The file type of this document in the storage system of source, to not supporting this document originally The target storage system of type is transformed so that target storage system can support this document class after transformation Type, and then again migrate this document in the storage system of source to target storage system.
Moved for the file between the source storage system using same file storage mode and target storage system Move, can include:Directly by migrating to target storage system in the storage system of source, without transforming target Storage system.
The core concept of the scheme of the application is:The related process of business migration can be divided into multiple ranks Section, to realize migration steadily, in some stages wherein, source storage system and target storage system can be with Parallel operation, the stability of target storage system before and after business migration can be speculated according to parallel running situation, To decide whether to carry out business migration.The scheme of the application advantageously reduces the risk of business migration.
The scheme of the application is illustrated below.
Fig. 1 is a kind of process for business migration method that the embodiment of the present application provides.The executive agent of the process It can be the equipment where the storage system of source, and/or the equipment where target storage system, and/or deposited with source Storage system other equipment related to target storage system etc..These equipment can be specifically:Personal computer, Big-and-middle-sized computer, computer cluster, mobile phone, tablet personal computer, intelligent watch, vehicle-mounted mobile platform etc..With On the specific species of equipment enumerated be intended only as example, do not form the restriction to the application.
Process in Fig. 1 may comprise steps of:
S101:After by the file migration of source storage system to target storage system, in the text for being migrated When part creates the first task of source storage system, the second task of target storage system is created, described second Business corresponds to the first task.
In the embodiment of the present application, the file of source storage system can be moved to target storage system in batches Move, integrally can also migrate the file of source storage system to target storage system.It is it is, in general, that previous The advantages of kind of mode is:The simply a part of file migrated every time, the processing load of system is relatively small, right System entire effect and risk are relatively small;The advantages of latter approach is:Text can comparatively quickly be completed Part migrates and business migration.
In the embodiment of the present application, for file type corresponding to the various files in the storage system of source, in order to Support these file types, it may be necessary to store according to the file that source storage system and target storage system use The difference of mode, the correlative code of target storage system and the other systems on periphery is transformed so that Improved code is adapted to the document storage mode of target storage system use.For example these codes can be with It is related code of interface, file type, service logic etc..
Before above-mentioned code transformation is carried out, for source storage system and target storage system, can only it run Source storage system with for outside offer business, and does not temporarily enable target storage system.That is, can be only Task is created by source storage system and performs task, the task can be performed by document storage system Task.
In the embodiment of the present application, after above-mentioned code transformation is proceeded by, for the file having moved, Can be by way of source storage system and target storage system is run parallel, detection is in step s 102 Before and after the file migration of migration, the running situation of target storage system, to determine whether target storage system is steady It is fixed.
In the embodiment of the present application, in order to prevent after file migration, target storage system is unstable and then shadow The business of sound, after migrated file, it temporarily can still provide actual business by source storage system, and target Storage system can then use the form of simulation, and simulation provides the business, that is, in second task that performs When, substantive influence can not be produced to outside, advantage of this is that:Can not only it prevent target from storing System shakiness Timing business, be also possible to prevent source storage system and target storage system repeat to provide it is identical Business, so as to which the idempotence of business can not be ensured.
Specifically, the second task can not include target storage system and be operated with outside practical business, or Target storage system is only included to operate with a part of practical business outside target storage system.So as to reality When performing the second task now, target storage system can not be to the outside influence for producing essence.First task Source storage system can be included to operate with outside practical business, first task is being performed so as to realize When, source storage system can be to the outside influence for producing essence., can be by first task for the ease of description Referred to as:Effective task;And the second task can be referred to as:Nonproductive task.
It should be noted that above-mentioned outside can refer to outside target storage system or outside target storage system The overall outside in both portion or source storage system and target storage system.
S102:Perform the first task and second task.
In the embodiment of the present application, first task, the second task can perform simultaneously, can also be according to certain Sequencing perform.
S103:Compare the first task implementing result and second task action result.
In the embodiment of the present application, the second task will not can be with to the outside influence for producing essence, but still The influence of essence is produced to target storage system, such as, it can be deposited by performing the second task for target Storage system generation file (being specifically as follows export etc.) and resolution file (be specifically as follows and import file) Deng.
For the ease of description, can be referred to as with step S101~S102 this stage:Source storage system and target Storage system is run parallel, and source storage system is as the leading stage.In this stage, can simultaneously base In source storage system and target storage system generation file and resolution file etc., further, for outside Speech, outside can read file and upper transmitting file etc. from source storage system, and can not stored from target temporarily System reads file and upper transmitting file, because, target storage system still potentially unstable.
S104:After it is determined that comparison result is consistent, the business migration that source storage system provides to target is stored System.
In the embodiment of the present application, it has been mentioned hereinbefore that migration can be speculated according to parallel running situation The stability of front and rear target storage system, step S103 may act as a kind of specific implementation of the supposition Mode.Generally speaking, for effective task and nonproductive task, if file corresponding to them successfully moves Move, and source target storage system and target storage system normal table run, then compare their task During implementing result, comparison result is consistent, conversely, comparison result is inconsistent.
In order to make it easy to understand, described " comparison result is consistent " is explained.For step S103, if By comparing, file (such as generation file) and the second task that first task implementing result is related to are determined The file content that implementing result is related to is identical, then can be determined that comparison result is consistent, conversely, can sentence It is inconsistent to determine comparison result.If migration there is a problem or source storage system or target storage system it is unstable When, the comparison result may be caused inconsistent.It is in actual applications, described that identical can to refer to file complete It is equal, it can also refer to that file is not essentially equal, but the substantive content of file is mutually equal.For file, In addition to substantive content, can there are some to can be used for carrying out substantive content in annotated add Hold.
In the embodiment of the present application, after it is determined that comparison result is consistent, it is believed that the text of storage system in source After part type migrates to target storage system, target storage system can be run with normal table, can be substituted Source storage system provides business, then can by business migration that source storage system provides to target storage system, So as to complete the business migration process.Afterwards, originally from source storage system obtain business user or System, business can be obtained from target storage system.
In the embodiment of the present application, for step S101, if simply having migrated source storage to target storage system The partial document of system and it is not all.Then accordingly for step S104, after it is determined that comparison result is consistent, Business migration only source storage system being provided, corresponding to the file having moved stores to target is System, and still being provided corresponding to the business of file not yet migrated by source storage system, and do not migrate still to Target storage system.Or for step S104, can also temporarily not after it is determined that comparison result is consistent Business migration is carried out, but after all files of source storage system are had moved, then carry out business migration.
It should be noted that the executive agent of each step in Fig. 1 may each be same equipment, or, should Method can also be by distinct device as executive agent.Such as step S101 and step S102 execution master Body can be equipment 1, and step 103 and step S104 executive agent can be equipment 2;Again for example, step Rapid S101 executive agent can be equipment 1, and step S102~S104 executive agent can be equipment 2; Etc..
, can be by respectively in source storage system and target for the file of migration by the method in Fig. 1 The mode for being related to this document of the task is performed in storage system so that source storage system and target storage system are simultaneously Row operation, and can be decided whether to carry out business migration according to parallel running situation, therefore, compared to existing Technology, the scheme of the application can reduce the risk of business migration, therefore, can partly or entirely solve The problems of the prior art.
Based on the above method, the embodiment of the present application additionally provides some specific embodiments of the above method, with And expansion scheme, it is illustrated below.
In the embodiment of the present application, before target storage system stability is not yet ensured, target storage system life Into file be probably unreliability, can be with temporary interruption in order to reduce influence and the risk to related service From target storage system to the file transmission channel of outside, to cause during the blocking, target storage system File in system can not flow to outside, so as to will not also be impacted to related service.
Outside only can read file from the storage system of source, without reading file from target storage system.
Based on such consideration, for step S102, before performing the first task and second task, It can also carry out:The file transmission channel outside from source storage system to source storage system is set to stay open shape State, and the file transmission channel outside from target storage system to target storage system is remained turned-off shape State.The concrete mode that the application opens or closes to control file transmission channel does not limit, usually, Software switch or hardware switch can be used to be controlled.
In the embodiment of the present application, if by step S103, after determining that comparison result is consistent, it is believed that mesh It is more stable to mark storage system, can be by business migration that source storage system provides to target storage system. In practical application, the storage system situation different from the document storage mode that target storage system uses in source Under, in order to realize file migration and business migration, it may be necessary to the file used according to target storage system Storage mode, file access transformation is carried out to target storage system periphery, after causing transformation, outside can be with The normally file in access target storage system.In the stage of file access transformation, can further examine Survey the stability of target storage system, and reliability during file in access target storage system.
Specifically, file access transform during, can using target storage system as dominate, and incite somebody to action Source storage system is run as auxiliary, for the ease of description, can be referred to as this stage parallel " this stage ", this stage is that source storage system is run parallel with target storage system, and target storage system As the leading stage (step S101~S102 is source storage system as the leading stage), in source The first task and the second task that storage system creates as the leading stage, first task can deposit comprising source Storage system operates with the practical business outside the storage system of source, and the second task can not include target storage system Operated with the practical business outside target storage system.And in this stage, can be with source storage system as leading The stage led is on the contrary, be illustrated below.
, can be with before the business migration that source storage system provides to target storage system for step S104 Perform following steps:
When for three task of the document creation source storage system migrated, target storage system is created 4th task, the 4th task correspond to the 3rd task;
Perform the 3rd task and the 4th task;
The 3rd task action result and the 4th task action result are compared, and determines comparison result Unanimously.
Wherein, the 3rd task can not include source storage system and be grasped with the practical business outside the storage system of source Make, or only include a part and operated with the practical business outside the storage system of source, held so as to realize During the row task, source storage system can not be to the outside influence for producing essence;4th task can include mesh Storage system is marked to operate with the practical business outside target storage system.
It can be seen that this stage is similar as the leading stage with source storage system, difference is: This stage, be the task (the 3rd task) using source storage system as nonproductive task, and by target store be The task (the 4th task) of system is used as effective task.In this stage, periphery can be according to its own system text The time of part access transformation chooses the file in reading source storage system or target storage system.
Further, before this stage, execution the 3rd task and the 4th task, can also hold OK:The file transmission channel outside from source storage system to source storage system is remained off, and is made File transmission channel outside from target storage system to target storage system remains on.So as to mesh File in mark storage system can flow to outside.
In the embodiment of the present application, perform first task and during the second task, or perform the 3rd task with And during four tasks, it is contemplated that systematic function influences, can not simultaneously perform perform the 3rd task and 4th task, and the 3rd task and the 4th task are asynchronously performed, but can be held with staggering time OK, so as to advantageously reducing system instantaneous pressure.
For example, for step S102, the first task and second task are performed, can specifically be wrapped Include:The first task is performed, and after scheduled duration, performs second task.Certainly, In actual applications, it is also possible to first carry out second.
In another example performing the 3rd task and the 4th task, can specifically include:Described in execution 4th task, and after scheduled duration, perform the 3rd task.
In the embodiment of the present application, in source storage system as leading stage or this stage, nonproductive task phase Than in effective task corresponding to it, practical business operation can be skipped, nonproductive task typically can be adjusted only record With parameter etc., and by parameter read-in destination file, compared for follow-up.
In actual applications, for target storage system, in addition to paying close attention to it and whether stablizing, typically can also Its performance is paid close attention to, if performance can not meet predetermined demand, by the business migration that source storage system provides to mesh After marking storage system, related service may be produced and had a strong impact on.Based on such consideration, deposited for source Storage system, can also be to mesh in addition to comparing task action result as leading stage and this stage The performance of mark storage system is also detected.
Specifically, be can also carry out in source storage system as leading stage and/or this stage:Determine mesh Whether performance of the mark storage system when performing second task and/or four tasks meets predetermined need Ask;If so, then can subsequently carry out business migration, otherwise, business migration can wouldn't be subsequently carried out, and It is that target storage system is handled again for the performance issue found, after solving performance issue, then enters Row business migration, it is thus possible to reduce business migration risk.
In the embodiment of the present application, ratio is determined as leading stage and/or this stage by source storage system After and performance consistent to result has no problem, then business migration can be carried out.Specifically, mesh can only be created The task of storage system is marked, and no longer creates the task of source storage system, is deposited by target storage system instead of source Storage system provides the business such as file reading, File Upload and Download to outside.
By explanation above, in the embodiment of the present application, whole business migration process can be divided into Multiple stages, to realize migration steadily.Based on such premise, in order to further improve the side of the application The beneficial effect of case, it can be migrated in batches according to file type dimension in each stage, such as, can be with By file all in the storage system of source, migrated in batches according to file type, when institute in the storage system of source After some file types are in the stage corresponding to step S101~S103, downward single order in batches is further continued for Section (can be this above-mentioned stage) promotes, and business migration is correspondingly conducted batch-wise and (or also may be used Business migration is being carried out after to wait all files to migrate).Advantage of this is that:This can be caused The scope that secondary migration influences is limited in several files of migration as far as possible, reduces overall complexity.
Based on the above-mentioned thinking migrated in batches, one kind that the embodiment of the present application provides process in Fig. 1 is specific Implementation process.The specific implementation process can include:
The file type of file in the storage system of source, performed successively for every kind of file type:
After by the file migration of this document type to target storage system, for this document type Document creation source storage system first task when, create the second task of target storage system, Second task corresponds to the first task;Perform the first task and described second Business;Compare the first task implementing result and second task action result;
After it is determined that comparison result corresponding to every kind of file type is consistent, business that source storage system is provided Migrate to target storage system.
It should be noted that it is a kind of example to carry out migration in batches according to file type dimension, actually should , can also be according to other dimensions (such as time dimension, business dimension etc.) in, and can also tie Multiple dimensions are closed to be migrated in batches.
The business migration method provided above for the embodiment of the present application is illustrated, in order to make it easy to understand, The embodiment of the present application is additionally provided under a kind of practical application scene, the realization to the moving method.
Under the practical application scene, the document storage mode that above-mentioned source storage system uses can be NAS Mode, the document storage mode that above-mentioned target storage system uses can be OS modes, above-mentioned outside Another predetermined file storage system can be referred to.
It should be noted that the application is to source storage system and target storage system in actual applications specific Name title does not limit.For the ease of description, it is assumed that under the practical application scene, target storage system Entitled network attached storage (Network Attached Storage, NAS) file system of system, below Referred to as:NAS;Target storage system it is entitled:Object storage service (Object Storage Service, OSS) file system, hereinafter referred to as OSS.Above-mentioned first task, the 3rd task can be NAS Task, the second above-mentioned task, the 4th task can be OSS tasks.
In such a scenario, the transition process from NAS to OSS can be divided into 4 stages, migrated When migration can be conducted batch-wise according to file type dimension.4 stages of division are referred to as NAS ranks Section, NAS_OSS stages, OSS_NAS stages, OSS stages, as shown in Figure 2.It is directed to separately below This 4 stages are described in detail.
The NAS stages:It can belong to the stage before code does not carry out OSS transformations.At this stage, may be used Only to create NAS task, the task without creating OSS.
The NAS_OSS stages:The stage can think the stage corresponding to above-mentioned step S101~S103.It is right , can be simultaneously based on NAS and OSS generation file and resolution file etc. in the file of stage migration.NAS Task be effective task, OSS task is nonproductive task.Periphery is defined by NAS files, and now Periphery can read file and upload according to predetermined policy still to be transformed without file access from NAS File.In actual applications, NAS or OSS can be to outside offer business by periphery.
Specifically, in the task of establishment, two tasks can be created simultaneously for identical TaskWorker, One task is to handle the task of NAS files, and another task is to handle the task of OSS files.Enter one Step ground, will can stagger for the triggered time for triggering NAS task and OSS tasks carrying.Such as NAS task can be triggered in current time, and OSS task can be in current time toward pusher 4 hours, in addition, span day during in order to prevent the execution of task, 19:00 later OSS task can It is not to predetermined, it is necessary to explanation, to be within 4 hours the example of above-mentioned scheduled duration not toward pusher The restriction of duration.
At this stage, in order to ensure operational idempotence, therefore, to assure that all business operation (for example adjust With interface, send message etc.) only it must be performed by effective task (for NAS task), and aid in appointing Business needs to skip practical business operation (that is, not comprising operated with the practical business of outside).Nonproductive task Can only record call parameters etc., and by parameter read-in destination file, compared for follow-up.
At this stage, to close circular document and exchange upload OSS files opening to predetermined file storage system Close (that is, above-mentioned remains turned-off the file transmission channel outside from source storage system to source storage system State), to ensure that predetermined file storage system only takes the export of effective task generation.
It is possible to further which the NAS files in the stage are compared with corresponding OSS files, if than It is identical to determination file content, and determine that OSS file process is stable, the time is subjected to model in business Enclose, then can enter next stage.In actual applications, typically system can be superintended and directed after or is superintended and directed with after and be System has the other systems of similar functions, performs the operation that file compares.
The OSS_NAS stages:At this stage, file can be generated by OSS to be defined, and notifies peripheral progress OSS file accesss are transformed.
The stage still can generate file based on NAS and OSS simultaneously.It is with difference on last stage, OSS task is effective task, and NAS task is nonproductive task, correspondingly, according to triggered as normal Time, can by the triggered time of NAS task toward pusher, what periphery can transform according to its own system Time selects to read OSS files or NAS files.
At this stage, in order to ensure operational idempotence, therefore, to assure that all business operation (for example adjust With interface, send message etc.) only it must be performed by effective task (for OSS task), and aid in appointing Business needs to skip practical business operation.Nonproductive task can only record call parameters etc., and by parameter read-in knot Fruit file, compared for follow-up.
At this stage, to open circular document and exchange upload OSS files opening to predetermined file storage system Close, and to close circular document and exchange the switch for uploading NAS files to predetermined file storage system, with Ensure that predetermined file storage system only takes the export of effective task generation.
The OSS stages:
Through it is above-mentioned to the NAS and OSS parallel runtimes (i.e.:NAS_OSS stages, OSS_NAS stages), Verify that comparison result is consistent (the NAS files that task is related to and OSS files indifference), OSS performances symbol Close predetermined demand, and periphery is completed after OSS accesses transformation, then can only create OSS task life Into file, no longer the creating NAS of the task generates file, it is thus possible to realize the business for providing NAS Migrate to OSS.If All Files completes this four-stage, it is believed that whole transition process terminates.
In the practical application scene, by transition process by being divided into multiple stages, and system is superintended and directed after utilizing The task action result for comparing the NAS and OSS parallel operation phase is stable to compare the front and rear system of migration Property, and then carry out business can be decided whether according to comparison result, business is moved so as to be greatly lowered The risk of shifting.
In actual applications, the document storage mode phase used compared to source storage system with target storage system Same situation, in the case of the document storage mode difference that source storage system and target storage system use, It is easier after there is file migration, the unstable situation of target storage system, because, in the latter case, Need to transform target storage system, to cause improved target storage system to support source storage system The file type of support.
Based on additionally providing another business migration side with method identical thinking in Fig. 1, the embodiment of the present application Method, as shown in Figure 3.
Fig. 3 is the process for another business migration method that the embodiment of the present application provides, and the process can include Following steps:
S301:After by the file migration of source storage system to target storage system, in the text for being migrated When part creates the first task of source storage system, the second task of target storage system is created, described second Business corresponds to the first task, and the document storage mode that source storage system uses uses with target storage system Document storage mode it is different.
S302:Perform the first task and second task.
S303:Compare the first task implementing result and second task action result.
S304:After it is determined that comparison result is consistent, the business migration that source storage system provides to target is stored System.
, can be by respectively in source storage system and target for the file of migration by the method in Fig. 3 The mode for being related to this document of the task is performed in storage system so that source storage system and target storage system are simultaneously Row operation, and can be decided whether to carry out business migration according to parallel running situation, therefore, compared to existing Technology, the scheme of the application can reduce the risk of business migration, therefore, can partly or entirely solve The problems of the prior art.
The business migration method provided above for the embodiment of the present application, based on same thinking, the application is implemented Example also provides corresponding business migration device, as shown in Figure 4, Figure 5.
Fig. 4 is the business migration apparatus structure schematic diagram corresponding to Fig. 1 that the embodiment of the present application provides, described Device includes:
File task module 401, for after by the file migration of source storage system to target storage system, When for the first task of the document creation source storage system migrated, the second of target storage system is created Task, second task correspond to the first task;
Execution module 402, for performing the first task and second task;
Comparing module 403, for comparing the first task implementing result and second task action result;
Business migration module 404, for the industry that after it is determined that comparison result is consistent, source storage system is provided Business is migrated to target storage system.
Alternatively, described device also includes:
Switch module 405, for performing the first task and second task in execution module 402 Before, remain on the file transmission channel outside from source storage system to source storage system, and make File transmission channel outside from target storage system to target storage system remains off.
Alternatively, the first task includes source storage system and grasped with the practical business outside the storage system of source Make, second task does not include target storage system and operated with the practical business outside target storage system;
Business migration module 404 by source storage system be outside the storage system of source the business migration that provides to mesh Before marking storage system,
File task module 401 is additionally operable to:At the 3rd of the document creation source storage system for being migrated During business, the 4th task of target storage system is created, the 4th task corresponds to the 3rd task, institute State the 3rd task to operate not comprising source storage system and the practical business outside the storage system of source, described 4th Business operates comprising target storage system and the practical business outside target storage system;
Execution module 402 is additionally operable to:Perform the 3rd task and the 4th task;
Comparing module 403 is additionally operable to:Compare the 3rd task action result and the 4th tasks carrying knot Fruit, and determine that comparison result is consistent.
Alternatively, switch module 404, it is additionally operable to perform the 3rd task and institute in execution module 402 Before stating the 4th task, the file transmission channel outside from source storage system to source storage system is set to remain turned-off shape State, and the file transmission channel outside from target storage system to target storage system is stayed open shape State.
Alternatively, described device is specifically used for:
The file type of file in the storage system of source, performed successively for every kind of file type:
After by the file migration of this document type to target storage system, for this document type Document creation source storage system first task when, create the second task of target storage system, Second task corresponds to the first task;Perform the first task and described second Business;Compare the first task implementing result and second task action result;
After it is determined that comparison result corresponding to every kind of file type is consistent, business that source storage system is provided Migrate to target storage system.
Alternatively, execution module 402 is specifically used for:The first task is performed, and by pre- timing After length, second task is performed.
Alternatively, described device also includes:
Performance detection module 405, for moving the business that source storage system provides in business migration module 404 Before moving to target storage system, it is determined that performance when performing second task meets predetermined demand.
Alternatively, the document storage mode that source storage system uses stores with the file that target storage system uses Mode is different.
Alternatively, the document storage mode that source storage system uses can be network attached storage NAS modes, The document storage mode that target storage system uses can store OS modes for object.
Device in Fig. 4 specifically can be positioned at the equipment where the storage system of source, and/or target storage system institute Equipment, and/or the other equipment related to source storage system and target storage system on.
Fig. 5 is the business migration apparatus structure schematic diagram corresponding to Fig. 3 that the embodiment of the present application provides, described Device includes:
File task module 501, for after by the file migration of source storage system to target storage system, When for the first task of the document creation source storage system migrated, the second of target storage system is created Task, second task correspond to the first task, the document storage mode that source storage system uses with The document storage mode that target storage system uses is different;
Execution module 502, for performing the first task and second task;
Comparing module 503, for comparing the first task implementing result and second task action result;
Business migration module 504, for the industry that after it is determined that comparison result is consistent, source storage system is provided Business is migrated to target storage system.
The device that the application provides is that the method provided with the application is one-to-one, therefore, described device With the advantageous effects similar with methods described, due to being imitated above to the Advantageous of methods described Fruit is described in detail, and therefore, repeats no more the advantageous effects of described device here.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software embodiment or knot The form of embodiment in terms of conjunction software and hardware.Wherein wrapped in one or more moreover, the present invention can use Containing computer usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program The flow chart and/or block diagram of product describes.It should be understood that can by computer program instructions implementation process figure and / or each flow in block diagram and/or square frame and flow in flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, insertion Formula processor or the processor of other programmable data processing devices are to produce a machine so that pass through calculating The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The device for the function of being specified in individual flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable datas to handle and set In the standby computer-readable memory to work in a specific way so that be stored in the computer-readable memory Instruction produce and include the manufacture of command device, command device realization is in one flow or multiple of flow chart The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place Reason, so as to which the instruction that is performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated Outgoing interface, network interface and internal memory.
Internal memory may include the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM). Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by appointing What method or technique realizes that information stores.Information can be computer-readable instruction, data structure, program Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its Random access memory (RAM), read-only storage (ROM), the electrically erasable of his type are read-only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, it can be calculated available for storage The information that equipment accesses.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker The data-signal and carrier wave of body (transitory media), such as modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, commodity or equipment including a series of elements are not only wrapped Include those key elements, but also the other element including being not expressly set out, or also include for this process, Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including One ... " limit key element, it is not excluded that in the process including the key element, method, commodity or set Other identical element also be present in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey Sequence product.Therefore, the application can use complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the application can use wherein includes calculating in one or more Machine usable program code computer-usable storage medium (include but is not limited to magnetic disk storage, CD-ROM, Optical memory etc.) on the form of computer program product implemented.
Embodiments herein is the foregoing is only, is not limited to the application.For this area skill For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle Any modification, equivalent substitution and improvements of work etc., should be included within the scope of claims hereof.

Claims (20)

  1. A kind of 1. business migration method, it is characterised in that including:
    After by the file migration of source storage system to target storage system, in the document creation for being migrated During the first task of source storage system, the second task of target storage system is created, second task is corresponding In the first task;
    Perform the first task and second task;
    Compare the first task implementing result and second task action result;
    After it is determined that comparison result is consistent, by the business migration that source storage system provides to target storage system.
  2. 2. the method as described in claim 1, it is characterised in that perform the first task and described Before second task, methods described also includes:
    The file transmission channel outside from source storage system to source storage system is remained on, and is made File transmission channel outside from target storage system to target storage system remains off.
  3. 3. the method as described in claim 1, it is characterised in that the first task includes source storage system System operates with the practical business outside the storage system of source, and second task does not include target storage system and mesh Mark the practical business operation outside storage system;
    Before the business migration that source storage system provides to target storage system, methods described also includes:
    When for three task of the document creation source storage system migrated, target storage system is created 4th task, the 4th task correspond to the 3rd task, and the 3rd task does not include source storage system System operates with the practical business outside the storage system of source, and the 4th task includes target storage system and target Practical business operation outside storage system;
    Perform the 3rd task and the 4th task;
    The 3rd task action result and the 4th task action result are compared, and determines comparison result Unanimously.
  4. 4. method as claimed in claim 3, it is characterised in that perform the 3rd task and described Before 4th task, methods described also includes:
    The file transmission channel outside from source storage system to source storage system is remained off, and is made File transmission channel outside from target storage system to target storage system remains on.
  5. 5. the method as described in claim 1, it is characterised in that methods described specifically includes:
    The file type of file in the storage system of source, performed successively for every kind of file type:
    After by the file migration of this document type to target storage system, for this document type Document creation source storage system first task when, create the second task of target storage system, Second task corresponds to the first task;Perform the first task and described second Business;Compare the first task implementing result and second task action result;
    After it is determined that comparison result corresponding to every kind of file type is consistent, business that source storage system is provided Migrate to target storage system.
  6. 6. the method as described in claim 1, it is characterised in that perform the first task and described Second task, is specifically included:
    The first task is performed, and after scheduled duration, performs second task.
  7. 7. the method as described in claim 1, it is characterised in that move the business that source storage system provides Before moving to target storage system, methods described also includes:
    It is determined that performance when performing second task meets predetermined demand.
  8. 8. the method as described in any one of claim 1~7, it is characterised in that what source storage system used Document storage mode is different from the document storage mode that target storage system uses.
  9. 9. the method as described in any one of claim 1~7, it is characterised in that what source storage system used Document storage mode is network attached storage NAS modes, the document storage mode that target storage system uses OS modes are stored for object.
  10. A kind of 10. business migration method, it is characterised in that including:
    After by the file migration of source storage system to target storage system, in the document creation for being migrated During the first task of source storage system, the second task of target storage system is created, second task is corresponding In the file that the first task, the document storage mode that source storage system uses use with target storage system Storage mode is different;
    Perform the first task and second task;
    Compare the first task implementing result and second task action result;
    After it is determined that comparison result is consistent, by the business migration that source storage system provides to target storage system.
  11. 11. a kind of business migration device, it is characterised in that device includes:
    File task module, for after by the file migration of source storage system to target storage system, in pin During to the first task of the document creation source storage system migrated, second of target storage system is created Business, second task correspond to the first task;
    Execution module, for performing the first task and second task;
    Comparing module, for comparing the first task implementing result and second task action result;
    Business migration module, for after it is determined that comparison result is consistent, the business that source storage system provides to be moved Move to target storage system.
  12. 12. device as claimed in claim 11, it is characterised in that described device also includes:
    Switch module, for before the execution module performs the first task and second task, The file transmission channel outside from source storage system to source storage system is remained on, and is made from mesh File transmission channel outside mark storage system to target storage system remains off.
  13. 13. device as claimed in claim 11, it is characterised in that the first task stores comprising source Practical business outside system and source storage system operates, second task do not include target storage system with Practical business operation outside target storage system;
    By source storage system it is that the business migration that provides is extremely outside the storage system of source in the business migration module Before target storage system,
    The file task module is additionally operable to:At the 3rd of the document creation source storage system for being migrated During business, the 4th task of target storage system is created, the 4th task corresponds to the 3rd task, institute State the 3rd task to operate not comprising source storage system and the practical business outside the storage system of source, described 4th Business operates comprising target storage system and the practical business outside target storage system;
    The execution module is additionally operable to:Perform the 3rd task and the 4th task;
    The comparing module is additionally operable to:Compare the 3rd task action result and the 4th tasks carrying knot Fruit, and determine that comparison result is consistent.
  14. 14. method as claimed in claim 13, it is characterised in that described device also includes:
    Switch module, for before the execution module performs the 3rd task and the 4th task, The file transmission channel outside from source storage system to source storage system is remained off, and is made from mesh File transmission channel outside mark storage system to target storage system remains on.
  15. 15. device as claimed in claim 11, it is characterised in that described device is specifically used for:
    The file type of file in the storage system of source, performed successively for every kind of file type:
    After by the file migration of this document type to target storage system, for this document type Document creation source storage system first task when, create the second task of target storage system, Second task corresponds to the first task;Perform the first task and described second Business;Compare the first task implementing result and second task action result;
    After it is determined that comparison result corresponding to every kind of file type is consistent, business that source storage system is provided Migrate to target storage system.
  16. 16. device as claimed in claim 11, it is characterised in that the execution module is specifically used for: The first task is performed, and after scheduled duration, performs second task.
  17. 17. device as claimed in claim 11, it is characterised in that described device also includes:
    Performance detection module, for the business migration that provides source storage system in the business migration module extremely Before target storage system, it is determined that performance when performing second task meets predetermined demand.
  18. 18. the device as described in any one of claim 11~17, it is characterised in that source storage system uses Document storage mode it is different from the document storage mode that target storage system uses.
  19. 19. the device as described in any one of claim 11~17, it is characterised in that source storage system uses Document storage mode be network attached storage NAS modes, the file storage side that target storage system uses Formula is that object stores OS modes.
  20. A kind of 20. business migration device, it is characterised in that including:
    File task module, for after by the file migration of source storage system to target storage system, in pin During to the first task of the document creation source storage system migrated, second of target storage system is created Business, second task correspond to the first task, the document storage mode and mesh that source storage system uses It is different to mark the document storage mode that storage system uses;
    Execution module, for performing the first task and second task;
    Comparing module, for comparing the first task implementing result and second task action result;
    Business migration module, for after it is determined that comparison result is consistent, the business that source storage system provides to be moved Move to target storage system.
CN201610312829.4A 2016-05-12 2016-05-12 Service migration method and device Active CN107368486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610312829.4A CN107368486B (en) 2016-05-12 2016-05-12 Service migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610312829.4A CN107368486B (en) 2016-05-12 2016-05-12 Service migration method and device

Publications (2)

Publication Number Publication Date
CN107368486A true CN107368486A (en) 2017-11-21
CN107368486B CN107368486B (en) 2020-06-09

Family

ID=60303437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610312829.4A Active CN107368486B (en) 2016-05-12 2016-05-12 Service migration method and device

Country Status (1)

Country Link
CN (1) CN107368486B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284278A (en) * 2018-08-13 2019-01-29 中国平安人寿保险股份有限公司 Calculating logic moving method and terminal device based on data analysis technique
CN113051245A (en) * 2019-12-26 2021-06-29 云丁网络技术(北京)有限公司 Method, device and system for migrating data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090240704A1 (en) * 2002-03-18 2009-09-24 International Business Machines Corporation Method, System, and Program Product for Migrating Data from One Data Base Management System to Another Data Base Management System
CN102611745A (en) * 2011-12-31 2012-07-25 成都市华为赛门铁克科技有限公司 On-line file moving method, device and system
CN104036029A (en) * 2014-06-27 2014-09-10 深圳市腾讯计算机系统有限公司 Big data consistency comparison method and system
US20150302016A1 (en) * 2014-04-18 2015-10-22 Oracle International Corporation Systems and methods for multi-threaded shadow migration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090240704A1 (en) * 2002-03-18 2009-09-24 International Business Machines Corporation Method, System, and Program Product for Migrating Data from One Data Base Management System to Another Data Base Management System
CN102611745A (en) * 2011-12-31 2012-07-25 成都市华为赛门铁克科技有限公司 On-line file moving method, device and system
US20150302016A1 (en) * 2014-04-18 2015-10-22 Oracle International Corporation Systems and methods for multi-threaded shadow migration
CN104036029A (en) * 2014-06-27 2014-09-10 深圳市腾讯计算机系统有限公司 Big data consistency comparison method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284278A (en) * 2018-08-13 2019-01-29 中国平安人寿保险股份有限公司 Calculating logic moving method and terminal device based on data analysis technique
CN109284278B (en) * 2018-08-13 2023-10-31 中国平安人寿保险股份有限公司 Calculation logic migration method based on data analysis technology and terminal equipment
CN113051245A (en) * 2019-12-26 2021-06-29 云丁网络技术(北京)有限公司 Method, device and system for migrating data

Also Published As

Publication number Publication date
CN107368486B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN106250104B (en) A kind of remote operating system for server, method and device
CN110427342A (en) A kind of method, equipment and readable medium creating mirror site
CN102508701A (en) User terminal and method for controlling automatically-operating application program
CN109597626A (en) A kind of deployment of components method and apparatus
CN106874328A (en) A kind of data processing method and equipment
CN106155730A (en) Operating system loading method and device
CN110704438B (en) Method and device for generating bloom filter in blockchain
CN110309123A (en) Processing method, device, computer equipment and the storage medium of database manipulation
CN110262847A (en) Application program launching accelerated method, device and machine readable storage medium
CN110493342A (en) Document transmission method, device, electronic equipment and readable storage medium storing program for executing
CN109857516A (en) Cluster moving method and device based on container
CN106657182B (en) Cloud file processing method and device
CN113835822A (en) Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device
CN107368486A (en) A kind of business migration method and device
CN109195157A (en) application management method, device and terminal
CN112230927A (en) File redirection method, code loading control method and device
CN108958981A (en) A kind of mirror image store method and relevant apparatus based on docker
CN109298873A (en) A kind of method for upgrading system and device
CN109376020B (en) Data processing method, device and storage medium under multi-block chain interaction concurrence
US9164678B2 (en) Merging data volumes and derivative versions of the data volumes
CN102141917A (en) Method for realizing multi-service linkage based on IronPython script language
CN109582776B (en) Model generation method and device, electronic device and storage medium
CN115757639A (en) Data source synchronization method and device, electronic equipment and storage medium
CN109086362A (en) The management method of multimode project
CN108733386A (en) Remote journal real time inspection method, system, computer equipment and storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right