Re: [Bacula-users] Using a hard drive library of 5 disks as a backupdrive

2007-06-05 Thread David Lebel
On 4/18/07, Darien Hager <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
// http://www.lebel.org/
// pgp: 3633 6999 D47E 73ED 099F  4341 08A4 8E48 EF56 61D1

-
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Using a hard drive library of 5 disks as a backupdrive

2007-04-19 Thread Josh Fisher
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
> [EMAIL PROTECTED] 
>
>
> 
>
> -
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   


-
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Using a hard drive library of 5 disks as a backupdrive

2007-04-18 Thread Darien Hager


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
[EMAIL PROTECTED]


-
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users