Bacula-users

[Bacula-users] disk-changer

2010-01-25 18:11:27
Subject: [Bacula-users] disk-changer
From: Renato Arruda <rarruda0 AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 25 Jan 2010 23:44:30 +0100
Hi,

I'm trying to setup a backup storage daemon using files to disks in
the server. I'd like to use the disk-changer Automount script. You can
see my configuration below. I'm running in all nodes Bacula version
3.0.2 on Redhat 4.

I've looked at:
http://www.mail-archive.com/bacula-users AT lists.sourceforge DOT 
net/msg38965.html
and http://www.adsm.org/lists/html/Bacula-users/2008-07/msg00073.html
and in the the script itself for help.

I'm getting the errors below.

Is there something I'm missing?

-Renato

$ sudo cat /var/lib/bacula/disk-changer.log
20100125-23:12:23 Parms: /etc/bacula/disk-changer.conf loaded 0
/data/backup/disk0 0
20100125-23:12:23 Doing disk -f /etc/bacula/disk-changer.conf 0 -- to
find what is loaded
20100125-23:12:23 Parms: /etc/bacula/disk-changer.conf loaded 0
/data/backup/disk0 0
20100125-23:12:23 Doing disk -f /etc/bacula/disk-changer.conf 0 -- to
find what is loaded
20100125-23:12:23 Parms: /etc/bacula/disk-changer.conf loaded 0
/data/backup/disk0 0
20100125-23:12:23 Doing disk -f /etc/bacula/disk-changer.conf 0 -- to
find what is loaded
(....)

and this on the director:

25-Jan 23:11 backup01-dir JobId 9799: shell command: run AfterJob
"/usr/lib64/bacula/delete_catalog_backup"
25-Jan 23:12 backup01-dir JobId 9800: Start Backup JobId 9800,
Job=srv02.2010-01-25_23.11.58_06
25-Jan 23:12 backup01-dir JobId 9800: Using Device "Disk-0"
25-Jan 23:12 srv02-fd JobId 9800: DIR and FD clocks differ by 22
seconds, FD automatically compensating.
25-Jan 23:12 backup02-sd JobId 9800: Invalid slot=0 defined in catalog
for Volume "HQ-FileStorage-0122" on "Disk-0" (/data/backup/disk0).
Manual load may be required.
25-Jan 23:12 backup02-sd JobId 9800: 3301 Issuing autochanger "loaded?
drive 0" command.
25-Jan 23:12 backup02-sd JobId 9800: 3302 Autochanger "loaded? drive
0", result: nothing loaded.
25-Jan 23:12 backup02-sd JobId 9800: Warning: dev.c:534 dev.c:532
Could not open: /data/backup/disk0, ERR=Is a directory
25-Jan 23:12 backup02-sd JobId 9800: 3301 Issuing autochanger "loaded?
drive 0" command.
25-Jan 23:12 backup02-sd JobId 9800: 3302 Autochanger "loaded? drive
0", result: nothing loaded.
25-Jan 23:12 backup02-sd JobId 9800: Warning: dev.c:534 dev.c:532
Could not open: /data/backup/disk0, ERR=Is a directory
25-Jan 23:12 backup02-sd JobId 9800: 3301 Issuing autochanger "loaded?
drive 0" command.
25-Jan 23:12 backup02-sd JobId 9800: 3302 Autochanger "loaded? drive
0", result: nothing loaded.
25-Jan 23:12 backup02-sd JobId 9800: Warning: dev.c:534 dev.c:532
Could not open: /data/backup/disk0, ERR=Is a directory
25-Jan 23:12 backup02-sd JobId 9800: Warning: label.c:330 Open device
"Disk-0" (/data/backup/disk0) Volume "HQ-FileStorage-0122" failed:
ERR=dev.c:532 Could not open: /data/backup/disk0, ERR=Is a directory



$ mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/mapper/vg0-home on /home type ext3 (rw)
/dev/mapper/vg0-opt on /opt type ext3 (rw)
/dev/mapper/vg0-tmp on /tmp type ext3 (rw)
/dev/mapper/vg0-usr on /usr type ext3 (rw)
/dev/mapper/vg0-var on /var type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sdf1 on /data/backup/disk_x type ext3 (rw)
/dev/sdb1 on /data/backup/disk0 type ext3 (rw)
/dev/sdc1 on /data/backup/disk1 type ext3 (rw)
/dev/sde1 on /data/backup/disk3 type ext3 (rw)
/dev/sdg1 on /data/backup/disk5 type ext3 (rw)

>>From bacula-sd.conf:

Autochanger {
  Name = HQ-DiskAutochanger
  Device = Disk-0
  Device = Disk-1
#  Device = Disk-2
  Device = Disk-3
#  Device = Disk-4
  Device = Disk-5
  Changer Command = "/usr/lib/bacula/disk-changer %c %o %S %a %d"
  Changer Device = "/etc/bacula/disk-changer.conf"
}

Device {
  Name = Disk-0
  Media Type = File
  Archive Device = /data/backup/disk0
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 0
  Device Type = File
  Autoselect = yes
}

Device {
  Name = Disk-1
  Media Type = File
  Archive Device = /data/backup/disk1
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 1
  Device Type = File
  Autoselect = yes
}

Device {
  Name = Disk-2
  Media Type = File
  Archive Device = /data/backup/disk2
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 2
  Device Type = File
  Autoselect = yes
}

Device {
  Name = Disk-3
  Media Type = File
  Archive Device = /data/backup/disk3
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 3
  Device Type = File
  Autoselect = yes
}

Device {
  Name = Disk-4
  Media Type = File
  Archive Device = /data/backup/disk4
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 4
  Device Type = File
  Autoselect = yes
}

Device {
  Name = Disk-5
  Media Type = File
  Archive Device = /data/backup/disk5
  Label Media = yes
  Random Access = yes
  Automatic Mount = yes
  Removable Media = no
  Always Open = yes
  Autochanger = yes
  Drive Index = 5
  Device Type = File
  Autoselect = yes
}

>>From /etc/bacula/disk-changer.conf:
baculasd="HQ-DiskAutochanger"
baculasd_user=bacula
bconsole=/usr/bin/bconsole
maxslot=15
maxdrive=1      # 2 actually, starts from zero

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>