Example 7-90 shows the output of the check and recovery on a single tape cartridge. 

[root@ltfs97 glues]# ltfsee pool add -p CopyPool -t 058AGWL5 -c Tape 058AGWL5 successfully checked. Adding tape 058AGWL5 to storage pool CopyPool 

Most corrupted tapes can be repaired by using the  --check  (or -c ) option. If the command fails, it might be because the tape is missing an end-of-data (EOD) mark. Try to repair the tape again by running the ltfsee pool add  command with the --deep_recovery  (or -d ) option, as shown in Example 7-91. 

## 7.21 Importing and exporting 

[root@ltfs97 glues]# ltfsee pool add -p CopyPool -t 058AGWL5 -d Tape 058AGWL5 successfully checked. Adding tape 058AGWL5 to storage pool CopyPool 

The import and export processes are the mechanisms for moving existing data on the LTFS written tape cartridges into or out of the IBM Spectrum Archive EE environment. 

## 7.21.1 Importing 

Import tape cartridges to your IBM Spectrum Archive EE system by running the ltfsee import -p <pool> -t <tape>  command. 

When you import a tape cartridge, the ltfsee import -p <pool> -t <tape>  command performs the following actions: 

1. Adds the specified tape cartridge to the IBM Spectrum Archive EE library 

2. Assigns the tape to the designated pool 

Imports the files on that tape cartridge into the IBM Spectrum Scale namespace process puts the stub file back in the GPFS file system and the imported files are in a migrated state, which means that the data remains on tape cartridge. The data portion of the file is not copied to disk during the import. 

Example 7-92 shows the import of an LTFS tape cartridge that was created on a different LTFS system into a directory that is called 075AGWL5 in the /ibm/glues  file system. 

[root@ltfs97 /]# ltfsee import -p myPool -t 075AGWL5 -P /ibm/glues Import of tape 075AGWL5 has been requested... Import of tape 075AGWL5 complete. 

## Importing file paths 

The default import file path for the ltfsee import  command is /{GPFS file system}/IMPORT . As shown in Example 7-93 on page 197, if no other parameters are specified on the command line, all files are restored to the ../IMPORT/{VOLSER}  directory under the GPFS file system. 

