- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ignite-UX. Reading tape headers without bootin...
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
тАО01-31-2005 06:37 AM
тАО01-31-2005 06:37 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2005 06:41 AM
тАО01-31-2005 06:41 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
It's a tar format. You simply have to forward space past the boot header (mt fsf 1) and then you can read it with tar. If you store a file somewhere in the root volume that identifies the host, you can then read that file and no which host you've got.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2005 07:27 AM
тАО01-31-2005 07:27 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2005 11:46 PM
тАО01-31-2005 11:46 PM
Re: Ignite-UX. Reading tape headers without booting from tape?
you can try :
#cat < /dev/rmt/Xm | xd -tc | head -10
it gives some info form the header of tape
i hope it's useful .
BR's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 01:55 AM
тАО02-01-2005 01:55 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
cat < /dev/rmt/0m | xd -tc | head -xxxx
command and incremented the xxxx higher and higher, but couldn't find the system hostname in there. I even tried adding a "grep -i aad06" (aad06 = hostname) in there to no avail.
I'm assuming that since the system boots from the tape and it takes a long time to eventually reach the IgniteUX welcome banner displaying the hostname, that the information I'm looking for might not be in the header of the tape but somewhere deep in there.
I'm not too saavy at this sorta stuff so I'm pretty much stuck by incrementing the xxxx and trying again. I appreciate the help/tips though...If there's anything else I can try I will. Thanks again!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 02:05 AM
тАО02-01-2005 02:05 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
# mt -f /dev/rmt/0m rew
# dd if=/dev/rmt/0m of=/foo/LIF bs=2k
# lifcp /foo/LIF:INSTALLFS /foo/FS
# dd if=/foo/FS of=/foo/First8k bs=8k count=1
# grep "sysadm_message" First8k
You can then erase LIF, FS and First8k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 02:09 AM
тАО02-01-2005 02:09 AM
Solution# grep "sysadm_message" /foo/First8k
The advantage is that you can script this (if there are a lot of tapes to check), the only human intervention required is to load/unload the tape(s). The disadvantage is that you need around 80MBytes of spare disk space. You don't need to interrupt the process (unlike tarring a file off the tape) and the tape will be rewound at the end. It doesn't take too long to copy the LIF off the tape either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 04:04 AM
тАО02-01-2005 04:04 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
Restore is relative
# cd tmp
# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0mn
#tar xvf /dev/rmt/0mn /etc/rc.config.d/netconf
Regards
Rene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 04:14 AM
тАО02-01-2005 04:14 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
Restore is relative
# cd tmp
# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0mn
#tar xvf /dev/rmt/0mn etc/rc.config.d/netconf
Regards
Rene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2005 04:16 AM
тАО02-01-2005 04:16 AM
Re: Ignite-UX. Reading tape headers without booting from tape?
Another way of doing it is to untar any file that contains hostname information. Suppose syslog.log. You can untar this file with the procedure given above from the tape and can find out for which server this backup was as there is a local hostname entry in each line of syslog.log.
HTH,
Devender