CN103680520B - A kind of magnetic recording method based on object standby system - Google Patents

A kind of magnetic recording method based on object standby system Download PDF

Info

Publication number
CN103680520B
CN103680520B CN201310737524.4A CN201310737524A CN103680520B CN 103680520 B CN103680520 B CN 103680520B CN 201310737524 A CN201310737524 A CN 201310737524A CN 103680520 B CN103680520 B CN 103680520B
Authority
CN
China
Prior art keywords
label
tape
data
tag
head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310737524.4A
Other languages
Chinese (zh)
Other versions
CN103680520A (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.)
Shanghai Eisoo Information Technology Co Ltd
Original Assignee
Shanghai Eisoo Information Technology 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 Shanghai Eisoo Information Technology Co Ltd filed Critical Shanghai Eisoo Information Technology Co Ltd
Priority to CN201310737524.4A priority Critical patent/CN103680520B/en
Publication of CN103680520A publication Critical patent/CN103680520A/en
Application granted granted Critical
Publication of CN103680520B publication Critical patent/CN103680520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The present invention relates to a kind of magnetic recording method based on object standby system, the method comprises the following steps: step one, tape formating judge step, judge that tape is the need of formatting according to the data mode in tape, if, then carry out tape formating, carry out step 2, if it is not, the most directly carry out step 2;Step 2, writing position positioning step, carry out writing position location according to the tag types of data trailer on current tape to tape;All object datas are recorded to tape by step 3, Data Migration step successively.Compared with prior art, the present invention has efficient, simple, cross-platform, across advantages such as multiple tapes.

Description

A kind of magnetic recording method based on object standby system
Technical field
The present invention relates to the magnetic recording data method in field of data storage, especially relate to a kind of based on object The magnetic recording method of standby system.
Background technology
Along with the development of computer system, the valid data in computer system also get more and more.But these Valid data may cause because of a variety of causes (such as software fault, hardware fault, maloperation etc.) lose, Damaging, user generally uses the means of Backup Data to prevent loss or the damage of these data.User is by backup The valuable data of computer system can be effectively protected to a certain extent.
Backup is to copy to store elsewhere by the data of computer system by a kind of means, and can lose in data The technology recovered in the case of losing or damaging.However as the high speed development of computer system in recent years, computer Difference between system also gets more and more.If user thinks that the data quickly protecting multiple different platform are just relatively difficult to reality Existing, traditional standby system based on system file cannot meet the demand of user.And object-based backup The data of multiple platforms can be formatted into unified data form, the backup that the data of user can be the most unified by system In unified standby system.Object at this uses the concept of OOP, the file sum of each platform According to being all to exist with structurized object form in this standby system, the not property of there are differences.
Object-based standby system solves the platform diversity of data, if but user want Data Migration to magnetic Band the most again will be in the face of a difficult problem.At present, the method majority recording data to tape on the market is based on system literary composition Part.Object-based recording method is few.And on the market known magnetic recording method majority do not support across Tape backup and method are complicated, and some recording method is in order to ensure that open and compatibility wastes more depositing especially Storage space and storage performance.If a kind of recording method for object data recorded tape can be proposed just can be solved Certainly it is currently based on a standby system difficult problem by Data Migration band tape for object.
Summary of the invention
Defect that the purpose of the present invention is contemplated to overcome above-mentioned prior art to exist and provide a kind of efficiently, simple, Cross-platform, across the magnetic recording method based on object standby system of multiple tapes, by based on object standby system Data source recorded tape with particular combination form.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of magnetic recording method based on object standby system, the method comprises the following steps:
Step one, tape formating judge step, judge that tape is the need of form according to the data mode in tape Change, the most then carry out tape formating, then perform step 2, if it is not, the most directly perform step 2;
Step 2, writing position positioning step, write tape according to the tag types of data trailer on current tape Location positioning;
All object datas are recorded to tape by step 3, Data Migration step successively.
In described tape, the data of record include that label, described label include seven class label, respectively leader tape heads Label, data set start label, end of data set label, object leader label, object tail tag label, data block build Label and metadata header label;
The attribute of described leader tape head label includes tag head, tape numbering, physical block size, ETF in order Version, reserved bit and tape describe;Described data set starts the attribute of label and includes tag head, data in order Collection numbering, ETF version, reserved bit, affiliated data set GNS and data set describe;Described end of data set The attribute of label includes tag head, data set number and reserved bit in order;The attribute of described object leader label is pressed Order includes tag head, object number, parent object numbering, object base attribute, reserved bit, object oriented and unit Data;The attribute of described object tail tag label includes tag head, object number and reserved bit in order;Described number Tag head, data block attribute, side-play amount, unique ID, data block is included in order according to the attribute of block build label Size and reserved bit;The attribute of described metadata header label includes tag types, metadata length, guarantor in order Stay position and metadata.
Described tape formating particularly as follows:
101) tape being wrapped back to leader tape head, detect this position is data trailer the most simultaneously, if so, performs step Rapid 107), if it is not, perform step 102);
102) the physical block size of tape is obtained;
103) start from leader tape head position to read physical block data;
104) by step 103) order antitone sequence one label of chemical conversion of serializing according to tag head of the data that read Head;
105) whether the tag types judging this tag head is leader tape head label, the most then perform step 106), If it is not, then perform step 107);
106) judge step 104) in the tag attributes of tag head whether be filing, the most then this tape can not Format, send alarm signal, if it is not, then perform step 107);
107) tape is navigated to leader tape head and the physical block size of tape is set;
108) all properties of leader tape head label is carried out assignment successively;
109) by step 108) all properties sequence one the data stream of chemical conversion of leader tape head label after assignment;
1010) by step 109) traffic logging that serializes is to tape head.
Described writing position location particularly as follows:
201) tape is wrapped back to data trailer;
202) in current location by one file mark of tape successively rollback and a physical block;
203) the physical block size of tape is obtained;
204) data of a physical block are read;
205) data read out according to the serializing order unserializing of tag head;
206) judge tag types: if tag types is leader tape head label, then tape is navigated to leader tape head label Afterwards;If tag types is end of data set label, then after this tape being navigated to this end of data set label.
Described tag head serializing refers to: by tag head according to tag types, tag attributes, physical block number, school Testing order sequence successively one the data stream of chemical conversion of sum, wherein, described tag attributes includes continuing position, archived bits And reserved bit.
Described Data Migration step includes following sub-step:
301) log data set starts label;
302) successively by all object record in object tree to tape;
303) log data set end-tag.
Described step 301) particularly as follows:
A1) all properties assignment successively of label is started to data set;
A2) by step a1) in data set after assignment start all properties generic sequence of label and be melted into a number According to stream;
A3) by step a2) in serializing traffic logging to tape;
Described step 303) particularly as follows:
B1) giving all properties assignment of end of data set label, the data set number value of end of data set label is with right The data set number value that the data set answered starts label is identical;
B2) by step b1) in all properties generic sequence of end of data set label after assignment be melted into a number According to stream;
B3) by step b2) in serializing after traffic logging to tape.
Described step 302) in, described object successively by object leader label, zero or more data block, One object tail tag label composition, by time in object record to tape, record object leader label, data block, right successively As tail tag label.
The step of described record object leader label is:
C1) all properties assignment of the metadata header label of object leader label is given;
C2) other all properties assignment given in object head tag attributes in addition to metadata header label;
C3) by step c1) all properties sequence in order one data of chemical conversion of metadata header label after assignment Stream;
C4) by step c2) all properties of object leader label after assignment and step c3) the data stream that serializes One data stream of sequence chemical conversion in order;
C5) by step c4) in serializing after traffic logging to tape;
Described data block is made up of data block build label and blocks of data, record data block particularly as follows:
D1) all properties of data block build label is carried out assignment;
D2) sequence in order of the attribute after assignment is melted into data stream;
D3) by step d2) in data stream and blocks of data sequence sequentially be melted into a data stream;
D4) by step d3) in traffic logging in tape;
The step of described record object tail tag label is:
E1) all properties assignment of object tail tag label, the object number value of object tail tag label and corresponding object head are given The object number value of label is identical;
E2) by step e1) in all properties sequence in order one data of chemical conversion of object tail tag label after assignment Stream;
E3) by step e2) in serializing after traffic logging to tape.
When performing step 3, tape arrives tape tail, then perform to process step across tape, should process step across tape Particularly as follows:
401) change tape, the tape after changing is carried out tape formating, formatting procedure arranges leader tape head The continuity bit attribute of label is yes, if simultaneously a upper tape is provided with archived bits attribute for being, this tape also should set It is yes for putting archived bits attribute;
402) detect whether the tag types of last complete tag of record on a tape belongs to described seven One in class label, the most then perform step 403), if it is not, then perform step 409):
403) step b1 is performed), last complete data set of record on a upper tape is started label Value is assigned to the data set of this step and starts label, and the continuity position that data set starts the tag attributes of label is set to It is;
404) if step 402) in detect that tag types is that data set starts label, then perform step 409), If it is not, then perform step 405);
405) step c1 is performed), the value of last entire object leader label of record on a upper tape is composed To the object leader label of this step, and the continuity position of the tag attributes of the object leader label of this step is configured as;
406) if step 402) in detect that tag types is object leader label, then perform step 409), if it is not, Then perform step 407);
407) if step 402) in detect that tag types is data block build label, then perform step d1), will On a upper tape, the value of last complete data block build label that last object of record is corresponding is composed To data block build label in this step, and the continuity position of the tag attributes of the data block build label of this step is set Be set to be, if last complete data block build label is currently across the data block build of tape location blocks of data Label, then be set to this data block build by the physical block number attribute of the tag head of the data block build label of this step The physical block number shared by the remaining data of data block that label is corresponding and the physical block number sum shared by this continuation label, Otherwise arranging physical block number is this physical block number shared by step continuation data block build label, continues executing with step 409), if it is not, then perform step 408);
408) step e1 is performed), the value of last object tail tag label of record on a upper tape is assigned to this The object tail tag label of step, and the continuity position of the tag attributes of the object tail tag label of this step is configured as;
409) judge when tape processes, whether to there is the label being not fully complete, the most then rewrite what this was not fully complete Label;
410) step 3 is continued executing with.
Compared with prior art, recording method of the present invention solves Data Migration based on object standby system to magnetic A difficult problem for band, this recording method simultaneously is also supported across tape backup, single object recovers, rapid data browses, tool There is advantage efficient, simple, can process cross-platform, across the data record of multiple tapes.
Accompanying drawing explanation
Fig. 1 represents that object data be recorded the entirety of the record format on tape and regards by magnetic recording method of the present invention Figure;
Fig. 2 represents the composition structure of leader tape head label;
Fig. 3 represents the composition structure of data set record stream and multiple data set structure;
Fig. 4 represents the composition structure of object record stream;
Fig. 5 represents the composition structure of object leader label;
Fig. 6 represents composition structure and the arrangement architecture of multiple data block of data block;
Fig. 7 represent data block build label composition structure and with the arrangement architecture of blocks of data;
Fig. 8 represents that metadata header label forms structure;
Fig. 9 represents these several key point labels processed across tape;
Figure 10 represents forming across tape process label construction of key point a;
Figure 11 represents forming across tape process label construction of key point b;
Figure 12 represents forming across tape process label construction of key point c;
Figure 13 represents forming across tape process label construction of key point d;
Figure 14 represents across the flow chart that tape processes.
Detailed description of the invention
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with the technology of the present invention side Implement premised on case, give detailed embodiment and concrete operating process, but the protection model of the present invention Enclose and be not limited to following embodiment.
A kind of magnetic recording method based on object standby system, the method comprises the following steps:
Step one, tape formating judge step, judge that tape is the need of form according to the data mode in tape Change, the most then carry out tape formating, then perform step 2, if it is not, the most directly perform step 2;
Step 2, writing position positioning step, write tape according to the tag types of data trailer on current tape Location positioning;
All object datas are recorded to tape by step 3, Data Migration step successively.
When performing step 3, if tape arrives tape tail, then this magnetic recording method also includes processing step across tape, By in the data record that also do not recorded to another tape.
The data of the magnetic recording method record in the present invention are mainly made up of object data and label, and according to label Not same-action label can be divided into seven classes, as shown in table 1, including leader tape head label, data set start label, End of data set label, object leader label, object tail tag label, data block build label and metadata header label.Its Middle BOT represents that leader tape head label, corresponding label types value are 1;SSET represents that data set starts label, corresponding Tag Type values is 2;ESET represents that end of data set label, corresponding label types value are 3;OBJH represents right As leader label, corresponding label types value is 4;OBJT represents object tail tag label, and corresponding label types value is 5; BLKH represents data block build label, and corresponding label types value is 6;MTDH represents metadata header label, right Answering Tag Type values is 7.
The attribute of described leader tape head label includes tag head, tape numbering, physical block size, ETF in order Version, reserved bit and tape describe, as shown in table 2;Described data set starts the attribute of label and includes in order Tag head, data set number, ETF (Eisoo Tape Format) version, reserved bit, affiliated data set GNS (Global Namespace) and data set describe, as shown in table 3;The attribute of described end of data set label Include tag head, data set number and reserved bit in order, as shown in table 4;The attribute of described object leader label Include in order tag head, object number, parent object numbering, object base attribute, reserved bit, object oriented and Metadata, as shown in table 5;The attribute of described object tail tag label includes tag head, object number and guarantor in order Stay position, as shown in table 6;The attribute of described data block build label include in order tag head, data block attribute, Side-play amount, unique ID, data block size and reserved bit, as shown in table 7;The genus of described metadata header label Property includes tag types, metadata length, reserved bit and metadata, as shown in table 8 in order.
Table 1
Typonym Label substance
BOT Leader tape head label
SSET Data set starts label
ESET End of data set label
OBJH Object leader label
OB3T Object tail tag label
BLKH Data block head label
MTDH Metadata header label
Table 2
Attribute-name Property content Attribute type Attribute size
Tag head The common portion of label --- 16 bytes
Tape is numbered Unique this tape of mark UINT32[8] 32 bytes
Physical block size The physical block size of tape is described UINT32 4 bytes
ETF version Format version UINT32 4 bytes
Retain --- --- 72 bytes
Tape describes Magnetic tape information is described --- ---
Table 3
Attribute-name Property content Attribute type Attribute size
Tag head The common portion of label --- 16 bytes
Data set number Unique this data set of mark UINT32[8] 32 bytes
ETF version ETF version UINT32 4 bytes
Retain --- --- 76 bytes
Affiliated data set GNS --- --- ---
Data set describes --- --- ---
Table 4
Attribute-name Property content Attribute type Attribute size
Tag head The common portion of label --- 16 bytes
Data set number Unique this data set of mark UINT32[8] 32 bytes
Retain --- --- 80 bytes
Table 5
Attribute-name Property content Attribute type Attribute size
Tag head The common portion of label --- 16 bytes
Object number Uniquely identify object UINT32[8] 32 bytes
Parent object is numbered Uniquely identify parent object UINT32[8] 32 bytes
Object base attribute The base attribute of description object INT32 4 bytes
Retain --- --- 44 bytes
Object oriented --- --- ---
Metadata --- --- ---
Table 6
Attribute-name Property content Attribute type Attribute size
Tag head The common portion of label --- 16 bytes
Object number Uniquely identify object UINT32[8] 32 bytes
Retain --- --- 80 bytes
In these seven class labels, in addition to metadata header label, remaining label all comprises a part of identical attribute, in order to Facilitating the present invention by attribute identical for this part separately as a tag head, as shown in table 9, tag head is by label Type, tag attributes, physical block number, verify and form.Tag types is primarily used to distinguish each different mark Signing, tag attributes is mainly used in identifying some characteristic of this label, and each characteristic takies one.Physical block number master To be used for identifying the physical block number that this label substance takies, can first read this tag head reading this label when And parse the physical block number shared by this label substance, then read label substance further according to physical block number and resolve. Verification and be used to verify the correctness of label, do so can find that tape damages the wrong data caused.
Table 7
Attribute-name Property content Attribute type Attribute size
Tag head The common portion of label --- 16 bytes
Data block attribute The base attribute of data block is described INT32 4 bytes
Side-play amount This data block side-play amount in object is described INT64 8 bytes
Unique ID Unique identification data block INT64 8 bytes
Data block size The size of data block is described UINT32 4 bytes
Retain --- --- 24 bytes
In these seven class labels, in addition to metadata header label, remaining label all comprises a part of identical attribute, in order to Facilitate the present invention by attribute identical for this part separately as~individual tag head, as shown in table 9, tag head is by label Type, tag attributes, physical block number, verify and form.Tag types is primarily used to distinguish each different mark Signing, tag attributes is mainly used in identifying some characteristic of this label, and each characteristic takies one.Physical block number master To be used for identifying the physical block number that this label substance takies, can first read this tag head reading this label when And parse the physical block number shared by this label substance, then read label substance further according to physical block number and resolve. Verification and be used to verify the correctness of label, do so can find that tape damages the wrong data caused.
Table 8
Attribute-name Property content Attribute type Attribute size
Tag types Identifying this label is metadata header UINT32 4 bytes
Metadata length The length of descriptive metadata UINT32 4 bytes
Retain --- --- 24 bytes
Metadata --- --- ---
Table 9
Attribute-name Property content Attribute type Attribute size
Tag types The type of identification (RFID) tag UINT32 4 bytes
Tag attributes The attribute of label UINT32 4 bytes
Physical block number The shared physical block number of mark UINT32 4 bytes
Verification and The verification of label and UINT32 4 bytes
The tag attributes of tag head is as shown in table 10, wherein contains default value.Unless otherwise noted in tag attributes Archived bits be defaulted as no, continuity position be defaulted as no.
Table 10
Attribute-name Property content Attribute position
Continuity position Identify whether as continuation label BIT0
Archived bits Identify whether filing BIT1
Retain --- BIT2-BIT31
The generation step of tag head includes:
1. all properties assignment successively of tag head is given.
2. all properties of this label is melted into a data stream according to the top-down generic sequence of table 9.
Other comprise the label of tag head and perform step 1. when to its tag head assignment, are serializing its tag head Shi Zhihang step is 2..
Assuming that in this example, physical block size is 16KB, the data block maximum of object is 4MB.Assume this example Tape before middle backup does not the most comprise data, and in example, backup tasks is across two tapes, numbering be respectively TP01 and TP02, backup tasks is non-filing task.
This example comprises the steps of:
1. tape TP01 is loaded in tape drive.
2. formatted tape TP01.
Fig. 1 represents that object data be recorded the record format on tape by the magnetic recording method according to the present invention Overview, in figure, Media Header shows that leader tape head, Data represent data.Data recording on tape after record will be by One leader tape head label and number of data sets are according to composition.When starting to record data, if tape is without meeting this recording method Data or need covering to write, need leader tape head label to be recorded tape head, the most again by formatted tape Supplemental data after leader tape head label, otherwise directly additional in the data trailer (EOD, end ofdata) of tape Data.Owing to tape is linear memory equipment, therefore the position of the write magnetic band that is such as not particularly illustrated in the present invention is all thought It is then to write after last writing position.Each tape will format before covering overwriting data.Format magnetic The step of band includes:
2.1., tape wraps back to leader tape head (BOT, begin of tape), and detect this position is the most simultaneously EOD.Not comprising data event testing result by tape TP01 in assuming is that this position is simultaneously for EOD.
2.2. tape is navigated to leader tape head and to arrange the physical block size of tape be 16KB.
2.3. all properties assignment successively of leader tape head label is given.Wherein tag types is set to 1;Tag attributes It is set to non-continuity, non-filing attribute, i.e. 0;Physical block number is set to the physical block shared by current tape leader label Number;Verify and be the checksum value of leader tape head label;Tape numbering is set to 0738cdb6-dc88-4aed-88be-5cce75911003 (32 words that in this example, the numbered GUID of tape generates Joint character stream);Physical block is dimensioned to 16KB;ETF version is set to 16777216 (i.e. 1.0.0);If Put tape and be described as " tape describe ".
2.4. the leader tape head label after step 2.3 assignment is serialized and recorded tape head.
If leader tape head position is not EOD, then it represents that this tape comprises data, then obtain the physical block of tape simultaneously Size, starts to read physical block data from BOT position, and by these data according to tag head serialize suitable Sequence antitone sequence one tag head of chemical conversion, the tag types of detection tag head, if tag types is not leader tape head label, Then performing step 2.2, whether the tag attributes otherwise detecting tag head is filing, if filing then represents this tape Can not format, need point out user and abandon formatting, if not filing then continues executing with step 2.2.
As Fig. 2 represents the record format of leader tape head label, PBA represents the border of physical block, and BOT is leader tape head The data of label, SPAD is to fill data, is used for filling current physical block idle after recording tape leader label Physical block space.Leader tape head label record, at the head of tape, is mainly used to identify feature or the attribute of tape.
Describing the attribute of leader tape head label in table 2, wherein the tag attributes of tag head describes in detail in table 10 , this attribute currently takies 32 bit spaces, and whether the 1st bit-identify current tape is continuity band, if this value It is 1 and represents that current tape is continuity band, if this value is 0, represent that current tape is not continuity band, the 2nd Whether bit-identify current tape is filed, if this value is 1, represents current tape filing, if this value is 0 Then representing that current tape is not filed, remaining position of this attribute extends after being then preserved for.Tape in Figure 11 is compiled Number it is used to uniquely identify this tape.Physical block size is used to the physical block size of description current tape, thing Reason block size be limited to 512B to 16KB and be 512 multiple.What ETF version represented is this recording method version This information, processes for compatibility.It is to retain some memory spaces to process for compatibility that attribute " retains ".Magnetic It is the description to this tape that band describes, the essential record remark information to this tape.
3. the tape TP01 after formatting navigates to writing position.
3.1. tape is wrapped back to EOD.
3.2. in current location by one file mark of tape successively rollback and a physical block.
3.3. obtain the physical block size of tape, should be 16KB herein.
3.4. data data of a physical block are read.
3.5. according to the order antitone sequence data of tag head serializing.
3.6. tag types is judged.Tag types should be BOT herein.
3.7., after tape being navigated to leader tape head label, i.e. moving head is to the physical block number institute of leader tape head label The physical block locations referred to.
4. migrate data to tape.
Number of data sets in Fig. 1 is according to being made up of, as shown in Figure 3 zero or more data set record stream.In Fig. 3 SSET represents that data set starts label, and ESET represents end of data set label, and OH represents object leader label, OM represents that object metadata, OE represent object tail tag label, and OD represents object data, set of displayable data in figure Record stream records successively according to sequencing.The generation step of number of data sets evidence is zero or more data set The superposition of the generation step of record stream.
One data set is label, zero or more object, an end of data set by a data set successively The record data stream of label composition.
Assume that the backup tasks object tree in this example comprises an object and this object comprises 2 data blocks, object Tape tail is reached when writing second data block build label.The title of this object is assumed to be xxx: //aa/bb/cc.
4.1. log data set starts label.
4.1.1. all properties assignment successively of label is started to data set.Wherein tag types is set to 2;Label Attribute is set to 0;Physical block number is set to this data set and starts the physical block number shared by label;Verify and be set to This data set starts the checksum value of label;Data set number is set to (in this example, data set number is 32 that GUID generates to e6c58212-bd43-4f32-b62e-f3c2b7647a16 Byte character stream) ETF version is set to 16777216 (i.e. 1.0.0);Affiliated data set GNS is set to Xxx: //aa/bb/cc;Data set describes and is set to " data set describe ".
4.1.2. the data set after step 4.1.1 assignment is started sequence label one data stream of chemical conversion and recorded magnetic Band.
Table 11
Attribute-name Property content Attribute position
Continuity position Identify whether as continuation label BIT0
Retain --- BIT1-BIT31
Data set starts tag identifier and the beginning of a data set record stream, and data set starts the attribute structure of label As shown in table 3.Table 11 starts the tag attributes of label for data set, this table be equally end of data set label, Object leader label, object tail tag label, the tag attributes of data block build label describe, will in other labels subsequently No longer it is described in detail.Table showing, this tag attributes takies 32 bit spaces in instant example, the 1st table Show whether this label is continuation label, if this value is 1, represent that current label is continuation label, if this Value is 0 and represents that current label is not continuation label, and remaining position of this attribute extends after being then preserved for.Table 3 In data set number be mainly used to uniquely identify this data set.ETF version represents the version letter of this recording method Breath, is mainly used in compatible processing.Data set GNS (Global Namespace) belonging in table 3 is this data set The object path of the root object of corresponding object tree.Data set describes and is mainly used to describe this data set, and corresponding retouches The information of stating is the remark information to this data set.
One object is made up of object leader label, zero or more data block, object tail tag label successively, As shown in Figure 4.
4.2. record object leader label.
Fig. 5 illustrates the composition structure of object leader label, and it (is currently 128 that object leader label comprise regular length territory Byte), object name and metadata.Regular length territory mainly comprises the essential information of object.Object name is i.e. used for only One title representing object, this title limits without length and coding in the structure shown here.Metadata in Fig. 5 is unit Data head label, mainly comprises the User Defined data of object.
4.2.1. all properties assignment of the metadata header label of object leader label is given.Wherein tag types arranges 7; Metadata this example of length is assumed to be 2;This example of metadata is assumed to be the random value of a length of 2.
4.2.2. all properties assignment of object leader label is given.Wherein tag types is set to 4;Tag attributes is arranged It is 0;Physical block number is set to this physical block number shared by object leader label;Verify and be set to this object leader label Checksum value;It is (right in this example that object number is set to 464bdc1f-258e-44e2-bdae-d718bf967857 The 32 byte character streams generated as numbering and the numbered GUID of parent object);Parent object numbering is set to 00000000-0000-0000-0000-000000000000 (if without parent object in this example, arranges parent object numbering For 00000000-0000-0000-0000-000000000000, it is otherwise provided as the object number value of parent object); Object base attribute is set to the base attribute of object, it is assumed herein that be 1;Object oriented is set to Xxx: //aa/bb/cc.
4.2.3. the object leader label after step 4.2.2 assignment are serialized and recorded tape.
Object head tag identifier the beginning of an object record stream.Table 5 is described in detail the genus of object leader label Property, object leader label by tag head, object number, parent object numbering, object base attribute, retain data, right As title, metadata composition.
Object number and parent object numbering in table 5 are all used to uniquely identify object, and wherein object number is to use Identifying this object itself, parent object numbering is used for identifying last layer object (the i.e. father couple of the object tree at its place As), the value of parent object numbering is consistent with the object number value of the correspondence of parent object.The base attribute of object is mainly wrapped Fundamental characteristics containing object, such as whether for file, whether be catalogue, whether be time point object etc., this characteristic by Object itself determines.Retain data and be mainly used in compatible processing and extension.In attribute list, object oriented is used to describe The title of this object, this title is the attribute that object itself carries.In this recording method, object oriented is the longest Degree and coding limit, object itself determine.Metadata is to be nested in a label of object leader label, this mark Signing is metadata header label, and it comprises some fundamental characteristics and the metadata of object of metadata.
Metadata header label (i.e. metadata) is made up of, as shown in Figure 8 a regular length territory and content metadata. Regular length territory in Fig. 8 comprises the essential information of metadata, and content metadata is that the metadata of incoming object is true Real content.As shown in table 8, metadata header label comprises tag types, metadata length, retains data and object Metadata forms.Metadata length is used to the total length of record object metadata, for the root when recovering data Metadata is resolved according to this length.Retain data for compatible processing and extension.Metadata in label and object Metadata, these data be object itself determine.
4.3. data block is recorded.
The data content of one object is made up of zero or more data block.And a data block is by a data block block Leader label (i.e. build) and data block contents (i.e. blocks of data) composition.The size of data block contents is by incoming right As itself determines.The most multiple data blocks are the most compact arranged, its record order and incoming order Unanimously.Fig. 6 showing, a data block is made up of a data block build label and blocks of data.Data block build mark Label are made up of, as shown in Figure 7 a regular length territory.
4.3.1. all properties assignment of data block build label is given.Wherein tag types is set to 6;Tag attributes It is set to 0;Physical block number is set to the physical block number sum shared by this data block build label and blocks of data;Verification With the checksum value being set to this data block build label;Data block attribute is set to the base attribute of data block, this In be assumed to be 1;Side-play amount arranges this data block side-play amount in object, it is assumed here that be 0;Unique ID is arranged It is 0;Data block size arranges the size of incoming data block, it is assumed here that for 4MB.
4.3.2. the data block build sequence label after step 4.3.1 assignment is melted into a data stream.
4.3.3. data stream and blocks of data sequence the most successively after step 4.3.2 being serialized are melted into one Data stream.
4.3.4. the traffic logging after step 4.3.3 being serialized is to tape.
The attribute of data block build described in detail by table 7, data block build label by tag head, data block attribute, Side-play amount, unique ID, data block size, reserved bit form.Data block attribute description this data block itself Base attribute, such as whether repeat.The data block that side-play amount describes side-play amount in object, this value is data block Attribute own.Unique ID is used for unique that distinguish this data block, and the sphere of action of this value is the object that it is affiliated, Adding up from the first of object data BOB(beginning of block) at unique ID of data block, initial value is 0, often increases by a number Add 1 according to this value of block.Data block size in build describes the size of current whole data block data, and this value is used for Correspondingly sized data are read according to this value when data are recovered.Retain data for compatible and extension.Data block Blocks of data serializes immediately following build.The physical block number of data block build label is data block build label and block number Sum according to shared physical block.
4.4. circulation performs step 4.3.Wherein this example arranges unique ID when this step goes to step 4.3.1 It is 1;When performing step 4.3.4, tape TP01 should arrive tape tail EOT, needs to perform to process across tape, I.e. step 4.5.
4.5. process across tape
This magnetic recording method can be across magnetic recording.If the magnetic of tape during record data to tape Head reaches tape tail (EOT, end oftape), then need to carry out processing, as shown in figure 14 across tape.
Fig. 9 showing, data concentrate a, b, c, d tetra-to process the key point across tape, * table in figure Show that the continuity position of this label is set to 1.Figure 10 describe key point a across tape processing mode, this key point For tape tail state after data set starts label.Figure 11 describe key point b across tape processing mode, This key point is tape tail state after object leader label.Figure 12 describes processing across tape of key point c Mode, this key point is tape tail state after build.Figure 13 describes processing across tape of key point d Mode, this key point is tape tail state after object tail tag label.
It is 512B to 16KB owing to limiting physics block size, in the Space Theory shared by end of data set label not Can more than 512B, therefore do not consider end of data set label across tape situation.
4.5.1. unloading tape TP01, changes tape TP02 to magnetic tape drive.
4.5.2. perform step 2.Should detect that tape does not comprise data when performing step 2.Wherein performing Arranging tag attributes during step 2.3 is continuity, non-filing, i.e. 1;It is numbered that tape is set 13c37dff-39e6-4660-97bd-ab80c908ffce;
4.5.3. the tag types of last complete tag that detecting step 4 records on a upper tape, this reality Example should be BLKH, i.e. 6.Therefore in this example across tape process comprise BOT, SSET, OBJH, These four continuation label of BLKH.
4.5.4. perform step 4.1, wherein when performing step 4.1.1, step 4 is recorded on a upper tape Last complete data set starts the value of label and is assigned to the data set of this step and starts label, and by the number of this step Start the continuation label attribute of tag attributes of label according to collection and be set to 1 (position will be continued be set to be).
4.5.5. perform step 4.2, wherein when performing step 4.2.2, step 4 is recorded on a upper tape The value of last entire object leader label is assigned to the object leader label of this step, and by the object leader label of this step The continuation label attribute of tag attributes be set to 1.
4.5.6. perform step 4.3, wherein when performing step 4.3.1, step 4 is recorded on a upper tape The value of last complete data block build label that last object is corresponding is assigned to data block block in this step Leader label, and the continuation label attribute of the tag attributes of the data block build label of this step is set to 1, physics Block number is set to 1.
4.6. step 4.3.4 in step 4 is continued executing with.This example only comprises 2 data blocks, therefore performs Need after complete step 4.3.4 to write object tail tag label, i.e. step 4.7.
4.7. record object tail tag label.
Object tail tag identifier the end of an object record stream.As shown in table 6, object tail tag label are by label Head, object number, reservation data composition.Object number is mainly used to uniquely identify the object that this label is corresponding, Its value is the object number value of the object leader label corresponding with these object tail tag label.Retain data for compatible processing and Extension.
4.7.1. all properties assignment of object tail tag label is given.Wherein tag types is set to 5;Tag attributes is arranged It is 0;Physical block number is set to this physical block number shared by object tail tag label;Verify and be set to this object tail tag label Checksum value;Object number is set to 464bdc1f-258e-44e2-bdae-d718bf967857, i.e. and right with it The object number value of the object leader label answered is identical.
4.7.2. the object tail tag label sequence after assignment in step 4.7.1 it is melted into a data stream and recorded magnetic Band.
4.8. log data set end-tag.
End of data set tag identifier the end of a data set record stream.Data concentrating described in detail by table 4 The attribute of bundle label, end of data set label is made up of tag head, data set number, reservation data.Data set is compiled Number being mainly used to unique identification data collection, the data set that the value of this numbering is corresponding starts the data set of label and compiles Number value.Reservation data in label are for compatible and extension.
4.8.1. all properties assignment of end of data set label is given.Wherein tag types is set to 3;Tag attributes It is set to 0;Physical block number is set to this physical block number shared by end of data set label;Verify and be set to this number Checksum value according to collection end-tag;Data set number is set to E6c58212-bd43-4f32-b62e-f3c2b7647a16, i.e. starts the data set of label with corresponding data set Number value is identical.
4.8.2. the end of data set sequence label after assignment in step 4.8.1 it is melted into a data stream and recorded Tape.
4.9. backup tasks unloading tape TP02 is terminated.
If the content of label cannot write the most whole physical block, need to fill data.Fig. 1 to Fig. 8 occurs multiple mark Sign.Wherein leader tape head label, data set start label, object tail tag label, end of data set label are single Label, its label itself does not comprise other labels.These labels can account for one or more physical block, if in label Appearance exceedes size then this label of single physical block and takies multiple physical block, otherwise only takes up a physical block.Label If do not take the space of physical block when recorded in tape, then need to fill data.Object leader label are nested with unit Data head label, data block comprises data block build label and blocks of data.Object leader label and data block itself are all Continuous print data stream, if last physical block only at its place does not records full, needs to fill data.

Claims (9)

1. a magnetic recording method based on object standby system, it is characterised in that the method includes following step Rapid:
Step one, tape formating judge step, judge that tape is the need of form according to the data mode in tape Change, the most then carry out tape formating, then perform step 2, if it is not, the most directly perform step 2;
Step 2, writing position positioning step, write tape according to the tag types of data trailer on current tape Location positioning;
All object datas are recorded to tape by step 3, Data Migration step successively;
In described tape, the data of record include that label, described label include seven class label, respectively leader tape heads Label, data set start label, end of data set label, object leader label, object tail tag label, data block build Label and metadata header label;
The attribute of described leader tape head label includes tag head, tape numbering, physical block size, ETF in order Version, reserved bit and tape describe;Described data set starts the attribute of label and includes tag head, data in order Collection numbering, ETF version, reserved bit, affiliated data set GNS and data set describe;Described end of data set The attribute of label includes tag head, data set number and reserved bit in order;The attribute of described object leader label is pressed Order includes tag head, object number, parent object numbering, object base attribute, reserved bit, object oriented and unit Data;The attribute of described object tail tag label includes tag head, object number and reserved bit in order;Described number Tag head, data block attribute, side-play amount, unique ID, data block is included in order according to the attribute of block build label Size and reserved bit;The attribute of described metadata header label includes tag types, metadata length, guarantor in order Stay position and metadata.
A kind of magnetic recording method based on object standby system the most according to claim 1, its feature exists In, described tape formating particularly as follows:
101) tape wrapping back to leader tape head, detection leader tape head is data trailer the most simultaneously, if so, performs step Rapid 107), if it is not, perform step 102);
102) the physical block size of tape is obtained;
103) start from leader tape head position to read physical block data;
104) by step 103) order antitone sequence one label of chemical conversion of serializing according to tag head of the data that read Head;
105) whether the tag types judging this tag head is leader tape head label, the most then perform step 106), If it is not, then perform step 107);
106) judge step 104) in the tag attributes of tag head whether be filing, the most then this tape can not Format, send alarm signal, if it is not, then perform step 107);
107) tape is navigated to leader tape head and the physical block size of tape is set;
108) all properties of leader tape head label is carried out assignment successively;
109) by step 108) all properties sequence one the data stream of chemical conversion of leader tape head label after assignment;
1010) by step 109) traffic logging that serializes is to tape head.
A kind of magnetic recording method based on object standby system the most according to claim 1, its feature exists In, described writing position location particularly as follows:
201) tape is wrapped back to data trailer;
202) in current location by one file mark of tape successively rollback and a physical block;
203) the physical block size of tape is obtained;
204) data of a physical block are read;
205) data read out according to the serializing order unserializing of tag head;
206) judge tag types: if tag types is leader tape head label, then tape is navigated to leader tape head label Afterwards;If tag types is end of data set label, then after this tape being navigated to this end of data set label.
4., according to a kind of based on object standby system the magnetic recording method described in Claims 2 or 3, it is special Levying and be, described tag head serializing refers to: by tag head according to tag types, tag attributes, physical block number, Order sequence successively one the data stream of chemical conversion of verification sum, wherein, described tag attributes includes continuing position, filing Position and reserved bit.
A kind of magnetic recording method based on object standby system the most according to claim 4, its feature exists Following sub-step is included in, described Data Migration step:
301) log data set starts label;
302) successively by all object record in object tree to tape;
303) log data set end-tag.
A kind of magnetic recording method based on object standby system the most according to claim 5, its feature exists In, described step 301) particularly as follows:
A1) all properties assignment successively of label is started to data set;
A2) by step a1) in data set after assignment start all properties generic sequence of label and be melted into a number According to stream;
A3) by step a2) in serializing traffic logging to tape;
Described step 303) particularly as follows:
B1) giving all properties assignment of end of data set label, the data set number value of end of data set label is with right The data set number value that the data set answered starts label is identical;
B2) by step b1) in all properties generic sequence of end of data set label after assignment be melted into a number According to stream;
B3) by step b2) in serializing after traffic logging to tape.
A kind of magnetic recording method based on object standby system the most according to claim 5, its feature exists In, described step 302) in, described object successively by object leader label, zero or more data block, One object tail tag label composition, by time in object record to tape, record object leader label, data block, right successively As tail tag label.
A kind of magnetic recording method based on object standby system the most according to claim 7, its feature exists In, the step of described record object leader label is:
C1) all properties assignment of the metadata header label of object leader label is given;
C2) other all properties assignment given in object head tag attributes in addition to metadata header label;
C3) by step c1) all properties sequence in order one data of chemical conversion of metadata header label after assignment Stream;
C4) by step c2) all properties of object leader label after assignment and step c3) the data stream that serializes One data stream of sequence chemical conversion in order;
C5) by step c4) in serializing after traffic logging to tape;
Described data block is made up of data block build label and blocks of data, record data block particularly as follows:
D1) all properties of data block build label is carried out assignment;
D2) sequence in order of the attribute after assignment is melted into data stream;
D3) by step d2) in data stream and blocks of data sequence sequentially be melted into a data stream;
D4) by step d3) in traffic logging in tape;
The step of described record object tail tag label is:
E1) all properties assignment of object tail tag label, the object number value of object tail tag label and corresponding object head are given The object number value of label is identical;
E2) by step e1) in all properties sequence in order one data of chemical conversion of object tail tag label after assignment Stream;
E3) by step e2) in serializing after traffic logging to tape.
A kind of magnetic recording method based on object standby system the most according to claim 8, its feature exists In, when performing step 3, tape arrives tape tail, then perform to process step across tape, should process step across tape Particularly as follows:
401) change tape, the tape after changing is carried out tape formating, formatting procedure arranges leader tape head The continuity bit attribute of label is yes, if simultaneously a upper tape is provided with archived bits attribute for being, this tape also should set It is yes for putting archived bits attribute;
402) detect whether the tag types of last complete tag of record on a tape belongs to described seven One in class label, the most then perform step 403), if it is not, then perform step 409):
403) step b1 is performed), last complete data set of record on a upper tape is started label Value is assigned to the data set of this step and starts label, and the continuity position that data set starts the tag attributes of label is set to It is;
404) if step 402) in detect that tag types is that data set starts label, then perform step 409), If it is not, then perform step 405);
405) step c1 is performed), the value of last entire object leader label of record on a upper tape is composed To the object leader label of this step, and the continuity position of the tag attributes of the object leader label of this step is configured as;
406) if step 402) in detect that tag types is object leader label, then perform step 409), if it is not, Then perform step 407);
407) if step 402) in detect that tag types is data block build label, then perform step d1), will On a upper tape, the value of last complete data block build label that last object of record is corresponding is composed To data block build label in this step, and the continuity position of the tag attributes of the data block build label of this step is set Be set to be, if last complete data block build label is currently across the data block build of tape location blocks of data Label, then be set to this data block build by the physical block number attribute of the tag head of the data block build label of this step The physical block number shared by the remaining data of data block that label is corresponding and the physical block number sum shared by this continuation label, Otherwise arranging physical block number is this physical block number shared by step continuation data block build label, continues executing with step 409), if it is not, then perform step 408);
408) step e1 is performed), the value of last object tail tag label of record on a upper tape is assigned to this The object tail tag label of step, and the continuity position of the tag attributes of the object tail tag label of this step is configured as;
409) judge when tape processes, whether to there is the label being not fully complete, the most then rewrite what this was not fully complete Label;
410) step 3 is continued executing with.
CN201310737524.4A 2013-12-27 2013-12-27 A kind of magnetic recording method based on object standby system Active CN103680520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310737524.4A CN103680520B (en) 2013-12-27 2013-12-27 A kind of magnetic recording method based on object standby system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310737524.4A CN103680520B (en) 2013-12-27 2013-12-27 A kind of magnetic recording method based on object standby system

Publications (2)

Publication Number Publication Date
CN103680520A CN103680520A (en) 2014-03-26
CN103680520B true CN103680520B (en) 2016-08-17

Family

ID=50317873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310737524.4A Active CN103680520B (en) 2013-12-27 2013-12-27 A kind of magnetic recording method based on object standby system

Country Status (1)

Country Link
CN (1) CN103680520B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5568639A (en) * 1993-11-24 1996-10-22 Menai Corporation Method and apparatus for providing an object-oriented file structuring system on a computer
CN102117623A (en) * 2009-12-30 2011-07-06 北大方正集团有限公司 Method and device for recovering magnetic tape metadata
CN102141964A (en) * 2010-01-28 2011-08-03 北大方正集团有限公司 Method and device for repeatedly using magnetic tape
US8244953B1 (en) * 2007-12-18 2012-08-14 Emc Corporation System and method for faster data retrieval from tape media
US8600937B1 (en) * 2008-09-30 2013-12-03 Emc Corporation System and method for fast volume cloning

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5446602A (en) * 1992-02-28 1995-08-29 E-Systems, Inc. Tape media formatted to include multiple, spaced apart system zones each for storing volume format information
JP2008041178A (en) * 2006-08-07 2008-02-21 Fujitsu Ltd Device, method and program for controlling magnetic tape device
JP4937863B2 (en) * 2007-09-05 2012-05-23 株式会社日立製作所 Computer system, management computer, and data management method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5568639A (en) * 1993-11-24 1996-10-22 Menai Corporation Method and apparatus for providing an object-oriented file structuring system on a computer
US8244953B1 (en) * 2007-12-18 2012-08-14 Emc Corporation System and method for faster data retrieval from tape media
US8600937B1 (en) * 2008-09-30 2013-12-03 Emc Corporation System and method for fast volume cloning
CN102117623A (en) * 2009-12-30 2011-07-06 北大方正集团有限公司 Method and device for recovering magnetic tape metadata
CN102141964A (en) * 2010-01-28 2011-08-03 北大方正集团有限公司 Method and device for repeatedly using magnetic tape

Also Published As

Publication number Publication date
CN103680520A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN101446921B (en) Dynamic storage method of Flash memory
CN104239443B (en) A kind of storage method of serialized data operation log
CN104461390A (en) Method and device for writing data into imbricate magnetic recording SMR hard disk
CN107479922A (en) A kind of flash data management method, device and computer-readable recording medium
CN110309019B (en) Method for rapidly recovering and extracting deleted files in APFS (advanced persistent file system)
CN108874321A (en) A kind of raid-array data reconstruction method, device and equipment
CN103617277A (en) Method for restoring data table content deleted mistakenly
CN104113390A (en) Serialization method of mobile network data
CN106445416A (en) Data record storage, query and retrieval method and device
BRPI0606471A2 (en) recording medium, method and apparatus for reproducing data from recording medium
CN104484427A (en) Video file storage device and video file storage method
CN108280056A (en) A kind of Excel file analytic method
CN106021718A (en) Drawing method and device used for engineering drawing in CATIA (Computer-graphics Aided Three-dimensional Interactive Application)
CN103500206A (en) Storage method and device based on file storage data
CN104951482B (en) A kind of method and device of the image file of operation Sparse formats
CN108009049A (en) The offline restoration methods of MYISAM storage engines deletion records, storage medium
CN103680520B (en) A kind of magnetic recording method based on object standby system
CN104794025B (en) The method of rapid verification storage device
CN104731526B (en) The method and device that a kind of discontented band is write
CN101937426A (en) Method and device for processing incompatible data
CN101777077B (en) Method for implementing file system of embedded device
CN105760313A (en) Data processing method and device for SPI-Flash-based (Serial Peripheral Interface-Flash-based) file system
CN111241096A (en) Text extraction method, system, terminal and storage medium for EXCEL document
CN106293518B (en) A kind of efficient security industry media data storage file system
CN104504349B (en) A kind of Video data safe storage device and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201112 Shanghai, Minhang District, United Airlines route 1188, building second layer A-1 unit 8

Applicant after: SHANGHAI EISOO INFORMATION TECHNOLOGY CO., LTD.

Address before: 200072 room 3, building 840, No. 101 Middle Luochuan Road, Shanghai, Zhabei District

Applicant before: Shanghai Eisoo Software Co.,Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant