SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Using a hard drive library of 5 disks as a backupdrive
Author Message
Post Using a hard drive library of 5 disks as a backupdrive 
Attachments: Message as HTML

On Apr 18, 2007, at 1:15 PM, David Lebel wrote:

And /backup would be defined on the OS level as a symlink to the
current "slot", let assume for this example, to /drive
then, have the system just switch the /backup directory/symlink
around the 5 drives, let say, /library/slot2 where a hard drive
would be mounted.

Would that work?

I think it's certainly do-able.

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

--
--Darien A. Hager
darien < at > et...

Post Using a hard drive library of 5 disks as a backupdrive 
Darien Hager wrote:

On Apr 18, 2007, at 1:15 PM, David Lebel wrote:

And /backup would be defined on the OS level as a symlink to the
current "slot", let assume for this example, to /drive
then, have the system just switch the /backup directory/symlink
around the 5 drives, let say, /library/slot2 where a hard drive would
be mounted.

Would that work?

I think it's certainly do-able.

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


You can likely use the vchanger shell script from the Bacula and
Removable Disk Howto at
http://sourceforge.net/docman/display_doc.php?docid=47704&group_id=50727.
It is designed to treat a partition on a removable disk drive as a
magazine with n virtual slots for a virtual autochanger with m virtual
drives. You would setup 5 virtual autochangers, one for each physical
drive. It might also be possible to modify the script to create a single
virtual autochanger with 5 physical drives.





--
--Darien A. Hager
darien < at > et... <mailto:darien < at > et...>


------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users


Post 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

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB