Re: Directory checksum Error - tar -tvf ... (382 Views)
Reply
Advisor
vat
Posts: 29
Registered: ‎10-25-2008
Message 1 of 5 (382 Views)

Directory checksum Error - tar -tvf ...

Dear All,

I am trying to list the file in the tape drive.
using following command :

tar -tvf /dev/rmt/0mn

it gives following error :

Tar: blocksize = 10
directory checksum error


How to restore one file from tape to disk ?

Regards,

Nirav
Please use plain text.
Frequent Advisor
Sunil Sheoran
Posts: 25
Registered: ‎07-31-2008
Message 2 of 5 (382 Views)

Re: Directory checksum Error - tar -tvf ...

Hi

It seems that you have taken backup using some other utility (I mean not using tar). That could be one of the reason that you are getting "directory checksum error" error. or it can be due to media or drive bad issue also.

How to restore one file from tape to disk ?

It depend how you have taken backup. if you have taken uing tar with relative path restore the files at alternet location & copy one file from their to orignal location

Thanks
Sunil
Please use plain text.
Advisor
vat
Posts: 29
Registered: ‎10-25-2008
Message 3 of 5 (382 Views)

Re: Directory checksum Error - tar -tvf ...

Hi Sunil

Thanks for you quick response.

Yes I have taken backup using 'dd' i.e. also from SAP.

This is a oracle database backup. I want to restore only one archive log file which is needs for our test database.

How can I restore that?

I am not good on HP-Unix.

Regards,

Nirav

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,762
Registered: ‎03-06-2006
Message 4 of 5 (382 Views)

Re: Directory checksum Error - tar -tvf ...

>I have taken backup using 'dd' i.e. also from SAP.

(What do you mean "also from SAP"?
What were the exact commands you used to write to the tape? Unless you used dd(1) in a pipe, you are going to have problems getting it off.

>I want to restore only one archive log file which is needs for our test database.

If you have multiple files on your tape, you should use a tool like tar, pax, cpio or fbackup.
Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,720
Registered: ‎06-21-2000
Message 5 of 5 (382 Views)

Re: Directory checksum Error - tar -tvf ...

If you used 'dd' to take the backup, you can NOT use tar to restore. You must use the same tool to restore, ie. dd.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation