- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape Rewind/Non-Rewind
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
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
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
тАО08-30-2000 12:46 PM
тАО08-30-2000 12:46 PM
I am playing with backing up several (PROGRESS) databases to tape. Ideally I'd like to backup my databases and then copy UNIX files (programs etc) using fbackup, ftio or something like that.
I seemed to have some of this working using /dev/rmt/0mn, but things are now a mess.
So my questions are...
Can I mix a third party backup format (PROGRESS) with a UNIX format?
If so, I assume that I have to know where I am on the tape, in order to see the contents. (I'd have to use the utility for where I am on the tape). True?
Is /dev/rmt/0mn the same as /dev/rmt/0m, but non-rewinding?
If I use the rewinding, when does the rewind occur? Is it at the start, end or both ends of the operation?
If I use non-rewinding, how can I get the tape to rewind, when everything is done?
I was given "dd if=/dev/rmt/0mn of=/dev/null" as the way to move past each tape "section". Is this correct? Are there alternatives?
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2000 12:57 PM
тАО08-30-2000 12:57 PM
Re: Tape Rewind/Non-Rewind
Take a look at the man pages for 'mt' -- the tape positioning utility. You can rewind, forward space, etc.
See also section-7 of the man pages for general information on tape and tape devices. Do 'man 7 mt'.
Hopefully some of this helps.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2000 01:12 PM
тАО08-30-2000 01:12 PM
Re: Tape Rewind/Non-Rewind
Both omniback and (I beleive) newer versions of veritas netbackup will handle both raw and formatted objects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2000 01:36 PM
тАО08-30-2000 01:36 PM
Solution* Not sure but I would do the Progess backup first and then the Unix backups (providede you can skip over the Progress backup on the tape).
If so, I assume that I have to know where I am on the tape, in order to see the contents. (I'd have to use the utility for where I am on the tape). True?
* You can uses "mt fsf 1" to skip to the next "file" on the tape (or any number you like). If you sequentially do the backups with the no rewind tape device, this shouldn't be an issue.
Is /dev/rmt/0mn the same as /dev/rmt/0m, but non-rewinding?
* Yes
If I use the rewinding, when does the rewind occur?
* After the read/write operation is completed.
If I use non-rewinding, how can I get the tape to rewind, when everything is done?
mt rew
(assuming the tape drive is /dev/rmt/0m). Otherwise:
mt -t /dev/rmt/Xm
where X is the number of your tape drive.
Hope this helps some.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2000 02:07 PM
тАО08-30-2000 02:07 PM
Re: Tape Rewind/Non-Rewind
Beware of fbackup, no matter what device file you use (rewind or non-rewind), it always rewinds the tape and overwrites the whole contents.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2000 02:37 PM
тАО08-30-2000 02:37 PM
Re: Tape Rewind/Non-Rewind
First rule of SysAdmin according to tapes:
Never skimp on tapes by storing multiple backups on the same reel.
Way too many sysadmins have had to spend hours trying to figure out what was stored on a tape and in what format. None of the backup programs recognize each other's formats (well, pax understands tar and cpio but that's all). So trying to see what's on a tape may require 5-10 hours or experimenting. And don't rely on writing on a label. Your operators *will* make a mistake and not record the info correctly.
fbackup's behavior is a good thing! Just like other commercial quality backups, fbackup writes a complete index of all the files selected in the backup set and the same information is recorded onto every reel that follows if the data won't fit on one tape. The advantages are numerous to this behavior:
- All the filenames on the tape are instantly available without having to read the entire tape (required for tar, cpio, dump, pax, ftio, etc).
- The index shows where files are located. On a multireel backup, the last tape's index has the names of all the files and on which tape they are stored.
- The index has high speed access markers that allow the tape to be positioned at very high speed to get close to the file.
- Commercial quality tools allow for multiple tapes to be used in parallel to improve throughput.
Unless your data is not very important, consider carefully the cost of a good backup program. Like insurance, it is purchased just in case... Insurance is usually priced relative to the value of the item being insured.
One last note: ftio is very obsolete. It was designed only for magtapes (1/2 inch reel-to-reel and 1/3 4 inch cartridges).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2000 01:01 AM
тАО08-31-2000 01:01 AM
Re: Tape Rewind/Non-Rewind
Given only the tape, you can extract this file by positioning to the end of tape as follows:-
export TAPE=/dev/rmt/?mnb
'mt fsf 1' in a loop until failure
'mt bsf 3'
'mt fsf 1'
cat $TAPE
Another tip is to always offline your tape after a successful backup run. This will ensure that no other user can overwrite it accidentally. Use 'mt offl'