On Sat, Nov 16, 2002 at 09:06:50PM -0500, JP wrote:
> 
> Hi,
> 
> I just install Amanda for the first time and now i want to label my
> first tape.
> 
> I've put a tape in the drive and check the status. It's online and BOT i
> guess is for Beginning Of Tape !?
> 
> [root@lux2 log]# mt -f /dev/st0 status
> SCSI 2 tape drive:
> File number=0, block number=0, partition=0.
> Tape block size 0 bytes. Density code 0x13 (DDS (61000 bpi)).
  ^^^^^^^^^^^^^^^^^^^^^^^

> Soft error count since last status=0
> General status bits on (41010000):
>  BOT ONLINE IM_REP_EN
> 
> So i ran: [root@lux2 log]# su Amanda -c "amlabel DailySet1 CS400"
> and got the following errors
  [snip]
> 
> on the command line:
>  su amanda -c "amlabel DailySet1 CS400"
> rewinding, reading label, reading label: Cannot allocate memory
                                           ^^^^^^^^^^^^^^^^^^^^^^
> rewinding, writing label CS400, checking label
> amlabel: reading label: Input/output error
> 
> Anybody had that problem before ? Does it mean that my tape drive is bad
> ?
> 
> (Mandrake 8.2, Amanda-2.4.3, HP Jetstore 5000 (HP35480A), Adaptec
> 2940UW)

The two marked sections lead me to tape block size problems.
The first probably means either variable sized or default size.
The second I think is coming from a dd command.  dd gives a funky
message like that if told to read a tape with a larger block size
than it has prepared for (either default 512 bytes or the value
of the bs= option).

Does your mt or other command let you set up the block size on the tape drive?
If so, set it to 32KB

If not, before doing an amlabel, with the tape you want to label positioned
at BOT, pick a big source file like /bin/sh or /bin/perl, and run a command like:

        dd if=/bin/sh of=<your tape drive> bs=32k

That should write a number of 32KB blocks to the tape and when read by amlabel,
should force the drive to 32KB size blocking.

All this of course is guess work.

-- 
Jon H. LaBadie                  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

Reply via email to