Re: error whith amlabel and chg-rait

2013-06-27 Thread Jean-Louis Martineau

chg-rait and chg-robot do not use meta label, don't try to set it.
Only chg-disk use meta-label.

The barcode is the combination of all barcodes, as the inventory told 
you, the barcode is '{D00225,D00225}'

amlabel -f --barcode '{D00225,D00225}' mirror
The same is true for the slot number, you could do:
amlabel -f mirror slot '{225,225}'

It is not required to put the same barcode on both tape, it is generally 
a bad idea to do so, a barcode must be unique.


Jean-Louis

On 06/27/2013 07:37 AM, Dennis Benndorf wrote:


Hello,

I am trying to set up a mirror of too robots using chg-rait. Tapes in 
both robots have the same barcodes. Now I want to label them with the 
name of their barcodes, but the following happens:


amanda@dl380-54:~$ amlabel -f --meta META225 --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amtape mirror inventory |grep 225

slot {225,225}: label D00225 barcode {D00225,D00225} (in drive {1,1})

amanda@dl380-54:~$ amlabel -f --meta META225 --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amlabel -f --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amlabel -f mirror^C

amanda@dl380-54:~$ man amanda.conf

amanda@dl380-54:~$ amlabel -f -o meta-autolabel=META%%% --barcode 
D00225 mirror


Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amlabel -f -o meta-autolabel=META%%% mirror slot 225

Reading label...

Found Amanda volume 'D00225'.

amlabel: Can't call method make_new_meta_label on an undefined value 
at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.


What I really want to do is to force both sites to label ( one site 
has a different label as you can see )


amanda@dl380-54:~$ amlabel -f -o meta-autolabel=META%%% mirror slot 457

Reading label...

Error reading volume label: Inconsistent volume labels/datestamps: Got 
D00457/20130408180904 on tape:/dev/L700/MRO-LW-1 against 
D10068/20130508071050 on tape:/dev/L700/OPELHAUS-LW-1.


amlabel: Can't call method make_new_meta_label on an undefined value 
at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.


--

Regards

Dennis





Re: error whith amlabel and chg-rait

2013-06-27 Thread Dennis Benndorf
grep meta-autolabel /etc/amanda/mirror/amanda.conf show nothing.

-- 
Regards
Dennis Benndorf


 Dennis,
 
 Do you have 'meta-autolabel' set in your amanda.conf? unset it.
 
 Jean-Louis
 
 On 06/27/2013 08:33 AM, Dennis Benndorf wrote:
  Ok I understand but why does it tell me those messages:
  
  amanda@dl380-54:~$ amlabel -f mirror slot '{225,225}'
  
  Reading label...
  
  Found Amanda volume 'D00225'.
  
  amlabel: Can't call method make_new_meta_label on an undefined value
  at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.
  
  amanda@dl380-54:~$ amlabel -f --barcode '{D00225,D00225}' mirror
  
  Reading label...
  
  Found Amanda volume 'D00225'.
  
  amlabel: Can't call method make_new_meta_label on an undefined value
  at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.
  
  
  Regards Dennis
  
  Am Donnerstag, 27. Juni 2013, 07:58:19 schrieb Jean-Louis Martineau:
   chg-rait and chg-robot do not use meta label, don't try to set it.
   
   Only chg-disk use meta-label.
   
   
   
   The barcode is the combination of all barcodes, as the inventory told
   
   you, the barcode is '{D00225,D00225}'
   
   amlabel -f --barcode '{D00225,D00225}' mirror
   
   The same is true for the slot number, you could do:
   
   amlabel -f mirror slot '{225,225}'
   
   
   
   It is not required to put the same barcode on both tape, it is generally
   
   a bad idea to do so, a barcode must be unique.
   
   
   
   Jean-Louis


Re: error whith amlabel and chg-rait

2013-06-27 Thread Jean-Louis Martineau

Dennis,

Try the attached patch.
You can patch the installed Amanda/Changer/rait.pm file.

Jean-Louis

On 06/27/2013 08:41 AM, Dennis Benndorf wrote:


grep meta-autolabel /etc/amanda/mirror/amanda.conf show nothing.

--

Regards

Dennis Benndorf


Am Donnerstag, 27. Juni 2013, 08:39:11 schrieb Jean-Louis Martineau:

 Dennis,



 Do you have 'meta-autolabel' set in your amanda.conf? unset it.



 Jean-Louis



 On 06/27/2013 08:33 AM, Dennis Benndorf wrote:

  Ok I understand but why does it tell me those messages:

 

  amanda@dl380-54:~$ amlabel -f mirror slot '{225,225}'

 

  Reading label...

 

  Found Amanda volume 'D00225'.

 

  amlabel: Can't call method make_new_meta_label on an undefined value

  at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.

 

  amanda@dl380-54:~$ amlabel -f --barcode '{D00225,D00225}' mirror

 

  Reading label...

 

  Found Amanda volume 'D00225'.

 

  amlabel: Can't call method make_new_meta_label on an undefined value

  at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.

 

 

  Regards Dennis

 

  Am Donnerstag, 27. Juni 2013, 07:58:19 schrieb Jean-Louis Martineau:

   chg-rait and chg-robot do not use meta label, don't try to set it.

  

   Only chg-disk use meta-label.

  

  

  

   The barcode is the combination of all barcodes, as the inventory 
told


  

   you, the barcode is '{D00225,D00225}'

  

   amlabel -f --barcode '{D00225,D00225}' mirror

  

   The same is true for the slot number, you could do:

  

   amlabel -f mirror slot '{225,225}'

  

  

  

   It is not required to put the same barcode on both tape, it is 
generally


  

   a bad idea to do so, a barcode must be unique.

  

  

  

   Jean-Louis



diff --git a/perl/Amanda/Changer/rait.pm b/perl/Amanda/Changer/rait.pm
index e0ef276..d6ba1dd 100644
--- a/perl/Amanda/Changer/rait.pm
+++ b/perl/Amanda/Changer/rait.pm
@@ -268,6 +268,7 @@ sub _make_res {
 }
 
 my $combined_res = Amanda::Changer::rait::Reservation-new(
+	$self,
 	$kid_reservations, $rait_device);
 $rait_device-read_label();
 
@@ -676,9 +677,11 @@ sub errmap (@) {
 
 sub new {
 my $class = shift;
-my ($child_reservations, $rait_device) = @_;
+my ($chg, $child_reservations, $rait_device) = @_;
 my $self = Amanda::Changer::Reservation::new($class);
 
+$self-{'chg'} = $chg;
+
 # note that $child_reservations may contain ERROR in place of a reservation
 
 $self-{'child_reservations'} = $child_reservations;


Re: error whith amlabel and chg-rait

2013-06-27 Thread Dennis Benndorf
Hi,

amanda@dl380-54:~$ amlabel -f mirror slot '{225,225}'
Reading label...
Found Amanda volume 'D00225'.
Newly-generated label '' does not match labelstr '^D0[0-9]*$'

Dont know why this happend, because labelstr is set to ^D0[0-9]*$ and 
autolabel to $b any .
but if I set it by hand it works as expected:

amanda@dl380-54:~$ amlabel -f mirror D00225 slot '{225,225}'
Reading label...
Found Amanda volume 'D00225'.
Writing label 'D00225'...
Checking label...
Success!
amanda@dl380-54:~$ cat /etc/amanda/mirror/tapelist
0 D00225 reuse BLOCKSIZE:32


-- 
Big thanks,
Dennis


 Dennis,
 
 Try the attached patch.
 You can patch the installed Amanda/Changer/rait.pm file.
 
 Jean-Louis



Re: error whith amlabel and chg-rait

2013-06-27 Thread Jean-Louis Martineau

Dennis,

Try the attached patch.

The barcode for the rait is '{D00225,D00225}', You must adjust the labelstr.

Jean-Louis


On 06/27/2013 10:30 AM, Dennis Benndorf wrote:


Hi,

amanda@dl380-54:~$ amlabel -f mirror slot '{225,225}'

Reading label...

Found Amanda volume 'D00225'.

Newly-generated label '' does not match labelstr '^D0[0-9]*$'

Dont know why this happend, because labelstr is set to ^D0[0-9]*$ 
and autolabel to $b any .


but if I set it by hand it works as expected:

amanda@dl380-54:~$ amlabel -f mirror D00225 slot '{225,225}'

Reading label...

Found Amanda volume 'D00225'.

Writing label 'D00225'...

Checking label...

Success!

amanda@dl380-54:~$ cat /etc/amanda/mirror/tapelist

0 D00225 reuse BLOCKSIZE:32

--

Big thanks,

Dennis


Am Donnerstag, 27. Juni 2013, 10:10:09 schrieb Jean-Louis Martineau:

 Dennis,



 Try the attached patch.

 You can patch the installed Amanda/Changer/rait.pm file.



 Jean-Louis



diff --git a/perl/Amanda/Changer/rait.pm b/perl/Amanda/Changer/rait.pm
index d6ba1dd..2234a2e 100644
--- a/perl/Amanda/Changer/rait.pm
+++ b/perl/Amanda/Changer/rait.pm
@@ -687,6 +687,8 @@ sub new {
 $self-{'child_reservations'} = $child_reservations;
 
 $self-{'device'} = $rait_device;
+my @barcodes = errmap {  . $_-{'barcode'} } @$child_reservations;
+$self-{'barcode'} = collapse_braced_alternates(\@barcodes);
 
 my @slot_names;
 @slot_names = errmap {  . $_-{'this_slot'} } @$child_reservations;


Re: Error for amlabel

2013-02-28 Thread Amit Karpe
On Tue, Feb 26, 2013 at 3:50 AM, Marcus Pless mpl...@ucsd.edu wrote:

 On 02/25/2013 01:14:22 AM, Amit Karpe wrote:

 On Mon, Feb 25, 2013 at 4:55 PM, Amit Karpe amitka...@gmail.com wrote:

 
 
  On Fri, Nov 30, 2012 at 12:32 PM, Jon LaBadie j...@jgcomp.com wrote:
 
  On Fri, Nov 30, 2012 at 11:20:37AM +0800, Amit Karpe wrote:
   Any idea for my problem.
 
  The last line of your first message seems critical:
 
  ...
 
I could not able to write anything using amdump or dd.
 
  If you can't read or write using standard system tools
  like dd, there is nothing amanda can do about it.
  Sounds to me like you have hardware problems, either
  the tape drive or maybe the cables.
 
  Jon
  --
  Jon H. LaBadie j...@jgcomp.com
   11226 South Shore Rd.  (703) 787-0688 (H)
   Reston, VA  20190  (609) 477-8330 (C)
 
 
 
  I had ask HP for support. Their log tool saying my labels are the
 culprit.
  He is asking me to use only barcode labeling:
  As per the Amanda Tool output and logs there is one cartridge in the
 MSL
  which has either missing or worng barcode label or the barcode label is
  properly aligned as per Tape Cartridge
 
  Please remove all the tapes and check if you find such cartridge and if
  you find that then put the Barcode Lable correctly on it and insert it
 back
  in the same slot
 
  This error occurs because during initialzation before beackup the MSL
 take
  the Inventory of the cartridges in the MSL and if there is any mislatch
  cartridge, it halts the process of backup
 
 
  As far as my understanding amanda don't required any barcode labeling.
  Then what is a problem ?
  How can I cross check and confirm that hardware problems, either the
 tape
  drive or maybe the cables. ??
 
 
 

 Following link have photos of my tapes. Can someone confirm that having
 such label will be the problem ???

 http://news.karpe.net.in/hp-**storageworks-msl2024-tape-**library-1-lto-4http://news.karpe.net.in/hp-storageworks-msl2024-tape-library-1-lto-4




 My old LTO-1 and LTO-2 tape libraries didn't care about barcode labels.
 My LTO-4 (StorageTek SL-500) libraries won't load a tape and bring it
 online unless it has a correctly formatted barcode label. You can buy
 them pre-printed but we just make our own using a simple Brother Ptouch
 label maker and 3/4 inch (18mm) tape. I think a proper label has up to
 8 alpha-numerics but the last 2 characters have to be L4 (if it's an
 LTO4 tape) or the library/drive won't know what to do with it.

 My cleaning cartridge with a factory barcode is labeled CLNU01CU.

 I like to do my own barcode labels so that the human readable label
 matches the amanda software label. The L4 extension doesn't actually
 show when I do something like an mtx status so I don't include that
 in the amanda label.

 IBM has a pdf of the LTO label spec here:

 http://www-1.ibm.com/support/**docview.wss?rs=543context=**
 STCVQ6Rq1=ssg1*uid=**ssg1S7000429loc=en_UScs=utf-**8lang=en+enhttp://www-1.ibm.com/support/docview.wss?rs=543context=STCVQ6Rq1=ssg1*uid=ssg1S7000429loc=en_UScs=utf-8lang=en+en

 or

 http://tinyurl.com/LTO-label-**spec http://tinyurl.com/LTO-label-spec


 Good luck!


Thank Marcus.
I will check these docs and will updated you.


Re: Error for amlabel

2013-02-25 Thread Amit Karpe
On Fri, Nov 30, 2012 at 12:32 PM, Jon LaBadie j...@jgcomp.com wrote:

 On Fri, Nov 30, 2012 at 11:20:37AM +0800, Amit Karpe wrote:
  Any idea for my problem.

 The last line of your first message seems critical:

 ...

   I could not able to write anything using amdump or dd.

 If you can't read or write using standard system tools
 like dd, there is nothing amanda can do about it.
 Sounds to me like you have hardware problems, either
 the tape drive or maybe the cables.

 Jon
 --
 Jon H. LaBadie j...@jgcomp.com
  11226 South Shore Rd.  (703) 787-0688 (H)
  Reston, VA  20190  (609) 477-8330 (C)



I had ask HP for support. Their log tool saying my labels are the culprit.
He is asking me to use only barcode labeling:
As per the Amanda Tool output and logs there is one cartridge in the MSL
which has either missing or worng barcode label or the barcode label is
properly aligned as per Tape Cartridge

Please remove all the tapes and check if you find such cartridge and if you
find that then put the Barcode Lable correctly on it and insert it back in
the same slot

This error occurs because during initialzation before beackup the MSL take
the Inventory of the cartridges in the MSL and if there is any mislatch
cartridge, it halts the process of backup


As far as my understanding amanda don't required any barcode labeling. Then
what is a problem ?
How can I cross check and confirm that hardware problems, either the tape
drive or maybe the cables. ??


-- 
Regards
Amit Karpe.
http://www.amitkarpe.com/
http://news.karpe.net.in/


Re: Error for amlabel

2013-02-25 Thread Amit Karpe
On Mon, Feb 25, 2013 at 4:55 PM, Amit Karpe amitka...@gmail.com wrote:



 On Fri, Nov 30, 2012 at 12:32 PM, Jon LaBadie j...@jgcomp.com wrote:

 On Fri, Nov 30, 2012 at 11:20:37AM +0800, Amit Karpe wrote:
  Any idea for my problem.

 The last line of your first message seems critical:

 ...

   I could not able to write anything using amdump or dd.

 If you can't read or write using standard system tools
 like dd, there is nothing amanda can do about it.
 Sounds to me like you have hardware problems, either
 the tape drive or maybe the cables.

 Jon
 --
 Jon H. LaBadie j...@jgcomp.com
  11226 South Shore Rd.  (703) 787-0688 (H)
  Reston, VA  20190  (609) 477-8330 (C)



 I had ask HP for support. Their log tool saying my labels are the culprit.
 He is asking me to use only barcode labeling:
 As per the Amanda Tool output and logs there is one cartridge in the MSL
 which has either missing or worng barcode label or the barcode label is
 properly aligned as per Tape Cartridge

 Please remove all the tapes and check if you find such cartridge and if
 you find that then put the Barcode Lable correctly on it and insert it back
 in the same slot

 This error occurs because during initialzation before beackup the MSL take
 the Inventory of the cartridges in the MSL and if there is any mislatch
 cartridge, it halts the process of backup


 As far as my understanding amanda don't required any barcode labeling.
 Then what is a problem ?
 How can I cross check and confirm that hardware problems, either the tape
 drive or maybe the cables. ??




Following link have photos of my tapes. Can someone confirm that having
such label will be the problem ???

http://news.karpe.net.in/hp-storageworks-msl2024-tape-library-1-lto-4



 --
 Regards
 Amit Karpe.
 http://www.amitkarpe.com/
 http://news.karpe.net.in/




-- 
Regards
Amit Karpe.
http://www.amitkarpe.com/
http://news.karpe.net.in/


Re: Error for amlabel

2013-02-25 Thread Jon Brown
 
There should be an option for 'Ignore Barcode Media ID'
 
Have you tried enabling that?


 Amit Karpe amitka...@gmail.com 2/25/2013 2:14 AM 

On Mon, Feb 25, 2013 at 4:55 PM, Amit Karpe amitka...@gmail.com wrote:




On Fri, Nov 30, 2012 at 12:32 PM, Jon LaBadie j...@jgcomp.com wrote:


On Fri, Nov 30, 2012 at 11:20:37AM +0800, Amit Karpe wrote:
 Any idea for my problem.

The last line of your first message seems critical:

...

  I could not able to write anything using amdump or dd.

If you can't read or write using standard system tools
like dd, there is nothing amanda can do about it.
Sounds to me like you have hardware problems, either
the tape drive or maybe the cables.

Jon
--
Jon H. LaBadie j...@jgcomp.com
11226 South Shore Rd. (703) 787-0688 (H)
Reston, VA 20190 (609) 477-8330 (C)



I had ask HP for support. Their log tool saying my labels are the culprit.
He is asking me to use only barcode labeling:
As per the Amanda Tool output and logs there is one cartridge in the MSL which 
has either missing or worng barcode label or the barcode label is properly 
aligned as per Tape Cartridge

Please remove all the tapes and check if you find such cartridge and if you 
find that then put the Barcode Lable correctly on it and insert it back in the 
same slot

This error occurs because during initialzation before beackup the MSL take the 
Inventory of the cartridges in the MSL and if there is any mislatch cartridge, 
it halts the process of backup


As far as my understanding amanda don't required any barcode labeling. Then 
what is a problem ?
How can I cross check and confirm that hardware problems, either the tape 
drive or maybe the cables. ??





Following link have photos of my tapes. Can someone confirm that having such 
label will be the problem ???

http://news.karpe.net.in/hp-storageworks-msl2024-tape-library-1-lto-4



-- 
Regards
Amit Karpe.
http://www.amitkarpe.com/
http://news.karpe.net.in/




-- 
Regards
Amit Karpe.
http://www.amitkarpe.com/
http://news.karpe.net.in/


Re: Error for amlabel

2013-02-25 Thread Marcus Pless

On 02/25/2013 01:14:22 AM, Amit Karpe wrote:
On Mon, Feb 25, 2013 at 4:55 PM, Amit Karpe amitka...@gmail.com  
wrote:




 On Fri, Nov 30, 2012 at 12:32 PM, Jon LaBadie j...@jgcomp.com  
wrote:


 On Fri, Nov 30, 2012 at 11:20:37AM +0800, Amit Karpe wrote:
  Any idea for my problem.

 The last line of your first message seems critical:

 ...

   I could not able to write anything using amdump or dd.

 If you can't read or write using standard system tools
 like dd, there is nothing amanda can do about it.
 Sounds to me like you have hardware problems, either
 the tape drive or maybe the cables.

 Jon
 --
 Jon H. LaBadie j...@jgcomp.com
  11226 South Shore Rd.  (703) 787-0688 (H)
  Reston, VA  20190  (609) 477-8330 (C)



 I had ask HP for support. Their log tool saying my labels are the  
culprit.

 He is asking me to use only barcode labeling:
 As per the Amanda Tool output and logs there is one cartridge in  
the MSL
 which has either missing or worng barcode label or the barcode  
label is

 properly aligned as per Tape Cartridge

 Please remove all the tapes and check if you find such cartridge  
and if
 you find that then put the Barcode Lable correctly on it and insert  
it back

 in the same slot

 This error occurs because during initialzation before beackup the  
MSL take
 the Inventory of the cartridges in the MSL and if there is any  
mislatch

 cartridge, it halts the process of backup


 As far as my understanding amanda don't required any barcode  
labeling.

 Then what is a problem ?
 How can I cross check and confirm that hardware problems, either  
the tape

 drive or maybe the cables. ??




Following link have photos of my tapes. Can someone confirm that  
having

such label will be the problem ???

http://news.karpe.net.in/hp-storageworks-msl2024-tape-library-1-lto-4




My old LTO-1 and LTO-2 tape libraries didn't care about barcode labels.
My LTO-4 (StorageTek SL-500) libraries won't load a tape and bring it
online unless it has a correctly formatted barcode label. You can buy
them pre-printed but we just make our own using a simple Brother  
Ptouch

label maker and 3/4 inch (18mm) tape. I think a proper label has up to
8 alpha-numerics but the last 2 characters have to be L4 (if it's an
LTO4 tape) or the library/drive won't know what to do with it.

My cleaning cartridge with a factory barcode is labeled CLNU01CU.

I like to do my own barcode labels so that the human readable label
matches the amanda software label. The L4 extension doesn't actually
show when I do something like an mtx status so I don't include that
in the amanda label.

IBM has a pdf of the LTO label spec here:

http://www-1.ibm.com/support/docview.wss?rs=543context=STCVQ6Rq1=ssg1*uid=ssg1S7000429loc=en_UScs=utf-8lang=en+en

or

http://tinyurl.com/LTO-label-spec


Good luck!


--Marcus



 --
 Regards
 Amit Karpe.
 http://www.amitkarpe.com/
 http://news.karpe.net.in/




--
Regards
Amit Karpe.
http://www.amitkarpe.com/
http://news.karpe.net.in/








Re: Error for amlabel

2012-11-29 Thread Amit Karpe
Any idea for my problem.
Very recently I buy new cleaning cartridge. I have confirm than cleaning
process works.
But while again trying for Labeling I got following errors.

-bash-4.0$ for ((i=1; $i=3;i++)); do amlabel DailySet1 DailySet1-$i slot
$i; done
labeling tape in slot 1 (tape:/dev/st0):
Reading label...
Error reading 32768 bytes from /dev/st0: Input/output error
Error reading Amanda header.
Found an unlabeled tape.
Writing label DailySet1-1..
Got EIO on /dev/st0, assuming end of tape.
amlabel: Error writing label.

labeling tape in slot 2 (tape:/dev/st0):
Reading label...
Found Amanda tape DailySet1-017
Writing label DailySet1-2..
Error writing final filemark: Input/output error
amlabel: Error closing device.

labeling tape in slot 3 (tape:/dev/st0):
Reading label...
Error reading 32768 bytes from /dev/st0: Input/output error
Error reading Amanda header.
Found an unlabeled tape.
Writing label DailySet1-3..
Got EIO on /dev/st0, assuming end of tape.
amlabel: Error writing label.

Someone please guide me !

On Thu, Oct 11, 2012 at 7:38 PM, Amit Karpe amitka...@gmail.com wrote:

 Hi All,
 While writing label by using following command I got these errors.
 -bash-4.0$ amlabel DailySet1 reset
 amlabel: label reset doesn't match labelstr ^DailySet1-[0-9][0-9]*$
 -bash-4.0$ amlabel DailySet1 reset
 labeling tape in slot 22 (tape:/dev/nst0):
 Reading label...
 Error reading 32768 bytes from /dev/nst0: Input/output error
 Error reading Amanda header.
 Found an unlabeled tape.
 Writing label reset..
 Error writing final filemark: Input/output error
 amlabel: Error closing device.


 -bash-4.0$ mtx -f /dev/sg2 status
   Storage Changer /dev/sg2:1 Drives, 24 Slots ( 1 Import/Export )
 Data Transfer Element 0:Full (Storage Element 22 Loaded)
   Storage Element 1:Empty
   Storage Element 2:Full
   Storage Element 3:Full
   Storage Element 4:Full
   Storage Element 5:Full
   Storage Element 6:Full
   Storage Element 7:Full
   Storage Element 8:Full
   Storage Element 9:Full
   Storage Element 10:Full
   Storage Element 11:Full
   Storage Element 12:Full
   Storage Element 13:Full
   Storage Element 14:Full
   Storage Element 15:Full
   Storage Element 16:Full
   Storage Element 17:Full
   Storage Element 18:Full
   Storage Element 19:Full
   Storage Element 20:Full
   Storage Element 21:Full
   Storage Element 22:Empty
   Storage Element 23:Full
   Storage Element 24 IMPORT/EXPORT:Empty


 #tail -f /var/log/messages
 Oct 11 18:58:37 borneo kernel: mptscsih: ioc0: task abort: SUCCESS
 (sc=88012db85600)
 Oct 11 18:58:37 borneo kernel: st0: Error 8 (driver bt 0x0, host bt
 0x8).
 Oct 11 19:22:30 borneo kernel: st0: Sense Key : Medium Error [current]
 Oct 11 19:22:30 borneo kernel: Info fld=0x1
 Oct 11 19:22:30 borneo kernel: st0: Add. Sense: Write error


 tpchanger chg-zd-mtx
 #tapedev tape:/dev/st0# the no-rewind tape device to be
 used
 tapedev tape:/dev/nst0# the no-rewind tape device to be
 used
 changerfile /etc/amanda/DailySet1/changer.conf
 changerdev /dev/sg2
 tapetype HP-LTO4# what kind of tape it is (see tapetypes
 below)
 define tapetype HP-LTO4 {
 comment just produced by tapetype prog (hardware compression on)
 length 772096 mbytes
 filemark 0 kbytes
 speed 71093 kps
 }


 Any suggestions ?
 I could not able to write anything using amdump or dd.




-- 
Regards
Amit Karpe.
http://www.amitkarpe.com/
http://news.karpe.net.in/


Re: Error for amlabel

2012-11-29 Thread Jon LaBadie
On Fri, Nov 30, 2012 at 11:20:37AM +0800, Amit Karpe wrote:
 Any idea for my problem.

The last line of your first message seems critical:

...

  I could not able to write anything using amdump or dd.

If you can't read or write using standard system tools
like dd, there is nothing amanda can do about it.
Sounds to me like you have hardware problems, either
the tape drive or maybe the cables.

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (609) 477-8330 (C)


Re: error with amlabel

2001-04-20 Thread Alexandre Oliva

On Apr 18, 2001, Jason Jin [EMAIL PROTECTED] wrote:

 with Amanda 2.4.2.

 rewinding, writing label DailySet1-000
 amlabel: writing endmark: I/O error

IIRC, this is fixed with:

2000-04-09  Alexandre Oliva  [EMAIL PROTECTED]
* server-src/amlabel.c (main): Check label *after* writing end mark.

that made it to 2.4.2p2, but not to 2.4.2

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist*Please* write to mailing lists, not to me



RE: error with amlabel

2001-04-18 Thread Jason Jin

Hi,

I've been trying unsuccesfully to label a exabyte 
160mXL tape on a  EXB-8500 drive. I run amlable
as amanda user. backup server is solaris 2.6
with Amanda 2.4.2.

$ id
uid=301(amanda) gid=301(backup)

$ /usr/local/sbin/amlabel DailySet1 DailySet1-000
rewinding, reading label, not an amanda tape
rewinding, writing label DailySet1-000
amlabel: writing endmark: I/O error

$  mt -f /dev/rmt/0cbn status
Exabyte EXB-8500 8mm Helical Scan tape drive:
   sense key(0x0)= No Additional Sense   residual= 0   retries= 0
   file no= 0   block no= 0  

then if I run amcheck 

$ amcheck DailySet1
Amanda Tape Server Host Check
-
Holding disk /d03/amanda: 14674376 KB disk space available, that's plenty
ERROR: /dev/rmt/0bn: reading label: I/O error
   (expecting a new tape)
NOTE: skipping tape-writable test 
...

so it is expecting a new tape, but I can not label a tape 
as It give me strange I/o error, showning above 

I know the tape are good because it have been used before
( not used under amanda,but have been used to dump/tar files on it)
and i tried more then a few tape , all same kind of error.

what do I missed ?

TIA,

Thanks,


jason