- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tape drives
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
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
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-18-2003 12:23 PM
тАО03-18-2003 12:23 PM
tape drives
How do you position the tape at the end of data? I've done "mt -f /dev/rmt/0mn rew" and that seems to work. And then I did "mt -f /dev/rmt/Omn eod" but, I'm not positve that it worked. How do I know for sure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 12:29 PM
тАО03-18-2003 12:29 PM
Re: tape drives
mt eod
for the default device, /dev/rmt/0mn, is the correct command for QIC & DDS tape drives.
I haven't tested this but you might try to move a filespace forward
mt fsf 1
You *should* get an error as there should be nothing forward.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 12:34 PM
тАО03-18-2003 12:34 PM
Re: tape drives
You could also use fsf to position the tape past the 1st archive.
mt -f /dev/rmt/0mn fsf 1
What's on your tape and what goal do you need to accomplish?
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 12:37 PM
тАО03-18-2003 12:37 PM
Re: tape drives
The eod command will set the tape to the end of data mark.
Now, it is critical to gain some understanding that with a no rewind device, some of the commands from mt pertain only to the current volume.
I.E.
tar cvf /dev/rmt/0mn /etc
#made volume 1
tar cvf /dev/rmt/0mn /usr
#made volume 2
tar cvf /dev/rmt/0mn /opt
#made volume 3
mt -t /dev/rmt/0mn rew
#rewinds full tape
mt -t /dev/rmt/omn eod
# positions tape at beginning of volume 2
Since there is no way to track the absolute end of tape (in Solaris there is an eom arg for mt which will go to the end of media mark), you must know how many volumes are on the tape to be effective, or use a loop on the no rewind device with the eod command to find the end of tape.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 12:40 PM
тАО03-18-2003 12:40 PM
Re: tape drives
What I'm trying to do is write more files onto the tape at the end of the current data.
Thanks for your help, gentlemen.
Lisa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 03:03 PM
тАО03-18-2003 03:03 PM
Re: tape drives
But for modern DDS and DLT drives, the firmware makes it impossible despool the tape by running off the end of the reel. So the EOD command is the correct method to reach the end of the data. DDS and DLT drives write a special code that cannot be bypassed once a tape is finished writing and closed by HP-UX.
To verify that mt eod works, write a series of short files on the tape (content and length unimportant) then write a unique file that you'll recognize (ASCII would be useful). Rewind the tape and reposition to EOD. Then use mt bsr 10 to backup 10 records and cat the tape. You should see the end of the last file.
BTW: Appending data to the end of other files is pretty risky. Many sysadmins are sorry that they lost or overlaid valuable backups while trying to save a little money on tapes.
Bill Hassell, sysadmin