- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- check 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
03-24-2008 07:22 AM
03-24-2008 07:22 AM
I tried:
# dd if=/dev/rmt/0 of=/tmp/datadump
0+0 records in
0+0 records out
Would this be a good generic way to tell if any data is on the tape?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:26 AM
03-24-2008 07:26 AM
Re: check tape
# tar -tvf /dev/rmt/0
Hope that helps.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:32 AM
03-24-2008 07:32 AM
Re: check tape
best way use mt.
#mt /dev/rmt/0m status
OR
#mt -f /dev/rmt/0m status
It should give output like for empty tape.
Drive: QUANTUM DLT8000
Format:
Status: [0]
File: 0
Block: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:34 AM
03-24-2008 07:34 AM
Re: check tape
I have no idea what format the tape was written in.
And I believe: if the tape used a compressed format to backup data on this tape, then DD would not recognize the data.
Can any experts backup my theory on this?
Isnt there a generic way of saying, show me anything on this tape?
Or
do I need more clues? tape drive model used, block size..etc....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:36 AM
03-24-2008 07:36 AM
Re: check tape
I tried this but thought that if the data was compressed on the tape that this would still show as zero blocks? Am I correct in assuming this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:37 AM
03-24-2008 07:37 AM
Re: check tape
# mt -f /dev/rmt/0m status
Seagate DAT Drive tape drive:
sense key(0x13)= EOT residual= 0 retries= 0
file no= 0 block no= 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:46 AM
03-24-2008 07:46 AM
Re: check tape
#mt status /dev/rmt/0m
Drive: HP C1537A
Format: DDS-3 format
Status: [41112500] BOT online compression immediate-report-mode
It was output for tape used in ignite backup which hanged in between.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 09:47 AM
03-24-2008 09:47 AM
Re: check tape
Try putting some data on another tape and then use dd to retrieve. At least this would show what a tape with something vs a tape with nothing would look like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 07:47 PM
03-24-2008 07:47 PM
Solution> # dd if=/dev/rmt/0 of=/tmp/datadump
> 0+0 records in
> 0+0 records out
This indicates that the first record on the tape is an end-of-file mark. There may be more files following this mark, so you first need to use the Berkeley device file for proper positioning of the tape (see man mt). Use the command: lssf /dev/rmt/*
# mt -f /dev/rmt/0mnb rewind
# mt -f /dev/rmt/0mnb fsf 1
# dd if=/dev/rmt/0mnb | xd -xc | more
If this produces some data records, the tape format may be difficult to identify. Some obscure system write a zero-length file at the front of a tape, followed by a proprietary backup format.
If this dd produces an EOT (end of tape) message, there is nothing on the tape at all -- despite what the label or owner say. Most modern tape drives will mark the end-of-tape following the last data written before a rewind. Someone may have written a null file to the tape and then popped it out. Any data previously on the tape can never be read again (except by an expensive data recovery company).
Bill Hassell, sysadmin