Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory

2014-07-17 Thread Stefan Lamby
You wrote writing Volumes directly to a CIFS mount is not really a good idea for
a number of reasons.
What do you recommend as best practice instead?

Best regards,
Stefan


 Kern Sibbald k...@sibbald.com hat am 10. Juli 2014 um 17:36 geschrieben:
 
  Unfortunately, neither CIFS nor NFS include a truncate() function, and this
 problem was not noticed because not many people write Volumes directly to a
 CIFS/NFS mount.  Doing so is not really a good idea for a number of reasons
 reasons.
 
  Any way, once it was discovered (quite a long time ago), I fixed it by
 emulating a truncate.  Consequently, I suspect that if you upgrade to a more
 recent version of Bacula, it will probably work.
 
  Best regards,
  Kern
 
  On 07/10/2014 01:22 PM, Stefan Lamby wrote:
 
 Hello List.
  
   Once a week I got this error, when performing a backup.
   19 out of 20 backup jobs work well, one fails.
   The nas_01 device is a small 1 TB NAS, mounted via fstab:
   //192.168.1.9/Volume_1 /nas01_backupcifs
 soft,username=**,password=**,uid=107,gid=107   0 0
  
   The /nas01_backup/backup/ directory exists on the device and other jobs
  are using it successfully.
  
   Here is the output of the status mail:
  
   13-Jun 23:39 backnix05-dir JobId 11348: Start Backup JobId 11348,
  Job=extranix-bkpdir-full-nas.2014-06-13_23.30.00_57
   13-Jun 23:39 backnix05-dir JobId 11348: Using Device nas_01
   13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: label.c:464
  Truncate error on device nas_01 (/nas01_backup/backup): ERR=dev.c:2023
  Unable to truncate device nas_01 (/nas01_backup/backup). ERR=No such file
  or directory
  
   13-Jun 23:39 backnix05-sd JobId 11348: Marking Volume bkp-nas-0265 in
  Error in Catalog.
   13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: Job 11348 canceled.
   13-Jun 22:40 extranix-fd JobId 11348: Fatal error: job.c:2390 Bad
  response to Append Data command. Wanted 3000 OK data
   , got 3903 Error append data
  
   Do you have any advice/idea?
  
   Thank you very much.
   Stefan
  
  
  
  
  
  --
   Open source business process management suite built on Java and Eclipse
   Turn processes into business applications with Bonita BPM Community
  Edition
   Quickly connect people, data, and systems into organized workflows
   Winner of BOSSIE, CODIE, OW2 and Gartner awards
   http://p.sf.net/sfu/Bonitasoft
  
  
  
   ___
   Bacula-users mailing list
   Bacula-users@lists.sourceforge.net
  mailto:Bacula-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/bacula-users
  


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory

2014-07-17 Thread Josh Fisher

  
  
On 7/17/2014 4:38 AM, Stefan Lamby
  wrote:


  
   You wrote writing Volumes directly to a CIFS mount is not
really a good idea for a number of reasons. 
   What do you recommend as best practice instead? 


Bacula reads/writes blocks of data. Therefore block-based protocols
like iSCSI are a better fit than than file-based protocols like NFS
and CIFS,



   Best regards, 
   Stefan 

  
Kern Sibbald k...@sibbald.com hat am 10. Juli 2014 um
17:36 geschrieben: 

 Unfortunately, neither CIFS nor
  NFS include a truncate() function, and this problem was not
  noticed because not many people write Volumes directly to a
  CIFS/NFS mount. Doing so is not really a good idea for a
  number of reasons reasons. 
  
  Any way, once it was discovered (quite a long time ago), I
  fixed it by "emulating" a truncate. Consequently, I suspect
  that if you upgrade to a more recent version of Bacula, it
  will probably work. 
  
  Best regards, 
  Kern 
  


  


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory

2014-07-17 Thread Stefan Lamby
Got you, thanks.
Best regards,
Stefan


 Josh Fisher jfis...@pvct.com hat am 17. Juli 2014 um 14:12 geschrieben:
 
  On 7/17/2014 4:38 AM, Stefan Lamby wrote:
 
 You wrote writing Volumes directly to a CIFS mount is not really
a good idea for a number of reasons.
   What do you recommend as best practice instead?
  
 Bacula reads/writes blocks of data. Therefore block-based protocols like
iSCSI are a better fit than than file-based protocols like NFS and CIFS,
 
 

   Best regards,
   Stefan
  
  
   Kern Sibbald k...@sibbald.com mailto:k...@sibbald.com hat am
   10. Juli 2014 um 17:36 geschrieben:
   
 Unfortunately, neither CIFS nor NFS include a truncate() function,
   and this problem was not noticed because not many people write Volumes
   directly to a CIFS/NFS mount.  Doing so is not really a good idea for a
   number of reasons reasons.
   
 Any way, once it was discovered (quite a long time ago), I fixed it
   by emulating a truncate.  Consequently, I suspect that if you upgrade to
   a more recent version of Bacula, it will probably work.
   
 Best regards,
 Kern
   
  




 --
 Want fast and easy access to all the code in your enterprise? Index and search
 up to 200,000 lines of code with a free copy of Black Duck Code Sight - the
 same software that powers the world's largest code search on Ohloh, the Black
 Duck Open Hub! Try it now.
 http://p.sf.net/sfu/bds___
 Bacula-users mailing list Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory

2014-07-17 Thread Kern Sibbald

  
  
On 07/17/2014 10:38 AM, Stefan Lamby
  wrote:


  
   You wrote writing Volumes directly to a CIFS mount is not
really a good idea for a number of reasons. 
   What do you recommend as best practice instead? 


Write your Volumes to a natively mounted (not network mount) Linux
filesystem.

Best regards,
Kern



   Best regards, 
   Stefan 

  
Kern Sibbald k...@sibbald.com hat am 10. Juli 2014 um
17:36 geschrieben: 

 Unfortunately, neither CIFS nor
  NFS include a truncate() function, and this problem was not
  noticed because not many people write Volumes directly to a
  CIFS/NFS mount. Doing so is not really a good idea for a
  number of reasons reasons. 
  
  Any way, once it was discovered (quite a long time ago), I
  fixed it by "emulating" a truncate. Consequently, I suspect
  that if you upgrade to a more recent version of Bacula, it
  will probably work. 
  
  Best regards, 
  Kern 
  
  On 07/10/2014 01:22 PM, Stefan Lamby wrote: 

   Hello List. 

   Once a week I got this error, when performing a backup.
  
   19 out of 20 backup jobs work well, one fails. 
   The nas_01 device is a small 1 TB NAS, mounted via
fstab: 
   //192.168.1.9/Volume_1 /nas01_backup cifs
soft,username=**,password=**,uid=107,gid=107 0 0 

   The /nas01_backup/backup/ directory exists on the device
and other jobs are using it successfully. 

   Here is the output of the status mail: 

   13-Jun 23:39 backnix05-dir JobId 11348: Start Backup
JobId 11348,
Job=extranix-bkpdir-full-nas.2014-06-13_23.30.00_57 
13-Jun 23:39 backnix05-dir JobId 11348: Using Device
"nas_01" 
13-Jun 23:39 backnix05-sd JobId 11348: Fatal error:
label.c:464 Truncate error on device "nas_01"
(/nas01_backup/backup): ERR=dev.c:2023 Unable to truncate
device "nas_01" (/nas01_backup/backup). ERR=No such file or
directory 

13-Jun 23:39 backnix05-sd JobId 11348: Marking Volume
"bkp-nas-0265" in Error in Catalog. 
13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: Job
11348 canceled. 
13-Jun 22:40 extranix-fd JobId 11348: Fatal error:
job.c:2390 Bad response to Append Data command. Wanted 3000
OK data 
, got 3903 Error append data 

   Do you have any advice/idea? 

   Thank you very much. 
   Stefan 
  
  
  --
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
  
  
  ___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


  
   
 
  
  
  
  --
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
  
  
  
  ___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



  


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fatal error: label.c:464 Truncate error on device - ERR=No such file or directory

2014-07-17 Thread Stefan Lamby
Got the point.
I'll think about buying 2 more SATA HDs using software raid to store the
precious Volumes on those.
Btw., using md, is there something wrong with using it in partnership with
bacula?

Cheers,
Stefan


 Kern Sibbald k...@sibbald.com hat am 17. Juli 2014 um 19:38 geschrieben:
 
  On 07/17/2014 10:38 AM, Stefan Lamby wrote:
 
 You wrote writing Volumes directly to a CIFS mount is not really
a good idea for a number of reasons.
   What do you recommend as best practice instead?
  
 Write your Volumes to a natively mounted (not network mount) Linux
filesystem.
 

 


Best regards,
Kern


Best regards,
Stefan

Kern Sibbald k...@sibbald.com mailto:k...@sibbald.com hat am 10. Juli 2014
um 17:36 geschrieben:

Unfortunately, neither CIFS nor NFS include a truncate() function, and this
problem was not noticed because not many people write Volumes directly to a
CIFS/NFS mount.  Doing so is not really a good idea for a number of reasons
reasons.

Any way, once it was discovered (quite a long time ago), I fixed it by
emulating a truncate.  Consequently, I suspect that if you upgrade to a more
recent version of Bacula, it will probably work.

Best regards,
Kern

On 07/10/2014 01:22 PM, Stefan Lamby wrote:
Hello List.

Once a week I got this error, when performing a backup.
19 out of 20 backup jobs work well, one fails.
The nas_01 device is a small 1 TB NAS, mounted via fstab:
//192.168.1.9/Volume_1 /nas01_backupcifs
   soft,username=**,password=**,uid=107,gid=107   0 0

The /nas01_backup/backup/ directory exists on the device and other jobs are
using it successfully.

Here is the output of the status mail:

13-Jun 23:39 backnix05-dir JobId 11348: Start Backup JobId 11348,
Job=extranix-bkpdir-full-nas.2014-06-13_23.30.00_57
13-Jun 23:39 backnix05-dir JobId 11348: Using Device nas_01
13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: label.c:464 Truncate error
on device nas_01 (/nas01_backup/backup): ERR=dev.c:2023 Unable to truncate
device nas_01 (/nas01_backup/backup). ERR=No such file or directory

13-Jun 23:39 backnix05-sd JobId 11348: Marking Volume bkp-nas-0265 in Error in
Catalog.
13-Jun 23:39 backnix05-sd JobId 11348: Fatal error: Job 11348 canceled.
13-Jun 22:40 extranix-fd JobId 11348: Fatal error: job.c:2390 Bad response to
Append Data command. Wanted 3000 OK data
, got 3903 Error append data

Do you have any advice/idea?

Thank you very much.
Stefan



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft



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






--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds



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


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula copy jobs failing

2014-07-17 Thread tufler_silviu
Hy. I have configured 2 servers: 1 with dir and sd and another one only with sd 
that is considered the remote server that will be used only for copy jobs.

dir name: linux1-dir
local storage name: linux1-sd
remote storage name: backup-ct-sd

04-Jul 17:37 linux1-dir JobId 122: Start Copying JobId 122, 
Job=job-backup-silviu-fisiere-copy.2014-07-04_17.37.16_08
04-Jul 22:37 backup-ct-sd JobId 122: Fatal error: Device reservation failed for 
JobId=122:
04-Jul 17:37 linux1-dir JobId 122: Fatal error:
 Storage daemon didn't accept Device linux1-storage because:
 3924 Device linux1-storage not in SD Device resources or no matching 
Media Type.
04-Jul 17:37 linux1-dir JobId 122: Error: Bacula linux1-dir 5.2.12 (12Sep12):



--
Local DIR:

# Definition of file storage device
Storage {
  Name = Local-file-storage-device
  Address = linux1.domain.com
  SDPort = 9103
  Password = 1234
  Device = linux1-storage
  Media Type = Local-file
}


Storage {
  Name = File-Constanta-silviu-storage
  Address = backup-ct.domain.com
  SDPort = 9103
  Password = 1234
  Device = ct-storage
  Media Type = Local-file
}
--

Local SD

Device {
  Name = linux1-storage
  Media Type = Local-file
  Archive Device = /tmp
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

-

Remote SD

Device {
  Name = ct-storage
  Media Type = Local-file
  Archive Device = /storage1/silviu
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}



job detail configurations in separate file silviu.conf included in 
bacula-dir.conf file


Storage {
  Name = storage-local-fisiere
  Password = 1234
  Address = linux1.domain.com
  SDPort = 9103
  Device = linux1-storage
  Media Type = Local-file
  Maximum Concurrent Jobs = 10
  Heartbeat Interval = 60
}

Storage {
  Name = File-Constanta-storage1-silviu
  Address = backup-ct.domain.com
  SDPort = 9103
  Password = 1234
  Device = ct-storage
  Media Type = Local-file
  Maximum Concurrent Jobs = 10
  Heartbeat Interval = 60
}

Pool {
  Name = pool-silviu-fisiere
  Pool Type = Backup
  Storage = storage-local-fisiere
  Volume Retention = 1 months
  LabelFormat = Silviu-fisiere-
  UseVolumeOnce = yes
  Recycle = yes
  AutoPrune = yes
  Next Pool = pool-silviu-fisiere-constanta
}


Pool {
  Name = pool-silviu-fisiere-constanta
  Pool Type = Copy
  Storage = File-Constanta-storage1-silviu
  Volume Retention = 1 months
  LabelFormat = Silviu-fisiere-copy-
  UseVolumeOnce = yes
  Recycle = yes
  AutoPrune = yes
}

Job {
  Name = job-backup-silviu-fisiere
  Type = Backup
  Pool = pool-silviu-fisiere
  Client = silviu-fd
  FileSet = silviu-fisiere
  Schedule = orar-backup-silviu-fisiere
  Storage = storage-local-fisiere
  Messages = Standard
  Write Bootstrap = /var/lib/bacula/%c_%n.bsr
}

Job {
  Name = job-backup-silviu-fisiere-copy
  Type = Copy
  Pool = pool-silviu-fisiere
  Client = silviu-fd
  FileSet = silviu-fisiere
  Schedule = orar-backup-silviu-fisiere
  Storage = File-Constanta-storage1-silviu
  Messages = Standard
  Write Bootstrap = /var/lib/bacula/%c_%n.bsr
  Selection Type = PoolUncopiedJobs

--

+--
|This was sent by tufler_sil...@yahoo.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Fatal error: bsock.c:134 Unable to connect to Storage daemon

2014-07-17 Thread shawN_
11-Jul 10:35 debian-dir JobId 3300: Start Backup JobId 3300, 
Job=WEB-SVR.2014-07-11_10.06.12_07
11-Jul 10:35 debian-dir JobId 3300: Using Device DDS-4
11-Jul 10:42 WEB-SVR JobId 3300: Warning: bsock.c:128 Could not connect to 
Storage daemon on ESS-Backup-Svr:9103. ERR=Connection timed out
Retrying ...
11-Jul 11:06 WEB-SVR JobId 3300: Fatal error: bsock.c:134 Unable to connect to 
Storage daemon on ESS-Backup-Svr:9103. ERR=Interrupted system call
11-Jul 11:06 WEB-SVR JobId 3300: Fatal error: Failed to connect to Storage 
daemon: ESS-Backup-Svr:9103
11-Jul 11:05 debian-dir JobId 3300: Fatal error: Bad response to Storage 
command: wanted 2000 OK storage
, got 2902 Bad storage

11-Jul 11:05 debian-dir JobId 3300: Error: Bacula debian-dir 5.0.2 (28Apr10): 
11-Jul-2014 11:05:26
  Build OS:   x86_64-pc-linux-gnu debian squeeze/sid
  JobId:  3300
  Job:WEB-SVR.2014-07-11_10.06.12_07
  Backup Level:   Full
  Client: WEB-SVR 5.0.3 (04Aug10) 
x86_64-pc-linux-gnu,ubuntu,11.04
  FileSet:WEB-SVR Set 2014-07-11 10:05:01
  Pool:   Default (From Job resource)
  Catalog:MyCatalog (From Client resource)
  Storage:DDS-4-ext (From Job resource)
  Scheduled time: 11-Jul-2014 10:06:12
  Start time: 11-Jul-2014 10:35:16
  End time:   11-Jul-2014 11:05:26
  Elapsed time:   30 mins 10 secs
  Priority:   10
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  VSS:  no
  Encryption: no
  Accurate:   no
  Volume name(s):
  Volume Session Id:  2
  Volume Session Time:1405044264
  Last Volume Bytes:  263,688 (263.6 KB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Waiting on FD
  Termination:*** Backup Error ***


==

Hi guys.. im newbee on bacula system.. now i got this problem on my 2 client 
system. but got another server can work fine.. from client can telnet backup 
server using 9103. 

thanks guy..

+--
|This was sent by guest5...@yahoo.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] bconsole can't connect to director

2014-07-17 Thread bluethundr
Hey all,

 For some reason, seemingly out of the blue I can no longer connect to my 
bconsole command environment. 

 
 When I try to I get the following result:

 [root@ops:/etc/bacula] #bconsole
Connecting to Director ops.mydomain.com:9101


It just sort of fails silently. :(

At first I thought this might be a failure to connect to the database. But I 
can connect to the DB using the credentials supplied in the director config.


[root@ops:/etc/bacula] #mysql -uadmin -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 43
Server version: 5.5.38-log MySQL Community Server (GPL) by Remi

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql

mysql use bacula
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed


I'm hoping if I share my configs I might get some leads on how to deal with 
this situation.

Director conf:

#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 5.2.13 (19 February 2013) -- redhat 
#
#  You might also want to change the default email address
#   from root to your address.  See the mail and operator
#   directives in the Messages resource.
#
Director {# define myself
  Name = ops.mydomain.com
  DIRport = 9101# where we listen for UA connections
  QueryFile = /etc/bacula/query.sql
  WorkingDirectory = /var/spool/bacula
  PidDirectory = /var/run
  Maximum Concurrent Jobs = 1
  Password = mydomain # Console password
  Messages = Daemon
  TLS Certificate = /etc/pki/tls/certs/ops.mydomain.com.crt 
  TLS Key = /etc/pki/tls/private/ops.mydomain.com.key 
  TLS CA Certificate File = /etc/pki/CA/certs/ca.crt
  TLS Enable = yes
  TLS Require = yes
}


JobDefs {
  Name = DefaultJob
  Type = Backup
  Level = Incremental
  Client = ops.mydomain.com
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 10
  Write Bootstrap = /var/spool/bacula/%c.bsr
}

#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /tmp
Job {
  Name = ops.mydomain.com
  Type = Backup
  Client = ops.mydomain.com
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = File
  Messages = Standard
  Pool = Default
  Write Bootstrap = /var/spool/bacula/%c.bsr
}

Job {
  Name = beta-new.mydomain.com
  Type = Backup
  Client = beta-new.mydomain.com
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = File
  Messages = Standard
  Pool = Default
  Write Bootstrap = /var/spool/bacula/%c.bsr
}

#Job {
#  Name = mail.mydomain.com
#  Type = Backup
#  Client = mail.mydomain.com
#  FileSet = Full Set
#  Schedule = WeeklyCycle
#  Storage = File
#  Messages = Standard
#  Pool = Default
#  Write Bootstrap = /var/spool/bacula/%c.bsr
#}


#Job {
#  Name = logs.mydomain.com
#  Type = Backup
#  Client = logs.mydomain.com
#  FileSet = Full Set
#  Schedule = WeeklyCycle
#  Storage = File
#  Messages = Standard
#  Pool = Default
#  Write Bootstrap = /var/spool/bacula/%c.bsr
#}

#Job {
#  Name = monitor.mydomain.com
#  Type = Backup
#  Client = monitor.mydomain.com
#  FileSet = Full Set
#  Schedule = WeeklyCycle
#  Storage = File
#  Messages = Standard
#  Pool = Default
#  Write Bootstrap = /var/spool/bacula/%c.bsr
#}


# Backup the catalog database (after the nightly save)
Job {
  Name = mydomain BackupCatalog
  JobDefs = DefaultJob
  Level = Full
  FileSet=mydomainCatalog
  Schedule = WeeklyCycleAfterBackup
  # This creates an ASCII copy of the catalog
  # Arguments to make_catalog_backup.pl are:
  #  make_catalog_backup.pl catalog-name
  RunBeforeJob = /etc/bacula/make_catalog_backup.pl mydomainCatalog
  # This deletes the copy of the catalog
  RunAfterJob  = /etc/bacula/delete_catalog_backup
  Write Bootstrap = /var/bacula/%n.bsr
  Priority = 11   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = RestoreFiles
  Type = Restore
  Client=ops.mydomain.com
  FileSet=Full Set
  Storage = File
  Pool = Default
  Messages = Standard
  Where = /backup/tapes/bacula-restores
}

# List of files to be backed up
FileSet {
  Name = Full Set
  Include {
Options {
  signature = MD5
}
#
#  Put your list of files here, preceded by 'File =', one per line
#or include an external list with:
#
#File = file-name
#
#  Note: / backs up everything on the root partition.
#if you have other partitions such 

[Bacula-users] Bacula MSL6000 Fault code : 3200 (Hard) Shuttle Jammed

2014-07-17 Thread jstacey
I'm getting discouraged with my old MSL6000 autochanger and need some help. It 
runs fine for a week at a time backing up to LTO4 tapes, and then every so 
often I get a job that fails with bacula returning an email with something like:

Fatal error: 3992 Bad autochanger load slot 11,
drive 0: ERR=Child died from signal 15: Termination.

then when I login to bconsole it starts spitting out this error in a continuous 
loop:

Error Code=70 (Current) mtx: Request Sense: Sense Key=Hardware Error

Next day I visit the server room, and the autochanger displays on the OSD:

Fault code : 3200 (Hard) Shuttle Jammed

It asks me to reboot and the shuttle can't unload the tape from the drive, then 
displays

Fault code : 301c (soft)  Drive get general status failure


At this point there isn't much I can do except stop all bacula services then 
power off the unit once or twice until the activity led on the drive stops 
flashing. Then I rescan the scsi bus, restart bacula, and go another week 
before repeating this whole process again. Any suggestions?

Here is the output from the terminal:




[root@cayenne dev]# mtx -f changer inquiry
Product Type: Medium Changer
Vendor ID: 'HP  '
Product ID: 'MSL6000 Series  '
Revision: '0520'
Attached Changer API: No
[root@cayenne dev]# mtx -f changer status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Hardware Error
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 15
mtx: Request Sense: Additional Sense Qualifier = 01
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed
[root@cayenne dev]#
[root@cayenne dev]# lsscsi -g
[1:0:0:0]diskIBM  1746  FAStT  1070  /dev/sda   /dev/sg0
[1:0:0:1]diskIBM  1746  FAStT  1070  /dev/sdb   /dev/sg1
[1:0:0:2]diskIBM  1746  FAStT  1070  /dev/sdc   /dev/sg2
[1:0:0:3]diskIBM  1746  FAStT  1070  /dev/sdd   /dev/sg3
[1:0:0:31]   diskIBM  Universal Xport  1070  - /dev/sg4
[2:0:0:0]diskATA  ST9500620NS  BE24  /dev/sdf   /dev/sg6
[2:0:1:0]diskATA  ST9500620NS  BE24  /dev/sdg   /dev/sg7
[2:0:2:0]diskATA  ST9500620NS  BE24  - /dev/sg8
[2:0:3:0]diskATA  ST9500620NS  BE24  - /dev/sg9
[2:1:0:0]diskLSI  Logical Volume   3000  /dev/sde   /dev/sg5
[3:0:0:0]cd/dvd  MATSHITA DVD-RAM UJ8A0SA82  /dev/sr0   /dev/sg10
[7:0:0:0]mediumx HP   MSL6000 Series   0520  /dev/sch0  /dev/sg11
[7:0:0:1]tapeHP   Ultrium 4-SCSI   B63W  /dev/st0   /dev/sg12
[7:0:0:2]storage HP   NS E1200-160 5929  - /dev/sg13

[root@cayenne dev]# vi /etc/bacula/bacula-sd.conf



Autochanger {
  Name = Autochanger
  Device = Drive
  Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d
  #Changer Device = /dev/sch0
  #Changer Device = /dev/sg1
  Changer Device = /dev/sg11
}

#
# A Linux or Solaris LTO-4 tape drive
#
Device {
  Name = Drive
  Media Type = LTO-4
  Archive Device = /dev/st0
  Changer Device = /dev/sg11
  AutomaticMount = yes
  AutoChanger = yes
  Drive Index = 0
  LabelMedia = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  Random Access = no
  #Maximum File Size = 5GB
  #Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d


Thanks.


 (http://postimg.org/image/h6rk2lhw9/)

 (http://postimg.org/image/5k7g1gul5/)

 (http://postimg.org/image/8ps1rod7d/)

+--
|This was sent by jsta...@cfdlab.mcgill.ca via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula MSL6000 Fault code : 3200 (Hard) Shuttle

2014-07-17 Thread jstacey
Ok I must of scared everyone away, but I have an update that might make this 
more clear. 

I removed the aj029a drive from the MSL6000 to investigate using HP LTT tools 
in a windows environment. I went through all the tests no problem, and then 
thirty minutes later with only forty seconds left in the test, HP LTT tools 
hung not responding while the tape was rewinding. I waited for a while (ten 
minutes) for the program to resume but then I realized what was happening. The 
tape drive was doing the same thing in the windows environment it had been 
doing with Bacula in Linux. It just drops off the radar while rewinding, and 
disappears from the device manager! In linux it's the same then I must use a 
script to rescan the scsi bus. This is why tapes were getting stuck in the 
MSL600 tape library using Bacula. Do these drives get too hot while rewinding 
then shut off as a safety mechanism? Bad caps?

 (http://postimg.org/image/txb2zuizn/)

So why would a HP 1840 LTO4 drive work fine with reading and writing processes 
but then just die during a rewind each time??   Is it something I can doctor or 
should I chuck the unit and get a new one? Someone has just offered me a new 
#PD093G#804 unit for 400$ so I'm thinking of just taking that to avoid this 
mess.

+--
|This was sent by jsta...@cfdlab.mcgill.ca via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users