
Using a hard drive library of 5 disks as a backupdrive
On 4/18/07, Darien Hager <darien < at > et...> wrote:
Perhaps you could use the autochanger functionality... the "Changer Command"
directive could call a script which would, instead of sending commands like
"load this tape", do things like create symlinks to the appropriate
mountpoint.
http://www.bacula.org/rel-manual/Autochanger_Support.html
http://www.bacula.org/rel-manual/Storage_Daemon_Configuratio.html#AutochangerRes
I tried to do that (sorry for the delay, been a while, but now the
setup is up and working, minus the autochanger) and I can't make it
work really.
I wrote a script that handle the rotation of symlinks and I defined
the device as this:
Device {
Name = trance-storage
Media Type = File
Archive Device = /backup/current
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = yes;
Device Type = File
Changer device = /backup/currentslot
Changer command = "/hexago/bin/changer.pl"
Autochanger = yes
}
However, when I load bacula-sd, the Changer command is automatically
called (thus moving the symlink from slot1 to slot2, for example) and
when the disk is full (I simulated a full disk by creating a large
file to fill the disk) the backup just fail and the changer script is
never called.
I don't want Bacula to know specifically which "volume" is in the
/backup/current symlink, only that it has been properly labeled. Just
want it to run the changer.pl script so the symlink is moved to the
next library slot when the disk is full and it can't write no the
current volume.
Right now, when the disk gets full, I can manually run the changer.pl
script and eventually, Bacula notice the mount point has a new volume
and continue to do the backup on the new volume.
Ciao,
...David
--
// david lebel <lebel < at > le...>
//
http://www.lebel.org/
// pgp: 3633 6999 D47E 73ED 099F 4341 08A4 8E48 EF56 61D1