Re: onlog -d [device] gives "bad tape: tape format not recognized"
Posted in 2004
TheBiggestPotatoeYouHaveEverSeen <TBP@Nospam.Nothere.Co.Uk> wrote in message news:<0F5Sb.13066$JL4.106295@newsfep4-glfd.server.ntli.net>...
> Jonathan Leffler wrote:
> > ron wuthrich wrote:
> >
> >> Am trying to use the informix onlog utility to read log files from a
> >> tape.
> >> I've tried different approaches, but here's a typical:
> >>
> >> ism_op -unmount /dev/rmt/0cbn #to unmount
> >> mt -f /dev/rmt/0cbn rewind # to rewind
> >> onlog -d /dev/rmt/0cbn # to read tape> >>
> >> onlog prompts to mount the tape, then gives the error listed in the
> >> subject. informix storage manager and onbar logs both indicate
> >> successful writes to the tape for the logical logs, so I believe it is
> >> being written to ok. using onbar to create logs. working in informix
> >> 7.34 dynamic server on solaris intel. tape device agrees with the
> >> LTAPEDEV parameter in onconfig. LTAPEBLK set to 1024.
> >
> >
> >
> > Is that a non-rewind device? Bad idea...Informix programs open the
> > device, read the first block, close it (expecting it to rewind), reopen
> > it and complain when they don't get the same data again. That's why
> > you're told to use a rewind device.
> >
> > OK - actually, I don't know that this is your problem. Nevertheless, it
> > could be.
> >
> >
> It is true that having TAPEDEV and / or LTAPEDEV set to a on-rewind
> device can cause issues.
>
> However, ism requires the devices to be non-rewind and that is probably
> why you went that route.
>
> Still, reading the logs backed up using onbar is ... apparently a
> feature request ;)) Call support and quote Bug 115798, they should be
> able to tell you how to do it.
Yes, we were compelled to use a no-rewind device. I believe I have
located someone in the outfit here with informix support access... we
will refer to your bug# and see what happens. Thanks