file on tape


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users file on tape
# 1  
Old 10-18-2002
file on tape

Hi,
I use the following commands on Solairs to backup my Oracle db file to tape:
mt -t /dev/rmt/0 rew
exp ..... file= /dev/rmt/0n

Q1:
how can I copy this file back onto my disk? (ufsrestore doesn't work)

Q2:
I found that /dev/rmt/0n is linked to /devices/ssm@0,0/pci@1d,600000/pci@1/SUNW,isptwo@4/st04,0:n and the size of that file shows 33279. This filesize seems too small for my database file. So what does this number mean?
(btw, I got the number 33279 by ls -l /devices/ssm@0,0.......)

Thanks.
James.
# 2  
Old 10-18-2002
Tools Question

Its not clear to with backup command you are using.

When you want to restore with `ufsrestore` you need to make your backup with `ufsdump`

The file you mentiond in Q2 is NOT the database file, it is just the tape device.


`mt -t /dev/rmt/0 rew` is just doing a rewind of your tape.
`exp ..... file= /dev/rmt/0n ` I do not know what you mean with this.

Hereby the man page of ufsdump/ufsrestore
http://docs.sun.com/db/doc/805-3727/...ufsdump&a=view
# 3  
Old 10-18-2002
Sorry that my wording 'backup' was misleading.

My ex-co-worker extracted some data in an Oracle database by using the Oracle "exp" utility and directly write data onto the tape device(hence the command exp ....... file=/dev/rmt/0n ....).

by looking at the script I thought the data would be stored in the filename /dev/rmt/0n, which is the same as the tape device, so I try 'cp' it but it didn't work. Is there a default filename for data stored on the tape device? I want to copy the file back to a disk to I can ftp it to somewhere else.

Also, I did a 'ls -l /dev/rmt/0n' and it showed a link to /devices/ssm@0,0/pci@1d,600000/pci@1/SUNW,isptwo@4/st04,0:n and then I did a 'ls -l ' on the file and it showed 33279 as the filesize. Does this number represent how much data that is currently stored on the tape device?

Thanks.
# 4  
Old 10-18-2002
Try dd

Hi,

You can use the `dd` command to read blocks from tape to disk.
hereby the SUN manpage of dd
http://docs.sun.com/db/doc/806-0625/...kv?q=dd&a=view
Login or Register to Ask a Question

Previous Thread | Next Thread

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. 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

6. 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

7. UNIX for Dummies Questions & Answers

Searching for a file on tape

I have AIX 5.1. I would like to verify that I have a directory saved to tape. I have tried to do a but it brings up the info without reading the tape. What would I use to read this tape and look for a file or a directory? Thanks Dave (2 Replies)
Discussion started by: rocker40
2 Replies

8. UNIX for Dummies Questions & Answers

Take a file from the system and put on tape and reset the file to 0 bytes

:mad: I did this the other day but one of my support personnel removed my history so i could call it back up to remeber the exact command since i am air-headed at times. I am trying to take a 30 MEG file off the system and drop it to tape then i want to make the file go back to being 0 bytes so... (1 Reply)
Discussion started by: JackieRyan26
1 Replies

9. UNIX for Dummies Questions & Answers

Restoring a file from Tape

help please i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years. i have a file that i need to retrieve from a tape. i have been able to find the file on tape using the cpio -ivt command. however... the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies
Login or Register to Ask a Question