|
Restoring Files from a XenData Tape Cartridge Using Native Linux XenData Technical Note XTN903 July 10, 2009 Copyright 2007-2009 XenData Limited. All rights reserved. Overview XenData Archive Series software archives to data tape using the POSIX tar format. The name 'tar' is derived from 'tape archive' and it is the dominant industry standard for archiving files to data tape. It has been used in the IT industry for decades and was developed in the early days of UNIX. Most UNIX and Linux operating systems are able to natively restore files that are written in the POSIX tar format. This means that files written to tape using a XenData archive system may be restored using a wide range of operating systems without need for any XenData software. This technical note describes the steps involved when using Red Hat Linux to restore files from an LTO-4 tape cartridge, written using XenData Archive Series software. Example Linux System Configuration Used for File Restores The system configuration that was used to restore files written using XenData Archive Series software is illustrated below.
In our tests we used the following:
We checked to ensure that the tape drive was recognized by the Linux OS using the following command:
We obtained the following output which confirmed that the tape drive was recognized:
We then checked the status of the drive using the following command;
This resulted in the following output:
Example File Restore Procedure We first created a directory for file restores and moved to that directory, as follows:
We then calculated the blocking factor. This is the block size used to write to the tape in bytes divided by 512. In our case, a 64 KB block size had been used by the XenData software which meant that the blocking factor was 128. The LTO-4 tape that we had inserted in the drive had a barcode X0002AL4. We created a file called 'X0002AL4.txt' that contained a list of the contents of the tape using the following command:
Note if the blocking factor is incorrect, you will obtain an error message: ' Cannot read: Cannot allocate memory'.After the tape contents had been read, we rewound the tape:
We viewed the contents file (X0002AL4.txt in our case) using gedit, as shown below:
The XenData software appends characters to the file name using the following convention.
where
We then selected and restored a file (the first generation and first version of 0390.dat in the \archive\Repack testing\3000 3MB\ folder) using the following command:
The quotes must be used if the folder names contain spaces. As this command will scan the whole tape looking for all files with this combination of folder and file name, a Ctl-C can be used to stop the process after the file has been restored. We then restored all files on the tape using the following command:
Concluding Comments This technical note describes the steps that should be employed using the Red Hat Linux OS to restore files from a tape written using XenData software. Of course, the restore process is not as convenient and straight forward as using XenData software. However, variants of Linux and UNIX capable of restoring POSIX tar files are likely to be available for decades to come, ensuring that tapes written using XenData Archive Series software may be restored using third party software for many years in the future.
|