Operating System - Tru64 Unix
1748259 Members
3685 Online
108760 Solutions
New Discussion юеВ

Re: Extracting Data From Tape

 
SOLVED
Go to solution
Phuti
Occasional Advisor

Extracting Data From Tape

Hi

I have a challenge in extracting data from a tape...I have a tape that was archived using the following commands--this was done by one of our client and they have sent the tape to us (the tape drive is ultrium):

1. find .-print | backup -iv -b 4000 -f /dev/rmt1

2. chdev -l /dev/rmt1 -a block_size=4000

Now they have sent me some commands to read the tape and here are the commands -:

1. restore -Tqv -b 4000 -f /dev/rmt1

when i execute the commands I get this -:

restore: illegal option -- T
Bad option character ?

To extract :

1. restore -xv -b 400 -f /dev/rmt1

when I execute this I get :
Verify tape and initialize maps
partial block read: 4000 should be 409600
abort? [yn]

when I enter n I get this :

it goes back to the shell prompt #


How should I restore data if the situation is like this?

Please Help!!!!!!!!!!!!



8 REPLIES 8
Rob Leadbeater
Honored Contributor

Re: Extracting Data From Tape

Hi,

Can you confirm what operating system(s) are involved here please.

I could be wrong, but the commands mentioned above don't appear to be relevant to Tru64 UNIX.

Cheers,

Rob

Phuti
Occasional Advisor

Re: Extracting Data From Tape

Thanks Rob

I am still waiting for the people who used those cammands to advice me on which operating system are they using...I will notify you guys when I get the answer...
Phuti
Occasional Advisor

Re: Extracting Data From Tape

Now I do have another scenario regarding the tapes...I have these tape which is archived using the vdump commands on an ultrium tape and the tape archive is as follows:

-bande1/4 ( /db1 , /db2 )

-bande2/4 ( /db3 )

-bande3/4 ( /db4,/db4 )

-bande1/4 ( /db1 , /db2 )

-bande2/4 ( /db3 )

-bande3/4 ( /db4,/db4 )

-bande4/4( /db5, /apps , /export , /conv , /archive)

I want to know how can I extract the data on these tapes? more especially the data on -bande4/4 the /export...please I will also appreciate help on these problem....
Rob Leadbeater
Honored Contributor

Re: Extracting Data From Tape

Hi,

If the backup has been done using vdump, then use the vrestore command to restore.

You will probably have to use something like this, assuming that your using Tru64 v5 and your tape device is tape0.

# mt -f /dev/ntape/tape0 fsf 2

to forward the tape drive to the correct save set, then

# vrestore -xf /dev/ntape/tape0

to extract that data to the current working directory. You might however want to check what's on the tape first which you can do with

# vrestore -i

Hope this helps,

Regards,

Rob
Phuti
Occasional Advisor

Re: Extracting Data From Tape

Thanks Rob

This is exactly what I was looking for...thanks a lot...

If I want to extract the whole tape without going to a specific save set..How do I go about that...I still experience a little problem...when I execute mt -f /dev/ntape/tape0 fsf 2 I get this :

vrestore: Date of the vdump save-set: Sun Nov 19 20:43:22 2006
vrestore: Save-set source directory : /conv

I want the save set source directory to be : /export

pls help
Rob Leadbeater
Honored Contributor

Re: Extracting Data From Tape

OK. If fsf 2 didn't work, that sounds like the save sets aren't in the order that you've been told. I'm not sure that you can restore all save sets in one go, so you'll probably be best starting a the beginning of the tape and identifying each save set in turn...

# mt rewind
# vrestore -i

Check which save set it is - should be /db5 according to what you posted earlier, but it might be /apps

# mt rewind
# mt -f /dev/ntape/tape0 fsf 1
# vrestore -i

See where you are on the tape now...

Hope this helps,

Regards,

Rob
Phuti
Occasional Advisor

Re: Extracting Data From Tape

Thanks a lot Rob...your are super...I finally foudn it...the save set are not in the order that I was told...
Rob Leadbeater
Honored Contributor
Solution

Re: Extracting Data From Tape

Good news... Feel free to assign points as you see fit !

Cheers,
Rob