Hi Josh

thanks again for your quick answer.

I think I have understood the theoratical configuration of the virtuel 
autochanger

But now I have a practical question:
I configured the autochanger as discripted in the Howto.
If I want to label the volume (Howto 9.1) I got the following error:
3306 Issuing Autochanger "slot" command
Device usb-changer-1 has 0 slots
No slots in changer to scan

Than I tested to mount the autochanger via the bconsole
Here I got the following error:
3999 Device "usb-changer-1 not found or could not be opened

I took a look at the mailing list and found some entries
But I could not find a failure in my config.

Here my Config-Files:

/etc/bacula/bacula-sd.conf
...
Autochanger {
  Name = "usb-changer-1"
  Device = usb-changer-1-drive-0
  Changer Command = "/etc/bacula/vchanger %c %o %S %a %d"
  Changer Device = "/etc/bacula/usbchanger1.conf"
}

Device {
  Name = usb-changer-1-drive-0
  Drive Index = 0
  Autochanger = yes;
  DeviceType = File
  MediaType = File
  ArchiveDevice = /var/lib/bacula/usbchanger1/drive0
  RemovableMedia = no;
  Random Access = yes;
}
...

/etc/bacula/bacula-dir.conf
...
Storage { 
  Name = usbchanger1
  Address = 136.8.5.24
  SDPort = 9103
  Password = "secret"
  Device = usb-changer-1
  Media Type = File
  Autochanger = yes;
}

...

/etc/bacula/usbchanger1.conf
...
baculasd="usbchanger1"
baculasd_user=bacula
bconsole=/usr/bin/bconsole
magslots=10
maxdrive=0
mountpoint=/mnt/usbchanger1/magazine
statedir=/var/lib/bacula/usbchanger1
...

the directory /var/lib/bacula/usbchanger/drive0 exist
rwxrwx--- bacula.bacula

I use debian Etch and Bacula 1.38.11

Any ideas???

Daniel

> 
> 
> [EMAIL PROTECTED] wrote:
> > Hi Josh,
> >
> > ...
> >   
> > Ok. I think I understand how to configure the autoloader.
> > But is it possible to combine more physical disks to one autoloader?
> > For example to configure two autochanger with 3 physical drives per changer.
> > Than I can backup the weekly pool to one autochanger and the monthly pool 
> > to the other.
> >   
> 
> You can have 2 autochangers, each with a set of 3 physical disks. 
> However, the script treats a physical disk as a magazine. You cannot 
> have all 3 of an autochanger's physical disks plugged in at the same 
> time, just as with a tape autoloader you cannot have all magazines 
> inserted at the same time. When one physical disk becomes full you will 
> need to change "magazines". This is done in the same manner as a tape 
> autoloader that has a barcode reader. Unplug the current physical disk. 
> Plug in the next physical disk. Then issue the bconsole "update slots" 
> command in order for bacula to determine what volumes are in the 
> autochanger.
> 
> > ...
> >   
> > So you think it is better to make more pools for one backup.
> > And for every pool I need a virtuel slot, right?
> >   
> 
> Well, I think it is better to have multiple smaller files on the disk 
> rather than one large file to reduce the risk of total data loss in the 
> event of a hardware or other error that damages the USB disk or its 
> filesystem. You could use a different pool for every slot, but you could 
> also use one pool for each autochanger and multiple bacula volumes 
> (slots/files) in each pool. I would use the latter and set the "Volume 
> Use Duration" for the pool resource such that a volume is only used for 
> one day, after which bacula will stop using that volume and select 
> another. So if I intended to use the USB disk for a week before rotating 
> it out, I would probably define 8 slots. One for each day and an extra 
> in case there was a holiday or something that prevented it be changed on 
> time. Initially, the vchanger script creates a volume for each defined 
> slot and places them in the Scratch pool. That way, when bacula stops 
> using a volume due to the "Volume Use Duration" expiring, it will move 
> one of the (empty) volumes in the Scratch pool into the pool defined for 
> the autochanger and begin using it.
> 
> Note that bacula never deletes or truncates any of the files. When a 
> volume is deleted or recycled, bacula only deletes or updates its status 
> in the catalog. Thus for volumes on disk storage the disk space is never 
> freed. You will have to do that manually or use the vchanger purge 
> command. The purge command is a workaround for this problem that deletes 
> all volumes on a USB disk both from disk and the bacula catalog, then 
> re-creates them in the Scratch pool. This is of course a dangerous 
> command because it deletes volumes without regard to retention times. It 
> is definitely not defined in the official Bacula Autochanger Interface 
> API. :)  There is a feature request pending to handle deleting or 
> truncating disk files when a bacula volume is deleted or recycled, 
> however I do not know the status of its implementation.
> 
> > ...
> >
> > Thank you for your help
> >
> >   
> 
> You're welcome.
> 
> 
> 


_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


-------------------------------------------------------------------------
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

Reply via email to