A kind of moving method of data, device and equipment
Technical field
This application involves field of computer technology more particularly to a kind of moving methods of data, device and equipment.
Background technique
Distributed Storage is that data dispersion is stored in more independent storage equipment, is set using more storages
For the memory technology for carrying out load sharing.In distributed data-storage system storing data, data distribution formula is routed to accordingly
Storage equipment in, realize the distributed storage of data.In some cases (for example, distributed data-storage system is corresponding
Entire server cluster carries out regional migration, entire server cluster crosses the complete of the server protected or in entire server cluster
Portion or part replacement etc.), need to carry out the migration of data, without traffic affecting normal use.
In general, the storage equipment using replacement builds new cluster, the data of former cluster are migrated into new cluster, example
Such as, with the continuous development of hardware, the hardware performance in equipment is higher and higher, if the server in former cluster is SATA
(Serial Advanced Technology Attachment, serial high-tech configure interface) server, and current former cluster
Guarantor is already expired, needs SATA server in former cluster being changed to HYBRID server, specifically include the following contents: former cluster is normal
Service is externally provided, meanwhile, the new cluster of HYBRID server is built, the data in former cluster are with snap shot from former cluster
SATA server replicates to new cluster HYBRID server.During being replicated, for being newly written in former cluster
Data, then carry out data increment migration.Function is write by double in distributed data-storage system, by the migration of above-mentioned data
The data received in the process are respectively written into new cluster and former cluster.When in cluster former on the data driven stored in new cluster
When the data of storage, whole read-write capabilities are switched on new cluster, then, modify label attribute information, so that itself and new collection
HYBRID server in group is adapted (i.e. function is write in the mixing storage of unlatching HYBRID server), to complete moving for data
Move the replacement with cluster.
However, needing when the data stored in the data stored in new cluster and former cluster reach consistent by whole readings
It writes in function switch to new cluster, in the process, needs to execute number when the data stored in new cluster and former cluster are consistent
According to migration, the service of former cluster can be stopped at this time, and start new cluster with to distributed data-storage system provide service, and
Being will cause in distributed data-storage system certain time length in above-mentioned handoff procedure cannot use, so that user can not read and write point
Data in cloth data-storage system.
Summary of the invention
The purpose of the embodiment of the present application is to provide the moving method, device and equipment of a kind of data, to be handled by dilatation
With capacity reducing processing, the migration that data are completed in the case where the service quality of line service can be influenced in continual service and not
With the replacement of equipment, read-write of the user to data in storage system will not influence, furthermore, it is possible to the speed of Data Migration is improved,
Reduce the time consumed by Data Migration.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
A kind of moving method of data provided by the embodiments of the present application, which comprises
According in storage system it is to be migrated storage equipment capacity, within the storage system add target migration equipment with
Dilatation processing is carried out to the storage system;
The storage equipment to be migrated is carried out that write operation is forbidden to handle, the number that will be stored in the storage equipment to be migrated
It is migrated in equipment according to the target is moved to;
Remove the storage equipment to be migrated within the storage system to carry out capacity reducing processing to the storage system.
A kind of moving apparatus of data provided by the embodiments of the present application, described device include:
Dilatation module is added within the storage system for the capacity according to storage equipment to be migrated in storage system
Target migrates equipment to carry out dilatation processing to the storage system;
Data Migration module will be described to be migrated for the storage equipment to be migrated carrying out that write operation is forbidden to handle
The Data Migration stored in storage equipment is into target migration equipment;
Capacity reducing module, for remove within the storage system the storage equipment to be migrated with to the storage system into
The processing of row capacity reducing.
A kind of migration equipment for data that the embodiment of the present application separately provides, the equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
According in storage system it is to be migrated storage equipment capacity, within the storage system add target migration equipment with
Dilatation processing is carried out to the storage system;
The storage equipment to be migrated is carried out that write operation is forbidden to handle, the number that will be stored in the storage equipment to be migrated
It is migrated in equipment according to the target is moved to;
Remove the storage equipment to be migrated within the storage system to carry out capacity reducing processing to the storage system.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application passes through to be migrated in storage system
The capacity for storing equipment carries out dilatation processing to storage system and is added in storage system so that target is migrated equipment, then, right
Storage equipment to be migrated carries out that write operation is forbidden to handle, and the Data Migration stored in storage equipment to be migrated is migrated to target
In equipment, finally, capacity reducing processing is carried out removing storage equipment to be migrated from storage system to storage system again, in this way,
It is handled, can be influenced in continual service and not in the case where the service quality of line service by dilatation processing and capacity reducing, it is complete
At the migration of data and the replacement of equipment, read-write of the user to data in storage system will not influence, furthermore, it is possible to improve data
The speed of migration reduces the time consumed by Data Migration.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of moving method embodiment of data of the application;
Fig. 2A is a kind of schematic diagram of storage system dilatation of the application;
Fig. 2 B is a kind of schematic diagram of storage system capacity reducing of the application;
Fig. 3 is a kind of moving method embodiment of data of the application;
Fig. 4 A is the schematic diagram of the application another kind storage system dilatation;
Fig. 4 B is the schematic diagram of the application another kind storage system capacity reducing;
Fig. 5 A is the schematic diagram of another storage system dilatation of the application;
Fig. 5 B is the schematic diagram of another storage system capacity reducing of the application;
Fig. 6 is a kind of moving apparatus embodiment of data of the application;
Fig. 7 is a kind of migration apparatus embodiments of data of the application.
Specific embodiment
The embodiment of the present application provides the moving method, device and equipment of a kind of data.
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
Embodiment one
As shown in Figure 1, the embodiment of the present application provides a kind of moving method of data, the executing subject of this method can be clothes
Business device or terminal device, server therein can be the meta data server in storage system, be also possible to pre-set
For the server of Data Migration, terminal device can be personal computer etc..This method can specifically include following steps:
In step s101, according to the capacity of storage equipment to be migrated in storage system, mesh is added in the storage system
Mark migration equipment is to carry out dilatation processing to the storage system.
Wherein, storage system can be distributed data-storage system, be also possible to centralized data-storage system.Wait move
It moves storage equipment and can be in storage system any one storage equipment or can be and set by multiple storages in storage system
Standby (including all storage equipment in storage system) are constituted.Storage equipment to be migrated can be the storage for needing to be replaced
Equipment.Target migration equipment can be the equipment for replacing storage equipment to be migrated, and the memory space that target migrates equipment is big
In or equal to the memory space to be migrated for storing equipment.Dilatation processing can be the addition storage equipment into storage system, and
The processing serviced provided by the storage equipment.
In an implementation, it may include multiple storage equipment in storage system, can be stored needs by storage equipment
Data are stored.In order to guarantee the safety of data, more parts of (such as 3 parts or 5 parts can be stored for same data in storage system
Deng), which is separately positioned in different storage equipment, and more parts of data are used as Backup Data between each other, in this way, working as
Storage unit exception where certain data then can continue as using by the storage equipment where other Backup Datas of the data
Family provides service.
With the continuous development of hardware, the update of hardware device is getting faster, and performance is also become better and better, for storage
For equipment, the storage equipment of distinct interface, performance is not also identical, for example, IDE (Integrated Drive
Electronics, electronic integrated driver) the storage equipment of interface, SCSI (Small Computer System
Interface, small computer system interface) storage of storage equipment, the storage equipment of SATA interface or HYBRID interface sets
Standby etc., the corresponding performance for storing equipment successively enhances with the tandem of above-mentioned displaying.In order to preferably be provided for user
Relevant service, storage equipment that can be more backward to performance in storage system are replaced, and in view of being commonly stored system
Middle to store equipment comprising a large amount of, the storage equipment needed replacing is often also more, such as all storages in storage system are set
A part storage equipment etc., the storage equipment (storage i.e. to be migrated for thus needing to need replacing in standby or storage system
Equipment) in store Data Migration to newly store equipment (i.e. target migration equipment) in.In order to during Data Migration not
Influence the Service Quality in line service (can not interrupt the business of service, can be with the business of real-time perfoming read operation and write operation)
Amount can be handled, specifically, as shown in Figure 2 A, if necessary by way of the dilatation processing of storage system and capacity reducing processing
7 storage equipment in storage system are replaced, then can calculate the memory capacity of the 7 storage equipment needed replacing, such as 120TB
Or 100TB etc..Target migration equipment of the memory capacity more than or equal to above-mentioned memory capacity can be chosen, and target migration is set
It is standby to be added in the topological structure of storage system.Target migration equipment can be chosen, and starts the dilatation processing of storage system, this
When, target can be migrated into equipment and be added in storage system, the storage system after obtaining dilatation can be as shown in Figure 2 A.
It should be noted that within the storage system often including management equipment (such as Metadata Service in management level
Device) and data storage device, wherein management equipment be used to be managed the data in data storage device (such as data distribution,
Data query, data deletion etc.), data storage device can be used for storing data.If necessary to which management equipment and data are deposited
It stores up equipment all to replace, then can first pass through above-mentioned processing mode replacement management equipment, it, can be with after management equipment replacement
Data storage device is replaced by above-mentioned processing mode by the management equipment after replacing.If only needing replacing management equipment or number
According to storage equipment, then can directly be executed by above-mentioned processing mode.
In step s 102, above-mentioned storage equipment to be migrated is carried out that write operation is forbidden to handle, which is set
The Data Migration of standby middle storage is into above-mentioned target migration equipment.
Wherein, write operation can be the operation that data are written into storage equipment to be migrated.
In an implementation, the priority assignation choosing of priority assignation option and write operation that read operation can be set in equipment is stored
, by above-mentioned two option, the read operation and/or write operation for storing equipment can be controlled, for example, when certain storage is set
It, can be by read operation when not allowing user to modify or delete for the data of middle storage, but user being allowed to download, replicate or check
Priority assignation option is positioned to allow for, and the priority assignation option of write operation is set as refusing, in this way, user will be unable to this
It stores equipment and carries out write operation.Since storage equipment to be migrated needs are replaced, when user needs that number is written into storage system
When according to (i.e. execution write operation), it can write the data in target migration equipment, for this purpose, can stop to storage to be migrated
Equipment executes write operation, it can is positioned to allow for the priority assignation option of the read operation of storage equipment to be migrated, and will write
The priority assignation option of operation is set as refusing.After above-mentioned processing, write operation is needed to be implemented when storing equipment, and be this
When write operation distribution storage equipment, which can be distributed to target migration equipment, and storage equipment to be migrated is no longer held
Row write operation, but at this point, user still can check or download the data stored in storage equipment to be migrated.
Same data can be stored in storage system more based on above-mentioned related content in order to guarantee the safety of data
Part (such as 3 parts or 5 parts), the more parts of data are separately positioned in different storage equipment.In order not to interrupt in line service, and
The service quality in line service is not influenced, and the storage where can searching each data stored in storage equipment to be migrated is set
It is standby, it is always ensured that any data all has one or more parts data and is not carried out Data Migration behaviour during carrying out Data Migration
Make, for example, including 5 different data in storage equipment to be migrated, each data include 3 parts, wherein storage equipment A, storage are set
Any storage equipment in standby B and storage equipment C all stores data 1, data 2, data 3, data 4 and data 5, is being counted
According to migration when, storage equipment A, storage equipment B and storage equipment C cannot carry out Data Migration simultaneously, and can only store equipment A,
Storage equipment B and storage equipment C successively carry out Data Migration, i.e., any advanced row Data Migration of storage equipment therein is completed
Afterwards, then to any storage equipment in remaining storage equipment Data Migration is carried out, finally remaining storage equipment is counted
The advanced row Data Migration of equipment is stored according to any two in migration, or storage equipment A, storage equipment B and storage equipment C, it is complete
Cheng Hou, then remaining storage equipment is carried out any in Data Migration, or storage equipment A, storage equipment B and storage equipment C
One advanced row Data Migration of storage equipment after the completion, then carries out Data Migration to remaining storage equipment simultaneously.
It should be noted that the triggering mode for executing data migration operation may include a variety of, for example, can preset
Trigger condition executes data migration operation, wherein holding when certain storage equipment in storage system meets the trigger condition
Before row data migration operation, the storage equipment for needing to carry out Data Migration can be chosen and be arranged, and receive the number of migration
According to storage equipment;For another example triggering state can be set for each storage equipment, it can be with each storage equipment of real-time detection
State can carry out Data Migration to the storage equipment when the state of certain storage equipment is converted to above-mentioned triggering state.In addition to
Outside above-mentioned triggering mode, it can also include a variety of triggering modes, can be determined according to the actual situation, details are not described herein.
In step s 103, above-mentioned storage equipment to be migrated is removed in above-mentioned storage system to carry out to the storage system
Capacity reducing processing.
Wherein, capacity reducing processing can be deletes clothes provided by storage equipment and the storage equipment from storage system
The processing of business.
In an implementation, after the Data Migration for completing above-mentioned steps S102, it can determine and to be stored in storage equipment to be migrated
Data have all moved in target migration equipment, are written into target migration equipment with the data in stylish write-in storage system
In, at this point, storage equipment to be migrated loses existing meaning within the storage system, therefore, above-mentioned storage system can be held
The processing of row capacity reducing, which is removed from the storage system, in this way, as shown in Figure 2 B, in storage system
No longer include storage equipment to be migrated, but include target migration equipment, in this way, can by dilatation processing and capacity reducing processing
In the case where not needing to interrupt service and do not influence the service quality in line service, the migration of data is completed, data are improved
The speed of migration reduces the time consumed by Data Migration.
Further, since the interface of storage equipment or the data memory format of the storage unit (such as disk) in storage equipment
Difference, the format for storing the data stored in equipment also can be different, therefore, if storage equipment to be migrated and target migrate equipment
There are above-mentioned differences, then after the Data Migration stored in storage equipment to be migrated being migrated equipment to target, can modify migration
The configuration parameter of data afterwards makes it match with target migration equipment, if storage equipment to be migrated and target migrate equipment
There is no above-mentioned differences, then the configuration parameter of the data after can not needing modification migration.
It should be noted that above-mentioned steps S101~step S103 processing can be applied to a certain Stored Data Type
Storage equipment, such as the management equipment (such as meta data server) or data storage device of management level that above content is mentioned
Deng also can be applied to the storage equipment of different data storage class, in this case, it is possible to which different data storage class is deposited
Storage equipment is performed simultaneously above-mentioned steps S101~step S103 processing, can also preset depositing for different data storage class
Storage equipment executes the priority of above-mentioned processing, for example, such as above content, the priority that management equipment can be set is deposited higher than data
The priority of equipment is stored up, in this way, can first replace to management equipment, that is, executes the place above-mentioned steps S101~step S103
Reason, then, then replaces data storage device.
The embodiment of the present application provides a kind of moving method of data, passes through the appearance of storage equipment to be migrated in storage system
Amount carries out dilatation processing to storage system target migration equipment to be added in storage system, then, sets to storage to be migrated
It is standby to carry out that write operation is forbidden to handle, and by the Data Migration stored in storage equipment to be migrated into target migration equipment, finally,
Capacity reducing processing is carried out to remove storage equipment to be migrated from storage system, in this way, handling by dilatation to storage system again
With capacity reducing processing, the migration that data are completed in the case where the service quality of line service can be influenced in continual service and not
With the replacement of equipment, read-write of the user to data in storage system will not influence, furthermore, it is possible to the speed of Data Migration is improved,
Reduce the time consumed by Data Migration.
Embodiment two
As shown in figure 3, the embodiment of the present application provides a kind of moving method of data, the executing subject of this method can be
Server or terminal device, server therein can be the meta data server in storage system, be also possible to preset
The server for Data Migration, terminal device can be personal computer etc..
The moving method of explanation data provided by the embodiments of the present application for greater clarity, the embodiment of the present application with
It is illustrated for all storage equipment in replacement storage system, it is contemplated that HYBRID stores equipment, and data will not during power down
It loses, and data may lose SATA storage device during power down, therefore, storage equipment to be migrated can set for SATA storage
Standby, target migrates equipment can store equipment for HYBRID, and storage equipment to be migrated is the meta data server in storage system
And/or data storage server, wherein meta data server is used to manage first number of the data stored in data storage server
According to.By taking storage equipment to be migrated is meta data server and data storage server in storage system as an example, the application is implemented
The moving method for the data that example provides can specifically include following steps:
In step S301, according to the capacity of storage equipment to be migrated in storage system, mesh is added in the storage system
Mark migration equipment is to carry out dilatation processing to the storage system.
The step content of above-mentioned steps S301 is identical as the step content of step S101 in above-described embodiment one, step S301
Specific processing may refer to the related content in above-mentioned steps S101, details are not described herein.
In step s 302, above-mentioned storage equipment to be migrated is carried out that write operation is forbidden to handle, is set according to storage to be migrated
The storage space utilization of standby and target migration equipment, determines in storage equipment to be migrated according to scheduled load balancing rule
Data to be migrated.
Wherein, storage space utilization can be used for characterizing between used memory space and not used memory space
Relationship, storage space utilization is higher, then shows to store that equipment use is more frequent accordingly, the read operation of data and/or writes
It operates more frequent.Load balancing rule can be lower for the data loaded in higher storage equipment to be transferred to load
The rule in equipment is stored, it is balanced the purpose is to carry out the load of storage equipment to be migrated and target migration equipment, to reach
The equiblibrium mass distribution of data, load balancing rule specifically may be set according to actual conditions.Data to be migrated can be according to above-mentioned
The data that load balancing rule determines, needs will load in higher storage equipment are transferred in the lower storage equipment of load
Data, data to be migrated can be a part of data of all data stored in storage equipment to be migrated.
In an implementation, stopping can to the processing mode that above-mentioned meta data server and data storage server execute write operation
To include a kind of a variety of, feasible processing mode presented below, meta data server and data storage server can be distinguished
Blacklist is added, at this point, meta data server and data storage server can execute read operation, and write operation cannot be executed,
At this point, user is without being written data in normal direction meta data server and data storage server, in this way, as shown in Figure 4 A, storage system
The write operation of system can only be migrated equipment by target, and (in order to distinguish with aforementioned names, it is target metadata service that target, which migrates equipment,
Device and target data storage server) it executes.When user needs that data are written into storage system, number can be written into this
Target metadata server is distributed to according to corresponding write operation and target data storage server executes, meta data server sum number
The services such as reading or the downloading of the data of its storage can be provided for user according to storage server.
It can be previously provided with load balancing rule in storage system, such as Rebalance (rebalancing) mechanism, moved treating
It moves storage equipment to carry out after forbidding write operation to handle, can star the Rebalance mechanism of storage system, at this point, due to target
The storage space utilization (or disk utilization) of meta data server and target data storage server is lower, and first
The storage space utilization of data server and data storage server is higher, to cause to load unevenness in storage system, opens
After dynamic Rebalance mechanism, meta data server and data storage server can be determined (i.e. according to above-mentioned load balancing rule
Storage equipment to be migrated) in need to move to target metadata server and target data storage server (i.e. target migration set
It is standby) in data to be migrated, for example, data volume be 1TB data A etc..
In step S303, above-mentioned Data Migration to be migrated to target migration is set by scheduled load balancing rule
It is standby, and by down status subject to storage equipment to be migrated setting, controlling storage equipment to be migrated will be surplus other than data to be migrated
Remaining Data Migration to target migrates equipment.
Wherein, quasi- down status (i.e. ShutDown state) can be a kind of state before down status, can also manage
To prepare a kind of offline state, quasi- down status needs to store equipment and completes predetermined operation solution, after the completion of predetermined operation, storage
Equipment is offline.
In an implementation, start Rebalance mechanism, and determine storage equipment to be migrated according to scheduled load balancing rule
In data to be migrated after, the data to be migrated stored in meta data server and data storage server will be migrated to mesh
It marks in meta data server and target data storage server.
For being in the storage equipment of quasi- down status, one or more operations needed to be implemented, example can be preset
Such as, data migration operation, the flow control of Data Migration or network bandwidth control etc..Above-mentioned storage equipment to be migrated can be set
It is set to quasi- down status, at this point, storage equipment to be migrated is still within and readable not writeable (can execute read operation, but cannot
Execute write operation) state.It can search and determine the meta data server in quasi- down status and/or data storage service
Device counts the data volume of the remaining data in the data wherein stored in addition to data to be migrated, it is then possible to determine corresponding
Target metadata server and/or target data storage server, can be by meta data server and/or data storage server
In data to be migrated other than remaining data move to corresponding target metadata server and/or target data storage service
In device, while the uninterrupted of Data Migration, such as 30MB/s or 35MB/s can be controlled by pre-set network bandwidth.
The processing mode of above-mentioned steps S303 can be varied, a kind of feasible processing mode presented below, then above-mentioned
The processing of step S303 is specifically as follows: successively according in storage system it is above-mentioned it is to be migrated storage equipment where preset rack,
Respectively by down status subject to the storage equipment to be migrated setting in the preset rack, and controls the storage equipment to be migrated and will deposit
The remaining data of storage moves in target migration equipment.
Wherein, it may include multiple storage equipment in preset rack (i.e. Rack), may include multiple pre- in storage system
Rack is set, moreover, the more parts of data are separately positioned on based on that can store more parts (such as 3 parts) for same data in storage system
In different storage equipment, the considerations of more parts of data are used as Backup Data between each other, can store in each preset rack and appoint
A data in a kind of more parts of data of data, for example, including 3 preset racks, respectively rack 1, machine in storage system
Frame 2 and rack 3, and include three kinds of data, respectively data 1, data 2 and data 3, data 1,2 sum number of data in storage system
3 parts of data are respectively included according to 3, then any preset rack in rack 1, rack 2 and rack 3 all stores data 1,2 and of data
Data 3 store data 1, data 2 and data 3, data 1, data 2 and data 3, rack 3 are stored in rack 2 in rack 1
In store data 1, data 2 and data 3.
In an implementation, in order not to interrupt in line service, and the service quality in line service is not influenced, it can be with preset machine
Frame is that unit carries out data migration operation, for example, any preset rack based on above-mentioned example, in rack 1, rack 2 and rack 3
All store data 1, data 2 and data 3, then can first by rack 1 meta data server or data storage server it is complete
Down status subject to portion's setting, and will be other than the data to be migrated that stored in meta data server and/or data storage server
Remaining data move in corresponding target metadata server and/or target data storage server, can after the completion of migration
With by rack 2 meta data server or data storage server be all set to quasi- down status, and by Metadata Service
Remaining data other than the data to be migrated stored in device and/or data storage server moves to corresponding target metadata clothes
It is engaged in device and/or target data storage server, finally, again by the meta data server or data storage server in rack 3
Be all set to quasi- down status, and by the data to be migrated stored in meta data server and/or data storage server with
Outer remaining data moves in corresponding target metadata server and/or target data storage server, to complete number
According to migration operation.It is therein that meta data server or data storage server are all set to quasi- down status, and will be first
Remaining data other than the data to be migrated stored in data server and/or data storage server moves to corresponding target
Concrete processing procedure in meta data server and/or target data storage server may refer to above-mentioned related content, herein
It repeats no more.
It should be noted that the storage according to storage equipment to be migrated and target migration equipment in above-mentioned steps S302 is empty
Between utilization rate, the data that store in storage equipment to be migrated are moved by scheduled load balancing rule into target migration equipment
The purpose of the processing of shifting is the migration in order to accelerate data, and reducing the time consumed by Data Migration in practical applications can also
Not need to execute above-mentioned processing, and directly execute the processing of above-mentioned steps S303.
Above-mentioned steps S302~step S303 treatment process is the specific place of one kind of step S102 in above-described embodiment one
Reason mode often encounters the meta data server and data storage server needed in storage system in practical applications
In Data Migration to corresponding target migration equipment in, based on this situation, above-mentioned storage equipment to be migrated may include store
Meta data server and data storage server in system, correspondingly, target migration equipment may include target metadata clothes
Business device and target data storage server, then the processing mode of above-mentioned steps S102 can also be accomplished by the following way, specifically
It may include the following contents: meta data server being carried out write operation is forbidden to handle, the data that will be stored in meta data server
It moves in target metadata server;Data storage server is carried out write operation is forbidden to handle, by data storage server
The Data Migration of middle storage is into target data storage server.The concrete processing procedure of above content may refer to above-mentioned steps
The related content of S102 or step S302 and step S303, details are not described herein.
Furthermore it is also possible to execute above-mentioned steps S301~step respectively to meta data server and data storage server
S303 and following step S304~step S305.
In step s 304, above-mentioned storage equipment to be migrated is removed in above-mentioned storage system to carry out to the storage system
Capacity reducing processing.
The step content of above-mentioned steps S304 is identical as the step content of step S103 in above-described embodiment one, step S304
Specific processing may refer to the related content in above-mentioned steps S103, details are not described herein.The processing knot of above-mentioned steps S304
Fruit can be as shown in Figure 4 B.
It should be noted that first data can be carried out to meta data server during executing above-mentioned Data Migration
Then migration and equipment replacement, then carry out Data Migration and equipment replacement to data storage server, can also be simultaneously to first number
Carry out Data Migration and equipment replacement respectively according to server and data storage server, can also first to data storage server into
Then row Data Migration and equipment replacement, then carry out Data Migration and equipment replacement, the embodiment of the present application to meta data server
Without limitation to the execution of the two sequence.
In addition, Data Migration and equipment replacement for meta data server, can be handled otherwise, for example,
Function is write by double, the data of user's write-in are written in target metadata server and meta data server simultaneously, work as target
When the data stored in meta data server on the data driven stored in meta data server, then whole read-write capabilities are switched
Onto target metadata server, and the place above-mentioned steps S301~step S304 can be executed for data storage server
Reason.
In step S305, it is revised as the label attribute information that storage equipment to be migrated matches to migrate equipment with target
The label attribute information to match.
Wherein, label attribute information is for recording the information such as the configuration parameter of data, label attribute information and storage equipment
It is adapted.
In an implementation, since storage equipment (i.e. meta data server and/or data storage server) to be migrated is SATA
Equipment is stored, target migrates equipment (i.e. target metadata server and/or target data storage server) as HYBRID storage
The interfaces of equipment, two kinds of storage equipment are different, then the format of the data of its storage also can be different, and therefore, it is necessary to will be to be migrated
After the Data Migration stored in storage equipment migrates equipment to target, the label attribute information of the data after modification migration (is such as matched
Set parameter etc.), so that it is matched with target migration equipment.
In addition, the moving method of data provided by the above embodiment, is to replace whole storage equipment in storage system
For the explanation that carries out, in practical applications, the moving method of data provided by the embodiments of the present application can also be applied to replacement
In the case where part storage equipment in storage system, as shown in Figure 5A, storage equipment to be migrated is the part in storage system
Data storage server, storage equipment to be migrated can also be SATA storage device, and it can also be HYBRID that target, which migrates equipment,
Store equipment.
Based on above content, the moving method of data provided by the embodiments of the present application can specifically include the following contents: root
According to the capacity of storage equipment (data storage server in Fig. 5 A) to be migrated in storage system, target is added within the storage system
Data storage server is to carry out dilatation processing to storage system;Storage equipment to be migrated is carried out that write operation is forbidden to handle, root
According to the storage space utilization of storage equipment to be migrated and target migration equipment, determine according to scheduled load balancing rule wait move
The data to be migrated in storage equipment are moved, are set Data Migration to be migrated to target migration by scheduled load balancing rule
It is standby, and successively according in storage system it is to be migrated storage equipment where preset rack, respectively by the preset rack wait move
Move down status subject to storage equipment setting, control storage equipment to be migrated by the remaining data other than data to be migrated migrate to
Target migrates equipment.Remove storage equipment (data storage server in Fig. 5 A) to be migrated within the storage system to be to storage
System carries out capacity reducing processing, as shown in Figure 5 B.The label attribute information that matches of storage equipment to be migrated is revised as and number of targets
The label attribute information to match according to storage server (i.e. HYBRID stores equipment).
The specific processing mode of above-mentioned treatment process may refer to the related content in above-described embodiment one and embodiment two,
Details are not described herein.
It should be noted that it is serial high that above-mentioned steps S301~step S305 processing, which is based on storage equipment to be migrated,
Technology configuration interface SATA storage device, target migration equipment are that the case where mixing HYBRID stores equipment carries out specifically
It is bright, in practical applications, however it is not limited to which above situation, storage equipment and target migration equipment to be migrated can be serial high-tech
Any two kinds in interface SATA storage device, mixing HYBRID storage equipment and solid-state hard disk SSD storage equipment are configured, i.e., such as
Fruit storage equipment to be migrated is SATA storage device, HYBRID stores equipment and SSD is stored in the storage equipment of 3 seed type of equipment
Any one type storage equipment, then target migration equipment can store equipment and SSD for SATA storage device, HYBRID
The storage equipment for storing any one type in equipment in addition to storage equipment type to be migrated, for example, if to be migrated
Storage equipment is SATA storage device, then target migration equipment can store equipment for HYBRID and SSD stores appointing in equipment
A kind of storage equipment, i.e. HYBRID stores equipment or SSD stores equipment.
The embodiment of the present application provides a kind of moving method of data, passes through the appearance of storage equipment to be migrated in storage system
Amount carries out dilatation processing to storage system target migration equipment to be added in storage system, then, sets to storage to be migrated
It is standby to carry out that write operation is forbidden to handle, and by the Data Migration stored in storage equipment to be migrated into target migration equipment, finally,
Capacity reducing processing is carried out to remove storage equipment to be migrated from storage system, in this way, handling by dilatation to storage system again
With capacity reducing processing, the migration that data are completed in the case where the service quality of line service can be influenced in continual service and not
With the replacement of equipment, read-write of the user to data in storage system will not influence, furthermore, it is possible to the speed of Data Migration is improved,
Reduce the time consumed by Data Migration.
Embodiment three
The above are the moving methods of data provided by the embodiments of the present application, are based on same thinking, the embodiment of the present application is also
A kind of moving apparatus of data is provided, as shown in Figure 6.
The moving apparatus of the data includes: dilatation module 601, Data Migration module 602 and capacity reducing module 603, in which:
Dilatation module 601 adds within the storage system for the capacity according to storage equipment to be migrated in storage system
Add target migration equipment to carry out dilatation processing to the storage system;
Data Migration module 602, for the storage equipment to be migrated carrying out that write operation is forbidden to handle, by described wait move
The Data Migration stored in storage equipment is moved into target migration equipment;
Capacity reducing module 603, for removing the storage equipment to be migrated within the storage system to be to the storage
System carries out capacity reducing processing.
In the embodiment of the present application, the Data Migration module 602, comprising:
Data determination unit to be migrated, for the storage according to the storage equipment to be migrated and target migration equipment
Space utilization rate determines the data to be migrated in the storage equipment to be migrated according to scheduled load balancing rule;
Data migration unit, for by the scheduled load balancing rule by the Data Migration to be migrated to described
Target migrates equipment, and by down status subject to the storage equipment setting to be migrated, controlling the storage equipment to be migrated will
Remaining data other than the data to be migrated migrates to the target and migrates equipment.
In the embodiment of the present application, the storage equipment to be migrated and target migration equipment are that the configuration of serial high-tech connects
Any two kinds in mouth SATA storage device, mixing HYBRID storage equipment and solid-state hard disk SSD storage equipment.
In the embodiment of the present application, described device further include:
Information modified module, for by the label attribute information that matches of storage equipment to be migrated be revised as with it is described
The label attribute information that target migration equipment matches.
In the embodiment of the present application, the data migration unit, for successively according to be migrated described in the storage system
The preset rack where equipment is stored, respectively by offline shape subject to the storage equipment setting to be migrated in the preset rack
Remaining data other than the data to be migrated is migrated to target migration and is set by state, the control storage equipment to be migrated
It is standby.
In the embodiment of the present application, the storage equipment to be migrated is meta data server or data in the storage system
Storage server, wherein the meta data server is used to manage first number of the data stored in the data storage server
According to.
In the embodiment of the present application, the storage equipment to be migrated includes the meta data server sum number in the storage system
According to storage server, target migration equipment includes target metadata server and target data storage server,
Correspondingly, the Data Migration module 602, forbids write operation to handle for carrying out to the meta data server,
By the Data Migration stored in the meta data server into the target metadata server;To the data storage service
Device carries out that write operation is forbidden to handle, and the Data Migration stored in the data storage server to the target data is stored and is taken
It is engaged in device.
The embodiment of the present application provides a kind of moving apparatus of data, passes through the appearance of storage equipment to be migrated in storage system
Amount carries out dilatation processing to storage system target migration equipment to be added in storage system, then, sets to storage to be migrated
It is standby to carry out that write operation is forbidden to handle, and by the Data Migration stored in storage equipment to be migrated into target migration equipment, finally,
Capacity reducing processing is carried out to remove storage equipment to be migrated from storage system, in this way, handling by dilatation to storage system again
With capacity reducing processing, the migration that data are completed in the case where the service quality of line service can be influenced in continual service and not
With the replacement of equipment, read-write of the user to data in storage system will not influence, furthermore, it is possible to the speed of Data Migration is improved,
Reduce the time consumed by Data Migration.
Example IV
The above are the moving apparatus of data provided by the embodiments of the present application, are based on same thinking, the embodiment of the present application is also
A kind of migration equipment of data is provided, as shown in Figure 7.
The migration equipment of the data can be provided by the above embodiment
The migration equipment of data can generate bigger difference because configuration or performance are different, may include one or one
Above processor 701 and memory 702, can store in memory 702 one or more storage application programs or
Data.Wherein, memory 702 can be of short duration storage or persistent storage.The application program for being stored in memory 702 may include
One or more modules (diagram is not shown), each module may include the series of computation in the migration equipment to data
Machine executable instruction.Further, processor 701 can be set to communicate with memory 702, in the migration equipment of data
Execute the series of computation machine executable instruction in memory 702.The migration equipment of data can also include one or one with
Upper power supply 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705,
One or more keyboards 706.
Specifically in the present embodiment, the migration equipment of data includes memory and one or more program,
Perhaps more than one program is stored in memory and one or more than one program may include one or one for one of them
It is a with upper module, and each module may include the series of computation machine executable instruction in migration equipment to data, and pass through
Configuration includes for carrying out following calculate to execute this or more than one program by one or more than one processor
Machine executable instruction:
According in storage system it is to be migrated storage equipment capacity, within the storage system add target migration equipment with
Dilatation processing is carried out to the storage system;
The storage equipment to be migrated is carried out that write operation is forbidden to handle, the number that will be stored in the storage equipment to be migrated
It is migrated in equipment according to the target is moved to;
Remove the storage equipment to be migrated within the storage system to carry out capacity reducing processing to the storage system.
Optionally, the executable instruction when executed, can also make the processor:
According to the storage space utilization of the storage equipment to be migrated and target migration equipment, according to scheduled negative
It carries balanced rule and determines the data to be migrated to be migrated stored in equipment;
The Data Migration to be migrated to the target is migrated into equipment by the scheduled load balancing rule, and will
Down status subject to the storage equipment setting to be migrated, controlling the storage equipment to be migrated will be other than the data to be migrated
Remaining data migrate to the target migrate equipment.
In the embodiment of the present application, the storage equipment to be migrated and target migration equipment are that the configuration of serial high-tech connects
Any two kinds in mouth SATA storage device, mixing HYBRID storage equipment and solid-state hard disk SSD storage equipment.
Optionally, the executable instruction when executed, can also make the processor:
It is revised as the label attribute information that the storage equipment to be migrated matches to migrate equipment phase with the target
The label attribute information matched.
Optionally, the executable instruction when executed, can also make the processor:
It, respectively will be described preset successively according to the preset rack where storage to be migrated equipment described in the storage system
Down status subject to the storage equipment setting to be migrated in rack, controlling the storage equipment to be migrated will be described to be migrated
Remaining data other than data migrates to the target and migrates equipment.
In the embodiment of the present application, the storage equipment to be migrated is meta data server or data in the storage system
Storage server, wherein the meta data server is used to manage first number of the data stored in the data storage server
According to.
Optionally, the executable instruction when executed, can also make the processor:
The storage equipment to be migrated includes meta data server and data storage server in the storage system, institute
Stating target migration equipment includes target metadata server and target data storage server,
Correspondingly, described to the storage equipment to be migrated carry out that write operation is forbidden to handle, the storage to be migrated is set
The Data Migration of standby middle storage is into target migration equipment, comprising:
The meta data server is carried out write operation is forbidden to handle, the data stored in the meta data server are moved
It moves on in the target metadata server;
The data storage server is carried out write operation is forbidden to handle, the number that will be stored in the data storage server
According to moving in the target data storage server.
The embodiment of the present application provides a kind of migration equipment of data, passes through the appearance of storage equipment to be migrated in storage system
Amount carries out dilatation processing to storage system target migration equipment to be added in storage system, then, sets to storage to be migrated
It is standby to carry out that write operation is forbidden to handle, and by the Data Migration stored in storage equipment to be migrated into target migration equipment, finally,
Capacity reducing processing is carried out to remove storage equipment to be migrated from storage system, in this way, handling by dilatation to storage system again
With capacity reducing processing, the migration that data are completed in the case where the service quality of line service can be influenced in continual service and not
With the replacement of equipment, read-write of the user to data in storage system will not influence, furthermore, it is possible to the speed of Data Migration is improved,
Reduce the time consumed by Data Migration.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.