Bacula-users

[Bacula-users] Bacula and Iomega REV

2008-10-08 07:13:12
Subject: [Bacula-users] Bacula and Iomega REV
From: Felix Brack <fb AT ltec DOT ch>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 08 Oct 2008 12:34:04 +0200
I use bacula 2.4.2 (from debian backports) together with a Iomega 
removable hard disk system. After some experimenting I use the following 
SD configuration:

Storage {
   Name = lexington-sd
   WorkingDirectory = "/var/lib/bacula"
   Pid Directory = "/var/run/bacula"
   Maximum Concurrent Jobs = 10
   SDAddresses = {
     ip = { addr = 127.0.0.1 }
     ip = { addr = lexington }
   }
}

Director {
   Name = lexington-dir
   Password = "guess"
}

Device {
   Name = IOMEGA-REV-DISK
   Archive Device = /media/iomega-rev-disk
   Device Type = File
   Media Type = REV-120GB
   Volume Poll Interval = 2 minutes
   Removable Media = yes
   Random Access = yes
   Requires Mount = yes
   Mount Point = /media/iomega-rev-disk
   Mount Command = "/bin/mount /media/iomega-rev-disk"
   Unmount Command = "/bin/umount /media/iomega-rev-disk"
}

Messages {
   Name = Standard
   director = lexington-dir = all
}

In /etc/fstab I do have the following entry:

/dev/scd0 /media/iomega-rev-disk ext3 defaults,noauto,acl 0 2

First of all: way do I have to set 'Archive Device' to the mount point 
instead of the device? If I use the device the SD (in debug mode) 
complains about not being able to create a file on '/dev/scd0' which is 
ok. The file should be created by the SD on /media/iomega-rev-disk' 
instead. If 'Archive Device' is set correctly like this, what is the 
'Mount Point' option for?

In fact the configuration above does not really work. It sometimes does 
when I run the SD with '-d100'. My Idea of what the configuration above 
should do is: automatically try to mount a removable hard disk found in 
device '/dev/scd0' to '/media/iomega-rev-disk' when required. However 
this does not happen. Bacula complains that I should mount the device; 
entering the command 'mount' in the bacula console returns without error 
but nothing more happens. From the Linux console I can see that 
'/dev/scd0' is not mounted. Mounting it manually, returning to the 
bacula console and again issuing the 'mount' command does not change 
anything; bacula will still ask me to mount a media.
What kind of problem do I have here with device, media, mount point and 
the mount command itself? Is it perhaps wrong to use 'File' as 'Device 
Type' with my hardware?

If things would work I would also like to use 'Always Open = No' to tell 
bacula to unmount (not eject!) the disk after backup. Sadly the 
documentation says 'For File storage, this directive is ignored'.

I know about the possibility to run commands before and after jobs but I 
think this would definitely be the wrong place for SD management.

Felix

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>
  • [Bacula-users] Bacula and Iomega REV, Felix Brack <=