Visit Our UNIX and Linux User Community


tape


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users tape
# 1  
Old 09-11-2002
tape

Hi all,
Is there a command that allow the user to know that he reach the end of a backup tape (last portion used)?
Thanks and Regards
# 2  
Old 09-17-2002
use mt

Are you asking about when the tape is being written to? or when you are seeking on the tape to find the end?

I don't think you can do that when it is writing, but you can do it while querying a tape.

_____________________________________
There is a command "mt" that manipulates the tape. It has many functions. You can set marks on the tape and many other things as well.

From the man page for mt.

mt accepts the following commands:

eof ...... Write count EOF marks.
fsf ...... Forward space count files.
fsr ...... Forward space count records.
bsf ...... Backward space count files.
bsr ...... Backward space count records.
rew ...... Rewind tape.
offl ...... Rewind tape and go offline.
eod ...... Seek to end of data (DDS and QIC drives only).
smk ...... Write count setmarks (DDS drives only).
fss ...... Forward space count setmarks (DDS drives only).
bss ...... Backward space count setmarks (DDS drives only).
status ...... Print status information about the tape drive.
res ...... Reserve tape drive for sole use by the host issuing the mt command (stape driver only).

rel ...... Release tape drive from sole use by the host issuing
the mt command (stape driver only).



Smilie
# 3  
Old 10-09-2002
More info about the MT command

How can setmarks be utilized in a backup, can you backup a group of files and create a "setmark" and use that setmark "count" in the restore command.

Basically, if I utilize the "smk" command, does it give me the option to bypass counting individual file marks, and group together multiple files.

Thanks for any help in this regards.

The question regards our current procedure for backing up a Progress Database (Version 9.1c); with the implementation of storage areas, the fsf command will no longer search to the right area of the tape to restore the database.

We run a script that backs up multiple databases, and during the progress restore we run the

mt [device] rew
mt [device] fsf 0
prorest [database] [device]
mt [device] rew
mt [device] fsf 1
prorest [database] [device]

--- every database after the first will not restore.


Prior to the implementation of storage areas this worked, now it doesn't. Does anybody have any ideas?

Should we add an EOF or SMK command to return the record or setmark counts. And if we do, how do we use these in the restores.


Thanks in advance.
# 4  
Old 10-09-2002
comatt1, what os are you using? What device file? What do you mean by "implementation of storage areas"? It sound to me like you are just using a rewind device. But if you can't get filemarks to work, you shouldn't be increasing the complexity of the problem by adding in setmarks.
# 5  
Old 10-09-2002
Quote:
Originally posted by Perderabo
comatt1, what os are you using? HP-UX11

What device file? Tape Drive DDS drive

The new storage areas in Progress version 9 are merely the largest unit of a Progress database, and give control over the location of database objects. These areas are used to allow the seperate of the database control structures, before image files, schemas, user data, and after-image files (which are not implemented as of yet).

For some reason, the script which could previously find for example, the third database would just look like

mt -t /dev/rmt/om rew
mt -t /dev/rmt/omn fsf 2
prorest ...

no longer works.

I have looked at the Unix manual file and found that the -t parameter is obsolete, replaced with -f --

Could this be the issue

Or is a more complicated procedure the only way to deal with this, if the tape is now counting storage areas as seperate files?

It sound to me like you are just using a rewind device. But if you can't get filemarks to work, you shouldn't be increasing the complexity of the problem by adding in setmarks.
# 6  
Old 10-10-2002
You should switch to -f, but -t still works, so that it not the problem.

A device file is something like /dev/rmt/0m or /dev/rmt/0mn. The "n" at the end means no-rewind.

On hp-ux, you can use lssf to decode the minor number. Run "lssf /dev/rmt/0mn" and make sure that it says "no rewind". Make sure that you are using /dev/rmt/0mn when you run prorest.

Bear in mind that the restore script is not the only player here. The backup script must be correct as well.

If this all looks good, you will need to talk with the Progress folks.

Previous Thread | Next Thread
Test Your Knowledge in Computers #489
Difficulty: Medium
Because interpreted languages are not compiled, syntax errors do not become runtime errors.
True or False?

9 More Discussions You Might Find Interesting

1. AIX

Ejecting tape on AIX & Some Tape commands

I am trying to use this command to eject the tape mt -f /dev/rmt/0 unload but it gives me error mt -f /dev/rmt/0 unload mt: 0511-575 unload is not a recognized subcommand. Usage: mt Subcommand Valid subcommands are: weof eof fsf bsf ... (5 Replies)
Discussion started by: filosophizer
5 Replies

2. UNIX for Dummies Questions & Answers

Copying tape-to-tape on UNIX

I am using a 4mm tape to backup my Unix system. However, I wanted to make a copy all of the files and archive headers (or just the archive headers if that's possible) created on one of my tapes to another 4mm tape. I only have one tape drive. Is there a command that will complete such task? ... (1 Reply)
Discussion started by: acoco
1 Replies

3. AIX

How to make a copy of a tape to another tape?

Hello, We need to make a copy of a backup tape, using the 2 tape recorders in IBM 3582 Tape Library We tried tu use "tcopy", it seems to work fine (no error messages) but we aren't sure if we can rely on it. my question is how to check if the copy succeded or not, but i also want to know... (3 Replies)
Discussion started by: fastlane3000
3 Replies

4. SCO

Tape Status shows 2 Hard errors and 5 Underruns on new tape

when I do a tape status /dev/rStp0 I get the following on a new tape and I have tried several: Status : ready beginning-of-tape soft errors : 0 hard errors: 2 underruns: 5 My BackupEdge has stopped backing up my system because it asks for a new volume yet my total system data is under 20... (5 Replies)
Discussion started by: psytropic
5 Replies

5. AIX

How to copy a tape into another tape ?

I am new to AIX. I want to make a duplicate tape. How can I do that ? (1 Reply)
Discussion started by: Anonno
1 Replies

6. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

7. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies

8. Solaris

copy tape to tape using dd

I have two tape drives attached to my system , and i am trying to copy one tape to another using both tape drives and using the following command : dd if=/dev/rmt/1 of=/dev/rmt/2 but unfortunitly i am getting the following error : read: Not enough space 0+0 records in 0+0 records... (2 Replies)
Discussion started by: itsgeorge
2 Replies

9. UNIX for Dummies Questions & Answers

tape

hi error message is backup to pool 'Default' waiting for 1 writable backup tape(s) what does this meas ? How it can be rectified? thanks (2 Replies)
Discussion started by: sathiya
2 Replies

Featured Tech Videos