User Tools

Site Tools


operations:db_ncedc:vsm_restore
- Change to the root directory of the file system that you are restoring.

SAM-QFS archive files store copies relative to the file-system root directory. So to restore them
to their original locations, we want to restore them from the root directory.

In the example, we change to the root of the samqfs1 file system.

root@solaris:~# cd /samqfs1

- If you have an archiver log for the period when the regular file was last archived, find the most
recent entry for the file. Note the media type, the volume serial number of the media, and the path
and name of the file relative to the root directory of the file system. If the copy is stored on
sequential-access media, such as magnetic tape, also note the hexadecimal value that represents the
starting position of the archive (tar) file. If the copy is stored on random-access media, such as
archival disk, note the path and file name of the tar file relative to the volume serial number.

A 2014/03/03 13:09:05 li VOL004 all.1 212.1 samqfs1 1535.2 1971 genfiles/genA0 f 0 0
A 2014/03/03 21:49:15 dk DISKVOL1/f2 all.1 2.2e9 samqfs1 1511.2 8971 socfiles/spcC4 f 0 0

- If the file that you are restoring is archived on disk media, extract the archive copy of the
missing or damaged file from the tar file on the disk volume. Use the command star -xv -f tarfile file,
where tarfile is the name of the archive file and file is the path—relative to the file-system root
directory—and name of the file that you need to restore. Stop here, and go on to the next file.

The star command is an enhanced SAM-QFS version of GNU tar that restores specified files from the
archive file that you are pointing to with the request file.

In the example, we extract the data file genfiles/genC4 from the tar file DISKVOL1/f2.
The file is restored to /samqfs1/genfiles/genC4:

root@solaris:~# star -xvf DISKVOL1/f2 genfiles/genC4
operations/db_ncedc/vsm_restore.txt · Last modified: 2020/05/18 11:10 by stephane