Amanda-Users

Re: I/O error on labelling

2006-09-14 11:38:32
Subject: Re: I/O error on labelling
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Thu, 14 Sep 2006 11:29:02 -0400
On Thursday 14 September 2006 07:14, Fabio Corazza wrote:
>Somebody knows why I receive this error when I label a tape?
>
>-sh-3.00$ amlabel mybbookInSite mybbookInSite-10 slot 10
>labeling tape in slot 10 (/dev/nst0):
>rewinding, reading label, not an amanda tape (Input/output error)

This is normal for a tape that does not already contain a valid label 1st 
block.

>rewinding, writing label mybbookInSite-10, checking label, done.

Generally, if it says it did it, it did it ok.

>After that I see that the tape that was previously on slot 10 is on the
>data transfer element (this is correct, I think). How can I check that
>the tape has been labeled correctly?

Thats something you should be able to do with the 'mtx' utility, which can 
cause tapes to be loaded or unloaded and placed back in the rack, usually 
by its rack position number.
Once the tape has been loaded and recognized by the drive as shown by an 
'mt -f /dev/ice status returning a 'BOT' (begining of tape) status, then:
'dd if=/dev/ice count=1' should spit out the first block to stdout, your 
screen.  This should contain the tape label amlabel applied followed by 
about 32,730 bytes of zeros, so it won't look like 32k on screen.  Here's 
this mornings vtape equivalent file:

AMANDA: TAPESTART DATE 20060914001000 TAPE Dailys-20
014

The datestamp may be shorter in your version of amanda.  There may be other 
diffs too as the above is from this mornings vtape, not a real physical 
tape.

>Those are the settings in the amanda.conf regarding the tape drive:
>
>runtapes 1
>tpchanger "chg-zd-mtx"
>tapedev "/dev/nst0"
>rawtapedev "/dev/null"
>changerfile "/etc/amanda/mybbookInSite/changer.conf"
>changerdev "/dev/sg2"
>
>And this is the changer.conf:
>
>firstslot=1
>lastslot=16
>autoclean=0
>havereader=1
>offline_before_unload=0
>poll_drive_ready=10
>max_drive_wait=120
>unloadpause=20
>driveslot=0
>
>
>Using Amanda 2.5.1.
>
>
>
>Thanks,

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.

<Prev in Thread] Current Thread [Next in Thread>