CN108304144A - Data write-in, read method and system, data read-write system - Google Patents

Data write-in, read method and system, data read-write system Download PDF

Info

Publication number
CN108304144A
CN108304144A CN201810051573.5A CN201810051573A CN108304144A CN 108304144 A CN108304144 A CN 108304144A CN 201810051573 A CN201810051573 A CN 201810051573A CN 108304144 A CN108304144 A CN 108304144A
Authority
CN
China
Prior art keywords
data
unique identifier
sector
server
driving
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
CN201810051573.5A
Other languages
Chinese (zh)
Other versions
CN108304144B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810051573.5A priority Critical patent/CN108304144B/en
Publication of CN108304144A publication Critical patent/CN108304144A/en
Application granted granted Critical
Publication of CN108304144B publication Critical patent/CN108304144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of method for writing data, the method includes:In response to the write-in sector requests that the operating system of computer is sent, driving obtains the sector number of sector data to be written and computer according to write-in sector requests;Driving obtains the address of N number of loaded server according to the unique identifier of sector number and preconfigured computer;Driving sends sector number, unique identifier and sector data to N number of loaded server respectively according to the address of N number of loaded server;N number of loaded server obtains current time after receiving sector number, unique identifier and sector data, the time data memory as sector data;Time data memory, the unique identifier of reception, sector number and sector data are carried out corresponding storage by N number of loaded server respectively.The method for writing data of the present invention can reduce the probability of storage loss of data, while the present invention also provides a kind of data writing systems, method for reading data and system, data read-write systems.

Description

Data write-in, read method and system, data read-write system
Technical field
The present invention relates to a kind of field of computer technology more particularly to data write-in, read method and system, reading and writing datas System.
Background technology
When the operating system of computer generates data in operation, need to carry out write operation to hard disc of computer, by grasping Make system and send write-in sector requests to driving, drives and write control instruction to hard disk transmission after receiving request, to write data into Hard disk;And when being read to hard disc of computer, then it is sent from operating system to driving and reads sector requests, driving is received It is sent to hard disk after to request and reads control instruction, to read data from hard disk.
The present inventor has found in the practice of the invention, and following technical problem exists in the prior art:
Hard disk there is a possibility that damage, once there is bad track of hard disk, the data of hard-disc storage will be damaged;
The hard drive space capacity of personal computer is limited, and capacity can not meet demand;
Further, since hard drive space is limited, the new data stored on hard disk will cover original data, once write-in is new Data, the then data being capped will be unable to give for change.
Invention content
A kind of data write-in of present invention proposition, read method and system, data read-write system, can reduce storage loss of data Probability.
One aspect of the present invention provides a kind of method for writing data, and the method for writing data includes:
In response to the write-in sector requests that the operating system of computer is sent, driving is obtained according to said write sector requests The sector number of sector data and the computer to be written;
The driving obtains N number of load according to the unique identifier of the sector number and the preconfigured computer The address of server;
The driving sends the fan to N number of loaded server respectively according to the address of N number of loaded server Area's number, the unique identifier and the sector data;
N number of loaded server is after receiving the sector number, the unique identifier and the sector data Obtain current time, the time data memory as the sector data;
N number of loaded server is respectively by the time data memory, the unique identifier of reception, the sector Number and the sector data carry out corresponding storage.
More preferably, the unique mark driven according to the sector number and the preconfigured computer Symbol obtains the address of N number of loaded server, including:
Described drive to meta server sends the sector number and the unique identifier;
The meta server returns to the N after receiving the sector number and the unique identifier to the driving The address of a loaded server.
In a kind of optional embodiment, the method for writing data further includes:
Each loaded server is in the unique identifier, the sector number and the sector data to reception It is notified to meta server transmission after carrying out corresponding storage;Wherein, it is described notice include the time data memory, it is described only The address of one identifier, the sector number and N number of loaded server;
The meta server is after receiving the notice, by the time data memory of reception, the unique mark The address of symbol, the sector number and N number of loaded server corresponds to store to write-in and record.
In a kind of optional embodiment, the meta server is receiving the sector number and the unique mark Driving described in Fu Houxiang returns to the address of N number of loaded server, including:
The meta server is after receiving the sector number and the unique identifier, according to loaded server group's The resource free time amount of each loaded server calculates the pressure coefficient of each loaded server of the loaded server group;
All loaded servers of the loaded server group are ranked up according to the pressure coefficient;
N number of load services of the pressure coefficient minimum are chosen from all loaded servers of the loaded server group Device;
The address of N number of loaded server of the pressure coefficient minimum is returned to the driving.
In a kind of optional embodiment, the method for writing data further includes:
Restore instruction in response to the data of input, the driving, which obtains, specifies storage time;
Described drive to the meta server sends the unique identifier;
The meta server according to the unique identifier and said write of reception record will all correspond to it is described only The address of the loaded server of one identifier is sent to the driving;Wherein, described to all correspond to the unique identifier Loaded server has prestored all sector datas corresponding to the unique identifier;
The driving all corresponds to the address of the loaded server of the unique identifier according to, respectively to described All correspond to the loaded server transmission data rollback instruction of the unique identifier;Wherein, the data rewind instruction packet Include the specified storage time;
The loaded server for all corresponding to the unique identifier executes after receiving the data rewind instruction First delete operation will correspond to the unique identifier and be deleted corresponding to the sector data of rollback time data memory It removes;The rollback time data memory is the time data memory for being later than the specified storage time;
The loaded server for all corresponding to the unique identifier is after executing first delete operation to institute It states meta server and sends the second notice;
The meta server executes the second delete operation after receiving all second notices, will correspond to described Unique identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted.
In a kind of optional embodiment, the data in response to input restore instruction, and the driving obtains specified Storage time, including:
Restore to instruct in response to the data, described drive to the meta server sends the unique identifier;
The meta server, which records to send to the driving according to the unique identifier and said write of reception, to be owned Time data memory corresponding with the unique identifier;
The driving, which is sent according to all time data memories corresponding with the unique identifier to user, to be selected Storage time is asked;
When getting the selection instruction that user returns according to the request of the selection storage time of reception, the driving root The number that user selects from all time data memories corresponding with the unique identifier is obtained according to the selection instruction According to storage time, as the specified storage time.
The present invention also provides a kind of method for reading data, the method for reading data includes:
The method for reading data includes:
In response to the reading sector requests that the operating system of computer is sent, the driving is according to said write sector requests Obtain the sector number of the computer;
The driving obtains N number of load according to the unique identifier of the preconfigured computer and the sector number The address of server;Wherein, N number of loaded server has been prestored corresponding to the unique identifier and corresponding to described The sector data of the time data memory of sector number the latest;
The driving is sent to N number of loaded server to described respectively according to the address of N number of loaded server The acquisition of sector data corresponding to the unique identifier and corresponding to the time data memory of the sector number the latest is asked It asks;
N number of loaded server will correspond to the unique identifier and right according to the acquisition of reception request respectively The sector data of sector number described in Ying Yu is sent to driving;
The sector data of reception is sent to the operating system by the driving.
More preferably, the driving is compiled according to the unique identifier of the preconfigured computer and the sector The address of N number of loaded server number is obtained, including
Described drive to meta server sends the unique identifier and the sector number;
The meta server is recorded according to the unique identifier, the sector number and pre-stored write-in, by institute There is the ground of the loaded server of time data memory the latest corresponding to the unique identifier and corresponding to the sector number Location is sent to the driving;Wherein, corresponding store of said write record all corresponds to the unique identifier and corresponds to The time data memory of the sector number and the address of loaded server.
In a kind of optional embodiment, the driving is according to the address of N number of loaded server respectively to the N A loaded server sends the time data memory corresponding to the unique identifier and corresponding to the sector number to described The acquisition of sector data the latest is asked, including:
The driving is obtained according to the unique identifier and the sector number corresponding to the unique identifier and right The sector capacity of sector number described in Ying Yu;
The sector data is divided into N section by the driving according to the sector capacity, and is generated and corresponded to according to every part In the unique identifier and corresponding to the corresponding part of the time data memory sector data the latest of the sector number The acquisition of data is asked;
The driving sends to the different loaded servers different respectively according to the address of N number of loaded server The corresponding part data acquisition request;
N number of loaded server will correspond to the unique identifier and right according to the acquisition of reception request respectively The sector data of sector number described in Ying Yu is sent to driving, including:
N number of loaded server is asked according to the acquisition of the data of the corresponding part of reception by the correspondence respectively Partial data are sent to the driving;
The sector data of reception is sent to the operating system by the driving, including:
The driving synthesizes the data of N number of corresponding part of reception, with the sector data after being synthesized;
Sector data after the synthesis is sent to the operating system by the driving.
In a kind of optional embodiment, the method for reading data further includes:
Restore instruction in response to the data of input, the driving, which obtains, specifies storage time;
Described drive to the meta server sends the unique identifier;
The meta server according to the unique identifier and said write of reception record will all correspond to it is described only The address of the loaded server of one identifier is sent to the driving;Wherein, described to all correspond to the unique identifier Loaded server has prestored all sector datas corresponding to the unique identifier;
The driving all corresponds to the address of the loaded server of the unique identifier according to, respectively to described All correspond to the loaded server transmission data rollback instruction of the unique identifier;Wherein, the data rewind instruction packet Include the specified storage time;
The loaded server for all corresponding to the unique identifier executes after receiving the data rewind instruction First delete operation will correspond to the unique identifier and be deleted corresponding to the sector data of rollback time data memory It removes;The rollback time data memory is the time data memory for being later than the specified storage time;
The loaded server for all corresponding to the unique identifier is after executing first delete operation to institute It states meta server and sends the second notice;
The meta server executes the second delete operation after receiving all second notices, will correspond to described Unique identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted;
The meta server sends third notice after executing second delete operation, to the driving;
The driving reloads data command after receiving the third notice to operating system transmission, so that The operating system returns to the sector read requests to the driving.
In a kind of optional embodiment, the data in response to input restore instruction, and the driving obtains specified Storage time, including:
Restore to instruct in response to the data, described drive to the meta server sends the unique identifier;
The meta server is recorded according to the unique identifier and said write of reception by all and unique mark Know the corresponding time data memory of symbol and is sent to the driving;
The driving sends to user according to all time data memories corresponding to the unique identifier and selects Storage time is asked;
When getting the selection instruction that user returns according to the request of the selection storage time of reception, the driving root The number that user selects from all time data memories corresponding to the unique identifier is obtained according to the selection instruction According to storage time, as the specified storage time.
The present invention also provides a kind of data writing systems, the data writing systems include driving and N number of loaded server;
The driving includes:
First acquisition module, the write-in sector requests for being sent in response to the operating system of computer, writes according to described Enter the sector number that sector requests obtain sector data to be written and the computer;
Second acquisition module, for being obtained according to the unique identifier of the sector number and the preconfigured computer Take the address of N number of loaded server;
First sending module, for being sent out respectively to N number of loaded server according to the address of N number of loaded server Send the sector number, the unique identifier and the sector data;
The loaded server includes:
Time-obtaining module, for after receiving the sector number, the unique identifier and the sector data Obtain current time, the time data memory as the sector data;
First memory module, for respectively by the time data memory, the unique identifier of reception, the sector Number and the sector data carry out corresponding storage.
More preferably, the data writing systems further include meta server;
Second acquisition module further includes the first transmission unit, for sending the sector number and institute to meta server State unique identifier;
The meta server includes the first return module, for receiving the sector number and the unique identifier The backward driving returns to the address of N number of loaded server.
In a kind of optional embodiment, the loaded server further includes the first notification module, for receiving The unique identifier, the sector number and the sector data sent to the meta server after corresponding storage it is logical Know;Wherein, the notice includes the time data memory, the unique identifier, the sector number and N number of load The address of server;
The meta server further includes the first logging modle, for after receiving the notice, receiving described lead to After knowing, by the time data memory of reception, the unique identifier, the sector number and N number of loaded server Address correspond to store to write-in record.
In a kind of optional embodiment, second judging unit includes:
Coefficient calculation unit, for after receiving the sector number and the unique identifier, according to load services The resource free time amount of each loaded server of device group calculates the pressure system of each loaded server of the loaded server group Number;
First sequencing unit, for according to the pressure coefficient to all loaded servers of the loaded server group into Row sequence;
Server selection unit, for choosing the pressure system from all loaded servers of the loaded server group The minimum N number of loaded server of number;
Address returning unit, the address of N number of loaded server for returning to the pressure coefficient minimum to the driving.
In a kind of optional embodiment, the driving further includes:
5th acquisition module restores instruction for the data in response to input, obtains and specify storage time;
6th acquisition module, for sending the unique identifier to the meta server;
The meta server includes the 7th sending module, for being remembered according to the unique identifier and said write of reception The address for the loaded server for all corresponding to the unique identifier is sent to the driving by record;Wherein, described all right The loaded server of unique identifier described in Ying Yu has prestored all sector datas corresponding to the unique identifier;
5th sending module, the address of the loaded server for all corresponding to the unique identifier according to, Respectively to the loaded server transmission data rollback instruction for all corresponding to the unique identifier;Wherein, the data Rollback instruction includes the specified storage time;
The loaded server further includes:
First removing module will correspond to for executing the first delete operation after receiving the data rewind instruction It the unique identifier and is deleted corresponding to the sector data of rollback time data memory;The rollback time data memory To be later than the time data memory of the specified storage time;
Second notification module, for sending the second notice to the meta server after executing first delete operation;
The meta server further includes the 6th sending module, for executing second after receiving all second notices Delete operation will correspond to the unique identifier and be deleted corresponding to the write-in of rollback time data memory record It removes.
In a kind of optional embodiment, the 5th acquisition module includes the 7th transmission unit, in response to institute It states data and restores instruction, the unique identifier is sent to the meta server;
The meta server further includes the 8th sending module, for the unique identifier and said write according to reception It records to the driving and sends all time data memories corresponding with the unique identifier;
The driving further includes:
9th sending module, for according to all time data memories corresponding with the unique identifier to user Send selection storage time request;
7th acquisition module, for working as the selection for getting user and being returned according to the request of the selection storage time of reception When instruction, user is obtained from all time data memories corresponding with the unique identifier according to the selection instruction The time data memory of selection, as the specified storage time.
The present invention also provides a kind of data reading system, the data reading system includes driving and N number of load services Device;
The driving includes:
Third acquisition module, the reading sector requests for being sent in response to the operating system of computer, the driving root The sector number of the computer is obtained according to said write sector requests;
4th acquisition module, for being obtained according to the unique identifier and the sector number of the preconfigured computer Take the address of N number of loaded server;Wherein, N number of loaded server prestored corresponding to the unique identifier and Corresponding to the time data memory sector data the latest of the sector number;
Second sending module, for being sent out respectively to N number of loaded server according to the address of N number of loaded server Send the sector data the latest to the time data memory corresponding to the unique identifier and corresponding to the sector number Acquisition request;
The loaded server further includes third sending module, for that will correspond to institute according to the acquisition of reception request It states unique identifier and is sent to driving corresponding to the sector data of the sector number;
The driving further includes the 4th sending module, is for the sector data received to be sent to the operation System.
More preferably, the data reading system further includes meta server;
4th acquisition module includes the second transmission unit, for sending the unique identifier and institute to meta server State sector number;
The meta server includes second returning to module, for according to the unique identifier, the sector number and pre- The write-in record first stored will all correspond to the unique identifier and corresponding to the time data memory of the sector number The address of loaded server the latest is sent to the driving;Wherein, corresponding store of said write record all corresponds to institute State the address of unique identifier and time data memory and loaded server corresponding to the sector number.
In a kind of optional embodiment, second sending module includes:
Capacity acquisition unit corresponds to unique mark for being obtained according to the unique identifier and the sector number Know symbol and the sector capacity corresponding to the sector number;
Unit is requested to generate, for the sector data to be divided into N section according to the sector capacity, and according to every part Generate pair of the sector data of time data memory the latest corresponding to the unique identifier and corresponding to the sector number The acquisition of the data of part is answered to ask;
Request transmitting unit is used for the address according to N number of loaded server respectively to the different load services Device sends the acquisition request of the data of the different corresponding parts;
The third sending module includes:
Data transmission unit, the acquisition for being used for the data of the corresponding part according to reception are asked the corresponding part Data be sent to the driving;
The third sending module includes:
Data Synthesis unit, for synthesizing the data of the N number of corresponding part received, after being synthesized Sector data;
Data returning unit, for the sector data after the synthesis to be sent to the operating system.
In a kind of optional embodiment, the driving further includes:
8th acquisition module restores instruction for the data in response to input, obtains and specify storage time;
9th acquisition module, for sending the unique identifier to the meta server;
The meta server includes the tenth sending module, for being remembered according to the unique identifier and said write of reception The address for the loaded server for all corresponding to the unique identifier is sent to the driving by record;Wherein, described all right The loaded server of unique identifier described in Ying Yu has prestored all sector datas corresponding to the unique identifier;
11st sending module, the ground of the loaded server for all corresponding to the unique identifier according to Location, respectively to the loaded server transmission data rollback instruction for all corresponding to the unique identifier;Wherein, the number Include the specified storage time according to rollback instruction;
The loaded server further includes:
Second removing module will correspond to for executing the first delete operation after receiving the data rewind instruction It the unique identifier and is deleted corresponding to the sector data of rollback time data memory;The rollback time data memory To be later than the time data memory of the specified storage time;
Third notice module, for sending the second notice to the meta server after executing first delete operation;
The meta server further includes:
12nd sending module will be right for executing the second delete operation after receiving all second notices Unique identifier described in Ying Yu and the write-in for corresponding to the rollback time data memory, which record, is deleted;
4th notification module, for after executing second delete operation, third notice to be sent to the driving;
The driving further includes reload instruction sending module, for being to the operation after receiving the third notice System sends and reloads data command, so that the operating system returns to the sector read requests to the driving.
In a kind of optional embodiment, the 8th acquisition module includes the 8th transmission unit, in response to institute It states data and restores instruction, the unique identifier is sent to the meta server;
The meta server further includes the 13rd sending module, for according to the unique identifier of reception and described writing Enter record and all time data memories corresponding with the unique identifier are sent to the driving;
The driving further includes:
14th sending module, for according to all time data memories corresponding with the unique identifier to Family sends selection storage time request;
Tenth acquisition module, for working as the selection for getting user and being returned according to the request of the selection storage time of reception When instruction, user is obtained from all time data memories corresponding with the unique identifier according to the selection instruction The time data memory of selection, as the specified storage time.
The present invention also provides a kind of data read-write system, the data read-write system includes described in above-mentioned first embodiment Data writing systems and above-mentioned first embodiment described in data reading system.
The present invention also provides a kind of data read-write system, the data read-write system includes above-mentioned second embodiment to Any implementation in data writing systems and above-mentioned second embodiment to the 5th embodiment in seven embodiments described in any embodiment The example data reading system.
Compared with the prior art, the present invention has following advantageous effect outstanding:The present invention provides a kind of data to be written, Read method and system, data read-write system, wherein the method for writing data includes:In response to the operating system of computer The write-in sector requests of transmission, driving obtain sector data to be written and the computer according to said write sector requests Sector number;The driving obtains N number of negative according to the unique identifier of the sector number and the preconfigured computer Carry the address of server;The driving is sent to N number of loaded server respectively according to the address of N number of loaded server The sector number, the unique identifier and the sector data;N number of loaded server is receiving the sector volume Number, obtain current time after the unique identifier and the sector data, the time data memory as the sector data; N number of loaded server is respectively by the time data memory, the unique identifier of reception, the sector number and institute It states sector data and carries out corresponding storage.Data provided by the invention are written, read method and system, data read-write system pass through institute It states driving and obtains the sector number, and the unique identifier according to the sector number and the preconfigured computer The address for obtaining N number of loaded server is identified by the unique identifier, the sector number and time data memory and is stored Data in loaded server, to realize that the sector data that operating system will be written to local computer is stored by driving To N number of loaded server, avoiding leads to loss of data because of the damage of local computer disk, and passes through N number of load services Device carries out dilatation to memory space, hard without replacing even if the data to be written are more than local computer disk spatial content Disk has saved cost to reduce dilatation difficulty, and the data of different time storage are distinguished by time data memory, keeps away Exempt from that former data cover is improved flexibility and the reliability of data storage when new data is written.
Description of the drawings
Fig. 1 is the flow diagram of the first embodiment of method for writing data provided by the invention;
Fig. 2 is the flow diagram of the first embodiment of method for reading data provided by the invention;
Fig. 3 is the module diagram of the first embodiment of data writing systems provided by the invention;
Fig. 4 is the module diagram of the first embodiment of data reading system provided by the invention;
Fig. 5 is the module diagram of the first embodiment of data read-write system provided by the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
It is the flow diagram of the first embodiment of method for writing data provided by the invention, the method packet referring to Fig. 1 It includes:
S101, in response to the write-in sector requests that the operating system of computer is sent, driving is asked according to said write sector Seek the sector number for obtaining sector data and the computer to be written;
S102, the driving obtain N according to the unique identifier of the sector number and the preconfigured computer The address of a loaded server;
S103, the driving send institute to N number of loaded server respectively according to the address of N number of loaded server State sector number, the unique identifier and the sector data;
S104, N number of loaded server are receiving the sector number, the unique identifier and the sector number According to rear acquisition current time, the time data memory as the sector data;
S105, N number of loaded server is respectively by the time data memory, the unique identifier of reception, institute It states sector number and the sector data carries out corresponding storage.
In the present embodiment, the operating system of computer is sent out when needing to write data into the hard disk of computer to driving Send write-in sector requests;For example, when operating system generates data in the process of running, or need the number of External memory equipment When according to the hard disk that computer is written, then write-in sector requests are sent to driving.
In the present embodiment, N is the positive integer more than or equal to 1;The ground driven according to N number of loaded server Location sends the sector number, the unique identifier and the sector data to N number of loaded server respectively, including:
The driving is separately connected N number of loaded server according to the address of N number of loaded server;
The driving sends the sector number, the unique identifier and described to the N number of loaded server respectively Sector data.
In a kind of optional embodiment, the driving is pre-configured with the unique identifier of the computer, including:
Before the write-in sector requests sent in response to the operating system of computer, the driving obtains the computer Machine information;
The unique identifier of the computer is generated according to the machine information.
The unique identifier of different computers is different.Each loaded server is according to the unique identifier, described When sector number and time data memory store the sector data, storage organization may be considered with a Hash The index structure of table (hash table) stores, and the unique identifier of computer is the index value of Hash table;Sector number is also Hash The index value of table;Time data memory is also the index value of Hash table.Therefore, in the data of loaded server storage, The corresponding data of the unique identifier meaning computer can be indexed on loaded server by the unique identifier; The unique identifier meaning meter can be indexed on loaded server by the unique identifier and the sector number The corresponding sector data in sector number meaning sector on calculation machine;Pass through the unique identifier, the sector number and institute The sector number on the unique identifier meaning computer can be indexed on loaded server by stating time data memory Sector data corresponding with the time data memory in all data of signified sector.
The sector number is obtained by the driving, and according to the sector number and the preconfigured meter The unique identifier of calculation machine obtains the address of N number of loaded server, passes through the unique identifier, the sector number and data Storage time mark is stored in the data in loaded server, to realize the sector that operating system will be written to local computer Data are stored by driving to N number of loaded server, and avoiding leads to loss of data because of the damage of local computer disk, and Dilatation is carried out to memory space by N number of loaded server, even if the data to be written are held more than local computer disk space Amount, without replacement hard disk, to reduce dilatation difficulty, when having saved cost, and having distinguished different by time data memory Between the data that store, avoid that former data cover is improved flexibility and the reliability of data storage when new data is written.
The present invention also provides a kind of second embodiments of method for writing data, and the method includes above-mentioned data write-in sides Step S101~S105 in the first embodiment of method, further defined it is described driving according to the sector number and in advance The unique identifier of the computer of configuration obtains the address of N number of loaded server, including:
Described drive to meta server sends the sector number and the unique identifier;
The meta server returns to the N after receiving the sector number and the unique identifier to the driving The address of a loaded server.
In a kind of optional embodiment, the meta server is receiving the sector number and the unique mark Driving described in Fu Houxiang returns to the address of N number of loaded server, including:The meta server according to the sector number and The unique identifier obtains the address of N number of loaded server;The meta server is to corresponding to the unique identifier Driving return to the address of N number of loaded server.It realizes when multiple drive to the same meta server sends fan When area numbers with unique identifier, different driving is distinguished by unique identifier.
In a kind of optional embodiment, the network that is driven through sends the sector number to the meta server With the unique identifier of the preconfigured computer.
It is loaded server of the computer scheduling for sector data to be written by meta server, and by uniquely marking Know symbol and distinguish different computers, it is that multiple computers are serviced to be easy to implement through a meta server, improves dispatching efficiency; By meta server N number of loaded server is returned to the driving after receiving the sector number and the unique identifier Address, convenient for being managed collectively to loaded server group so that driving quick obtaining loaded server address, improve Write efficiency.
The present invention also provides a kind of 3rd embodiments of method for writing data, and the method includes above-mentioned data write-in sides Step S101~S105 in the first embodiment of method, having further defined the method for writing data further includes:
Each loaded server is in the unique identifier, the sector number and the sector data to reception It is notified to meta server transmission after carrying out corresponding storage;Wherein, it is described notice include the time data memory, it is described only The address of one identifier, the sector number and N number of loaded server;
The meta server is after receiving the notice, by the time data memory of reception, the unique mark The address of symbol, the sector number and N number of loaded server corresponds to store to write-in and record.
It should be noted that by the time data memory, the unique identifier, the sector number and described N number of The address of loaded server corresponds to store to said write and record, then N number of loaded server and N number of loaded server Address all correspond to the unique identifier;The address of N number of loaded server and N number of loaded server is all corresponding In the unique identifier and correspond to the sector number;The ground of N number of loaded server and N number of loaded server Location all corresponds to the unique identifier, the sector number and corresponds to the time data memory;N number of load services The address of device and N number of loaded server all corresponds to the unique identifier, the sector number and data storage Time.
I.e. by by the time data memory, the unique identifier, the sector number and N number of load services The address of device corresponds to store to write-in and record, convenient for meta server according to write-in record search and the time data memory, institute State the address of unique identifier, the corresponding loaded server of the sector number, and by the address found issue driving for The driving for reading data is needed to obtain sector data from corresponding loaded server according to address.
The present invention also provides a kind of fourth embodiments of method for writing data, and the method includes above-mentioned data write-in sides Step S101~S105 in the first embodiment of method has further defined the meta server and has received the sector volume Number and the unique identifier after the address of N number of loaded server is returned to the driving, including:
The meta server is after receiving the sector number and the unique identifier, according to loaded server group's The resource free time amount of each loaded server calculates the pressure coefficient of each loaded server of the loaded server group;
All loaded servers of the loaded server group are ranked up according to the pressure coefficient;
N number of load services of the pressure coefficient minimum are chosen from all loaded servers of the loaded server group Device;
The address of N number of loaded server of the pressure coefficient minimum is returned to the driving.
I.e. by choosing N number of loaded server of the pressure coefficient minimum, as N number of available loaded server, with The small loaded server of scheduling pressure is stored, to improve the write efficiency of data.
The present invention also provides a kind of the 5th embodiments of method for writing data, and the method includes above-mentioned data write-in sides Step S101~S105 in the first embodiment of method, having further defined the method for writing data further includes:
Restore instruction in response to the data of input, the driving, which obtains, specifies storage time;
Described drive to the meta server sends the unique identifier;
The meta server according to the unique identifier and said write of reception record will all correspond to it is described only The address of the loaded server of one identifier is sent to the driving;Wherein, described to all correspond to the unique identifier Loaded server has prestored all sector datas corresponding to the unique identifier;
The driving all corresponds to the address of the loaded server of the unique identifier according to, respectively to described All correspond to the loaded server transmission data rollback instruction of the unique identifier;Wherein, the data rewind instruction packet Include the specified storage time;
The loaded server for all corresponding to the unique identifier executes after receiving the data rewind instruction First delete operation will correspond to the unique identifier and be deleted corresponding to the sector data of rollback time data memory It removes;The rollback time data memory is the time data memory for being later than the specified storage time;
The loaded server for all corresponding to the unique identifier is after executing first delete operation to institute It states meta server and sends the second notice;
The meta server executes the second delete operation after receiving all second notices, will correspond to described Unique identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted.
It i.e. will be corresponding to the unique identifier and corresponding to the rollback time data memory by loaded server Sector data is deleted so that corresponding to the storage of data the latest of the sector data of the unique identifier on loaded server Time is the specified storage time, to be realized according to the specified storage time of user's selection when operating system reading is newest When sector data, read sector data is the sector data stored in the specified storage time, is convenient for user After new sector data is written by operating system, the data that operating system is read are reverted into old sector data, i.e., in fact Now to the recovery of operating system.
The present invention also provides a kind of sixth embodiments of method for writing data, and the method includes above-mentioned data write-in sides Step S101~S105 in the first embodiment of method has further defined the data in response to input and has restored instruction, The driving, which obtains, specifies storage time, including:
Restore to instruct in response to the data, described drive to the meta server sends the unique identifier;
The meta server, which records to send to the driving according to the unique identifier and said write of reception, to be owned Time data memory corresponding with the unique identifier;
The driving, which is sent according to all time data memories corresponding with the unique identifier to user, to be selected Storage time is asked;
When getting the selection instruction that user returns according to the request of the selection storage time of reception, the driving root The number that user selects from all time data memories corresponding with the unique identifier is obtained according to the selection instruction According to storage time, as the specified storage time.
Sent out to user according to all time data memories corresponding with the unique identifier by the driving It sends to be elected and selects storage time request, to obtain specified storage time, improve the treatment effeciency for obtaining the time.
It is the flow diagram of the first embodiment of method for reading data provided by the invention referring to Fig. 2;The method Including:
S301, in response to the reading sector requests that the operating system of computer is sent, the driving is fanned according to said write The sector number of computer described in area's acquisition request;
S302, the driving obtain N according to the unique identifier of the preconfigured computer and the sector number The address of a loaded server;Wherein, N number of loaded server, which has prestored, corresponds to the unique identifier and correspondence In the time data memory sector data the latest of the sector number;
S303, the driving is according to the address of N number of loaded server respectively to N number of loaded server transmission pair The sector data corresponding to the unique identifier and corresponding to the time data memory of the sector number the latest obtains Take request;
S304, N number of loaded server will correspond to the unique mark according to the acquisition of reception request respectively It accords with and is sent to driving corresponding to the sector data of the sector number;
The sector data of reception is sent to the operating system by S305, the driving.
In the present embodiment, the operating system of computer sends to driving and reads when needing to read the sector data of hard disk Take sector requests;For example, when operating system calls data to be calculated in the process of running, or need to copy sector data When to External memory equipment, is then sent to driving and read sector requests.
In the present embodiment, N is the positive integer more than or equal to 1;The ground driven according to N number of loaded server Location is sent to described to N number of loaded server corresponding to the unique identifier and corresponding to the sector number respectively The acquisition of the sector data of time data memory the latest is asked, including:
The driving is separately connected N number of loaded server according to the address of N number of loaded server;
The driving is sent to the N number of loaded server respectively to be corresponded to the unique identifier and corresponds to described The acquisition of the sector data of the time data memory of the sector number the latest is asked.
In a kind of optional embodiment, the driving is pre-configured with the unique identifier of the computer, including:
Before the write-in sector requests sent in response to the operating system of computer, the driving obtains the computer Machine information;
The unique identifier of the computer is generated according to the machine information.
The unique identifier of different computers is different.Each loaded server is according to the unique identifier, described When sector number and time data memory store the sector data, storage organization may be considered with a Hash The index structure of table (hash table) stores, and the unique identifier of computer is the index value of Hash table;Sector number is also Hash The index value of table;Time data memory is also the index value of Hash table.Therefore, in the data of loaded server storage, The corresponding data of the unique identifier meaning computer can be indexed on loaded server by the unique identifier; The unique identifier meaning meter can be indexed on loaded server by the unique identifier and the sector number The corresponding sector data in sector number meaning sector on calculation machine;Pass through the unique identifier, the sector number and institute The sector number on the unique identifier meaning computer can be indexed on loaded server by stating time data memory Sector data corresponding with the time data memory in all data of signified sector.Therefore, described corresponding to described unique Identifier and be the unique identifier meaning meter corresponding to the time data memory sector data the latest of the sector number The sector data of corresponding data storage time the latest in the data of sector number meaning sector on calculation machine.
The sector number is obtained by the driving, and obtains and corresponds to the preconfigured computer only One identifier and corresponding to the sector number N number of loaded server address, according to the unique identifier, the fan Area numbers the data obtained with time data memory the latest in loaded server, to realize by driving from loaded server The operating system sector data to be read is obtained, avoid leads to loss of data because of the damage of local computer disk;Pass through N A loaded server carries out dilatation to memory space, even if the data to be written are more than local computer disk spatial content Without hard disk is needed to change, to reduce dilatation difficulty, cost is saved, and give tacit consent to and number is read by time data memory the latest According to so that operating system gets newest sector data, without the time data memory by user's selection the latest, reduces Cumbersome flow, improves treatment effeciency.
The present invention also provides a kind of second embodiments of method for reading data, and the method includes above-mentioned digital independent sides Step S301~S305 in the first embodiment of method has further defined the driving according to the preconfigured calculating The unique identifier of machine and the sector number obtain the address of N number of loaded server, including
Described drive to meta server sends the unique identifier and the sector number;
The meta server is recorded according to the unique identifier, the sector number and pre-stored write-in, by institute There is the ground of the loaded server of time data memory the latest corresponding to the unique identifier and corresponding to the sector number Location is sent to the driving;Wherein, corresponding store of said write record all corresponds to the unique identifier and corresponds to The time data memory of the sector number and the address of loaded server.
It should be noted that if the meta server has prestored the unique identifier, the sector number and more The address of a loaded server, then the address of N number of loaded server and N number of loaded server all correspond to it is described only One identifier;The address of N number of loaded server and N number of loaded server all corresponds to the unique identifier and right Sector number described in Ying Yu;The address of N number of loaded server and N number of loaded server all corresponds to unique mark Know symbol, the sector number and corresponds to the time data memory;N number of loaded server and N number of load services The address of device all corresponds to the unique identifier, the sector number and the time data memory.
In a kind of optional embodiment, the unique identifier of the meta server according to reception, the sector It numbers the ground of pre-stored all loaded servers corresponding to the unique identifier and corresponding to the sector number Location is sent to the driving, including:It obtains corresponding to N number of loaded server of the unique identifier and the sector number Address;To the address for returning to N number of loaded server corresponding to the driving of the unique identifier.It is by meta server Computer searching is used to read the loaded server of sector data, and distinguishes different computers by unique identifier, is convenient for It realizes through a meta server to be that multiple computers are serviced, improves dispatching efficiency.
In a kind of optional embodiment, the network that is driven through sends the sector number and pre- to meta server The unique identifier of the computer first configured.
It is i.e. N number of to driving return after receiving the sector number and the unique identifier by meta server The address of loaded server, convenient for being managed collectively to loaded server group so that driving quick obtaining loaded server Address improves write efficiency.
The present invention also provides a kind of 3rd embodiments of method for reading data, and the method includes above-mentioned digital independent sides Step S301~S305 in the first embodiment of method has further defined the driving according to N number of loaded server Address sent respectively to the N number of loaded server and correspond to the unique identifier to described and compiled corresponding to the sector Number time data memory sector data the latest acquisition request, including:
The driving is obtained according to the unique identifier and the sector number corresponding to the unique identifier and right The sector capacity of sector number described in Ying Yu;
The sector data is divided into N section by the driving according to the sector capacity, and is generated and corresponded to according to every part In the unique identifier and corresponding to the corresponding part of the time data memory sector data the latest of the sector number The acquisition of data is asked;
The driving sends to the different loaded servers different respectively according to the address of N number of loaded server The corresponding part data acquisition request;
N number of loaded server will correspond to the unique identifier and right according to the acquisition of reception request respectively The sector data of sector number described in Ying Yu is sent to driving, including:
N number of loaded server is asked according to the acquisition of the data of the corresponding part of reception by the correspondence respectively Partial data are sent to the driving;
The sector data of reception is sent to the operating system by the driving, including:
The driving synthesizes the data of N number of corresponding part of reception, with the sector data after being synthesized;
Sector data after the synthesis is sent to the operating system by the driving.
In the present embodiment, sector capacity, also known as sector-size refer to the sector byte number of hard disk.
In a kind of optional embodiment, sector capacity is 512 bytes, N 3;The driving is held according to the sector The sector data is divided into N section by amount, and is generated corresponding to the unique identifier according to every part and corresponded to the fan The acquisition request of the data of the corresponding part of the sector data of the time data memory of area's number the latest, specially:The driving The sector data is divided by the sector capacity and is divided into this 3 part of 172 bytes, 170 bytes and 170 bytes and generates 3 It is the first part of 172 bytes, the second part that size is 170 bytes and third that size is 170 bytes to correspond to size respectively Partial acquisition request.The driving is according to the address of N number of loaded server respectively to the different loaded servers The acquisition request of the data of the different corresponding parts is sent, specially:It is described drive to 3 respectively with the load services The corresponding loaded server in address of device sends the acquisition request of the data of the different corresponding parts;In a kind of optional reality It applies in mode, the driving is at random to described 3 loaded server progress corresponding with the address of the loaded server respectively Number, to obtain No. 1 loaded server, No. 2 loaded server and No. 3 loaded server;Described drive to No. 1 is born Carry the acquisition request that server sends the first part;The acquisition for sending the second part to No. 2 loaded server is asked It asks;The acquisition request of the Part III is sent to No. 3 loaded server.It is described to drive the sector data after the synthesis It is sent to the operating system, specially:The driving synthesizes the data of 3 parts of reception;The driving will synthesize Data afterwards are sent to the operating system.
I.e. by the sector capacity being divided into N section and the acquisition for generating corresponding each section is asked, and according to institute The address for stating N number of loaded server sends the corresponding acquisition request of different piece to the different loaded servers, to real The data of the contents of N/1 of sector are now obtained from each loaded server, then are driven the data of the N section of reception by described It is synthesized, and the data after synthesis is sent to the operating system, correspond to institute to realize to return to operating system The sector data for stating sector number further improves the speed for obtaining data.
The present invention also provides a kind of fourth embodiments of method for reading data, and the method includes above-mentioned digital independent sides Step S301~S305 in the first embodiment of method, having further defined the method for reading data further includes:
Restore instruction in response to the data of input, the driving, which obtains, specifies storage time;
Described drive to the meta server sends the unique identifier;
The meta server according to the unique identifier and said write of reception record will all correspond to it is described only The address of the loaded server of one identifier is sent to the driving;Wherein, described to all correspond to the unique identifier Loaded server has prestored all sector datas corresponding to the unique identifier;
The driving all corresponds to the address of the loaded server of the unique identifier according to, respectively to described All correspond to the loaded server transmission data rollback instruction of the unique identifier;Wherein, the data rewind instruction packet Include the specified storage time;
The loaded server for all corresponding to the unique identifier executes after receiving the data rewind instruction First delete operation will correspond to the unique identifier and be deleted corresponding to the sector data of rollback time data memory It removes;The rollback time data memory is the time data memory for being later than the specified storage time;
The loaded server for all corresponding to the unique identifier is after executing first delete operation to institute It states meta server and sends the second notice;
The meta server executes the second delete operation after receiving all second notices, will correspond to described Unique identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted;
The meta server sends third notice after executing second delete operation, to the driving;
The driving reloads data command after receiving the third notice to operating system transmission, so that The operating system returns to the sector read requests to the driving.
It i.e. will be corresponding to the unique identifier and corresponding to the rollback time data memory by loaded server Sector data is deleted so that corresponding to the storage of data the latest of the sector data of the unique identifier on loaded server Time is the specified storage time, to be realized according to the specified storage time of user's selection when operating system reading is newest When sector data, read sector data is the sector data stored in the specified storage time, is convenient for user After new sector data is written by operating system, read after operating system is returned to the sector read requests to driving Data revert to old sector data, that is, realize the recovery to operating system.
The present invention also provides a kind of the 5th embodiments of method for reading data, and the method includes above-mentioned digital independent sides Step S301~S305 in the first embodiment of method has further defined the data in response to input and has restored instruction, The driving, which obtains, specifies storage time, including:
Restore to instruct in response to the data, described drive to the meta server sends the unique identifier;
The meta server is recorded according to the unique identifier and said write of reception by all and unique mark Know the corresponding time data memory of symbol and is sent to the driving;
The driving sends to user according to all time data memories corresponding to the unique identifier and selects Storage time is asked;
When getting the selection instruction that user returns according to the request of the selection storage time of reception, the driving root The number that user selects from all time data memories corresponding to the unique identifier is obtained according to the selection instruction According to storage time, as the specified storage time.
Sent out to user according to all time data memories corresponding with the unique identifier by the driving It sends to be elected and selects storage time request, to obtain specified storage time, improve the treatment effeciency for obtaining the time.
It is the module diagram of the first embodiment of data writing systems provided by the invention referring to Fig. 3;The data Writing system 20 includes driving 201 and N number of loaded server 203;
The driving 201 includes:
First acquisition module 2011, the write-in sector requests for being sent in response to the operating system of computer, according to institute State the sector number that write-in sector requests obtain sector data to be written and the computer;
Second acquisition module 2014, for the unique mark according to the sector number and the preconfigured computer Symbol obtains the address of N number of loaded server;
First sending module 2013 is used for the address according to N number of loaded server respectively to N number of load services Device sends the sector number, the unique identifier and the sector data;
The loaded server 203 includes:
Time-obtaining module 2032, for receiving the sector number, the unique identifier and the sector number According to rear acquisition current time, the time data memory as the sector data;
First memory module 2031, for respectively by the time data memory, the unique identifier, described of reception Sector number and the sector data carry out corresponding storage.
In a kind of optional embodiment, first sending module includes:
First connection unit, for being separately connected N number of load services according to the address of N number of loaded server Device;
Third transmission unit, for sending the sector number, the unique mark to N number of loaded server respectively Symbol and the sector data.
In a kind of optional embodiment, the driving is pre-configured with the unique identifier of the computer, including:
Before the write-in sector requests sent in response to the operating system of computer, the driving obtains the computer Machine information;
The unique identifier of the computer is generated according to the machine information.
The present invention also provides a kind of second embodiments of data writing systems comprising above-mentioned data writing systems 20 The driving 201 of first embodiment and N number of loaded server 203, it further includes member to have further defined the data writing systems Server;
Second acquisition module further includes the first transmission unit, for sending the sector number and institute to meta server State unique identifier;
The meta server includes the first return module, for receiving the sector number and the unique identifier The backward driving returns to the address of N number of loaded server.
In a kind of optional embodiment, the first return module includes:5th transmission unit, for according to Sector number and the unique identifier obtain the address of N number of loaded server;First returning unit, for corresponding to described The driving of unique identifier returns to the address of N number of loaded server.It realizes and is driven to the same meta server when multiple When sending sector number and unique identifier, different driving is distinguished by unique identifier.
In a kind of optional embodiment, the network that is driven through sends the sector number to the meta server With the unique identifier of the preconfigured computer.
The present invention also provides a kind of 3rd embodiments of data writing systems comprising above-mentioned data writing systems 20 The driving 201 of first embodiment and N number of loaded server 203, further define:
The loaded server further includes the first notification module, in the unique identifier, the fan to reception Area numbers and the sector data notified to meta server transmission after corresponding to storage;Wherein, the notice includes institute State the address of time data memory, the unique identifier, the sector number and N number of loaded server;
The meta server further includes the first logging modle, for after receiving the notice, receiving described lead to After knowing, by the time data memory of reception, the unique identifier, the sector number and N number of loaded server Address correspond to store to write-in record.
The present invention also provides a kind of fourth embodiments of data writing systems comprising above-mentioned data writing systems 20 The driving 201 of first embodiment and N number of loaded server 203, having further defined second judging unit includes:
Coefficient calculation unit, for after receiving the sector number and the unique identifier, according to load services The resource free time amount of each loaded server of device group calculates the pressure system of each loaded server of the loaded server group Number;
First sequencing unit, for according to the pressure coefficient to all loaded servers of the loaded server group into Row sequence;
Server selection unit, for choosing the pressure system from all loaded servers of the loaded server group The minimum N number of loaded server of number;
Address returning unit, the address of N number of loaded server for returning to the pressure coefficient minimum to the driving.
The present invention also provides a kind of the 5th embodiments of data writing systems comprising above-mentioned data writing systems 20 The driving 201 of first embodiment and N number of loaded server 203, having further defined the driving further includes:
5th acquisition module restores instruction for the data in response to input, obtains and specify storage time;
6th acquisition module, for sending the unique identifier to the meta server;
The meta server includes the 7th sending module, for being remembered according to the unique identifier and said write of reception The address for the loaded server for all corresponding to the unique identifier is sent to the driving by record;Wherein, described all right The loaded server of unique identifier described in Ying Yu has prestored all sector datas corresponding to the unique identifier;
5th sending module, the address of the loaded server for all corresponding to the unique identifier according to, Respectively to the loaded server transmission data rollback instruction for all corresponding to the unique identifier;Wherein, the data Rollback instruction includes the specified storage time;
The loaded server further includes:
First removing module will correspond to for executing the first delete operation after receiving the data rewind instruction It the unique identifier and is deleted corresponding to the sector data of rollback time data memory;The rollback time data memory To be later than the time data memory of the specified storage time;
Second notification module, for sending the second notice to the meta server after executing first delete operation;
The meta server further includes the 6th sending module, for executing second after receiving all second notices Delete operation will correspond to the unique identifier and be deleted corresponding to the write-in of rollback time data memory record It removes.
The present invention also provides a kind of sixth embodiments of data writing systems comprising above-mentioned data writing systems 20 The driving 201 of first embodiment and N number of loaded server 203, it includes the 7th to have further defined the 5th acquisition module Transmission unit sends the unique identifier for restoring to instruct in response to the data to the meta server;
The meta server further includes the 8th sending module, for the unique identifier and said write according to reception It records to the driving and sends all time data memories corresponding with the unique identifier;
The driving further includes:
9th sending module, for according to all time data memories corresponding with the unique identifier to user Send selection storage time request;
7th acquisition module, for working as the selection for getting user and being returned according to the request of the selection storage time of reception When instruction, user is obtained from all time data memories corresponding with the unique identifier according to the selection instruction The time data memory of selection, as the specified storage time.
It is the module diagram of the first embodiment of data reading system provided by the invention referring to Fig. 4;Such as Fig. 4 institutes It states, the data reading system 40 includes driving 401 and N number of loaded server 403;
The driving 401 includes:
Third acquisition module 4011, the reading sector requests for being sent in response to the operating system of computer, the drive The dynamic sector number that the computer is obtained according to said write sector requests;
4th acquisition module 4014, for being compiled according to the unique identifier of the preconfigured computer and the sector Number obtain the address of N number of loaded server;Wherein, N number of loaded server, which has prestored, corresponds to the unique mark It accords with and corresponds to the sector data of the time data memory of the sector number the latest;
Second sending module 4013 is used for the address according to N number of loaded server respectively to N number of load services Device sends the sector to the time data memory corresponding to the unique identifier and corresponding to the sector number the latest The acquisition of data is asked;
The loaded server 403 further includes third sending module 4031, and being used to be asked according to the acquisition of reception will It is sent to driving corresponding to the unique identifier and corresponding to the sector data of the sector number;
The driving further includes the 4th sending module 4015, for the sector data received to be sent to the operation System.
In a kind of optional embodiment, second sending module includes:
Second connection unit, for being separately connected N number of load services according to the address of N number of loaded server Device;
4th transmission unit, for the N number of loaded server send to it is described correspond to the unique identifier and Corresponding to the acquisition request of the time data memory sector data the latest of the sector number.
In a kind of optional embodiment, the driving is pre-configured with the unique identifier of the computer, including:
Before the write-in sector requests sent in response to the operating system of computer, the driving obtains the computer Machine information;
The unique identifier of the computer is generated according to the machine information.
The present invention also provides a kind of second embodiments of data reading system comprising above-mentioned data reading system 40 The driving 401 of first embodiment and N number of loaded server 403, it further includes member to have further defined the data reading system Server;
4th acquisition module includes the second transmission unit, for sending the unique identifier and institute to meta server State sector number;
The meta server includes second returning to module, for according to the unique identifier, the sector number and pre- The write-in record first stored will all correspond to the unique identifier and corresponding to the time data memory of the sector number The address of loaded server the latest is sent to the driving;Wherein, corresponding store of said write record all corresponds to institute State the address of unique identifier and time data memory and loaded server corresponding to the sector number.
In a kind of optional embodiment, the second return module includes:6th transmission unit, for obtaining correspondence In the address of the unique identifier and N number of loaded server of the sector number;Second returning unit, for corresponding to The driving of the unique identifier returns to the address of N number of loaded server.Used for computer searching by meta server Different computers are distinguished in the loaded server for reading sector data, and by unique identifier, are easy to implement by one Meta server is that multiple computers are serviced, and improves dispatching efficiency.
In a kind of optional embodiment, the network that is driven through sends the sector number and pre- to meta server The unique identifier of the computer first configured.
The present invention also provides a kind of 3rd embodiments of data reading system comprising above-mentioned data reading system 40 The driving 401 of first embodiment and N number of loaded server 403, having further defined second sending module includes:
Capacity acquisition unit corresponds to unique mark for being obtained according to the unique identifier and the sector number Know symbol and the sector capacity corresponding to the sector number;
Unit is requested to generate, for the sector data to be divided into N section according to the sector capacity, and according to every part Generate pair of the sector data of time data memory the latest corresponding to the unique identifier and corresponding to the sector number The acquisition of the data of part is answered to ask;
Request transmitting unit is used for the address according to N number of loaded server respectively to the different load services Device sends the acquisition request of the data of the different corresponding parts;
The third sending module includes:
Data transmission unit, the acquisition for being used for the data of the corresponding part according to reception are asked the corresponding part Data be sent to the driving;
The third sending module includes:
Data Synthesis unit, for synthesizing the data of the N number of corresponding part received, after being synthesized Sector data;
Data returning unit, for the sector data after the synthesis to be sent to the operating system.
In a kind of optional embodiment, sector capacity is 512 bytes, N 3;The unit that requests to generate is described in The sector data is divided into N section and is generated corresponding to the unique identifier according to every part and correspond to institute by sector capacity The acquisition request of the data of the corresponding part of the sector data of the time data memory of sector number the latest is stated, specially:It is described The sector data is divided by driving by the sector capacity to be divided into this 3 part of 172 bytes, 170 bytes and 170 bytes and generates It is that the first part of 172 bytes, the second part that size is 170 bytes and size are 170 bytes that 3 correspond to size respectively The acquisition of three parts is asked.The request transmitting unit is according to the address of N number of loaded server respectively to described in different Loaded server sends the acquisition request of the data of the different corresponding parts, specially:It is described drive to 3 respectively with institute The acquisition for the data that the corresponding loaded server in address for stating loaded server sends the different corresponding parts is asked;One In the optional embodiment of kind, the driving is at random to described 3 loads corresponding with the address of the loaded server respectively Server is numbered, to obtain No. 1 loaded server, No. 2 loaded server and No. 3 loaded server;The drive No. 1 loaded server of trend sends the acquisition request of the first part;Described second is sent to No. 2 loaded server The acquisition request divided;The acquisition request of the Part III is sent to No. 3 loaded server.The data returning unit is by institute It states the sector data after synthesis and is sent to the operating system, specially:The data of 3 parts of reception are closed in the driving At;Data after synthesis are sent to the operating system by the driving.
The present invention also provides a kind of fourth embodiments of data reading system comprising above-mentioned data reading system 40 The driving 401 of first embodiment and N number of loaded server 403, further define
The driving further includes:
8th acquisition module restores instruction for the data in response to input, obtains and specify storage time;
9th acquisition module, for sending the unique identifier to the meta server;
The meta server includes the tenth sending module, for being remembered according to the unique identifier and said write of reception The address for the loaded server for all corresponding to the unique identifier is sent to the driving by record;Wherein, described all right The loaded server of unique identifier described in Ying Yu has prestored all sector datas corresponding to the unique identifier;
11st sending module, the ground of the loaded server for all corresponding to the unique identifier according to Location, respectively to the loaded server transmission data rollback instruction for all corresponding to the unique identifier;Wherein, the number Include the specified storage time according to rollback instruction;
The loaded server further includes:
Second removing module will correspond to for executing the first delete operation after receiving the data rewind instruction It the unique identifier and is deleted corresponding to the sector data of rollback time data memory;The rollback time data memory To be later than the time data memory of the specified storage time;
Third notice module, for sending the second notice to the meta server after executing first delete operation;
The meta server further includes:
12nd sending module will be right for executing the second delete operation after receiving all second notices Unique identifier described in Ying Yu and the write-in for corresponding to the rollback time data memory, which record, is deleted;
4th notification module, for after executing second delete operation, third notice to be sent to the driving;
The driving further includes reload instruction sending module, for being to the operation after receiving the third notice System sends and reloads data command, so that the operating system returns to the sector read requests to the driving.
The present invention also provides a kind of the 5th embodiments of data reading system comprising above-mentioned data reading system 40 The driving 401 of first embodiment and N number of loaded server 403, it includes the 8th to have further defined the 8th acquisition module Transmission unit sends the unique identifier for restoring to instruct in response to the data to the meta server;
The meta server further includes the 13rd sending module, for according to the unique identifier of reception and described writing Enter record and all time data memories corresponding with the unique identifier are sent to the driving;
The driving further includes:
14th sending module, for according to all time data memories corresponding with the unique identifier to Family sends selection storage time request;
Tenth acquisition module, for working as the selection for getting user and being returned according to the request of the selection storage time of reception When instruction, user is obtained from all time data memories corresponding with the unique identifier according to the selection instruction The time data memory of selection, as the specified storage time.
It is the module diagram of the first embodiment of data read-write system provided by the invention referring to Fig. 5;Such as Fig. 5 institutes Show, the data read-write system 1 includes that the data writing systems 20 and such as above-mentioned first as described in above-mentioned first embodiment are implemented Data reading system 40 described in example.
The sector number is obtained by the driving, and according to the sector number and the preconfigured meter The unique identifier of calculation machine obtains the address of N number of loaded server, passes through the unique identifier, the sector number and data Storage time mark is stored in the data in loaded server, to realize the sector that operating system will be written to local computer Data are stored by driving to N number of loaded server, are deposited by the unique identifier, the sector number and data the latest The data in time acquisition loaded server are stored up, obtain what operating system to be read by driving from loaded server to realize Sector data;Avoiding leads to loss of data because of the damage of local computer disk, and by N number of loaded server to storage Space carries out dilatation, even if the data to be written are more than local computer disk spatial content, without hard disk is replaced, to drop Low dilatation difficulty has saved cost, and the data of different time storage are distinguished by time data memory, avoids when write-in is new By former data cover when data, flexibility and the reliability of data storage are improved.
The present invention also provides the preferred embodiments of data read-write system;In the present embodiment, the data read-write system 1 Include data writing systems 20 as described in any embodiment in above-mentioned second embodiment to the 7th embodiment and as above-mentioned Data reading system 40 in second embodiment to the 5th embodiment described in any embodiment.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (24)

1. a kind of method for writing data, which is characterized in that the method for writing data includes:
In response to the write-in sector requests that the operating system of computer is sent, driving obtains to be written according to said write sector requests The sector number of the sector data and the computer that enter;
The driving obtains N number of load services according to the unique identifier of the sector number and the preconfigured computer The address of device;
The driving sends the sector to N number of loaded server respectively according to the address of N number of loaded server and compiles Number, the unique identifier and the sector data;
N number of loaded server obtains after receiving the sector number, the unique identifier and the sector data Current time, the time data memory as the sector data;
N number of loaded server is respectively by the time data memory, the unique identifier of reception, the sector number Corresponding storage is carried out with the sector data.
2. method for writing data as described in claim 1, which is characterized in that the driving is according to the sector number and in advance The unique identifier of the computer of configuration obtains the address of N number of loaded server, including:
Described drive to meta server sends the sector number and the unique identifier;
The meta server returns after receiving the sector number and the unique identifier to the driving described N number of negative Carry the address of server.
3. method for writing data as claimed in claim 2, which is characterized in that the method for writing data further includes:
Each loaded server is in the unique identifier, the sector number and the sector data progress to reception It sends and notifies to the meta server after corresponding storage;Wherein, the notice includes the time data memory, unique mark Know the address of symbol, the sector number and N number of loaded server;
The meta server is after receiving the notice, by the time data memory, the unique identifier, institute of reception The address correspondence for stating sector number and N number of loaded server is stored to write-in record.
4. method for writing data as claimed in claim 2, which is characterized in that the meta server is receiving the sector volume Number and the unique identifier after the address of N number of loaded server is returned to the driving, including:
The meta server is after receiving the sector number and the unique identifier, according to each of loaded server group The resource free time amount of loaded server calculates the pressure coefficient of each loaded server of the loaded server group;
All loaded servers of the loaded server group are ranked up according to the pressure coefficient;
N number of loaded server of the pressure coefficient minimum is chosen from all loaded servers of the loaded server group;
The address of N number of loaded server of the pressure coefficient minimum is returned to the driving.
5. method for writing data as claimed in claim 3, which is characterized in that the method for writing data further includes:
Restore instruction in response to the data of input, the driving, which obtains, specifies storage time;
Described drive to the meta server sends the unique identifier;
The meta server will all correspond to unique mark according to the unique identifier and said write of reception record The address for knowing the loaded server of symbol is sent to the driving;Wherein, the load for all corresponding to the unique identifier Server has prestored all sector datas corresponding to the unique identifier;
The driving all corresponds to the address of the loaded server of the unique identifier according to, respectively to described all Corresponding to the loaded server transmission data rollback instruction of the unique identifier;Wherein, the data rewind instruction includes institute State specified storage time;
The loaded server for all corresponding to the unique identifier executes first after receiving the data rewind instruction Delete operation will correspond to the unique identifier and be deleted corresponding to the sector data of rollback time data memory; The rollback time data memory is the time data memory for being later than the specified storage time;
The loaded server for all corresponding to the unique identifier is after executing first delete operation to the member Server sends the second notice;
The meta server executes the second delete operation after receiving all second notices, will correspond to described unique Identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted.
6. method for writing data as claimed in claim 5, which is characterized in that
The data in response to input restore instruction, and the driving, which obtains, specifies storage time, including:
Restore to instruct in response to the data, described drive to the meta server sends the unique identifier;
The meta server records to the driving according to the unique identifier and said write of reception and sends all and institute State the corresponding time data memory of unique identifier;
The driving sends selection storage according to all time data memories corresponding with the unique identifier to user Time asks;
When getting the selection instruction that user returns according to the request of the selection storage time of reception, the driving is according to institute The data that selection instruction acquisition user selects from all time data memories corresponding with the unique identifier are stated to deposit The time is stored up, as the specified storage time.
7. a kind of method for reading data, which is characterized in that the method for reading data includes:
In response to the reading sector requests that the operating system of computer is sent, the driving is obtained according to said write sector requests The sector number of the computer;
The driving obtains N number of load services according to the unique identifier of the preconfigured computer and the sector number The address of device;Wherein, N number of loaded server has prestored corresponding to the unique identifier and has corresponded to the sector The sector data of the time data memory of number the latest;
The driving is sent to N number of loaded server to the correspondence respectively according to the address of N number of loaded server In the unique identifier and corresponding to the acquisition request of the time data memory sector data the latest of the sector number;
N number of loaded server will correspond to the unique identifier according to the acquisition of reception request respectively and correspond to The sector data of the sector number is sent to driving;
The sector data of reception is sent to the operating system by the driving.
8. method for reading data as claimed in claim 7, which is characterized in that
The driving obtains N number of load services according to the unique identifier of the preconfigured computer and the sector number The address of device, including
Described drive to meta server sends the unique identifier and the sector number;
The meta server is recorded according to the unique identifier, the sector number and pre-stored write-in, will be all right The address of unique identifier described in Ying Yu and the loaded server corresponding to the time data memory of the sector number the latest hair Give the driving;Wherein, corresponding store of said write record all corresponds to the unique identifier and corresponding to described The time data memory of sector number and the address of loaded server.
9. method for reading data as claimed in claim 7 or 8, which is characterized in that the driving is according to N number of load services The address of device is sent to N number of loaded server respectively corresponds to the unique identifier and corresponding to the sector to described The acquisition of the sector data of the time data memory of number the latest is asked, including:
The driving obtains corresponding to the unique identifier and corresponds to according to the unique identifier and the sector number The sector capacity of the sector number;
The sector data is divided into N section by the driving according to the sector capacity, and is generated according to every part and corresponded to institute State the data of unique identifier and the corresponding part of the sector data corresponding to the time data memory of the sector number the latest Acquisition request;
The driving sends different institutes to the different loaded servers respectively according to the address of N number of loaded server State the acquisition request of the data of corresponding part;
N number of loaded server will correspond to the unique identifier according to the acquisition of reception request respectively and correspond to The sector data of the sector number is sent to driving, including:
N number of loaded server is asked according to the acquisition of the data of the corresponding part of reception by the corresponding part respectively Data be sent to the driving;
The sector data of reception is sent to the operating system by the driving, including:
The driving synthesizes the data of N number of corresponding part of reception, with the sector data after being synthesized;
Sector data after the synthesis is sent to the operating system by the driving.
10. method for reading data as claimed in claim 8, which is characterized in that the method for reading data further includes:
Restore instruction in response to the data of input, the driving, which obtains, specifies storage time;
Described drive to the meta server sends the unique identifier;
The meta server will all correspond to unique mark according to the unique identifier and said write of reception record The address for knowing the loaded server of symbol is sent to the driving;Wherein, the load for all corresponding to the unique identifier Server has prestored all sector datas corresponding to the unique identifier;
The driving all corresponds to the address of the loaded server of the unique identifier according to, respectively to described all Corresponding to the loaded server transmission data rollback instruction of the unique identifier;Wherein, the data rewind instruction includes institute State specified storage time;
The loaded server for all corresponding to the unique identifier executes first after receiving the data rewind instruction Delete operation will correspond to the unique identifier and be deleted corresponding to the sector data of rollback time data memory; The rollback time data memory is the time data memory for being later than the specified storage time;
The loaded server for all corresponding to the unique identifier is after executing first delete operation to the member Server sends the second notice;
The meta server executes the second delete operation after receiving all second notices, will correspond to described unique Identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted;
The meta server sends third notice after executing second delete operation, to the driving;
The driving reloads data command after receiving the third notice to operating system transmission, so that described Operating system returns to the sector read requests to the driving.
11. method for reading data as claimed in claim 10, which is characterized in that the data in response to input refer to It enabling, the driving, which obtains, specifies storage time, including:
Restore to instruct in response to the data, described drive to the meta server sends the unique identifier;
The meta server is recorded according to the unique identifier and said write of reception by all and unique identifier Corresponding time data memory is sent to the driving;
The driving sends selection storage according to all time data memories corresponding to the unique identifier to user Time asks;
When getting the selection instruction that user returns according to the request of the selection storage time of reception, the driving is according to institute The data that selection instruction acquisition user selects from all time data memories corresponding to the unique identifier are stated to deposit The time is stored up, as the specified storage time.
12. a kind of data writing systems, which is characterized in that the data writing systems include driving and N number of loaded server;
The driving includes:
First acquisition module, the write-in sector requests for being sent in response to the operating system of computer, is fanned according to said write The sector number of area's acquisition request sector data to be written and the computer;
Second acquisition module, for obtaining N according to the unique identifier of the sector number and the preconfigured computer The address of a loaded server;
First sending module, for sending institute to N number of loaded server respectively according to the address of N number of loaded server State sector number, the unique identifier and the sector data;
The loaded server includes:
Time-obtaining module, for being obtained after receiving the sector number, the unique identifier and the sector data Current time, the time data memory as the sector data;
First memory module, for respectively by the time data memory, the unique identifier of reception, the sector number Corresponding storage is carried out with the sector data.
13. data writing systems as claimed in claim 12, which is characterized in that the data writing systems further include meta-service Device;
Second acquisition module further includes the first transmission unit, for meta server send the sector number and it is described only One identifier;
The meta server include first return module, for after receiving the sector number and the unique identifier to The driving returns to the address of N number of loaded server.
14. data writing systems as claimed in claim 13, which is characterized in that
The loaded server further includes the first notification module, for being compiled to the unique identifier of reception, the sector Number and the sector data send to the meta server after corresponding storage notifying;Wherein, the notice includes the number According to storage time, the address of the unique identifier, the sector number and N number of loaded server;
The meta server further includes the first logging modle, for after receiving the notice, after receiving the notice, By the address of the time data memory of reception, the unique identifier, the sector number and N number of loaded server Corresponding store to write-in records.
15. data writing systems as claimed in claim 14, which is characterized in that second judging unit includes:
Coefficient calculation unit, for after receiving the sector number and the unique identifier, according to loaded server group Each loaded server resource free time amount calculate the loaded server group each loaded server pressure coefficient;
First sequencing unit, for being arranged all loaded servers of the loaded server group according to the pressure coefficient Sequence;
Server selection unit, for choosing the pressure coefficient most from all loaded servers of the loaded server group Small N number of loaded server;
Address returning unit, the address of N number of loaded server for returning to the pressure coefficient minimum to the driving.
16. data writing systems as claimed in claim 15, which is characterized in that the driving further includes:
5th acquisition module restores instruction for the data in response to input, obtains and specify storage time;
6th acquisition module, for sending the unique identifier to the meta server;
The meta server includes the 7th sending module, will for being recorded according to the unique identifier and said write of reception The address for all corresponding to the loaded server of the unique identifier is sent to the driving;Wherein, described to all correspond to The loaded server of the unique identifier has prestored all sector datas corresponding to the unique identifier;
5th sending module, the address of the loaded server for all corresponding to the unique identifier according to, respectively To the loaded server transmission data rollback instruction for all corresponding to the unique identifier;Wherein, the data rewind Instruction includes the specified storage time;
The loaded server further includes:
First removing module will correspond to described for executing the first delete operation after receiving the data rewind instruction It unique identifier and is deleted corresponding to the sector data of rollback time data memory;The rollback time data memory is evening In the time data memory of the specified storage time;
Second notification module, for sending the second notice to the meta server after executing first delete operation;
The meta server further includes the 6th sending module, is deleted for executing second after receiving all second notices Operation will correspond to the unique identifier and be deleted corresponding to the write-in of rollback time data memory record.
17. data writing systems as claimed in claim 16, which is characterized in that
5th acquisition module includes the 7th transmission unit, for restoring to instruct in response to the data, to the meta-service Device sends the unique identifier;
The meta server further includes the 8th sending module, for being recorded according to the unique identifier and said write of reception All time data memories corresponding with the unique identifier are sent to the driving;
The driving further includes:
9th sending module, for being sent to user according to all time data memories corresponding with the unique identifier Select storage time request;
7th acquisition module, for working as the selection instruction for getting user and being returned according to the request of the selection storage time of reception When, user is obtained according to the selection instruction and is selected from all time data memories corresponding with the unique identifier Time data memory, as the specified storage time.
18. a kind of data reading system, which is characterized in that the data reading system includes driving and N number of loaded server;
The driving includes:
Third acquisition module, the reading sector requests for being sent in response to the operating system of computer, the driving is according to institute State the sector number that write-in sector requests obtain the computer;
4th acquisition module, for obtaining N according to the unique identifier of the preconfigured computer and the sector number The address of a loaded server;Wherein, N number of loaded server, which has prestored, corresponds to the unique identifier and correspondence In the time data memory sector data the latest of the sector number;
Second sending module is used for the address according to N number of loaded server respectively to N number of loaded server transmission pair The sector data corresponding to the unique identifier and corresponding to the time data memory of the sector number the latest obtains Take request;
The loaded server further includes third sending module, and being used for will be corresponding to described in only according to the acquisition of reception request One identifier and it is sent to driving corresponding to the sector data of the sector number;
The driving further includes the 4th sending module, for the sector data received to be sent to the operating system.
19. data reading system as claimed in claim 18, which is characterized in that the data reading system further includes meta-service Device;
4th acquisition module includes the second transmission unit, for sending the unique identifier and the fan to meta server It numbers in area;
The meta server includes the second return module, for depositing according to the unique identifier, the sector number and in advance The write-in of storage records, and will all correspond to the unique identifier and correspond to the time data memory of the sector number the latest The address of loaded server be sent to the driving;Wherein, said write record it is corresponding store all correspond to it is described only One identifier and corresponding to the sector number time data memory and loaded server address.
20. the data reading system as described in claim 18 or 19, which is characterized in that
Second sending module includes:
Capacity acquisition unit corresponds to the unique identifier for being obtained according to the unique identifier and the sector number And corresponding to the sector capacity of the sector number;
Unit is requested to generate, for the sector data to be divided into N section according to the sector capacity, and is generated according to every part The correspondence portion of the sector data of time data memory the latest corresponding to the unique identifier and corresponding to the sector number The acquisition request for the data divided;
Request transmitting unit, for being sent out respectively to the different loaded servers according to the address of N number of loaded server The acquisition of the data of the different corresponding parts is sent to ask;
The third sending module includes:
Data transmission unit, the acquisition for being used for the data of the corresponding part according to reception are asked the number of the corresponding part According to being sent to the driving;
The third sending module includes:
Data Synthesis unit, for synthesizing the data of N number of corresponding part received, with the sector after being synthesized Data;
Data returning unit, for the sector data after the synthesis to be sent to the operating system.
21. data reading system as claimed in claim 19, which is characterized in that
The driving further includes:
8th acquisition module restores instruction for the data in response to input, obtains and specify storage time;
9th acquisition module, for sending the unique identifier to the meta server;
The meta server includes the tenth sending module, will for being recorded according to the unique identifier and said write of reception The address for all corresponding to the loaded server of the unique identifier is sent to the driving;Wherein, described to all correspond to The loaded server of the unique identifier has prestored all sector datas corresponding to the unique identifier;
11st sending module, the address of the loaded server for all corresponding to the unique identifier according to, point Not to the loaded server transmission data rollback instruction for all corresponding to the unique identifier;Wherein, the data are returned Rolling instruction includes the specified storage time;
The loaded server further includes:
Second removing module will correspond to described for executing the first delete operation after receiving the data rewind instruction It unique identifier and is deleted corresponding to the sector data of rollback time data memory;The rollback time data memory is evening In the time data memory of the specified storage time;
Third notice module, for sending the second notice to the meta server after executing first delete operation;
The meta server further includes:
12nd sending module will correspond to for executing the second delete operation after receiving all second notices The unique identifier and the write-in for corresponding to the rollback time data memory, which record, is deleted;
4th notification module, for after executing second delete operation, third notice to be sent to the driving;
The driving further includes reload instruction sending module, for being sent out to the operating system after receiving the third notice It send and reloads data command, so that the operating system returns to the sector read requests to the driving.
22. data reading system as claimed in claim 21, which is characterized in that
8th acquisition module includes the 8th transmission unit, for restoring to instruct in response to the data, to the meta-service Device sends the unique identifier;
The meta server further includes the 13rd sending module, for being remembered according to the unique identifier and said write of reception All time data memories corresponding with the unique identifier are sent to the driving by record;
The driving further includes:
14th sending module, for being sent out to user according to all time data memories corresponding with the unique identifier It sends to be elected and selects storage time request;
Tenth acquisition module, for working as the selection instruction for getting user and being returned according to the request of the selection storage time of reception When, user is obtained according to the selection instruction and is selected from all time data memories corresponding with the unique identifier Time data memory, as the specified storage time.
23. a kind of data read-write system, which is characterized in that the data read-write system includes data as claimed in claim 12 Writing system and data reading system as claimed in claim 18.
24. a kind of data read-write system, which is characterized in that the data read-write system includes such as any one of claim 13-17 The data writing systems and such as claim 19-22 any one of them data reading systems.
CN201810051573.5A 2018-01-16 2018-01-16 Data writing-in and reading method and system, and data reading-writing system Active CN108304144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810051573.5A CN108304144B (en) 2018-01-16 2018-01-16 Data writing-in and reading method and system, and data reading-writing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810051573.5A CN108304144B (en) 2018-01-16 2018-01-16 Data writing-in and reading method and system, and data reading-writing system

Publications (2)

Publication Number Publication Date
CN108304144A true CN108304144A (en) 2018-07-20
CN108304144B CN108304144B (en) 2021-04-30

Family

ID=62865808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810051573.5A Active CN108304144B (en) 2018-01-16 2018-01-16 Data writing-in and reading method and system, and data reading-writing system

Country Status (1)

Country Link
CN (1) CN108304144B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835531A (en) * 2021-02-25 2021-05-25 平安银行股份有限公司 Data pushing method, device, equipment and storage medium
CN113282582A (en) * 2021-05-21 2021-08-20 海南超船电子商务有限公司 Efficient storage method and system for ship position data
CN114816832A (en) * 2022-04-15 2022-07-29 巨翊科技(上海)有限公司 Data management method, device and system of single chip microcomputer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6539460B2 (en) * 2001-01-19 2003-03-25 International Business Machines Corporation System and method for storing data sectors with header and trailer information in a disk cache supporting memory compression
CN101751233A (en) * 2009-12-31 2010-06-23 成都索贝数码科技股份有限公司 Method and system for expanding capacity of memory device
CN102541461A (en) * 2010-12-31 2012-07-04 阿里巴巴集团控股有限公司 Data reading-writing method and device for remote data storage and system thereof
CN103605588A (en) * 2013-11-21 2014-02-26 上海爱数软件有限公司 Disk backup method of virtue machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6539460B2 (en) * 2001-01-19 2003-03-25 International Business Machines Corporation System and method for storing data sectors with header and trailer information in a disk cache supporting memory compression
CN101751233A (en) * 2009-12-31 2010-06-23 成都索贝数码科技股份有限公司 Method and system for expanding capacity of memory device
CN102541461A (en) * 2010-12-31 2012-07-04 阿里巴巴集团控股有限公司 Data reading-writing method and device for remote data storage and system thereof
CN103605588A (en) * 2013-11-21 2014-02-26 上海爱数软件有限公司 Disk backup method of virtue machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835531A (en) * 2021-02-25 2021-05-25 平安银行股份有限公司 Data pushing method, device, equipment and storage medium
CN113282582A (en) * 2021-05-21 2021-08-20 海南超船电子商务有限公司 Efficient storage method and system for ship position data
CN113282582B (en) * 2021-05-21 2023-06-20 海南超船电子商务有限公司 Efficient storage method and system for ship position data
CN114816832A (en) * 2022-04-15 2022-07-29 巨翊科技(上海)有限公司 Data management method, device and system of single chip microcomputer

Also Published As

Publication number Publication date
CN108304144B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US10168962B2 (en) Tape emulating disk based storage system and method with automatically resized emulated tape capacity
CN108647151A (en) It is a kind of to dodge system metadata rule method, apparatus, equipment and storage medium entirely
EP1481314A2 (en) Concurrent read and write access to simulated sequential data of a removable random access data storage medium
US20030105923A1 (en) Raid system and mapping method thereof
CN108304144A (en) Data write-in, read method and system, data read-write system
CN103514249A (en) Method and system for automatic data reduction and storage device
JP6391061B2 (en) How to write a file on tape
WO2001042928A1 (en) I/o method and apparatus for optical storage media
CN106775481B (en) Method for reading data and equipment
JP2005202942A (en) Information recording medium, data processor and data processing method
CN112486831A (en) Test system, test method, electronic equipment and storage medium
JP5555489B2 (en) Formatting device, formatting method and program
CN113467997B (en) Data recovery method and device, mobile equipment and storage medium
CN109684029A (en) Storage content access method, device, electronic equipment and computer storage medium
CN105242985B (en) Data recovery method and device
CN111913664B (en) Data writing method and device
US8195696B2 (en) File format converting method
JP2002015516A (en) Method for processing data transferred to system memory in preparation of recording the same on optical disk
CN108399049A (en) Data write-in, read method and system, data read-write system
US20140059305A1 (en) Management apparatus, storage device, and initialization method
JP3725375B2 (en) Data reorganization method in storage media library
CN108334283A (en) Data write-in, read method and system, data read-write system
CN108415665A (en) Data write-in, read method and system, data read-write system
CN110196785A (en) Backup data management method, apparatus and electronic equipment
CN108984128B (en) Data reading method and device

Legal Events

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