- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I check the contents list on 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
05-21-2001 12:05 AM
05-21-2001 12:05 AM
All your input would be appreciated.
After my done the make_recovery -Av -d /dev/rmt/0m. And then now, I feel that I wanted to check the contents list of that tape. What are the HPUX command should be apply.
I want to view the content list of that tape NOT extract the archive file back to system.
I known, mt -t /dev/rmt/ fsf 1 doest hlep much.
I used tar -tvf /dev/rmt/0m that given error was Block size =4. What does it means?
Please help. Thank you in advance to all of your.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 12:12 AM
05-21-2001 12:12 AM
Re: How do I check the contents list on tape?
#tar tv (default is the DDS)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 12:42 AM
05-21-2001 12:42 AM
Re: How do I check the contents list on tape?
tar -tvbf 4 /dev/rmt/0m.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 04:38 AM
05-21-2001 04:38 AM
Re: How do I check the contents list on tape?
It creates the system status file /var/opt/ignite/recovery/makerec.last.
This file reflects the current state of the system and contains the names and dates of the last modification on the tape.
This is also useful when the user plans to use "check_recovery" to determine if the system has been changed such that the system recovery tape needs to be created.
For instance,
# make_recovery -A -C -d /dev/rmt/0mn
# check_recovey
( check_recovery has no options. )
Hope this helps,
In-su,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 07:23 AM
05-21-2001 07:23 AM
Re: How do I check the contents list on tape?
You can check the tape contents with the pax command:
#pax -vf
Its necessary use the option "n" in device address for e.g ; /dev/rmt/0mn.
Execute pax command twice, in the first time you receive a message, ok continue then, in the second time you are receive the content from tape.
For use pax command its necessary the patch installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 10:19 PM
05-21-2001 10:19 PM
Re: How do I check the contents list on tape?
But I still need you help to complete my desire. What I want is, after I had done the make_recovery -Av -d /dev/rmt/0m. How to I check the content list of that tape.
I tried to issue a command tar -tvbf 4 /dev/rmt/0m. It given error like "directory checksum error"
And I tried to issue a command pax -vf /dev/rmt/0m/ also given an error like " This doesn't look like a tar archive skipping to the next file"
How to chack the content list of that tape that I had done make_recovery -Av -d /dev/rmt/0m
Thank you for all of yours input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 10:45 PM
05-21-2001 10:45 PM
Re: How do I check the contents list on tape?
This is the way that I verified and you have to use "no rewind option" when you create bootable tape.
# make_recovery -A -v -d /dev/rmt/0mn
# mt -t /dev/rmt/1mn rew
# mt -t /dev/rmt/1mn fsf 1
( Noice that "1mn" is always used in every case )
# tar tvf /dev/rmt/1m
Good lunk!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2001 11:11 PM
05-21-2001 11:11 PM
Re: How do I check the contents list on tape?
dd if=/dev/rmt/0mn of=/tmp/tape.1 bs=2k count=100 #extract few blocks of LIF AREA
dd if=/dev/rmt/0mn of=/tmp/tape.1 bs=10k count=100 # extract few blocks of DATA
file /tmp/tape.1 /tmp/tape.2 # see what type of file
lifls /tmp/tape.1 # LIF AREA IS NOT COMPLETE,
uncompress /tmp/tape.2 | tar tvf - # IRW data is tar'd and compressed.
Now try from tape directly.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 06:05 PM
05-22-2001 06:05 PM
Re: How do I check the contents list on tape?
I have a bit confuse about your said for the /dev/rmt/0mn, /dev/rmt/1mn and /dev/rmt/0m. What are the differences between them.
But I know that I always to used /dev/rmt/0m and not others name. Please clarify. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 06:29 PM
05-22-2001 06:29 PM
SolutionThe numbers in the device file are the tape drive instances. If you have multiple devices on your system, then 1 will be numbered 0m, the next will be 1m and so on.
In your case, it looks like you are using the 0 device, so you should be using the /dev/rmt/0mn device file.
Once your make_recovery tape has been created, do the following:
mt -t /dev/rmt/0mn rew ------ This rewinds the tape.
mt -t /dev/rmt/0mn fsf 1 ------ This fast forward past to boot area on the tape
tar -tvf /dev/rmt/0mn ------- This will show you what has been written to the tape. If you want the output to go to a file you can do 'tar -tvf /dev/rmt/0mn > /tmp/make_recovery_contents'
I would not use the -C option to make_recovery as someone suggested as it is scheduled to go away in a future release, at least that is what I have heard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 05:33 PM
05-23-2001 05:33 PM
Re: How do I check the contents list on tape?
**************************************
Hi guy,
About your text , its necessary execute:
#pax -vf /dev/rmt/0mn .
Once you receive the same message: This doesn't look like a tar archive skipping to the next file.
and twice you can see the tape contents.
Good Luck,
Valkiria