Re: Rewinding tapeless "tapes": why? error?
2003-07-15 03:11:15
On Mon, Jul 14, 2003 at 08:10:27PM -0700, bao wrote:
> >
> >
> >"00001.server._home.1" is equivalent to one file on a tape.
> >You don't rewind one "tape file", you rewind the entire tape.
> >Your "tapes" are "file1", "file2", ...
> >
> >However, each should have a directory named "data".
> >And the incremental dump file you show above should
> >have been created in that "data" directory.
> >
> >
> Hi Jon,
>
> I thought using those "file*" would help simplify the long and complex
> pathnames. It turned out otherwise.
> I'm sorry for the misunderstanding. Here are the complete and correct
> file names.
>
> 1. "ammt -f /Backup/DailySet1/data/00001.snook._home.1 rewind" gives
> this error
>
> /Backup/DailySet1/data/00001.snook._home.1 rewind failed: Inappropriate
> ioctl for device
>
> 2. "ammt -f file:/Backup/DailySet1/data/00001.snook._home.1 rewind" gives
>
> file:/Backup/DailySet1/data/00001.snook._home.1 rewind failed: Not a
> directory
Still confusion, you are not following the primary part of my comment.
> >"00001.server._home.1" is equivalent to one file on a tape.
> >You don't rewind one "tape file", you rewind the entire tape.
> >Your "tapes" are "file1", "file2", ...
On a real tape drive you specify the tape drive as something like
/dev/nst0 or /dev/rmt/0ln
You don't say the "fourth file on the tape drive". Your "tape drive"
is file:/Backup or file:/Backup/DailySetX. I'm not sure which, but
it certainly is NOT file:/Backup/DailySetX/anything
$ amtape FT current
amtape: scanning current slot in tape-changer rack:
slot 3: date 20030624 label FTape-03
$ ls /w2/FileDrive/FTape-03/data
00000-FTape-03
00000.FTape-03
00001-butch.var1.0
00001.butch.var1.0
00002-TAPEEND
00002.TAPEEND
$ ammt -f file:/w2/FileDrive/FTape-03/data/00001.butch.var1.0 rewind
file:/w2/FileDrive/FTape-03/data/00001.butch.var1.0 rewind failed: Not a
directory
$ ammt -f file:/w2/FileDrive/FTape-03 rewind
<no output, i.e. worked>
$ ammt -f file:/w2/FileDrive rewind
file:/w2/FileDrive rewind failed: I/O error
$ ammt -f file:/w2/FileDrive/FTape-03 status
file:/w2/FileDrive/FTape-03 status: ONLINE
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|