- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extracting just /var from 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
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
12-06-2005 06:45 AM
12-06-2005 06:45 AM
The system that I have been asked to recover is HP-UX 11.0. A disk in vg00 was lost that contained /var. The fbackups that were done only go thru /var/adm/sw/... on tape 1, but there are no tape 2's. The is an ignite tape that I would hope has /var on it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:52 AM
12-06-2005 06:52 AM
Re: Extracting just /var from an Ignite/UX tape
This will work:
# mt -t /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m "dirs_to_recover"
Note the no-rewind device for the tape positioning.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:54 AM
12-06-2005 06:54 AM
Solution# tar -xvf /dev/rmt/?mn var
Be sure you are in the / directory when you do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:54 AM
12-06-2005 06:54 AM
Re: Extracting just /var from an Ignite/UX tape
# mt -t /dev/rmt/devname fsf 1 : This command moves the tape forward
# tar -xvf /dev/rmt/devname filename/directory : use the regular tar command
-USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 06:59 AM
12-06-2005 06:59 AM
Re: Extracting just /var from an Ignite/UX tape
mt -f /dev/rmt/0m rew
mt -f /dev/rmt/0mn fsf 1 # space between fsf # and 1?
tar -xvf /dev/rmt/0m /var
I notice you used mt -t, which I think is just an old version of mt -f, true?
Many thanks.
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:08 AM
12-06-2005 07:08 AM
Re: Extracting just /var from an Ignite/UX tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:27 AM
12-06-2005 07:27 AM
Re: Extracting just /var from an Ignite/UX tape
Yes the '-t' switch to 'mt' is the deprecated variation of '-f'. The 10.20 manpages use '-t' the 11i manpages show both.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:51 AM
12-06-2005 07:51 AM
Re: Extracting just /var from an Ignite/UX tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 08:00 AM
12-06-2005 08:00 AM
Re: Extracting just /var from an Ignite/UX tape
I wouldn't expect 'tar' to be terribly rigorous in its switch and argument checking. The 't' "function key" in 'tar' lists the archive's contents in total. Clearly, the file (directory) argument is ignored and 'tar' doesn't complain. The man page synopsis is vague about whether you would expect this to be a usage error or not.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 10:22 AM
12-06-2005 10:22 AM
Re: Extracting just /var from an Ignite/UX tape
"tar -xvf /dev/rmt/0m var" did extract the var files as I had desired, but even though I was in /, it put them in /root, so I have /root/var, which naturally filled / quickly. I am trying again, this time with $HOME equal to / rather than /root. I have not seen the -C option to tar used with an extract. Anyone know if, "tar -xv var -C /" would do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 10:31 AM
12-06-2005 10:31 AM
Re: Extracting just /var from an Ignite/UX tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 01:55 PM
12-06-2005 01:55 PM