- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Read/write from external tape drive
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
04-10-2003 02:12 AM
04-10-2003 02:12 AM
I'm planning to installed an external DDS 2gb scsi tape drive on my B180L controller but I do not know how to do the following in shell mode ;
1 ) view/read the contents of a tape in the
drive
2 ) write to the tape
3 ) copy the files in the tape to hardisk
I do know the that the device file is /dev/rmt/1m , just don't know the commands
thanks a lot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 02:20 AM
04-10-2003 02:20 AM
Re: Read/write from external tape drive
# mt -t /dev/rmt/0m
The other guys have mentioned what to look for initally.
We can help more if we know format you wish to use ...
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 02:21 AM
04-10-2003 02:21 AM
Solution1) tar tvf /dev/rmt/0m (or it may be a different Xm device file, use> ioscan -fknCtape to id which /dev/rmt file its using)
This will display the contents of the tape ONLY if it is in tar format. It could be in lots of different formats! fbackup, Omniback, Netbackup, Networker, dd, cpio etc etc.
2) to write to the tape; tar cvf /dev/rmt/0m
Again, the 0m may be different. Use ioscan to id which one your tape drive is using.
3) To extract the files off tape it depends again what format the tape is in - it could be tons of different formats. Lets hope its in tar format, to extract it;
cd
tar xvf /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:20 AM
04-11-2003 01:20 AM
Re: Read/write from external tape drive
you can use three commands to read/write to/from tape : tar, cpio, dd
tar is the most popular command but is not so fast as cpio. dd will mostly used if u want write raw data to tape. See the man pages from these commands. Espacially the EXAMPLES section.
Write to tape with tar:
tar -cvf /dev/rmt/0m /tmp/blub.txt
Read from tape with tar:
tar -xvf /dev/rmt/0m .
(Write content from tape to current directory)
Read content from tape without writing to disc:
tar -tvf /dev/rmt/0m
Keep in mind if u use the device file /dev/rmt/0m the tape will always be rewinded after the command has finished.
ie
If you write to tape with.
tar -cvf /dev/rmt/0m /tmp/blub.txt
blub.txt is on the tape. What's now if you want one more file on the tape?
If you do someting like this
tar -cvf /dev/rmt/0m /tmp/blub.txt2
your first file will be overwritten. What can you do now ? Use another device file which will not rewind the tape (/dev/rmt/0mn) after completion of command. Do "ioscan -funCtape" and all device file will be listed for the DDS drive. If you want more information what all these device file mean - do "man 7 mt".
But you can also do
tar -uvf /dev/rmt/0m /tmp/blub.txt2
The option -u will append file to an existing archive. See man page of tar.
Another important thing you should always do is to label the DDS-Tape always with the command you have used to write to. Because then you now how you have read the data, if you need it.
Do some practice with a new tape with all these three commands to get more experince with archiving on tape.
Regards
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:25 AM
04-11-2003 01:25 AM
Re: Read/write from external tape drive
Jamie was a question I answered before.
Roland
PS: Do not assign points to that.