Operating System - HP-UX
1833758 Members
2434 Online
110063 Solutions
New Discussion

Recovering /bin /usr/sbin etc

 
Massimo_37
Frequent Advisor

Recovering /bin /usr/sbin etc

We recently recovered our new server running HPux 10.2 using an Ignite make_recovery_tape. Though it has put back the OS files, direcories such as /bin /usr/sbin are missing. Hence we am unable to use commands like vi etc. We have another machine running HP ux 10.2 and have full backups(fbackup) from them. Would it be possible to frecover from those tapes. Is there any other way to get these important files like sam, vi etc.. Any suggestions would be extremely helpful Many Thanks
2 REPLIES 2
Robert-Jan Goossens
Honored Contributor

Re: Recovering /bin /usr/sbin etc

Hi,

Could you load the ignite tape and list the files on that tape to a file ?

Check if /usr/sbin is on the tape if so restore it with tar from tape.

/bin is a link to /usr/bin

# mt -f /dev/rmt/?mn rew
# mt -f /dev/rmt/?mn fsf 1
# tar -tvf /dev/rmt/?mn >>/tmp/ignite_log

Hope this helps,
Robert-Jan
Patrick Wallek
Honored Contributor

Re: Recovering /bin /usr/sbin etc

What command did you use to create the tape?

/bin is merely a link to /usr/bin, but if /usr/bin/ isn't there then you are pretty much sunk. If both machines were patched equivalently you migh be able to restore. Check the /sbin directory for the frecover command.

I would check the tape to see precisely what is on it.

# mt -t /dev/rmt/?mn rew
# mt -t /dev/rmt/?mn fsf 1
# tar -tvf /dev/rmt/?mn > /var/tmp/ignite_index

This will generate a file with the entire contents of the tar backup of the Ignite tape. /usr SHOULD be there. If it's not then the tape did not get created successfully. What type of tape drive was used? Was this done with a cron job? If so, it is possible that the make_tape_recovery process needed a 2nd tape to complete, but since it was run via cron, you never knew. I ran into that problem once. I make sure I check everything now.