Amanda-Users

Re: Can't do amlabel

2003-06-16 03:22:58
Subject: Re: Can't do amlabel
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Junaidi <junaidi AT securecirt DOT com>
Date: Mon, 16 Jun 2003 09:18:32 +0200
Junaidi wrote:
i'm currently stuck. I cant do any backup, amcheck says it's not an amanda tape. I tried to label the tape but amlabel says that the label is already on the tape. So i did a amrmtape. Now i'm having trouble labelling the tape again. These tapes have been used before for amanda.. abt six mths ago, so now i'm doing a new installation, that's why the labels are still there.

This is my "dmesg"

blk: queue f7e16e18, I/O limit 4095Mb (mask 0xffffffff)
  Vendor: BNCHMARK  Model: DLT1              Rev: 5032
  Type:   Sequential-Access                  ANSI SCSI revision: 02
blk: queue c8eaa218, I/O limit 4095Mb (mask 0xffffffff)
(scsi0:A:5): 20.000MB/s transfers (10.000MHz, offset 15, 16bit)
Attached scsi tape st0 at scsi0, channel 0, id 5, lun 0

What is the output of "mt -f /dev/nst0 status"?

amanda@luke amanda $ amlabel tuesday tuesday2
amlabel: label tuesday2 already on a tape

That's because amanda has this tape in the tapelist file, the file
that contains all the tape(-label)s and dates when last used.
This file is consulted to tell you which tape is expected next.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
amanda@luke tuesday $ amrmtape tuesday tuesday2
amrmtape: preserving original database in curinfo.orig.28037 (exported).

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
amanda@luke tuesday $ amlabel tuesday tuesday2
rewinding, reading label, not an amanda tape
rewinding, writing label tuesday2, checking label
amlabel: no label found, are you sure /dev/nst0 is non-rewinding?

So amanda relabeled the tape, but when checking if it wrote it correctly, it failed. You have to find out why that is.
Bad tape?  Wrong blocksize?  Bad karma?

What is the output of "mt -t /dev/nst0 status" now?


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



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