On Tue, Nov 29, 2005 at 08:16:54AM -0800, Yan Seiner wrote:
> >
> >
> OK, that's what my man page says too.... status returns
>
> [root@tooth yan]# mt -f /dev/nst0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 1024 bytes. Density code 0x80 (DLT 15GB uncomp. or Ecrix).
Hmmm, can your ?vxa?tools set a block size?
Amanda generally writes 32K blocks.
> So it looks like I can get the tape status that way.... Status returns
> a '0' even if the tape is not loaded, though.
I guess you could parse the output or maybe try "rewind" or stick
with your "load" command to generate a usable exit status.
--
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)
|