- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to list file(s) / directory of 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
07-24-2007 07:48 PM
07-24-2007 07:48 PM
How to list file(s) / directory of tape.
I have questions.
1. How to list file(s) / directory of tape, i donot want to restore to HDD.
When i use the command as
# frecover -f /dev/rmt/2m -i /dba -N
Then i got error message.
2. How i know that tape cartridge is inserted or not in the tape drive.With
# ioscan -fnC tape
tape 2 24.3.0 tape2 CLAIMED DEVICE Quantum DLT4000
/dev/diag/rmt/c6t3d0 /dev/rmt/c6t3d0BEST
/dev/rmt/2m /dev/rmt/c6t3d0BESTb
/dev/rmt/2mb /dev/rmt/c6t3d0BESTn
/dev/rmt/2mn /dev/rmt/c6t3d0BESTnb
/dev/rmt/2mnb
Regards,
Viswanadhan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 07:56 PM
07-24-2007 07:56 PM
Re: How to list file(s) / directory of tape.
You can use (tapename is one of yours above:
$ mt -f tapename status
I guess this means no tape?
Drive: HP C1533A
Format:
Status: [0]
File: 0
Block: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 08:02 PM
07-24-2007 08:02 PM
Re: How to list file(s) / directory of tape.
1) if your tape is a fbackup tape you can read the index file from the last tape with the -I option
2) "mt -t device status" with give the answer on HP-UX 11 (option not available on HP-UX 10)
example:
no tape:
Drive: HP C1533A
Format:
Status: [0]
File: 0
Block: 0
with tape:
Drive: HP C1537A
Format: DDS-2 format
Status: [41112400] BOT online compression immediate-report-mode
File: 0
Block: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 08:43 PM
07-24-2007 08:43 PM
Re: How to list file(s) / directory of tape.
I tried i like this
# mt -t /dev/rmt/2m status
mt: unknown command "status"
or
# mt -f /dev/rmt/2m status
mt: unknown command "status"
# which mt
/usr/bin/mt
Regards,
Viswanadhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:00 PM
07-24-2007 09:00 PM
Re: How to list file(s) / directory of tape.
you can try to access the tape by rewinding it (mt -t device rew) and check teh return code. But this could be problematic if your tape is positioned to the end of data or elsewhere.
The returncode if 0 if the rewind was successfull oder 1 if not (which can be interpreted as "no tape")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:04 PM
07-24-2007 09:04 PM
Re: How to list file(s) / directory of tape.
# uname -a
HP-UX Server B.11.00 E 9000/887 486398211 8-user license
Server is very old.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:12 PM
07-24-2007 09:12 PM
Re: How to list file(s) / directory of tape.
# frecover -f /dev/rmt/2m -v -N -i /dba
Prasanth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:12 PM
07-24-2007 09:12 PM
Re: How to list file(s) / directory of tape.
you should check your patch level. Even HP-UX11.00 have the "status" option for mt if you have the latest patch bundle installed.
Is this a standalone DLT drive or a drive from a library?
If it is a library you may use the mc command to determine if a tape is in the drive or not.
"mc -p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:17 PM
07-24-2007 09:17 PM
Re: How to list file(s) / directory of tape.
frecover -xNvf device 2 > index
to show the files on a non-HP format cartridge tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 09:34 PM
07-24-2007 09:34 PM
Re: How to list file(s) / directory of tape.
Thanks for help.
Im happy like this
# frecover -xNvf /dev/rmt/2m |pg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 10:11 PM
07-24-2007 10:11 PM
Re: How to list file(s) / directory of tape.
Regards,
Viswanadhan.