Operating System - HP-UX
1833326 Members
3460 Online
110051 Solutions
New Discussion

frecover is wroking from sam but not from the command line

 
Ali Kouider
Occasional Advisor

frecover is wroking from sam but not from the command line

Hi

I am trying to read a DDS tape without restoring.
I am using the command frecover -Nxv
it gives me the following error message

hptest:/>> frecover -Nxv -f /dev/rmt/0m
frecover(5419): checksum on volume header is incorrect.
frecover(5420): not an fbackup volume; magic value is incorrect
frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN])

The same tape I can read through SAM and restore also through SAM.

Please advise
4 REPLIES 4
steven Burgess_2
Honored Contributor

Re: frecover is wroking from sam but not from the command line

Hi

Have a look at the output in /var/sam/log/samlog to see what command sam is running when it is reading your tape

HTH

Steve

take your time and think things through
lawrenzo
Trusted Contributor

Re: frecover is wroking from sam but not from the command line

Have you attempted to use frecover with -I option to create an index file. Index file contains the list of all files backed up by fbackup in that archive.

frecover -I /tmp/index -f /dev/rmt/0m

more /tmp/index

rgds

Lawzo
hello
Steven E. Protter
Exalted Contributor

Re: frecover is wroking from sam but not from the command line

I've gotten that error with bad media. The problem with that is if the media is bad its going to fail commmand line or interactive. Trying another tape does seem in order however.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Faizer
Advisor

Re: frecover is wroking from sam but not from the command line

Could this be a patch problem and may be this patch could resolve.

PHCO_28998:
( SR:8606297732 CR:JAGae61234 )
frecover(1M) on SDLT320, SDLT220 and DLTvs80 drives fails
to read the end of file mark with the following message.
Any attempt to salvage the volume fails.
# frecover -x -i /opt/junk -f /dev/rmt/c5t5d0BEST -v
frecover(2105): did not find expected file marker
frecover(5418): not an fbackup volume;
unable to read volume header
frecover(2105): did not find expected file marker