1833831 Members
2407 Online
110063 Solutions
New Discussion

Re: Restore failure

 
SOLVED
Go to solution
O'lnes
Regular Advisor

Restore failure

I use fbackup to backup files , it seems no error, then use the same drive to frecover the file, but it pop up the below error
" unable to read the volume header " , why this happen?
can the files be recoverd? Thank you very much.
Andy
13 REPLIES 13
RAC_1
Honored Contributor

Re: Restore failure

What command you are using for backup.
give complete syntax.(for frecover also)

There is no substitute to HARDWORK
Rodney Hills
Honored Contributor
Solution

Re: Restore failure

Either you
- used a tape that did not have fbackup data on it
- or the tape itself went bad
- or the tape drive itself went bad.

Try cleaning the tape drive first.

Try doing some simple fbackup/frecover on the drive with a new tape to determine if it is the drive.

Double check your backup processes. Many administrators have developed scripts to do their backuping and don't find until a month later when they want to restore, that the script was in error and failing.

Good Luck

-- Rod Hills
There be dragons...
Cheryl Griffin
Honored Contributor

Re: Restore failure

In addition, what type of tape drive and what is the firmware?

Test the tape drive works outside of fbackup:
# dd if=/dev/rmt/0m of=/dev/null bs=1 count=1

Does this command succeed or fail?
A failure would look like:
dd read error: I/O error
0+0 records in
0+0 records out

Check /var/adm/syslog/syslog.log, dmesg and STM (Diagnostics) for any other errors which might indicate a problem with the tape drive.

Cheryl


"Downtime is a Crime."
O'lnes
Regular Advisor

Re: Restore failure

my command is :
fbackup -v -n -f -I -c
frecover is using `sam'
Andy
Rodney Hills
Honored Contributor

Re: Restore failure

I don't see either "-i" or "-g" to specify which files to backup.

Following "-f" should be the device you are backing up to.

Can you look at the log of output generated by "fbackup"? You may want to see if their were any problems.

-- Rod Hills
There be dragons...
O'lnes
Regular Advisor

Re: Restore failure

I omit the statement

It is `frecover fbackup -v -n -f /dev/rmt/0m -i /etc/backup.file -c -g /etc/backuplist.txt` , I make sure the statement is no problem cos I use for long time, how can I recover the files without read the volume header? Thank you very much.


Andy
O'lnes
Regular Advisor

Re: Restore failure

The full error message when i `frecover` file is as below, how can i recover the files? can i frecover files without read the volume header?

frecover(5409): unable to read volume header
frecover(5418): not an fbackup volume; unable to read volume header
frecover(2105): did not find expected file marker
frecover(5412): Do you wish to try to salvage this volume?
(^[yY]/^[nN]) y
frecover(5413): attempting to read backup following bad volume header
frecover(5426): read error while attempting to read index. Skipping.
frecover(5401): Volume 1 completed.
frecover(5404): Press return when the next volume is ready on
/dev/rmt/c4t0d0BES
Andy
Bill Hassell
Honored Contributor

Re: Restore failure

Since there was no I/O error listed from frecover, the message means that the tape was never recorded by frecover. You can try to lost the contents with tar (tar tvf /dev/rmt/0m) or cpio, but the error indicates that there is no fbackup on the tape at all.

Now it's possible that someone started to write on the tape after fbackup was finished. It's imperative that any backup procedure popout the tape once it's finished. It's just too easy to write on whatever tape is in the drive...and it was your backup.


Bill Hassell, sysadmin
O'lnes
Regular Advisor

Re: Restore failure

does it mean the tape can't be recovered?
Andy
Patrick Wallek
Honored Contributor

Re: Restore failure

That's what it appears.

Are you ABSOLUTELY SURE that your fbackup is working correctly? I would check your logs VERY CLOSELY as you may have problems with your backup.
O'lnes
Regular Advisor

Re: Restore failure

I can't find any strange error message in the backup log, Can check how can I recover the files?
Thanks.
Andy
Rodney Hills
Honored Contributor

Re: Restore failure

If you tested the tape drive and it is functioning correctly, I think it safe to say that the tape is unreadable by frecover.

Therefore I'm sorry to say I don't think the data (if it existed) is recoverable.

-- Rod Hills
There be dragons...
D Waghorn
Occasional Advisor

Re: Restore failure

We have the same problem, were the header file is not written correctly to the tape. A warning appears and the files are written to tape. The logs then says completed with warnings.

The backup is restorable as we have tried it. For some reason the Label / Header is not been written correctly.
My head hurts!