[Bacula-users] Bacula cannot write on disk Volume... because: The sizes do not match!

2010-05-26 Thread Proskurin Kirill
Hello all!

What we have:
FreeBSD-8.0-p2 amd64
Bacula-3.0.3
MySQL-5.1.44

I have a working bacula setup for an 4-5 month without any problems.

Today I notice an error:

26-May 06:46 hide.domain.org-sd JobId 1645: Volume 
hide.domain.org-0074 previously written, moving to end of data.
26-May 06:46 hide.domain.org-sd JobId 1645: Error: Bacula cannot write 
on disk Volume hide.domain.org-0074 because: The sizes do not match! 
Volume=17941393742 Catalog=17799660878
26-May 06:46 hide.domain.org-sd JobId 1645: Marking Volume 
hide.domain.org-0074 in Error in Catalog.

It is first time appeared in my setup. I google for it but not got clear 
answer - that cause it and that need to do to solve it.

Can someone help?

-- 
Best regards,
Proskurin Kirill

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] btape spouradically times out on test command

2010-05-26 Thread Christoph Lehmann
Hello list,

i have a problem with btape (bacula-sd too) and writing on a tape. After
a while it times out sporadically and i can't find out the reason. The
problem is reproducable.

Filling the tape with tar works well, I tested all the commands (rewind,
fsr,bsr ...) by hand and there is no problem with that. The mtx-changer
script from bacula works well too.

My environment:

Hardware:
- a linux server running Debian Linux 2.6.32-bpo.4-xen-686 #1 SMP Tue
Apr 13 16:03:38 UTC 2010 i686 GNU/Linux
- a new Tapechanger Quantum Superloader 3 LTO4 with an Ultrium 4 drive
(2190)
- its coupled with an Adaptec 1045 SAS-adapter

Since kernel 2.6.30 the mvsas-module supports the adapter

Software:
- Bacula 5.0.1-1 installed from the Backports
- mt-st 1.1-4
- i recompiled the st driver with debugging: st: Version 20081215, fixed
bufsize 32768, s/g segs 256

backup:~# lsscsi 
[1:0:0:0]tapeQUANTUM  ULTRIUM 42190  /dev/st0
[1:0:0:1]mediumx QUANTUM  UHDL 0061  /dev/sch0

backup:~# lsmod ...stripped...
scsi_transport_sas 15093  2 mvsas,libsas
libata114448  3 ata_piix,ata_generic,libsas
scsi_mod  101065  9
sg,st,osst,ch,sd_mod,mvsas,libsas,scsi_transport_sas,libata

backup:~# tapeinfo -f /dev/sg4
Product Type: Tape Drive
Vendor ID: 'QUANTUM '
Product ID: 'ULTRIUM 4   '
Revision: '2190'
Attached Changer API: No
SerialNumber: 'JN0933AMJ50492'
MinBlock: 1
MaxBlock: 16777215
SCSI ID: 0
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: Not Loaded
Density Code: 0x46
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x1
DeCompType: 0x1
Block Position: 14111
Partition 0 Remaining Kbytes: 853050
Partition 0 Size in Kbytes: 853060
ActivePartition: 0
EarlyWarningSize: 0

backup:~# cat /etc/stinit.def
# Defaults, i added read-ahead and scsi2logical
{buffer-writes read-ahead can-bsr scsi2logical async-writes}
# Entry from EMC NetWorker Technical Note
manufacturer=QUANTUM model=ULTRIUM 4 {
auto-lock=0
timeout=800
long-timeout=3600
can-partition=0
scsi2logical=1
# This gives the highest performance, but with old versions of st module
it can cause problems with spaning tapes
async-writes=1
# linux does not have full LTO-4 support to set modeline properly
(should be 0x46 for LTO-4), so use device defaults instead
mode1 blocksize=0 density=0x00
}

In the document there was the option drive-buffering, but it's not
available (and covered with buffer-writes?)

backup:~# mt-st -f /dev/nst0 stshowopt
The options set: buffer-writes async-writes read-ahead can-bsr
scsi2logical

backup:~# cat /proc/sys/kernel/hung_task_timeout_secs
300

Storage-Daemon configuration:

Autochanger {
  Name = wechsler
  Device = band
  Changer Command = sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %
d
  Changer Device = /dev/sg5
}
Device {
  Name = band
  Drive Index = 0
  Media Type = LTO-4
  Archive Device = /dev/nst0
  Device Type = Tape
  Automatic Mount = yes;   # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Maximum File Size = 1GB #2GB #5GB
  Changer Command = sudo /etc/bacula/scripts/mtx-changer %c %o %S %a %
d
  Changer Device = /dev/sg5
  AutoChanger = yes
  Maximum Changer Wait = 300
}

Okay, I can run btape test and it times out spouradically

command: strace -ftt -ostrace_btape4 btape -c /etc/bacula/bacula-sd.conf
band

dmesg output since loading the recompiled module, maybe interesting: 

[59066.912097] st: Version 20081215, fixed bufsize 32768, s/g segs 256
[59066.912504] st 1:0:0:0: Attached scsi tape st0
[59066.912548] st 1:0:0:0: st0: try direct i/o: yes (alignment 4 B)
[59066.973150] st0: Block limits 1 - 16777215 bytes.
[59066.973818] st0: Mode sense. Length 11, medium 0, WBS 10, BLL 8
[59066.973867] st0: Density 46, tape length: 0, drv buffer: 1
[59066.973914] st0: Block size: 0, buffer size: 4096 (1 blocks).
[59066.980191] st0: Block limits 1 - 16777215 bytes.
[59066.980856] st0: Mode sense. Length 11, medium 0, WBS 10, BLL 8
[59066.980905] st0: Density 46, tape length: 0, drv buffer: 1
[59066.980952] st0: Block size: 0, buffer size: 4096 (1 blocks).
[59066.981004] st0: Normal timeout set to 800 seconds.
[59066.981040] st0: Long timeout set to 3600 seconds.
[59066.981079] st0: Mode 0 options: buffer writes: 1, async writes: 1,
read ahead: 1
[59066.981138] st0:can bsr: 1, two FMs: 0, fast mteom: 0, auto lock:
0,
[59066.981178] st0:defs for wr: 0, no block limits: 0, partitions:
0, s2 log: 0
[59066.981237] st0:sysv: 0 nowait: 0 sili: 0
[59066.981271] st0:debugging: 1
[59066.981303] st0: Mode 0 options: buffer writes: 1, async writes: 1,
read ahead: 1
[59066.981363] st0:can bsr: 1, two FMs: 0, fast mteom: 0, auto lock:
0,
[59066.981403] st0:defs for wr: 0, no block limits: 0, partitions:
0, s2 log: 1
[59066.981463] st0:sysv: 0 nowait: 0 sili: 0
[59066.981497] st0:debugging: 1
[59066.981528] st0: Default block size set to 0 bytes.
[59066.981564] 

[Bacula-users] Error Webacula

2010-05-26 Thread mario parreño

I have installed Bacula 5.0.2 with Mysql 5 and I install Webacula, with 
Apache2, Php5.
When I go to http:\localhost\webacula, I entry in the interface of Webacula but 
It gives me a mistake:
  ERROR: Ocurrió un problema al 
ejecutar bconsole. Vea debajo.
ERROR
Command: 
 
/sbin/bconsole -n -c /etc/bacula/bconsole.conf
 output:

I think that can will to be a mistake of permissions.

 I have tried to execute:
  su -l bacula -s /bin/sh -c /sbin/bconsole -n -c 
/etc/bacula/bconsole.conf
  su www-data -s /bin/sh -c /sbin/bconsole -n -c /etc/bacula/bconsole.conf

 But he returns this to me.
  /sbin/bconsole: error while loading shared libraries: libbaccfg-5.0.1.so: 
cannot open shared object file: No such file or directory

 Someone can to help myself?
 
  
_
Consejos para seducir ¿Puedes conocer gente nueva a través de Internet? 
¡Regístrate ya!
http://contactos.es.msn.com/?mtcmk=015352--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error Webacula

2010-05-26 Thread Krzysztof Pawlikiewicz
On 26/05/2010, mario parreño wrote:
 
 I have installed Bacula 5.0.2 with Mysql 5 and I install Webacula, with 
 Apache2, Php5.
 When I go to http:\localhost\webacula, I entry in the interface of Webacula 
 but It gives me a mistake:
   ERROR: Ocurrió un problema al 
 ejecutar bconsole. Vea debajo.
 ERROR
 Command: 
  
 /sbin/bconsole -n -c /etc/bacula/bconsole.conf
  output:
 
 I think that can will to be a mistake of permissions.
 
  I have tried to execute:
   su -l bacula -s /bin/sh -c /sbin/bconsole -n -c 
 /etc/bacula/bconsole.conf
   su www-data -s /bin/sh -c /sbin/bconsole -n -c 
 /etc/bacula/bconsole.conf
 
  But he returns this to me.
   /sbin/bconsole: error while loading shared libraries: 
 libbaccfg-5.0.1.so: cannot open shared object file: No such file or directory
 
  Someone can to help myself?

Hi,
I don't know what is your environment, but you can run bconsole with strace and 
see what is missing, or the easy way to '. /configure'  to add 
'--enable-static-cons --disable-libtool'

-- 
Regards,
Krzysztof Pawlikiewicz

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula cannot write on disk Volume... because: The sizes do not match!

2010-05-26 Thread John Drescher
On Wed, May 26, 2010 at 3:49 AM, Proskurin Kirill
proskurin...@fxclub.org wrote:
 Hello all!

 What we have:
 FreeBSD-8.0-p2 amd64
 Bacula-3.0.3
 MySQL-5.1.44

 I have a working bacula setup for an 4-5 month without any problems.

 Today I notice an error:

 26-May 06:46 hide.domain.org-sd JobId 1645: Volume
 hide.domain.org-0074 previously written, moving to end of data.
 26-May 06:46 hide.domain.org-sd JobId 1645: Error: Bacula cannot write
 on disk Volume hide.domain.org-0074 because: The sizes do not match!
 Volume=17941393742 Catalog=17799660878
 26-May 06:46 hide.domain.org-sd JobId 1645: Marking Volume
 hide.domain.org-0074 in Error in Catalog.

 It is first time appeared in my setup. I google for it but not got clear
 answer - that cause it and that need to do to solve it.

 Can someone help?


This happens when what the catalog believes the size of the volume is
differs from the actual size. I have seen this happen on the case of a
job ending in error. The big question is do you need to fix it? If
bacula can just create another volume its probably best to leave it
alone. If not you need to edit the database to make the the sizes
match.

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fwd: Logging bconsole activity

2010-05-26 Thread Anatoly Pugachev

Hello!

At least 3.0.3 source code have readline code support, so readline
history, it should go into ~/.bconsole_history, check that your bacula
compiled with readline support. (possibly 

$ ldd /usr/bin/bconsole | grep readline

will do)

On 25.05.2010 / 21:46:35 +0100, Dermot Beirne wrote:
 Hi,
 I got no response to my original question below, so I'll try once more.
 Does anyone know if the actual bconsole commands are logged
 anywhere.  I'm trying to identify if a problem is a configuration issue
 or human error.
 Thank you
 Dermot.
 
 
 -- Forwarded message --
 From: Dermot Beirne dermot.bei...@dpd.ie
 Date: 17 May 2010 11:22
 Subject: Logging bconsole activity
 To: bacula-users@lists.sourceforge.net
 
 
 Hi,
 Is it possible to log bconsole actvity, and where is it logging to?
 
 I had some issues where it appears an admin forgot to run the mount
 command after changing tapes, but i want to know if I can confirm
 this, or if there is another issue i need to be investigating in
 bacula.
 
 I'm using Bacula version 3.0.2 on Ubuntu 9.04
 
 Thank you.
 
 Dermot.
 

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula using volume for each job every night

2010-05-26 Thread Joseph Spenner
--- On Tue, 5/25/10, Phil Stracchino ala...@metrocast.net wrote:


  Which section would I place the Maximum Concurrent
 Jobs = 20 in the bacula-dir.conf ?
 
 In both the Director resource and all applicable Storage
 resources.
 

Last night still used multiple volumes, so I decided to wipe the volumes and 
the database, and let bacula start over.  I created my new 21 volumes, but as I 
recall, I need to do something to the volumes (mark them in some special way) 
to make sure they get recycled (cycle over and over).  Do I just go into bat 
and mark each volume 'recycle' ?



  

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula using volume for each job every night

2010-05-26 Thread Joseph Spenner
--- On Wed, 5/26/10, Joseph Spenner joseph85...@yahoo.com wrote:

 
 Last night still used multiple volumes, so I decided to
 wipe the volumes and the database, and let bacula start
 over.  I created my new 21 volumes, but as I recall, I
 need to do something to the volumes (mark them in some
 special way) to make sure they get recycled (cycle over and
 over).  Do I just go into bat and mark each volume
 'recycle' ?
 

This is how I am currently set:

*list media pool=File
+-++---+-+--+--+--+-+--+---+---+-+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-++---+-+--+--+--+-+--+---+---+-+
|   1 | file_0001  | Append|   1 |0 |0 |
1,728,000 |   1 |0 | 0 | File  | -00-00 00:00:00 |
|   2 | file_0002  | Append|   1 |0 |0 |
1,728,000 |   1 |1 | 0 | File  | -00-00 00:00:00 |
|   3 | file_0003  | Append|   1 |0 |0 |
1,728,000 |   1 |2 | 0 | File  | -00-00 00:00:00 |
|   4 | file_0004  | Append|   1 |0 |0 |
1,728,000 |   1 |3 | 0 | File  | -00-00 00:00:00 |
|   5 | file_0005  | Append|   1 |0 |0 |
1,728,000 |   1 |4 | 0 | File  | -00-00 00:00:00 |
|   6 | file_0006  | Append|   1 |0 |0 |
1,728,000 |   1 |5 | 0 | File  | -00-00 00:00:00 |
|   7 | file_0007  | Append|   1 |0 |0 |
1,728,000 |   1 |6 | 0 | File  | -00-00 00:00:00 |
|   8 | file_0008  | Append|   1 |0 |0 |
1,728,000 |   1 |7 | 0 | File  | -00-00 00:00:00 |
|   9 | file_0009  | Append|   1 |0 |0 |
1,728,000 |   1 |8 | 0 | File  | -00-00 00:00:00 |
|  10 | file_0010  | Append|   1 |0 |0 |
1,728,000 |   1 |9 | 0 | File  | -00-00 00:00:00 |
|  11 | file_0011  | Append|   1 |0 |0 |
1,728,000 |   1 |   10 | 0 | File  | -00-00 00:00:00 |
|  12 | file_0012  | Append|   1 |0 |0 |
1,728,000 |   1 |   11 | 0 | File  | -00-00 00:00:00 |
|  13 | file_0013  | Append|   1 |0 |0 |
1,728,000 |   1 |   12 | 0 | File  | -00-00 00:00:00 |
|  14 | file_0014  | Append|   1 |0 |0 |
1,728,000 |   1 |   13 | 0 | File  | -00-00 00:00:00 |
|  15 | file_0015  | Append|   1 |0 |0 |
1,728,000 |   1 |   14 | 0 | File  | -00-00 00:00:00 |
|  16 | file_0016  | Append|   1 |0 |0 |
1,728,000 |   1 |   15 | 0 | File  | -00-00 00:00:00 |
|  17 | file_0017  | Append|   1 |0 |0 |
1,728,000 |   1 |   16 | 0 | File  | -00-00 00:00:00 |
|  18 | file_0018  | Append|   1 |0 |0 |
1,728,000 |   1 |   17 | 0 | File  | -00-00 00:00:00 |
|  19 | file_0019  | Append|   1 |0 |0 |
1,728,000 |   1 |   18 | 0 | File  | -00-00 00:00:00 |
|  20 | file_0020  | Append|   1 |0 |0 |
1,728,000 |   1 |   19 | 0 | File  | -00-00 00:00:00 |
|  21 | file_0021  | Append|   1 |0 |0 |
1,728,000 |   1 |   20 | 0 | File  | -00-00 00:00:00 |
+-++---+-+--+--+--+-+--+---+---+-+
*

Am I good to go?



  

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula using volume for each job every night

2010-05-26 Thread Phil Stracchino
On 05/26/10 08:22, Joseph Spenner wrote:
 Last night still used multiple volumes, so I decided to wipe the volumes and 
 the database, and let bacula start over.  I created my new 21 volumes, but as 
 I recall, I need to do something to the volumes (mark them in some special 
 way) to make sure they get recycled (cycle over and over).  Do I just go into 
 bat and mark each volume 'recycle' ?

New volumes will be in state 'Append' and do not need to be marked in
any way.

-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula using volume for each job every night

2010-05-26 Thread John Drescher
On Wed, May 26, 2010 at 8:22 AM, Joseph Spenner joseph85...@yahoo.com wrote:
 --- On Tue, 5/25/10, Phil Stracchino ala...@metrocast.net wrote:


  Which section would I place the Maximum Concurrent
 Jobs = 20 in the bacula-dir.conf ?

 In both the Director resource and all applicable Storage
 resources.


 Last night still used multiple volumes, so I decided to wipe the volumes and 
 the database, and let bacula start over.  I created my new 21 volumes, but as 
 I recall, I need to do something to the volumes (mark them in some special 
 way) to make sure they get recycled (cycle over and over).  Do I just go into 
 bat and mark each volume 'recycle' ?


Were they marked used before you deleted them?

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Re cycling not working.

2010-05-26 Thread gnowar

Hey, 

I've a problem (I guess) cause bacula doesn't recycle my tape, even when
volume retention is over.

Here is the pool part of my bacula-dir.conf :

# Tape Pool definition
Pool {
  Name = TapePool
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Use Duration = 18 hours
  Volume Retention = 20 days # one year
  Maximum Volumes = 1 # Limit number of Volumes in Pool
  Maximum Volume Jobs = 2
  Label Format = Day-
}

Look at the tape day-20A (retention period and the last written thing)
http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/

And now look at the error (1month after the last written thing on the tape,
bacula seems to not recycle the tape..)
http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/


There is a problem, right ?
-- 
View this message in context: 
http://old.nabble.com/Recycling-not-working.-tp28680351p28680351.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula using volume for each job every night

2010-05-26 Thread Phil Stracchino
On 05/26/10 08:43, Joseph Spenner wrote:
 This is how I am currently set:
 
 *list media pool=File
 +-++---+-+--+--+--+-+--+---+---+-+
 | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | 
 VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
 +-++---+-+--+--+--+-+--+---+---+-+
 |   1 | file_0001  | Append|   1 |0 |0 |
 1,728,000 |   1 |0 | 0 | File  | -00-00 00:00:00 |
 |   2 | file_0002  | Append|   1 |0 |0 |
 1,728,000 |   1 |1 | 0 | File  | -00-00 00:00:00 |
 |   3 | file_0003  | Append|   1 |0 |0 |
 1,728,000 |   1 |2 | 0 | File  | -00-00 00:00:00 |
 |   4 | file_0004  | Append|   1 |0 |0 |
 1,728,000 |   1 |3 | 0 | File  | -00-00 00:00:00 |
 |   5 | file_0005  | Append|   1 |0 |0 |
 1,728,000 |   1 |4 | 0 | File  | -00-00 00:00:00 |
 |   6 | file_0006  | Append|   1 |0 |0 |
 1,728,000 |   1 |5 | 0 | File  | -00-00 00:00:00 |
 |   7 | file_0007  | Append|   1 |0 |0 |
 1,728,000 |   1 |6 | 0 | File  | -00-00 00:00:00 |
 |   8 | file_0008  | Append|   1 |0 |0 |
 1,728,000 |   1 |7 | 0 | File  | -00-00 00:00:00 |
 |   9 | file_0009  | Append|   1 |0 |0 |
 1,728,000 |   1 |8 | 0 | File  | -00-00 00:00:00 |
 |  10 | file_0010  | Append|   1 |0 |0 |
 1,728,000 |   1 |9 | 0 | File  | -00-00 00:00:00 |
 |  11 | file_0011  | Append|   1 |0 |0 |
 1,728,000 |   1 |   10 | 0 | File  | -00-00 00:00:00 |
 |  12 | file_0012  | Append|   1 |0 |0 |
 1,728,000 |   1 |   11 | 0 | File  | -00-00 00:00:00 |
 |  13 | file_0013  | Append|   1 |0 |0 |
 1,728,000 |   1 |   12 | 0 | File  | -00-00 00:00:00 |
 |  14 | file_0014  | Append|   1 |0 |0 |
 1,728,000 |   1 |   13 | 0 | File  | -00-00 00:00:00 |
 |  15 | file_0015  | Append|   1 |0 |0 |
 1,728,000 |   1 |   14 | 0 | File  | -00-00 00:00:00 |
 |  16 | file_0016  | Append|   1 |0 |0 |
 1,728,000 |   1 |   15 | 0 | File  | -00-00 00:00:00 |
 |  17 | file_0017  | Append|   1 |0 |0 |
 1,728,000 |   1 |   16 | 0 | File  | -00-00 00:00:00 |
 |  18 | file_0018  | Append|   1 |0 |0 |
 1,728,000 |   1 |   17 | 0 | File  | -00-00 00:00:00 |
 |  19 | file_0019  | Append|   1 |0 |0 |
 1,728,000 |   1 |   18 | 0 | File  | -00-00 00:00:00 |
 |  20 | file_0020  | Append|   1 |0 |0 |
 1,728,000 |   1 |   19 | 0 | File  | -00-00 00:00:00 |
 |  21 | file_0021  | Append|   1 |0 |0 |
 1,728,000 |   1 |   20 | 0 | File  | -00-00 00:00:00 |
 +-++---+-+--+--+--+-+--+---+---+-+
 *
 
 Am I good to go?

The volumes look fine.  If it still uses multiple volumes, I don't think
it's a media problem.

-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Best practice - MS Sql

2010-05-26 Thread Carlo Filippetto
Hi all,
I have a server with Microsoft Sql Server, I need to backup it.

Today I tried a FULL restore job, I receive several error with file
lock at the end of the job, and to let it work well I need to
reinstall Sql Server... why?

This DBMS is under Windows 2k3

There is a best way to backup this kind of server?

Thank's


CIAO

---
Carlo Filippetto

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re cycling is not working.

2010-05-26 Thread John Drescher
 I've a problem (I guess) cause bacula doesn't recycle my tape, even when
 volume retention is over.

 Here is the pool part of my bacula-dir.conf :

 # Tape Pool definition
 Pool {
  Name = TapePool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Use Duration = 18 hours
  Volume Retention = 20 days         # one year
  Maximum Volumes = 1                 # Limit number of Volumes in Pool
  Maximum Volume Jobs = 2
  Label Format = Day-
 }

 Look at the tape day-20A (retention period and the last written thing)
 http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/

 And now look at the error (1month after the last written thing on the tape,
 bacula seems to not recycle the tape..)
 http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/


 There is a problem, right ?
 --

Yes there is a problem with your configuration. You have it configured
to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20
days until it can be used again. I do not think this is what you want.

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re cycling is not working.

2010-05-26 Thread John Drescher
On Wed, May 26, 2010 at 9:57 AM, John Drescher dresche...@gmail.com wrote:
 I've a problem (I guess) cause bacula doesn't recycle my tape, even when
 volume retention is over.

 Here is the pool part of my bacula-dir.conf :

 # Tape Pool definition
 Pool {
  Name = TapePool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Use Duration = 18 hours
  Volume Retention = 20 days         # one year
  Maximum Volumes = 1                 # Limit number of Volumes in Pool
  Maximum Volume Jobs = 2
  Label Format = Day-
 }

 Look at the tape day-20A (retention period and the last written thing)
 http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/

 And now look at the error (1month after the last written thing on the tape,
 bacula seems to not recycle the tape..)
 http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/


 There is a problem, right ?
 --

 Yes there is a problem with your configuration. You have it configured
 to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20
 days until it can be used again. I do not think this is what you want.

I missed the other condition. On top of a maximum of 2 jobs to a
volume you limit the volume to 18 hours of usage. So the second job
must be started within 18 hours of the first.

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re cycling is not working.

2010-05-26 Thread John Drescher
On Wed, May 26, 2010 at 10:20 AM, John Drescher dresche...@gmail.com wrote:
 On Wed, May 26, 2010 at 9:57 AM, John Drescher dresche...@gmail.com wrote:
 I've a problem (I guess) cause bacula doesn't recycle my tape, even when
 volume retention is over.

 Here is the pool part of my bacula-dir.conf :

 # Tape Pool definition
 Pool {
  Name = TapePool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Use Duration = 18 hours
  Volume Retention = 20 days         # one year
  Maximum Volumes = 1                 # Limit number of Volumes in Pool
  Maximum Volume Jobs = 2
  Label Format = Day-
 }

 Look at the tape day-20A (retention period and the last written thing)
 http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/

 And now look at the error (1month after the last written thing on the tape,
 bacula seems to not recycle the tape..)
 http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/


 There is a problem, right ?
 --

 Yes there is a problem with your configuration. You have it configured
 to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20
 days until it can be used again. I do not think this is what you want.

 I missed the other condition. On top of a maximum of 2 jobs to a
 volume you limit the volume to 18 hours of usage. So the second job
 must be started within 18 hours of the first.


Sorry. I see what you mean from the pictures. I would still get rid of
Maximum Volumes = 1 because that may be confusing bacula since you
have way more than 1 volume in the pool.

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO-4 Drive issues

2010-05-26 Thread Sven Hartge
On 26.05.2010 01:55, skipunk wrote:

 The nic's in the server are Broadcom's netextreme II's. I would
 assume that they would support checksum offload and large tcp packet
 offload, but I really I'm not sure.

They do support all offload options.

But those options don't boost you from 40MByte/s to 100MByte/s, they
help servers which are already very loaded and your local memory and CPU
throughput is limiting you.

If your CPU is mostly idle, then offloading won't buy you much. (At
least with 1GB NICs. With 10GB NICs this is a whole different picture.)

But beware: some Linux versions had problems with offloading, so while
benchmarking your network with netio and iperf it may be worthwhile to
toggle some offloading options to see if you get any changes in
throughput and/or CPU load.

Grüße,
Sven.

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem bweb

2010-05-26 Thread Victor Lima
Hi everyone, first sorry about my english.

When i try to use some functionality of bweb, that uses the bconsole i'm get
the following message:

*E: bconsole (/etc/bacula/bacula-5.0.2/bin/bconsole -n) Invalid argument -1,
referer: http://10.67.4.36/cgi-bin/bweb/bweb.pl?action=add_media*

I know it is some setting in the configuration of bconsole. But I do not
know
what. Can anyone help me?
--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re cycling is not working.

2010-05-26 Thread gnowar

Yeah thanks !

I had not understood the maximum volume use, you're saying I've to wait 20
days from the last tape written right ? (cause there is only 1 volume in the
pool ?)

I thought it was from the last written value of a specific tape I had to
care about to reuse the same one.

It's ok for the volume use duration, I understand that one ;)

Number of tapes will grow up every month so I've commented the maximum
volume, restarted the backup and it looks good now.

Thanks John ! (again ! ;)


John M. Drescher wrote:
 
 On Wed, May 26, 2010 at 9:57 AM, John Drescher dresche...@gmail.com
 wrote:
 I've a problem (I guess) cause bacula doesn't recycle my tape, even when
 volume retention is over.

 Here is the pool part of my bacula-dir.conf :

 # Tape Pool definition
 Pool {
  Name = TapePool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
 Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Use Duration = 18 hours
  Volume Retention = 20 days         # one year
  Maximum Volumes = 1                 # Limit number of Volumes in Pool
  Maximum Volume Jobs = 2
  Label Format = Day-
 }

 Look at the tape day-20A (retention period and the last written thing)
 http://www.flickr.com/photos/47940...@n08/4641302169/sizes/l/

 And now look at the error (1month after the last written thing on the
 tape,
 bacula seems to not recycle the tape..)
 http://www.flickr.com/photos/47940...@n08/4641307241/sizes/l/


 There is a problem, right ?
 --

 Yes there is a problem with your configuration. You have it configured
 to use only 1 volume. Write up to 2 jobs on that 1 volume then wait 20
 days until it can be used again. I do not think this is what you want.

 I missed the other condition. On top of a maximum of 2 jobs to a
 volume you limit the volume to 18 hours of usage. So the second job
 must be started within 18 hours of the first.
 
 John
 
 --
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 

-- 
View this message in context: 
http://old.nabble.com/Recycling-is-not-working.-tp28680351p28681737.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Best practice - MS Sql

2010-05-26 Thread John Doe
From: Carlo Filippetto carlo.filippe...@gmail.com
 I have a server with Microsoft Sql Server, I need to 
 backup it.
 Today I tried a FULL restore job, I receive several 
 error with file lock at the end of the job, and to let it 
 work well I need to reinstall Sql Server... why?
 This DBMS is under Windows 2k3
 There is a best way to backup this kind of server?

In the Windows section of the documentation, they say:
If you are not using the VSS (Volume Shadow Copy) option described in the
next section of this chapter, and if any applications are running during
the backup and they have files opened exclusively, Bacula will not be able
to backup those files, so be sure you close your applications (or tell your
users to close their applications) before the backup.
http://www.bacula.org/5.0.x-manuals/en/main/main/Windows_Version_Bacula.html#SECTION00375
So maybe check VSS...

JD


  

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Upgrading copy jobs to backup jobs

2010-05-26 Thread C . Keschnat
Hi,
this is from the bacula documentation:
Note that when a copy is made, the original JobIds are left unchanged. 
The new copies can not be used for restoration unless you specifically 
choose them by JobId. If you subsequently delete a JobId that has a copy, 
the copy will be automatically upgraded to a Backup rather than a Copy, 
and it will subsequently be used for restoration.

The first part works, I can restore files from the copy when I choose the 
job by jobid. But after deleting the original job bacula tells me there is 
no backup when trying to restore. So this automatic upgrade doesn't seem 
to work. Also list jobs  still shows a C for the copy job, no B. Any 
ideas?

Chris
--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 5.0.2 src rpm dependency bug?

2010-05-26 Thread Martin Simmons
 On Mon, 24 May 2010 17:02:21 +0100, Alan Brown said:
 
 Scott et al,
 
 After building the 5.0.2 packages ()postgres flavour) and trying to 
 install the client package, I got the following errors:
 
 
 Dependencies Resolved
 
 
   Package Arch Version 
 Repository   Size
 
 Installing:
   bacula-libs x86_64   5.0.2-1 
 /bacula-libs-5.0.2-1.x86_64 2.9 M
 Updating:
   bacula-client   x86_64   5.0.2-1 
 /bacula-client-5.0.2-1.x86_64   463 k
 Installing for dependencies:
   postgresql84-libs   x86_64   8.4.4-1.el5_5.1 
 rhel-x86_64-server-5200 k
 
 Transaction Summary
 
 
 Why is there a postgres dependency in the client package?

Is the dependency definitely coming from the client package and not
bacula-libs?

There is a currently an interesting misfeature that makes bacula-libs depend
on the database because it contains libbacsql.

__Martin

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 5.0.2 and is waiting on storage file

2010-05-26 Thread Jesse Angell
Agree -  I can't figure it out.

I found a similar bug:
http://bugs.bacula.org/view.php?id=1578

I commented my issue in it.
- Original Message -
From: Phil Stracchino ala...@metrocast.net
To: bacula-users@lists.sourceforge.net
Sent: Tuesday, May 25, 2010 1:54:26 PM GMT -06:00 US/Canada Central
Subject: Re: [Bacula-users] Bacula 5.0.2 and is waiting on storage file

On 05/25/10 14:45, Jesse Angell wrote:
 I'm pretty sure my configuration is fine.  It worked just fine on
 3.0.3
 
 One interesting thing I just noticed --
 
 If I cancel all the backups and then start several (including one
 large one that takes about a day) it works fine.  But after that
 large backup is running for about 30 minutes - you can no longer get
 any other job to run with it (is waiting on storage file).
 
 Almost seems like once it runs for awhile,  perhaps once it rotates
 to a new tape,  it blocks everything else... Odd

That's very curious behavior.  At the moment, I couldn't make a guess as
to what's causing it.


-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
 Renaissance Man, Unix ronin, Perl hacker, Free Stater
 It's not the years, it's the mileage.

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Why does bacula keep giving me these errors

2010-05-26 Thread randalls
I have been using bacula for some time with an overland neo 2000.

However, Sometimes I receive these errors:

You have messages.
*messages
26-May 16:07 mlbkp1-sd JobId 3152: 3304 Issuing autochanger load slot 17, 
drive 0 command.
26-May 16:08 mlbkp1-sd JobId 3152: 3305 Autochanger load slot 17, drive 0, 
status is OK.
26-May 16:08 mlbkp1-sd JobId 3152: Please mount Volume 68L3 or label a 
new one for:
Job:  FS1_Data_Home_Dirs.2010-05-26_16.07.00_04
Storage:  neodrive-1 (/dev/st0)
Pool: Mainlab-six-month-pool-incremental
Media type:   Ultrium-3

Clearly the tap changer has loaded the tape into drive 0 from slot 17, which I 
have verified actually does have volume 68L3.

So why does it say please mount volume or label a new one?  Why does it keep 
saying this despite the fact the tape is loaded in the drive?

Anyone know why.  Typically, I just label a new tape, and that fixes the 
problem, but why the hell does it not just use the tape that it loaded into the 
drive in the first place instead of complaining about it.  

Thanks,

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Why does bacula keep giving me these errors

2010-05-26 Thread randalls
To add to this, here is the information about the tape or volume.

 118 | 68L3   | Append|   1 |   755,983,807,488 |  759 |   
15,984,000 |   1 |   17 | 1 | Ultrium-3 | 2010-05-13 19:07:35

Thanks,

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



- Original Message -
From: randa...@bioinfo.wsu.edu
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, May 26, 2010 4:34:59 PM
Subject: [Bacula-users] Why does bacula keep giving me these errors

I have been using bacula for some time with an overland neo 2000.

However, Sometimes I receive these errors:

You have messages.
*messages
26-May 16:07 mlbkp1-sd JobId 3152: 3304 Issuing autochanger load slot 17, 
drive 0 command.
26-May 16:08 mlbkp1-sd JobId 3152: 3305 Autochanger load slot 17, drive 0, 
status is OK.
26-May 16:08 mlbkp1-sd JobId 3152: Please mount Volume 68L3 or label a 
new one for:
Job:  FS1_Data_Home_Dirs.2010-05-26_16.07.00_04
Storage:  neodrive-1 (/dev/st0)
Pool: Mainlab-six-month-pool-incremental
Media type:   Ultrium-3

Clearly the tap changer has loaded the tape into drive 0 from slot 17, which I 
have verified actually does have volume 68L3.

So why does it say please mount volume or label a new one?  Why does it keep 
saying this despite the fact the tape is loaded in the drive?

Anyone know why.  Typically, I just label a new tape, and that fixes the 
problem, but why the hell does it not just use the tape that it loaded into the 
drive in the first place instead of complaining about it.  

Thanks,

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Why does bacula keep giving me these errors

2010-05-26 Thread John Drescher
On Wed, May 26, 2010 at 7:37 PM,  randa...@bioinfo.wsu.edu wrote:
 To add to this, here is the information about the tape or volume.

     118 | 68L3   | Append    |       1 |   755,983,807,488 |      759 |   
 15,984,000 |       1 |   17 |         1 | Ultrium-3 | 2010-05-13 19:07:35


Can you post the

status stor

for the storage.

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Why does bacula keep giving me these errors

2010-05-26 Thread randalls

Connecting to Director 10.0.0.176:9101
1000 OK: mlbkp1-dir Version: 5.0.1 (24 February 2010)
Enter a period to cancel a command.
*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type for status (1-4): 2
Automatically selected Storage: Overland Neo2000
Connecting to Storage daemon Overland Neo2000 at 10.0.0.176:9103

mlbkp1-sd Version: 5.0.1 (24 February 2010) x86_64-unknown-linux-gnu ubuntu 9.04
Daemon started 26-May-10 16:03, 0 Jobs run since started.
 Heap: heap=450,560 smbytes=165,208 max_bytes=263,839 bufs=131 max_bufs=143
Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8

Running Jobs:
Writing: Incremental Backup job FS1_Data_Home_Dirs JobId=3152 Volume=68L3
pool=Mainlab-six-month-pool-incremental device=neodrive-1 (/dev/st0)
spooling=0 despooling=0 despool_wait=0
Files=0 Bytes=0 Bytes/sec=0
FDReadSeqNo=6 in_msg=6 out_msg=4 fd=7


Jobs waiting to reserve a drive:


Terminated Jobs:
 JobId  LevelFiles  Bytes   Status   FinishedName 
===
  3130  Incr  0 0   Error17-May-10 17:15 FS1_Data_MISC
  3131  Incr  0 0   Error18-May-10 17:05 FS1_Data_Home_Dirs
  3132  Incr  0 0   Error18-May-10 17:10 FS1_Data_main.data
  3133  Incr  0 0   Error18-May-10 17:15 FS1_Data_MISC
  3134  Incr  0 0   Error19-May-10 17:05 FS1_Data_Home_Dirs
  3135  Incr  0 0   Error19-May-10 17:10 FS1_Data_main.data
  3136  Incr  0 0   Error19-May-10 17:15 FS1_Data_MISC
  3137  Incr  0 0   Error25-May-10 13:22 FS1_Data_Home_Dirs
  3138  Incr  0 0   Error25-May-10 13:27 FS1_Data_main.data
  3139  Incr  0 0   Cancel   25-May-10 13:32 FS1_Data_MISC


Device status:
Autochanger NeoChanger with devices:
   neodrive-1 (/dev/st0)
   neodrive-2 (/dev/st1)
Device neodrive-1 (/dev/st0) open but no Bacula volume is currently mounted.
Device is BLOCKED waiting for mount of volume 68L3,
   Pool:Mainlab-six-month-pool-incremental
   Media type:  Ultrium-3
Slot 17 is loaded in drive 0.
Total Bytes Read=645,120 Blocks Read=10 Bytes/block=64,512
Positioned at File=0 Block=0
Device neodrive-2 (/dev/st1) is mounted with:
Volume:  09L3
Pool:*unknown*
Media type:  Ultrium-3
Slot 29 is loaded in drive 1.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=1 Block=0


Used Volume status:
09L3 on device neodrive-2 (/dev/st1)
Reader=0 writers=0 devres=0 volinuse=0
68L3 on device neodrive-1 (/dev/st0)
Reader=0 writers=0 devres=1 volinuse=0




*


Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



- Original Message -
From: randa...@bioinfo.wsu.edu
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, May 26, 2010 4:37:12 PM
Subject: Re: [Bacula-users] Why does bacula keep giving me these errors

To add to this, here is the information about the tape or volume.

 118 | 68L3   | Append|   1 |   755,983,807,488 |  759 |   
15,984,000 |   1 |   17 | 1 | Ultrium-3 | 2010-05-13 19:07:35

Thanks,

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



- Original Message -
From: randa...@bioinfo.wsu.edu
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, May 26, 2010 4:34:59 PM
Subject: [Bacula-users] Why does bacula keep giving me these errors

I have been using bacula for some time with an overland neo 2000.

However, Sometimes I receive these errors:

You have messages.
*messages
26-May 16:07 mlbkp1-sd JobId 3152: 3304 Issuing autochanger load slot 17, 
drive 0 command.
26-May 16:08 mlbkp1-sd JobId 3152: 3305 Autochanger load slot 17, drive 0, 
status is OK.
26-May 16:08 mlbkp1-sd JobId 3152: Please mount Volume 68L3 or label a 
new one for:
Job:  FS1_Data_Home_Dirs.2010-05-26_16.07.00_04
Storage:  neodrive-1 (/dev/st0)
Pool: Mainlab-six-month-pool-incremental
Media type:   Ultrium-3

Clearly the tap changer has loaded the tape into drive 0 from slot 17, which I 
have verified actually does have volume 68L3.

So why does it say please mount volume or label a new one?  Why does it keep 
saying this despite the fact the tape is loaded in the drive?

Anyone know why.  Typically, I just label a new tape, and that fixes the 
problem, but why the hell does it not just use the tape that it loaded into the 
drive in the first place instead of complaining about it.  

Thanks,

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



--

___
Bacula-users mailing list

Re: [Bacula-users] Why does bacula keep giving me these errors

2010-05-26 Thread randalls
To add to this, apparently this tape is just bad or needs to be erased.  I 
marked it read only and mounted another tape into drive 0 and everything seems 
to be working.  Is there any way for bacula to just say, Hey this tape is 
crap, send me an email and load another tape 

Thanks, 

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



- Original Message -
From: randa...@bioinfo.wsu.edu
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, May 26, 2010 4:50:39 PM
Subject: Re: [Bacula-users] Why does bacula keep giving me these errors


Connecting to Director 10.0.0.176:9101
1000 OK: mlbkp1-dir Version: 5.0.1 (24 February 2010)
Enter a period to cancel a command.
*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type for status (1-4): 2
Automatically selected Storage: Overland Neo2000
Connecting to Storage daemon Overland Neo2000 at 10.0.0.176:9103

mlbkp1-sd Version: 5.0.1 (24 February 2010) x86_64-unknown-linux-gnu ubuntu 9.04
Daemon started 26-May-10 16:03, 0 Jobs run since started.
 Heap: heap=450,560 smbytes=165,208 max_bytes=263,839 bufs=131 max_bufs=143
Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8

Running Jobs:
Writing: Incremental Backup job FS1_Data_Home_Dirs JobId=3152 Volume=68L3
pool=Mainlab-six-month-pool-incremental device=neodrive-1 (/dev/st0)
spooling=0 despooling=0 despool_wait=0
Files=0 Bytes=0 Bytes/sec=0
FDReadSeqNo=6 in_msg=6 out_msg=4 fd=7


Jobs waiting to reserve a drive:


Terminated Jobs:
 JobId  LevelFiles  Bytes   Status   FinishedName 
===
  3130  Incr  0 0   Error17-May-10 17:15 FS1_Data_MISC
  3131  Incr  0 0   Error18-May-10 17:05 FS1_Data_Home_Dirs
  3132  Incr  0 0   Error18-May-10 17:10 FS1_Data_main.data
  3133  Incr  0 0   Error18-May-10 17:15 FS1_Data_MISC
  3134  Incr  0 0   Error19-May-10 17:05 FS1_Data_Home_Dirs
  3135  Incr  0 0   Error19-May-10 17:10 FS1_Data_main.data
  3136  Incr  0 0   Error19-May-10 17:15 FS1_Data_MISC
  3137  Incr  0 0   Error25-May-10 13:22 FS1_Data_Home_Dirs
  3138  Incr  0 0   Error25-May-10 13:27 FS1_Data_main.data
  3139  Incr  0 0   Cancel   25-May-10 13:32 FS1_Data_MISC


Device status:
Autochanger NeoChanger with devices:
   neodrive-1 (/dev/st0)
   neodrive-2 (/dev/st1)
Device neodrive-1 (/dev/st0) open but no Bacula volume is currently mounted.
Device is BLOCKED waiting for mount of volume 68L3,
   Pool:Mainlab-six-month-pool-incremental
   Media type:  Ultrium-3
Slot 17 is loaded in drive 0.
Total Bytes Read=645,120 Blocks Read=10 Bytes/block=64,512
Positioned at File=0 Block=0
Device neodrive-2 (/dev/st1) is mounted with:
Volume:  09L3
Pool:*unknown*
Media type:  Ultrium-3
Slot 29 is loaded in drive 1.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=1 Block=0


Used Volume status:
09L3 on device neodrive-2 (/dev/st1)
Reader=0 writers=0 devres=0 volinuse=0
68L3 on device neodrive-1 (/dev/st0)
Reader=0 writers=0 devres=1 volinuse=0




*


Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



- Original Message -
From: randa...@bioinfo.wsu.edu
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, May 26, 2010 4:37:12 PM
Subject: Re: [Bacula-users] Why does bacula keep giving me these errors

To add to this, here is the information about the tape or volume.

 118 | 68L3   | Append|   1 |   755,983,807,488 |  759 |   
15,984,000 |   1 |   17 | 1 | Ultrium-3 | 2010-05-13 19:07:35

Thanks,

Randall Svancara
Systems Administrator/DBA/Developer
Main Bioinformatics Laboratory



- Original Message -
From: randa...@bioinfo.wsu.edu
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, May 26, 2010 4:34:59 PM
Subject: [Bacula-users] Why does bacula keep giving me these errors

I have been using bacula for some time with an overland neo 2000.

However, Sometimes I receive these errors:

You have messages.
*messages
26-May 16:07 mlbkp1-sd JobId 3152: 3304 Issuing autochanger load slot 17, 
drive 0 command.
26-May 16:08 mlbkp1-sd JobId 3152: 3305 Autochanger load slot 17, drive 0, 
status is OK.
26-May 16:08 mlbkp1-sd JobId 3152: Please mount Volume 68L3 or label a 
new one for:
Job:  FS1_Data_Home_Dirs.2010-05-26_16.07.00_04
Storage:  neodrive-1 (/dev/st0)
Pool: Mainlab-six-month-pool-incremental
Media type:   Ultrium-3

Clearly the tap changer has loaded the tape into drive 0 from slot 17, which I 
have verified actually does have volume 68L3.

So why does it say please mount volume or label 

Re: [Bacula-users] Why does bacula keep giving me these errors

2010-05-26 Thread John Drescher
On Wed, May 26, 2010 at 8:26 PM,  randa...@bioinfo.wsu.edu wrote:
 To add to this, apparently this tape is just bad or needs to be erased.  I 
 marked it read only and mounted another tape into drive 0 and everything 
 seems to be working.  Is there any way for bacula to just say, Hey this tape 
 is crap, send me an email and load another tape


You should replace /dev/st0 with /dev/nst0. With /dev/st0 there is a
chance of corruption caused by the os rewinding the volume without
bacula expecting.

John

--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users