- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lost /opt
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 11:58 AM
04-26-2002 11:58 AM
Is it possible to restore /opt directory from the make_recovery tape..? If yes How..?
OS :HP_UX 11.00
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:07 PM
04-26-2002 12:07 PM
Re: lost /opt
Yes ! /opt is part of the vg00 and if you have used the -A option while using the make_recovery, then you can restore the full vg00. Boot the system, interrupt it and specify boot path of the tape drive. It will recreate the vg00.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:11 PM
04-26-2002 12:11 PM
Re: lost /opt
mt -t /dev/rmt/0mn fsf 1
tar -tvf /dev/rmt/0mn
and see if many files show up under /opt, if they do, then you can restore /opt:
mt -t /dev/rmt/0mn fsf 1
tar -xvf /dev/rmt/0mn /opt
then shutdown and reboot.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:13 PM
04-26-2002 12:13 PM
SolutionQuote
The make_recovery creates a lif area and a tar archive on each tape; this tar archive does not include the leading / of the files and directories. To recover individual files fast forward past the lif area and then use tar to extract what you want as in the following example:
# cd /
# mt -f /dev/rmt/0mn fsf 1
==> Use norewind device file with mt so that tar will start just after the lif area
# tar xvf /dev/rmt/0m opt
==> Don't use leading / .
Unquote
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:13 PM
04-26-2002 12:13 PM
Re: lost /opt
If you have full backup of vg00 file systems, you can restore it from backup.
Through make_recovery also you can restore the /opt file system provided as shiju suggeste you used -A option (if you are running make_recovery) OR -x inc_)entire=vg00 option in case of make_tape_recovery.
I will suggest before doing so, please take a full back of vg00. This is to be on safer side in case your ignite tape will not work properly.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:14 PM
04-26-2002 12:14 PM
Re: lost /opt
I tried booting from tape drive but every it selects my alt boot disk instead tape drive.
I Tried BO AL 0/0/1/0.1 (which is path for Tape drive) ( I got this from sea )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:17 PM
04-26-2002 12:17 PM
Re: lost /opt
Try to use P1 P2 ....option while booting from tape.
I mean use
BOOT_ADMIN>bo Px where x is the number of your tape drive ( P1. P2 ....etc....)
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:20 PM
04-26-2002 12:20 PM
Re: lost /opt
SK Chan has the syntax correct, follow it and save yourself some time. But after the restore, you should reboot.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:22 PM
04-26-2002 12:22 PM
Re: lost /opt
Do this:
1) Interrupt the boot process
2) Give "search" command
3) find path of tape drive OR search path (Px)
4) give " bo 4/4/12.0" OR "bo P1" ( according to the search results)
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:22 PM
04-26-2002 12:22 PM
Re: lost /opt
I tried also with selecting p0 insted of full path while booting but no success. I don't know why it is selecting my alt boot disk.
I've selected -A while running make_recovery.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:23 PM
04-26-2002 12:23 PM
Re: lost /opt
After you interrupt the boot process, type
sea ipl
Which will search your system for devices with bootable media. Look for the one with the description Sequntisl access media and use the P#
bo P#
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:26 PM
04-26-2002 12:26 PM
Re: lost /opt
I didn't think you could use a 'tar' command on a make_recovery. As I understand it, make_recovery uses fbackup (an HP specific format). Is it possible to combined the commands of the tar format?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:28 PM
04-26-2002 12:28 PM
Re: lost /opt
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:45 PM
04-26-2002 12:45 PM
Re: lost /opt
I was trying to reduce /opt and increase /var, since I want to use this server act as server fot make_net_recovery client.
I did a mistake doing lvreduce first before I execute fsadm! It corrucpted the file system.
Now, Is it possible to run fsadm command while /opt mounted..??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:45 PM
04-26-2002 12:45 PM
Re: lost /opt
The reason why it picks up the alternate path is - because you specified 'bo al'. You need to specify only 'bo' and the path.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:48 PM
04-26-2002 12:48 PM
Re: lost /opt
To increase
1) lvextend
2) fsadm
To reduce
1) fsadm
2) lvreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:53 PM
04-26-2002 12:53 PM
Re: lost /opt
The answer is it depends ! This specific on the file system type( online JFS, hfs etc) which /opt uses. If you have onlineJFS, then you can do that
# man fsadm_FStype - for details
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 12:59 PM
04-26-2002 12:59 PM
Re: lost /opt
A make_recovery tape has a LIF are as the first part of the tape (boot sector), then it has a TAR like backup called "pax". "pax" has two options, tar and cpio. The make_recovery process uses the "tar" backup option. The reason make_recovery uses "pax" is so that it can recover the vg00 files without having to have all the crap that frecover uses - pax has a smaller "footprint" and is very very efficent.
live free or die
harry