The present invention relates to a tape drive, and more specifically to a method of detecting whether data in a tape drive used in a file system is tampered.
The tape drive is usable on a file system as well as an HDD. As the tape drive usable on the file system, for example, there is an LTO-5 tape drive. In this LTO-5 tape drive, a tape is divided into two partitions. Each partition can be handled as if it were one tape to selectively write data, respectively.
In the meantime, access to data for illicit purposes and data tampering have recently increased. Therefore, it is important to prevent the tampering of data even in a tape drive. When this prevention of data tampering is performed in the tape drive, it is considered, for example, that a WORM (Write Once Read Many) partition is set in the tape drive so that data once written cannot be rewritten.
For example, Japanese Translation of PCT Application No. 2009-512925 discloses that partitions with no protected state (R/W) or partitions with a protected state such as WORM are set on a storage medium of a storage device including a tape drive.
[Patent Literature 1]
Japanese Translation of PCT Application No. 2009-512925
However, since file index information cannot be rewritten in methods of setting partitions with a protected state such as WORM including that of Patent Literature 1, information must be added at every time of writing. There is a problem that index information cannot be updated when the capacity of a partition for storing index information is full. Even when there is no problem with the capacity, since the latest index information is stored at the end of the partition on a tape, there is a problem that the time required to read the index information increases.
Therefore, it is an object of the present invention to provide a method of detecting whether data in a tape drive used in a file system is tampered while solving or reducing these problems of conventional techniques.
The present invention provides a method of detecting whether data in a tape drive used in a file system is tampered. The method includes the steps of: (a) preparing a first tape cartridge including a tape having at least two or more partitions, where at least one partition is a WORM partition, at least any other one partition is an R/W partition, multiple files and archival records of index information are stored in the WORM partition, and index information is stored in the R/W partition; (b) reading the index information of the R/W partition and the last index information of the WORM partition from the tape drive in which the first tape cartridge is inserted, and comparing both pieces of index information; and (c) when the index information of the R/W partition and the last index information of the WORM partition do not match, determining that the index information of the R/W partition is tampered.
According to the present invention, the index information of the R/W partition can be rewritten arbitrarily, and this can avoid information becoming bloated due to additions to the WORM partition. Further, high-speed access can be maintained, as in the case of using a file system with a conventional R/W tape, by storing only the latest index information in the R/W partition at all times. Furthermore, the tampering of index information can be detected without involving the file system by comparing the index information last stored in the WORM partition with the index information stored in the R/W partition.
In one aspect of the present invention, the method further includes a step of determining, based on the archival records of index information of the WORM partition, whether a file in the WORM partition is updated or deleted.
According to the aspect of the present invention, even when the file is updated or deleted using a file system, the file before updated or deleted can be restored by using a technique for tracing the archival records of the index information.
In another aspect of the present invention, the method further includes the steps of: (d) preparing a second tape cartridge including a tape having at least two or more partitions, where at least one partition is a WORM partition, at least any other one partition is an R/W partition, index information is stored in the WORM partition, and a file is stored in the R/W partition; and (e) reading the index information of the WORM partition from the tape drive in which the second tape cartridge is inserted, and determining, based on the index information, whether the file in the R/W partition is updated or deleted.
According to the aspect of the present invention, even when the file stored in the R/W partition is deleted, or updated (tampered), the deletion or update can be detected from the index information of the WORM partition.
In still another aspect of the present invention, the R/W partition is the first partition in a longitudinal direction of the tape.
According to the aspect of the present invention, it is possible to provide high-speed access to the index information or the file stored in the R/W partition.
In yet another aspect of the present invention, there is provided a file system including a computer, a tape drive communicable with the computer, and a first tape cartridge inserted in the tape drive. The first tape cartridge includes a tape having at least two or more partitions, where at least one partition is a WORM partition, at least any other one partition is an R/W partition, multiple files and archival records of index information are stored in the WORM partition, and index information is stored in the R/W partition. The computer reads the index information of the R/W partition and the last index information of the WORM partition from the tape drive in which the first tape cartridge is inserted, and when both pieces of index information do not match, determines that the index information of the R/W partition is tampered.
According to the aspect of the present invention, the index information of the R/W partition can be rewritten arbitrarily in the file system including the tape drive, and this can avoid information becoming bloated due to adding of index information to the WORM partition. Further, high-speed access can be maintained, as in the case of using a file system with a conventional R/W tape, by storing only the latest index information in the R/W partition at all times. Furthermore, the tampering of index information can be detected without involving the file system by comparing the index information last stored in the WORM partition with the index information stored in the R/W partition.
An embodiment of the present invention will be described with reference to the accompanying drawings.
For example, the file system 100 can be an LTFS (Linear Tape File System). Like an HDD, a USB memory, or any other removable recording medium such as a CD-R, the LTFS provides a mechanism that enables direct access to a file stored in a tape cartridge when the tape cartridge is inserted into the tape drive. In order to build a file system on a tape drive, the tape drive needs to have a partition feature. In the latest LTO-5 standard, a tape is divided into two partitions.
The tape cartridge 20 also includes a cartridge memory (CM) 24. This CM 24 records, for example, information about how data was written on the tape 23. Then, for example, an index of data written on the tape 23 in a noncontact mode using an RF interface or the usage of the tape 23 is checked to enable high-speed access to the data. In
Here, the host I/F 11 performs communication with the host (server) 30 or the other PC 32. For example, the host I/F 11 receives, from the OS of the host 30, a command to instruct writing of data to the tape 23, a command to move the tape 23 to a target position, and a command to instruct reading of data from the tape 23. In the example of the LTFS mentioned above, data within the tape drive can be referred directly from a desktop OS or the like, and a file can be executed by the double click or copied by the drag-and-drop action like a case of handling a file within an HD.
The buffer 12 is a memory for accumulating data to be written to the tape 23 and data read from the tape 23. For example, the buffer 12 is a DRAM. The buffer 12 is composed of multiple buffer segments, and each buffer segment stores a data set as a unit of read/write from/to the tape 23.
The channel 13 is a communication channel used to send the head 14 data to be written to the tape 23 and receive, from the head 14, data read from the tape 23. The head 14 writes information to the tape 23 and reads information from the tape 23 when the tape 23 moves in the longitudinal direction. The motor 15 drives the reels 21 and 22 to rotate. Note that although the motor 15 is indicated by one rectangle in
The controller 16 controls the entire tape drive 10. For example, the controller 16 controls writing to the tape 23 and reading from the tape 23 according to the commands accepted at the boat I/F 11. The controller 16 also controls the head position control system 17 and the motor driver 18. The head position control system 17 is a system for keeping track of a desired wrap. Here, the wrap means a group of multiple tracks on the tape 23. When it is necessary to switch from one wrap to another, the head 14 also needs to be electrically switched. Such switching is controlled by this head position control system 17.
The motor driver 18 drives the motor 15. As mentioned above, if two motors 15 are used, two motor drivers 18 will also be provided. The CM I/F 19 is, for example, implemented by an RF reader/writer to write information to the CM 24 and read information from the CM 24.
In both
In
In the present invention, R/W or WORM is set for each partition of the tape 23, and simultaneously, information to be written to the R/W partition is distinguished from information to be written to the WORM partition to detect the presence or absence of data tampering in a manner to be described later. Here, the R/W partition means a rewritable partition, and the WORM partition means such a partition that information once written cannot be rewritten (updated or deleted).
Specifically, for example, it is assumed in
The structure can also be such that index information is stored in the WORM partition and files are stored in the R/W partition. According to this aspect of the present invention, even when a file stored in the R/W partition is deleted or updated (tampered), the archival records of the index information of the WORM partition can be checked to detect the deletion or update.
Information about which partition of the tape 23 is set as the WORM partition is stored in the FID or the servo pattern of the servo bands 40 of the tape 23 at the time of shipment of the tape 23. Alternatively, the information may be stored in the CM 24 of the tape cartridge 20 (
As setting information on the WORM partition, which is stored at the time of tape shipment, for example, there are the following two forms: The first form is such a form to specify a WORM partition number directly. In other words, the tape drive is configured to handle partitions corresponding to a specific partition number group as WORM partitions consistently at the time of tape shipment.
The second form is such a form to define the WORM partition according to the number of partitions. For example, when the number of partitions is one, the partition is handled as the WORM partition. When the number of partitions is two, the first partition is handled as the R/W partition and the second partition is handled as the WORM partition. Thus, the WORM partition is changed according to the number of partitions existing on the tape, i.e., when the number of partitions is three, and so on. This form is effective, for example, when it is desired to set at least one partition on the tape as the WORM partition bet desired to use the first one (e.g., P0 in
In order to allow a user to set a partition used as the WORM partition at the discretion of the user, the structure may also be such that only information indicating that the tape has the WORM partition feature is recorded in the servo pattern so that the user can set, at the initialization of the tape, information indicating which partition is handled as WORM in an area of the CM, where no data is rewritten after the initialization. In this case, a mechanism capable of detecting replacement when the CM is replaced, e.g., such a mechanism to leave the serial number of the CM in the servo pattern is required.
Referring next to
In step S11, tape cartridges are prepared. The prepared tape cartridges are two first and second tape cartridges. Both cartridges have at least two or more partitions, respectively. Among the partitions, at least one partition is the WORM partition and at least any other one partition is the R/W partition. The first tape cartridge includes a tape on which multiple files and archival records of index information are stored in the WORM partition and index information is stored in the R/W partition. The second tape cartridge includes a tape on which index information is stored in the WORM partition and files are stored in the R/W partition. The examples of the structures of the tapes are as already described with reference to
In step S12, pieces of index information Id are acquired from a tape cartridge. Specifically, index information Id1 of the R/W partition and the last index information Id2 of the WORM partition are read from the tape drive in which the first tape cartridge is inserted. Alternatively, index information Id3 of the WORM partition is read from the tape drive in which the second tape cartridge is inserted.
In step S13, index information is compared. Specifically, the index information Id1 of the R/W partition is compared with the last index information Id2 of the WORM partition in the first tape cartridge. In step S14, it is determined whether the pieces of index information Id1 and Id2 match. When this determination is No, it is determined in step S15 that the index information of the R/W partition of the first tape cartridge is tampered.
When the determination in step S13 is Yes, archival records of index information are compared in step S16. Specifically, the archival records of the index information Id2 of the WORM partition in the first tape cartridge are compared. According to the comparison result in step S16, it is determined in step S17 whether a file in the WORM partition of the first tape cartridge is updated or deleted. Specifically, from the comparison result of the archival records of the index information Id2, it is detected that the last update time and date of the file is changed or the file corresponding to the index information is missing to determine whether the file is updated or deleted.
When the determination in step S17 is No, it is determined in step S18 that there is no tampering of data in the WORM partition of the first tape cartridge. When the determination in step S17 is Yes, the index information is rolled back as needed to update the WORM partition or acquire (restore) the file before deleted.
In step S16, the archival records of the index information Id3 in the WORM partition of the second tape cartridge can also be compared. In this case, according to the comparison result in step S16, it is determined in step S17 whether a file in the R/W partition of the second tape cartridge is updated or deleted. The specific determination is the same as that in the case of the file in the WORM partition of the first tape cartridge mentioned above. When the determination in step S17 is No, it is determined in step S18 that there is no tampering of data in the R/W partition of the second tape cartridge. When the determination in step S17 is Yes, the index information is roiled back as needed to update the R/W partition or acquire (restore) the file before deleted.
The embodiment of the present invention has been described with reference to the drawings. However, the present invention should not be limited to the embodiment. For example, in the aforementioned embodiment, the description is made by mainly taking, as an example, a case where the number of LTO-5 compliant partitions is two, but the present invention is not limited thereto. The present invention is also applicable to a case of having two or more multiple partitions. Further, the present invention can be carried out in modes to which various improvements, alterations, and modifications are added on the basis of the knowledge of those skilled in the art without departing from the spirit of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2011-226709 | Oct 2011 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2012/071352 | 8/23/2012 | WO | 00 | 10/27/2015 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2013/054597 | 4/18/2013 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
7103741 | Kato et al. | Sep 2006 | B2 |
7385776 | Itagaki | Jun 2008 | B2 |
7694096 | Haustein et al. | Apr 2010 | B2 |
20030145182 | Naito et al. | Jul 2003 | A1 |
20040190179 | Kato et al. | Sep 2004 | A1 |
20070094469 | Haustein et al. | Apr 2007 | A1 |
Number | Date | Country |
---|---|---|
101292219 | Oct 2008 | CN |
101727503 | Jun 2010 | CN |
1335365 | Aug 2003 | EP |
2003228284 | Aug 2003 | JP |
2004213823 | Jul 2004 | JP |
2009512925 | Mar 2009 | JP |
WO2007045630 | Apr 2007 | WO |
Entry |
---|
Examination Report from application No. GB1408043.6 dated Jun. 26, 2014. |
Office Action from application No. JP2013-538469 dated Jun. 10, 2014. |
Richmond, M., “LTFS consistency and Index snapshots,” posted on Jul. 12, 2011, p. 1-4. |
“Linear Tape File System (LTFS) Format Specification,” Aug. 17, 2011, LTFS Format Version 2.0.1, pp. 1-20. |
“LTO Ultrium Worm Magnetic Tape Technology, SEC 17a-4(f) Compliance Assessment,” Cohasset Associates, Inc., Oct. 2005, pp. 1-18. |
International Preliminary Report from application No. PCT/JP2012/071352 dated Apr. 24, 2014 (Non-Translated Version). |
International Preliminary Report from application No. PCT/JP2012/071352 dated Apr. 24, 2014 (Translated Version). |
Number | Date | Country | |
---|---|---|---|
20160042760 A1 | Feb 2016 | US |