Sponsored Content
Operating Systems Linux Red Hat How to see files backed up on tape using dd command Post 302492409 by rbatte1 on Monday 31st of January 2011 09:42:11 AM
Old 01-31-2011
Well, the first thing that strikes me is that you have set a block size in your backup (-b 20) that you have not set on your listing request. It may suggest that it is the deafult, but you never know it might just be that.

The other thing I would worry about is if you are writing to the no-rewind device. If not, then you may auto-rewind at the end of the write and the next will overwrite each time, to you will only have the last backup. It depends on your OS as to which is the non-rewind device. AIX would normally be /dev/rmt0.1, but that doesn't match your format so you would have to look at man rmt - or perhaps man nst in your case to see if it helps.

It may also be that the ssh is getting in the way and you may not be writing a valid archive in the first place. When I have done this sort of thing, I have shared the device as a whole and driven it directly from server B without the piped control.




Robin
Liverpool/Blackburn
UK
 

8 More Discussions You Might Find Interesting

1. Cybersecurity

Unix Backed up with Windows NT?

We are running a Windows NT environment and have a stand alone Unix box. Is there software that would allow this Unix machine to be backed up along with our routine Windows NT backups? Any suggestions would be appreciated. Thanks!!! (3 Replies)
Discussion started by: G-Money
3 Replies

2. AIX

Echo Command to Tape

I've just got a new server running AIX5.3 When I Try this command: echo ABC123 > /dev/rmt0 I get the following message : A system call received a parameter that is not valid It worked OK on 4.3. Has something changed in the operating system> (0 Replies)
Discussion started by: gordbaby
0 Replies

3. Solaris

TAR command , listing backed up files

I've backed up several files to tape using tar, and wish to list those that have backed up. % tar cvf /dev/rmt/2un /s_1/oradata/pgpub/config.ora a /s_1/oradata/pgpub/config.ora 2 tape blocks But when I go to list the files: % tar tvf /dev/rmt/2un tar: tape read error What am I... (3 Replies)
Discussion started by: FredSmith
3 Replies

4. UNIX for Dummies Questions & Answers

Help recovering a backed up file

Hello, By accident I erased a file at work and I need to restore it from a backup tape. My manager says I will have to use the mt command with the fsf option to look through the tape but I am confuzed. I did a restore -t to get a listing of the tape. This is taking a long time. If I sound... (1 Reply)
Discussion started by: mojoman
1 Replies

5. AIX

Tape status command

We sometime run backups to tape in the background using the cron. Is there a command that will show me how fast the information is being written and or how much data has been written? I know if we enter the information via the command prompt or smit it shows the speed and amount written. (2 Replies)
Discussion started by: daveisme
2 Replies

6. UNIX for Dummies Questions & Answers

How to Identify date of file backed up used FBACKUP cmd?

Dear UNIX Experts, I'm a newbie. My name is Budi. I need some help from any body in this forum. How do we identify the backed up date of file in the Back up tape ? I did the back up using FBACKUP cmd. I tried to googling it, but unfortunately no aimed solution that I got. :confused: I've... (0 Replies)
Discussion started by: Bhoed
0 Replies

7. Solaris

files in tape

unix1{owadmin}% tar tvf /dev/rmt/1 -rw-rw-rw- 1021/10 0 Sep 11 17:54 2011 TinahPF_Far_32bit.segy tar: directory checksum error unix1{owadmin}% i know in this tape 3 files not only one file so what can i do to view 3 files and what is this error mean ( tar: directory checksum error... (2 Replies)
Discussion started by: ayman
2 Replies

8. UNIX and Linux Applications

how can i change inactive backed up filename on tsm

does any one know how to change inactive filename that is backed up on tsm? (1 Reply)
Discussion started by: curtis911
1 Replies
SA(4)							   BSD Kernel Interfaces Manual 						     SA(4)

NAME
sa -- SCSI Sequential Access device driver SYNOPSIS
device sa DESCRIPTION
The sa driver provides support for all SCSI devices of the sequential access class that are attached to the system through a supported SCSI Host Adapter. The sequential access class includes tape and other linear access devices. A SCSI Host adapter must also be separately configured into the system before a SCSI sequential access device can be configured. MOUNT SESSIONS
The sa driver is based around the concept of a ``mount session'', which is defined as the period between the time that a tape is mounted, and the time when it is unmounted. Any parameters set during a mount session remain in effect for the remainder of the session or until replaced. The tape can be unmounted, bringing the session to a close in several ways. These include: 1. Closing a `rewind device', referred to as sub-mode 00 below. An example is /dev/sa0. 2. Using the MTOFFL ioctl(2) command, reachable through the 'offline' command of mt(1). It should be noted that tape devices are exclusive open devices, except in the case where a control mode device is opened. In the latter case, exclusive access is only sought when needed (e.g., to set parameters). SUB-MODES Bits 0 and 1 of the minor number are interpreted as 'sub-modes'. The sub-modes differ in the action taken when the device is closed: 00 A close will rewind the device; if the tape has been written, then a file mark will be written before the rewind is requested. The device is unmounted. 01 A close will leave the tape mounted. If the tape was written to, a file mark will be written. No other head positioning takes place. Any further reads or writes will occur directly after the last read, or the written file mark. 10 A close will rewind the device. If the tape has been written, then a file mark will be written before the rewind is requested. On completion of the rewind an unload command will be issued. The device is unmounted. BLOCKING MODES
SCSI tapes may run in either 'variable' or 'fixed' block-size modes. Most QIC-type devices run in fixed block-size mode, where most nine- track tapes and many new cartridge formats allow variable block-size. The difference between the two is as follows: Variable block-size: Each write made to the device results in a single logical record written to the tape. One can never read or write part of a record from tape (though you may request a larger block and read a smaller record); nor can one read multiple blocks. Data from a sin- gle write is therefore read by a single read. The block size used may be any value supported by the device, the SCSI adapter and the system (usually between 1 byte and 64 Kbytes, sometimes more). When reading a variable record/block from the tape, the head is logically considered to be immediately after the last item read, and before the next item after that. If the next item is a file mark, but it was never read, then the next process to read will immediately hit the file mark and receive an end-of-file notification. Fixed block-size: Data written by the user is passed to the tape as a succession of fixed size blocks. It may be contiguous in memory, but it is considered to be a series of independent blocks. One may never write an amount of data that is not an exact multiple of the blocksize. One may read and write the same data as a different set of records. In other words, blocks that were written together may be read sepa- rately, and vice-versa. If one requests more blocks than remain in the file, the drive will encounter the file mark. As there is some data to return (unless there were no records before the file mark), the read will succeed, returning that data. The next read will return immediately with a value of 0. (As above, if the file mark is never read, it remains for the next process to read if in no-rewind mode.) FILE MARK HANDLING
The handling of file marks on write is automatic. If the user has written to the tape, and has not done a read since the last write, then a file mark will be written to the tape when the device is closed. If a rewind is requested after a write, then the driver assumes that the last file on the tape has been written, and ensures that there are two file marks written to the tape. The exception to this is that there seems to be a standard (which we follow, but do not understand why) that certain types of tape do not actually write two file marks to tape, but when read, report a `phantom' file mark when the last file is read. These devices include the QIC family of devices. (It might be that this set of devices is the same set as that of fixed block devices. This has not been determined yet, and they are treated as separate behaviors by the driver at this time.) IOCTLS
The sa driver supports all of the ioctls of mtio(4). FILES
/dev/[n][e]sa[0-9] general form: /dev/sa0 Rewind on close /dev/nsa0 No rewind on close /dev/esa0 Eject on close (if capable) /dev/sa0.ctl Control mode device (to examine state while another program is accessing the device, e.g.). DIAGNOSTICS
None. SEE ALSO
cam(4), mt(1) AUTHORS
The sa driver was written for the CAM SCSI subsystem by Justin T. Gibbs and Kenneth Merry. Many ideas were gleaned from the st device driver written and ported from Mach 2.5 by Julian Elischer. The current owner of record is Matthew Jacob who has suffered too many years of breaking tape drivers. BUGS
This driver lacks many of the hacks required to deal with older devices. Many older SCSI-1 devices may not work properly with this driver yet. Additionally, certain tapes (QIC tapes mostly) that were written under FreeBSD 2.X are not automatically read correctly with this driver: you may need to explicitly set variable block mode or set to the blocksize that works best for your device in order to read tapes written under FreeBSD 2.X. Fine grained density and compression mode support that is bound to specific device names needs to be added. Support for fast indexing by use of partitions is missing. BSD
June 6, 1999 BSD
All times are GMT -4. The time now is 03:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy