Re: [Bacula-users] Cannot find any appendable volumes on already labeled tapes.

2005-11-24 Thread Cedric Charest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Kern Sibbald wrote:
 On Monday 21 November 2005 22:46, Cedric Charest wrote:
 
Cool, thanks a lot!
It fixed my problem!
 
 
 Thanks for the confirmation.  By the way, did you apply the whole patch or 
 just the single file?

I applied the full patch and since then, I had no problem at all since then

Thanks!

Cédric Charest
Administrateur de Systèmes / System Administrator
Terrascale Technologies Inc.


Kern Sibbald wrote:

You ran into a bug in 1.38.x that causes the Director to incorrectly
handle Pool names containing spaces.  Bug #492 has a patch file that will
add all current patches to 1.38.1 generating 1.38.2.  Note, this patch
file is preliminary because there may be additional changes before the
1.38.2 release.

If you only want to fix the current problem, look at the patch for
src/dird/catreq.c.  That part of the patch file contains a one line
addition that fixes your bug ...

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDhiGpudvjQGGRi3oRAvNNAJ0ZfW4XkOq0Nmlj6LpkI9c+M1V96ACgj4Xg
pUCdbnbukXJ78rLS4UUlB7g=
=D0q8
-END PGP SIGNATURE-



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Cannot find any appendable volumes on already labeled tapes.

2005-11-21 Thread Cedric Charest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ohh, by the way, I'm using bacula 0.38.1 on a Fedora Core 2 system
(Linux), compiled on the system, with mysql.

Cedric Charest wrote:
 Hello!
 
 I'm trying to configure Bacula for our backups at work with an Exabyte
 Packetloader 1x10 80/160 changer/tape backup.
 
 The changer is supported and everything, but I'm having a weird problem.
 
 Each time I start a job, I get this:
 
 --
 18-Nov 23:05 newt-sd: Job Newt_Incremental.2005-11-18_23.05.00 waiting.
 Cannot find any appendable volumes.
 Please use the label  command to create a new Volume for:
 Storage:  Exabyte VXA2 Drive (/dev/nst0)
 Media type:   VXA-2
 Pool: Tapes Pool
 --
 
 BUT, all my tapes were labeled with a label barcodes and are appendable:
 --
 list media
 Pool: Tapes Pool
 | MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention
 | Recycle | Slot | InChanger | MediaType | LastWritten |
 +-++---+--+--+--+-+--+---+---+-+
 |  41 | A001   | Append|1 |0 |1,814,400
 |   1 |1 | 1 | VXA-2 | -00-00 00:00:00 |
 |  42 | A002   | Append|1 |0 |1,814,400
 |   1 |2 | 1 | VXA-2 | -00-00 00:00:00 |
 |  43 | A003   | Append|1 |0 |1,814,400
 |   1 |3 | 1 | VXA-2 | -00-00 00:00:00 |
 |  44 | A004   | Append|1 |0 |1,814,400
 |   1 |4 | 1 | VXA-2 | -00-00 00:00:00 |
 |  45 | A005   | Append|1 |0 |1,814,400
 |   1 |5 | 1 | VXA-2 | -00-00 00:00:00 |
 |  46 | A006   | Append|1 |0 |1,814,400
 |   1 |6 | 1 | VXA-2 | -00-00 00:00:00 |
 |  47 | A007   | Append|1 |0 |1,814,400
 |   1 |7 | 1 | VXA-2 | -00-00 00:00:00 |
 |  48 | A008   | Append|1 |0 |1,814,400
 |   1 |8 | 1 | VXA-2 | -00-00 00:00:00 |
 |  49 | A009   | Append|1 |0 |1,814,400
 |   1 |9 | 1 | VXA-2 | -00-00 00:00:00 |
 |  50 | A010   | Append|1 |0 |1,814,400
 |   1 |   10 | 1 | VXA-2 | -00-00 00:00:00 |
 +-++---+--+--+--+-+--+---+---+-+
 --
 
 An st st gives me:
 --
 Device status:
 Autochanger Exabyte VXA2 Packetloader 1x10 with devices:
Exabyte VXA2 Drive (/dev/nst0)
 Device DiskStorage (/mnt/archive) is not open or does not exist.
 Device Exabyte VXA2 Drive (/dev/nst0) is mounted with Volume A001
 Slot 1 is loaded in drive 0.
 Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
 Positioned at File=0 Block=0
 
 
 In Use Volume status:
 A001 on device Exabyte VXA2 Drive (/dev/nst0)
 
 --
 
 If I try to label a tape with another name, it says it's already labeled
 as A001, as an example.
 
 My bacula-sd.conf looks like this:
 
 --
 Device {
   Name = Disk Storage
   Media Type = File
   Archive Device = /mnt/archive
   LabelMedia = yes;  # lets Bacula label unlabeled media
   Random Access = Yes;
   AutomaticMount = yes;  # when device opened, read it
   RemovableMedia = no;
   AlwaysOpen = no;
 }
 
 Autochanger {
Name = Exabyte VXA2 Packetloader 1x10
Device = Exabyte VXA2 Drive
Changer Command = /usr/local/bacula/etc/mtx-changer %c %o %S %a %d
Changer Device = /dev/sg1
 }
 
 Device {
Name = Exabyte VXA2 Drive
Media Type = VXA-2
Archive Device = /dev/nst0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Changer Command = /usr/local/bacula/etc/mtx-changer %c %o %S %a %d
Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
Changer Device = /dev/sg1
 }
 --
 
 Any help would be greatly appreciated!
 
 Thanks!

- --
Cedric Charest
Administrateur de Systèmes / System Administrator
Terrascale Technologies Inc.



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDghBaudvjQGGRi3oRAlIIAJ9yxkq/LpieI6Xo+3i7wvbSbhweKACgtR9k
wLyvJn17Ahnz2yYUu3YNUwE=
=T7eY
-END PGP SIGNATURE-



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click

Re: [Bacula-users] Cannot find any appendable volumes on already labeled tapes.

2005-11-21 Thread Cedric Charest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cool, thanks a lot!
It fixed my problem!


Cédric Charest
Administrateur de Systèmes / System Administrator
Terrascale Technologies Inc.


Kern Sibbald wrote:
 You ran into a bug in 1.38.x that causes the Director to incorrectly handle 
 Pool names containing spaces.  Bug #492 has a patch file that will add all 
 current patches to 1.38.1 generating 1.38.2.  Note, this patch file is 
 preliminary because there may be additional changes before the 1.38.2 
 release.
 
 If you only want to fix the current problem, look at the patch for 
 src/dird/catreq.c.  That part of the patch file contains a one line addition 
 that fixes your bug ...
 
 On Monday 21 November 2005 18:49, Cedric Charest wrote:
 
Hello!

I'm trying to configure Bacula for our backups at work with an Exabyte
Packetloader 1x10 80/160 changer/tape backup.

The changer is supported and everything, but I'm having a weird problem.

Each time I start a job, I get this:

--
18-Nov 23:05 newt-sd: Job Newt_Incremental.2005-11-18_23.05.00 waiting.
Cannot find any appendable volumes.
Please use the label  command to create a new Volume for:
Storage:  Exabyte VXA2 Drive (/dev/nst0)
Media type:   VXA-2
Pool: Tapes Pool
--

BUT, all my tapes were labeled with a label barcodes and are appendable:
--
list media
Pool: Tapes Pool

| MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention
| Recycle | Slot | InChanger | MediaType | LastWritten |

+-++---+--+--+--+--
---+--+---+---+-+

|  41 | A001   | Append|1 |0 |1,814,400
|   1 |1 | 1 | VXA-2 | -00-00 00:00:00 |
|  42 | A002   | Append|1 |0 |1,814,400
|   1 |2 | 1 | VXA-2 | -00-00 00:00:00 |
|  43 | A003   | Append|1 |0 |1,814,400
|   1 |3 | 1 | VXA-2 | -00-00 00:00:00 |
|  44 | A004   | Append|1 |0 |1,814,400
|   1 |4 | 1 | VXA-2 | -00-00 00:00:00 |
|  45 | A005   | Append|1 |0 |1,814,400
|   1 |5 | 1 | VXA-2 | -00-00 00:00:00 |
|  46 | A006   | Append|1 |0 |1,814,400
|   1 |6 | 1 | VXA-2 | -00-00 00:00:00 |
|  47 | A007   | Append|1 |0 |1,814,400
|   1 |7 | 1 | VXA-2 | -00-00 00:00:00 |
|  48 | A008   | Append|1 |0 |1,814,400
|   1 |8 | 1 | VXA-2 | -00-00 00:00:00 |
|  49 | A009   | Append|1 |0 |1,814,400
|   1 |9 | 1 | VXA-2 | -00-00 00:00:00 |
|  50 | A010   | Append|1 |0 |1,814,400
|   1 |   10 | 1 | VXA-2 | -00-00 00:00:00 |

+-++---+--+--+--+--
---+--+---+---+-+ --

An st st gives me:
--
Device status:
Autochanger Exabyte VXA2 Packetloader 1x10 with devices:
   Exabyte VXA2 Drive (/dev/nst0)
Device DiskStorage (/mnt/archive) is not open or does not exist.
Device Exabyte VXA2 Drive (/dev/nst0) is mounted with Volume A001
Slot 1 is loaded in drive 0.
Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
Positioned at File=0 Block=0


In Use Volume status:
A001 on device Exabyte VXA2 Drive (/dev/nst0)

--

If I try to label a tape with another name, it says it's already labeled
as A001, as an example.

My bacula-sd.conf looks like this:

--
Device {
  Name = Disk Storage
  Media Type = File
  Archive Device = /mnt/archive
  LabelMedia = yes;  # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;  # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Autochanger {
   Name = Exabyte VXA2 Packetloader 1x10
   Device = Exabyte VXA2 Drive
   Changer Command = /usr/local/bacula/etc/mtx-changer %c %o %S %a %d
   Changer Device = /dev/sg1
}

Device {
   Name = Exabyte VXA2 Drive
   Media Type = VXA-2
   Archive Device = /dev/nst0
   AutomaticMount = yes;
   AlwaysOpen = yes;
   RemovableMedia = yes;
   RandomAccess = no;
   AutoChanger = yes
   Changer Command = /usr/local/bacula/etc/mtx-changer %c %o %S %a %d
   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
   Changer Device = /dev/sg1
}
--

Any help would be greatly appreciated!

Thanks!
 
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDgkA2udvjQGGRi3oRAk8LAJ92KjIxQFOERh/eszY2Qg9nt1xiRACfQa6v
gQcruEA7ycEs6DN1ZZBHWjc