- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What server does this tape belong to??
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
тАО10-09-2002 08:01 AM
тАО10-09-2002 08:01 AM
I have a tape here with no label =(
How do I find out who it belongs to??
I did
# mt -t /dev/rmt/0mn fsf 1
# tar -tvf /dev/rmt/0m
and it has data on there .. but what host does it belong to and what date was it created ?
Thanks
~ Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 08:11 AM
тАО10-09-2002 08:11 AM
Re: What server does this tape belong to??
If it is the OS, perhaps /etc/rc.config.d/netconf? That will provide the IP Address.
The Structure backed up should also identify what server it came from of it is a database backup (most databases include a unique identifier in their path name).
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 08:14 AM
тАО10-09-2002 08:14 AM
Re: What server does this tape belong to??
I thought about pulling one fill from there.
But is there a way to pull one file and redirect it to another directory?
Because I dont want to over write anything on the system.
~ Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 08:39 AM
тАО10-09-2002 08:39 AM
Re: What server does this tape belong to??
if the tar-archive shows absolute pathnames, do not restore with tar, because you will overwrite, that is correct.
I remember a thread, where someone had a solution to read and redirect such an archive by using pax.
But I do not remember when that was.
A search for pax might be helpfull.
No points for this one.
(Because it is barely a solution :-)
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 08:49 AM
тАО10-09-2002 08:49 AM
SolutionTo get the date the tape was created you can do the following:
# mt rew
# dd if=/dev/rmt/0m of=/tmp/tapelif bs=2048 count=10
# lifls -l /tmp/tapelif
the lifls command will show a number of lines like:
HPUX -12928 312 880 0 02/07/05 18:02:26
the date is in yy/mm/dd format so this tape was created on July 5th, 2002
--
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 08:54 AM
тАО10-09-2002 08:54 AM
Re: What server does this tape belong to??
Say you have a "absolute" tar archive and you want to restore all files in /etc/rc.config.d but put them in /tmp/dirA, thus not overwritting what's already in /etc/rc.config.d. This is what you would do.. I have tested this before and it works for me ..
# cd /tmp/dirA
# pax -r -s ',^/etc/rc.config.d/,,' -f /dev/rmt/0m -t
It's kindda like replacement string in the pax command. The above will put all files in /etc/rc.config.d (example: netconf, nfsconf, ...) in /tmp/dirA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 08:55 AM
тАО10-09-2002 08:55 AM
Re: What server does this tape belong to??
If the tape was written with absolute paths, then use 'pax' to substitute a different directory to receive a file for inspection:
The substitution syntax is: '-s/old/new/' and any nonnull character can be used as a delimiter.
# pax -r -p e -s '/\/olddir\//\/newdir\//'g -f /dev/rmt/0m
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 09:00 AM
тАО10-09-2002 09:00 AM
Re: What server does this tape belong to??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2002 12:36 PM
тАО10-09-2002 12:36 PM
Re: What server does this tape belong to??
since you treat it like "make_tape_recovery" tape, the information you ask for is just within the block you skip over...
HTH,
Wodisch