My config:
 
config bacula-dir.conf (10.9.0.9)
###########################
Catalog {
Name = bacula
dbname = bacula; DB Address = localhost; user = bacula; password = "********"
}
 
Director {
  Name = bacula-dir
  DIRport = 9101
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/var/lib/bacula"
  PidDirectory = "/var/run/bacula"
  Maximum Concurrent Jobs = 1
  Password = "3a3da9dd617a21ef2631e5776069dc7c"
  Messages = Standard
}
 
Job {
  Name = "dns1"
  JobDefs = "diaria-dns1"
}
JobDefs {
  Name = "diaria-dns1"
  Type = Backup
  Level = Incremental
  Client = dns1-fd
  FileSet = "full dns1"
  Schedule = "Ciclo5"
  Storage =  dds3
  Messages = Standard
  Pool = Diaria
  Priority = 10
}
Client {
  Name = dns1-fd
  Address = 10.9.0.2
  FDPort = 9102
  Catalog = bacula
  Password = "3a3da9dd617a21ef2631e5776069dc7c"
  File Retention = 30 days
  Job Retention = 6 months
  AutoPrune = yes
}
 
FileSet {
  Name = "full dns1"
  Include {
    Options { signature = MD5 }
    File = /var/named
    File = /etc
  }
  Exclude { }
}
Schedule {
        Name = "Ciclo5"
        Run = Incremental mon-sat at 20:00
}
 
Storage {
  Name = dds3
  Address = 10.9.0.13                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "3a3da9dd617a21ef2631e5776069dc7c"
  Device = DDS-3
  Media Type = DDS-3
}

Messages {
  Name = Standard
  mailcommand = "/usr/lib/bacula/smtp -h localhost -f \"\(Bacula\) %r\" -s  \"Ba$  operatorcommand = "/usr/lib/bacula/smtp -h
  operator = [EMAIL PROTECTED] = mount
  console = all, !skipped, !saved
  append = "/var/lib/bacula/log" = all, !skipped
}

Pool {
  Name = Diaria
  Pool Type = Backup
  Recycle = yes           
  AutoPrune = yes       
  Volume Retention = 100 days
  Accept Any Volume = yes      
}
 
config bacula-sd.conf (10.9.0.13)
##################################
Storage {
  Name = bacula-sd
  SDPort = 9103
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 5
}
 
Director {
  Name = bacula-dir
  Password = "3a3da9dd617a21ef2631e5776069dc7c"
}
 
Device {
  Name = DDS-3
  Media Type = DDS-3
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  #AutoChanger = yes
  #Changer Device = /dev/sg0
  #Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  #AutoChanger = yes
}
 
Messages {
  Name = Standard
  director = bacula-dir = all
}
 
config bacula-fd.conf (10.9.0.2)
################################
Director {
  Name = bacula-dir
   Password = "3a3da9dd617a21ef2631e5776069dc7c"
}
 
FileDaemon {
  Name = dns1-fd
  FDport = 9102
  WorkingDirectory = /var/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}
 
Messages {
  Name = Standard
  director = bacula-dir = all, !skipped
}
 
error
########################
 
27-mar 12:28 bacula-dir: No prior Full backup Job record found.
27-mar 12:28 bacula-dir: No prior or suitable Full backup found. Doing FULL backup.
27-mar 12:28 bacula-dir: Start Backup JobId 34, Job=213.9.234.2.2006-03-27_12.28.55
27-mar 12:28 bacula-dir: 10.9.0.2.2006-03-27_12.28.55 Fatal error:
     Storage daemon didn't accept Device "DDS-3" because:
     27-mar 12:28 bacula-dir: 10.9.0.2.2006-03-27_12.28.55 Error: bnet.c:257 Read error from Storage daemon:213.9.234.13:9103: ERR=Conexión reinicializada por la máquina remota
27-mar 12:28 bacula-dir: 10.9.0.2.2006-03-27_12.28.55 Error: Bacula 1.38.5 (18Jan06): 27-mar-2006 12:28:57
  JobId:                  34
  Job:                    10.9.0.2.2006-03-27_12.28.55
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "dns1-fd" i686-redhat-linux-gnu,redhat,
  FileSet:                "full dns1" 2006-03-23 10:39:36
  Pool:                   "Diaria"
  Storage:                "dds3"
  Scheduled time:         27-mar-2006 12:28:53
  Start time:             27-mar-2006 12:28:57
  End time:               27-mar-2006 12:28:57
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0
  SD Bytes Written:       0
  Rate:                   0,0 KB/s
  Software Compression:   None
  Volume name(s):
  Volume Session Id:      12
  Volume Session Time:    1143223781
  Last Volume Bytes:      0
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:
  SD termination status:
  Termination:            *** Backup Error ***
 
10.9.0.9:
root     25512  0.0  0.4 15732 1144 ?        Ssl  12:05   0:00 /sbin/bacula-fd -u root -g root -v -c /etc/bacula/bacula-fd.con
root     25517  0.0  0.9 50828 2492 ?        Ssl  12:05   0:00 /sbin/bacula-dir -u root -g root -v -c /etc/bacula/bacula-dir.c
 
10.9.0.13
root     26470  0.0  0.2  5440 1604 ?        Ss   Mar24   0:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u root -g ro
root     26471  0.0  0.2  5440 1604 ?        S    Mar24   0:00  \_ /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u root -
root     26473  0.0  0.2  5440 1604 ?        S    Mar24   0:00      \_ /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u ro
 
10.9.0.2
root      8632  0.0  0.9  5680 1248 ?        S    12:05   0:00  \_ /usr/sbin/bacula-fd -u root -g bacula -c /etc/bacula/bacula
root      8633  0.0  0.9  5680 1248 ?        S    12:05   0:00      \_ /usr/sbin/bacula-fd -u root -g bacula -c /etc/bacula/ba
 
Steps configuration:
 
It designs someone.
 
Thanks.
 
Regards.
S.V.
----- Original Message -----
Sent: Friday, March 24, 2006 12:18 PM
Subject: Fw: Error remote tape.

Hi All, excuse ingles.
 
Next error message:
 
Tape1 and Tape2 (/var/log/message):
Mar 24 09:36:59 mail kernel: st0: MTSETDRVBUFFER only allowed for root.
Mar 24 09:57:43 mail svillalba: Shorewall Restarted
Mar 24 10:01:49 mail kernel: st0: MTSETDRVBUFFER only allowed for root.
Mar 24 10:25:40 mail -- MARK --
Mar 24 10:28:30 mail kernel: st0: MTSETDRVBUFFER only allowed for root.
More error:
Director:
*mount
The defined Storage resources are:
     1: dds3 (Tape1)
     2: dat72 (Tape2)
     3: dg4-150_1 (Tape3)
Select Storage resource (1-3): 3
dev.c:362 dev.c:356 Unable to open device "DG4-150_1" (/dev/st0): ERR=Permiso denegado
3901 open device failed: ERR=dev.c:356 Unable to open device "DG4-150_1" (/dev/st0): ERR=Permiso denegado
Tape3:
[EMAIL PROTECTED] bacula]# /sbin/btape -c /etc/bacula/bacula-sd.conf /dev/st0
Tape block granularity is 1024 bytes.
btape: butil.c:269 Using device: "/dev/st0" for writing.
btape: btape.c:338 open device "DG4-150_1" (/dev/st0): OK
*status
 Bacula status: file=0 block=0
 Device status: BOT ONLINE IM_REP_EN file=0 block=0
btape: btape.c:1759 Device status: 645. ERR=
*test
btape: btape.c:438 Rewound "DG4-150_1" (/dev/st0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "DG4-150_1" (/dev/st0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "DG4-150_1" (/dev/st0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "DG4-150_1" (/dev/st0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "DG4-150_1" (/dev/st0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "DG4-150_1" (/dev/st0)
btape: btape.c:438 Rewound "DG4-150_1" (/dev/st0)
btape: btape.c:1276 Now forward spacing 1 file.
We should be in file 1. I am at file 1. This is correct!
btape: btape.c:1288 Now forward spacing 2 files.
We should be in file 3. I am at file 3. This is correct!
btape: btape.c:438 Rewound "DG4-150_1" (/dev/st0)
btape: btape.c:1301 Now forward spacing 4 files.
We should be in file 4. I am at file 4. This is correct!
 
btape: btape.c:1319 Now forward spacing 1 more file.
We should be in file 5. I am at file 5. This is correct!
It can be something of permissions.... :s
 
 /usr/sbin/tapeinfo -f /dev/sg2
Product Type: Tape Drive
Vendor ID: 'ARCHIVE '
Product ID: 'Python 06408-XXX'
Revision: '9100'
Attached Changer: No
SerialNumber: 'HN0HA86'
MinBlock:1
MaxBlock:16777215
SCSI ID: 6
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: 0x34
Density Code: 0x26
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x20
DeCompType: 0x20
BOP: yes
Block Position: 0
Device {
  Name = DG4-150
  Media Type =  ???
  Archive Device = /dev/st0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Offline on Unmount = yes
}
 
Regards.
S.V.
 

Reply via email to