- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restore /usr with an ignite-ux tape
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
Discussions
Discussions
Forums
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
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
тАО09-21-2004 01:56 AM
тАО09-21-2004 01:56 AM
restore /usr with an ignite-ux tape
I have a big problem. I delete all the /usr of my system with the command "rm *" and i would like to restore it with a ignite-ux tape (because i have deleted only this FS).
How i do this??
I've boot from the tape and try to use the "HP-UX installation process" and select the "Run a Recovery Shell" but i am stop at this step.
Can you help me please, it's emergency!
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 02:02 AM
тАО09-21-2004 02:02 AM
Re: restore /usr with an ignite-ux tape
I do not think you can only recover /usr though. You would need to do a "mt -t /dev/rmt/0mn fsf 1", however, the mt command resides under /usr/bin (there is a staticly linked tar in /sbin though (which would be needed also). I think you will have to go through with the entire recovery process. Once that is done you can restore newer files if necessary from your normal full backups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 02:04 AM
тАО09-21-2004 02:04 AM
Re: restore /usr with an ignite-ux tape
Just a thought: If the recovery shell has the mt command availabel, try:
# cd /
# mount /usr
# mt -t /dev/rmt/0mn fsf 1
# tar xvf /dev/rmt/0mn usr
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 02:08 AM
тАО09-21-2004 02:08 AM
Re: restore /usr with an ignite-ux tape
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 02:16 AM
тАО09-21-2004 02:16 AM
Re: restore /usr with an ignite-ux tape
Its best to boot off the tape and do the restore. You can try and extract /usr off the tape but certain things like links may not restore properly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 02:33 AM
тАО09-21-2004 02:33 AM
Re: restore /usr with an ignite-ux tape
If the system has not been rebooted, you can try to recover using the ignite tape using these commands.
cd /
mt fsf 1
/sbin/tar xvf /dev/rmt/0mn usr
mt rew
The device used with the tar command is the no-reqind device.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 03:17 AM
тАО09-21-2004 03:17 AM
Re: restore /usr with an ignite-ux tape
Take a look at this thread,
http://www1.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=ozbekbrc00000581&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty
The itrc doc id is OZBEKBRC00000581
You have to boot through the ignite tape, activate root vg, chroot, mount usr and then do the restore.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 04:25 AM
тАО09-21-2004 04:25 AM
Re: restore /usr with an ignite-ux tape
- if you have another, similar machine you do not care about, restore it with your tape, then copy /usr from this machine to yours.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2004 02:09 PM
тАО09-21-2004 02:09 PM
Re: restore /usr with an ignite-ux tape
Normally "rm *" isn't enough..
You must have used "rm -r *"
If /usr/sbin /usr/lbin is available it
might be that you're able to use ftp or r-commands from another machine into this one... (if you have another machine available ;-).
This would help you dramatically.
Otherwise...
As mentioned you can read the ignite tape as a tar backup:
- if you skip the boot-record(lif)
- by using the mt fsf command
- and using a no-rewind device
If you want to restore to a directory other than the original location you must use the pax command instead of tar.
With pax you can substitute the /usr with f.ex. /new_usr
.... but to have access to these commands whicha are located in /usr/... you're likely to first of all boot the machine from the ignite tape as Sanjay already stated.
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2004 01:48 AM
тАО09-22-2004 01:48 AM
Re: restore /usr with an ignite-ux tape
I have tryed to load the command via loadfile (loadfile mount) but the command is already not found.
I think that i can load it with a tape countaining the exec command mount, so i did it but it doesn't work. I have used the tar and pax commands to do this.
Do you have idea ??