HP-UX 10.20 fbackup? restore help/guidance needed


 
Thread Tools Search this Thread
Operating Systems HP-UX HP-UX 10.20 fbackup? restore help/guidance needed
# 1  
Old 08-11-2008
HP-UX 10.20 fbackup? restore help/guidance needed

Hello,

We've recently had a multiple hardrive failure in our legacy HP9000. Now the drives are repaired and the filesystems are recreated, I went to restore the last of the database tables from our dds3 backup, but cannot. Here's what's going on: BTW, I'm an absolute novice w/ HP-UX

The Backup Script:

/usr/sbin/fbackup -f /dev/rmt/0m -g /file.list -y -v > backup.log 2>&1&
cd /new/
find . -mtime +15 -name '*.log' -exec rm {} \;
find . -mtime +10 -name '*.rrr' -exec rm {} \;
cd /home/programs/ingres/files
cat /dev/null > errlog.log

The rmt directory:


# ls /dev/rmt/
0m 0mn c2t0d0BEST c2t0d0BESTn stape_config
0mb 0mnb c2t0d0BESTb c2t0d0BESTnb


The results of frecover: (I put the third tape of 3 in the drive) tried the others as well . . .

# frecover -f /dev/rmt/0m -xov -i /new
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? [yes no] no
frecover(5411): Do you wish to try a different volume? [yes no] no
frecover(5414): abort selected
frecover(4301): /new not recovered from backup media



I am trying to recover the directories /new and /new1 but it appears that either my syntax is wrong, all three of my backup up tapes are bad, or . . ?

I've cleaned the drive numerous times and tried a different DDS3 drive with same results. I even tried to restore it using the SAM . . . with the same results as above for frecover.

I have tried to list the contents of the tape:

# tar -tvf /dev/rmt/0mn new
# tar -tvf /dev/rmt/0m
Tar: tape read error
# tar -tvf /dev/rmt/0m new
# mt -t /dev/rmt/0mn fsf 1
# mt -t /dev/rmt/0mn fsf 1
fsf 1 failed: I/O error

Any guidance/advice for Sysadmin with little experience in the RISCier field? Thanks in advance.
# 2  
Old 08-11-2008
I have not used fbackup or frecover this century, but what I recall is...

fbackup uses its own format. tar cannot read it. fbackup uses the entire tape. The first item written on a new tape is a very short file called the volume header. This gets updated each tape you reuse the tape with fbackup and so fbackup knows how many times it has written to the tape. If you can't find the header, the tape must be bad or something. 0m is the right device and fbackup always rewinds the tape explicitly before writing. frecover will do an explicit rewind as well. An fbackup tape looks like many files to other programs.. it is not a single file the way a tar archive is. frecover is very fast with DDS tapes.. it somehow uses "group marks" (or something like that) to fast forward to the right data.
# 3  
Old 08-11-2008
put the possibility of bad media aside for a moment

Well, I tried another set of backup tapes with the same results, the "unable to read volume header. . ." Is there a way I can verify what type of backup was used to create these tapes. My manager, whom inherited this server, doesn't remember much about the backup and restoration processes, except that he used the backup.script listed on at least one occasion.

Putting the possibility of bad media aside, how would I go about finding out what's on the tapes. It appears from they are neither tar'd, nor frecover backups. Could they be cpio's or something else? Please pass on the commands that would help me narrow this down.

Thanks
# 4  
Old 08-12-2008
As perderabo mentionned, fbackup has its own routines to speed up things... And so can only be of use with its alter ego command frecover, worse, it can only recover once it has read its index (1rst file on 1rst tape) so my question is more: Are you sure there were only 3 tapes?
Else: >>/usr/sbin/fbackup -f /dev/rmt/0m -g /file.list using a "graph" (If my memory serves me, youre not the only perderabo...) means in /files.list you should find what fbackup should have backed up, I would check if what you are looking for is there...

I have seen sites for HPUX backup using cpio, and even dd....

Could it be you have ignite tapes in your hands?
mos:/home/vbe $ which make_recovery
/opt/ignite/bin/make_recovery
mos:/home/vbe $ uname -r
B.10.20
mos:/home/vbe $
# 5  
Old 08-12-2008
I do have some ignite tapes, but . . .

. . . when I went through with HP tech support, they said it didn't include the directories for which I was looking.

The way I ran ignite was with this syntax:

#cd /opt/ignite/bin
#PATH=$PATH:/opt/ignite/bin
#export path
#make_recovery -A -d /dev/rmt/0mn

It said it had completed successfully. . . I thought I had told it to do a full bootoable backup of all the filesystems. I guess I did something wrong.

Being an extreme novice I wouldn't even know where or how to start filtering through the ignite tape. Most every unix/linux style command I know, I forget the usage because I am so swamped in maintaining a microsoft infrastructure.
# 6  
Old 08-13-2008
-A means entire volume group but that is vg00 only... and it is (or should be) bootable
To test it, you would have to boot from it and interrupt the sequence within the time limit (10sec?) otherwise it would reinstall the system...

If it boots you would know you have the wrong tape and would be in search of the fbackup tapes...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Fbackup to multiple files

I suffered a fault on a tape drive and would like to redirect my fbackup from /dev/rmt/0m to a NFS Share. I have mounted a NFS share in /mnt/NFSShare. When I run the following command: /etc/fbackup -0 -uv -i /backup2/BEM/BEML1 -c /usr/local/scripts/backup/fbackup_config -f... (2 Replies)
Discussion started by: Iceman_Pol
2 Replies

2. HP-UX

Fbackup aborts exactly at 2 GB

i tried to take a backup by using fbackup command. But it exactly aborted after taking backup of 2GB data. pleasse guide me how should i proceed to overcome this problem. The command i used is: fbackup -0 -y -f /dir1 \ -g fbackup_graph \ -c fbackup_config ... (6 Replies)
Discussion started by: siva3492
6 Replies

3. Shell Programming and Scripting

Guidance needed for a typical shell script with sql query

Hi , I have a txt file with contents like: 1234 2345 3456 7891 I need to write a script which takes input file as txt file..run a sql query for that number and place the output of query in another file.. select * from bus_event where acct_nbr='1234'( from input txt file) the query... (20 Replies)
Discussion started by: Rajesh Putnala
20 Replies

4. HP-UX

fbackup problem

Hi, I have a fbackup step as below in HP-UX /bin/nice /etc/fbackup -f /dev/rmt/0m -i / -I /opt/monitrol/tmp/Index.full Now the errors that i will get in case of the fbackup step, I want to redirect them to a file. Please help me how to redirect to a file. Thanks, Avik. (4 Replies)
Discussion started by: avik.nandi
4 Replies

5. HP-UX

Backup Script using fbackup command Help Needed.

Hi Friends, I'm new to unix, I have the below script which takes regular backup. Now if fbackup fails I get the below messages in my log as fbackup(3047): could not open output file /dev/rmt/0m fbackup(3019): would you like to enter a new output file? fbackup(3004): writer aborting... (4 Replies)
Discussion started by: avik.nandi
4 Replies

6. HP-UX

fbackup

Hey guys im trying fbackup, what kind of device should be used for the output. i tried to put the output into a disk that i LVM and to /tmp but it wont work, theres an error saying that its not a valid device for backup. (14 Replies)
Discussion started by: sbn
14 Replies

7. UNIX for Advanced & Expert Users

Guidance needed for quick script

Hi all, I am trying to get the exception count daily from a log file which is more than 1 GB in size. I am using loops which get the count of the exception and transaction. But i need to take this exception count for a time frame from 5.00 am to 5:00 pm. I Think I can use to exact the... (4 Replies)
Discussion started by: senthilkumar_ak
4 Replies

8. Shell Programming and Scripting

A little guidance needed :)

Hi guys, I'm learning the ropes of BASH and am doing a few exercises to see if its sinking in but have gotten stuck on something I KNOW is looking at me right in the face but just isn't registering. I'm creating a script that needs to get specific strings from a line. So using the "ls -l... (9 Replies)
Discussion started by: shadow0001
9 Replies

9. HP-UX

fbackup endind with wraning how to check on a script fbackup is good

Hi, I am writing a script that is doing a fbackup during the night and before it shutdown the database then run the fbackup then at the end before restarted the data base, I would like to check the status that the fbackup is fine but I always have warning (about socket: fbackup(1102): WARNING:... (2 Replies)
Discussion started by: touny
2 Replies

10. HP-UX

Backup using fbackup

Dear All, We have Universe database on HP-UX Servers, when we take back on DDS3 it completes around 48 Gb data on just one tape. As per DDS media specs it can hold upto 24 GB compressed data. How it is managing more than double data..? (3 Replies)
Discussion started by: Kashif Raees
3 Replies
Login or Register to Ask a Question