Hello,

1.  we don't support disk-changer except for our own internal regression 
testing.  It is used for testing only, and I don't believe that it is 
documented other than in the file itself.  You are free to use it, but please 
don't ask for support on the Bacula devel list for it.  I will modify the 
comments in the file to clearly indicate that it is not intended or supported 
for production use.

2. we do not support any "vchanger", please send your requests to the author 
of that code.

3. I see a lot of  characters below, so clearly you have some configuration 
or language problem.  If you stick to pure ASCII characters, you may have 
better luck with Bacula.

4. I see you are using device vtape.  To the best of my knowledge, like 
disk-changer, this is not documented.  In any case, you should not be using 
it.  It is used only for regression testing, and it is not at all suitable 
for doing any real backups.  

I suspect that everything you want to do can be done without disk-changers and 
without any vitural stuff, it is just a matter of configuration.  For 
information on how to do that see www.bacula.org -> Getting Support

Best regards,

Kern



On Friday 10 September 2010 09:42:52 [email protected] wrote:
> Hello,
>
> I try to replace full backups by virtualfull backups.
>
> I use a virtual autocharger( disk changer, also tried vchanger)  with 10
> slots and 2 drives
>
> the second virtuallfull hangs waiting for a volume that is already mounted
> ( idle) in another drive
>
> This behaviour is 100% reproducible ( bacula 5.02 ).
>
> i test my setup with the following sequence:
>
> A/ incremental ( transformed to full )  OK stored in pool incr and volume1
> B/ Virtuall full  OK  stored in volume2 and pool vfull
> C/ incremental OK appended to Volume1 pool incr
>
> DEVICE STATUS return the folluwing result:
>
> Device status:
> Autochanger "usb-changer" with devices:
> "usb-changer-drive-0" (/tmp/bacula/drive0)
> "usb-changer-drive-1" (/tmp/bacula/drive1)
> Device "FileStorage1" (/tmp/t1) is not open.
> Device "usb-changer-drive-0" (/tmp/bacula/drive0) is mounted with:
> Volume:      Vol1
> Pool:        Incr
> Media type:  File
> Slot 1 is loaded in drive 0.
> Total Bytes=967,680 Blocks=14 Bytes/block=69,120
> Positioned at File=3 Block=0
> Device "usb-changer-drive-1" (/tmp/bacula/drive1) is mounted with:
> Volume:      Vol2
> Pool:        vfull
> Media type:  File
> Slot 2 is loaded in drive 1.
> Total Bytes=838,656 Blocks=12 Bytes/block=69,888
> Positioned at File=1 Block=0
> ====
>
> Used Volume status:
> Vol1 on device "usb-changer-drive-0" (/tmp/bacula/drive0)
> Reader=0 writers=0 devres=0 volinuse=0
> Vol2 on device "usb-changer-drive-1" (/tmp/bacula/drive1)
> Reader=0 writers=0 devres=0 volinuse=0
> ====
>
> D /run a virtual full
>
> bacula chooses a new volume for that backup ( volume 3 )
> for whatever reason bacula wants to load volume2 ( the previous virtual
> full ) in drive 0 but the volume  is already sitting idle in drive 1
>
> then the backup hangs and bacula asks the opetrator to mount volume2 on
> drive0
>
> how can i tell  bacula to check if a volume is already mounted before
> trying to load it in another drive ??
>
> ====
>
> *run job=BackupClient1 level=VirtualFull  yes
> Job queued. JobId=158
> *
> 07-Sep 19:47 box.mike.dom-dir JobId 158: Start Virtual Backup JobId 158,
> Job=BackupClient1.2010-09-07_19.47.15_09
> 07-Sep 19:47 box.mike.dom-dir JobId 158: Bootstrap records written to
> /var/lib/bacula/box.mike.dom-dir.restore.2.bsr
> 07-Sep 19:47 box.mike.dom-dir JobId 158: Using Volume "Vol3" from 'Scratch'
> pool.
> 07-Sep 19:47 box.mike.dom-dir JobId 158: Using Device "usb-changer-drive-1"
> 07-Sep 19:47 box.mike.dom-sd JobId 158: 3307 Issuing autochanger "unload
> slot 1, drive 0" command.
>
> then backup hangs .....
> ***************************************************
>
> here is my conf :
>
> Pool {
> Name = Incr
> Pool Type = Backup
> Recycle = yes                       # Bacula can automatically
> recycle Volumes
> AutoPrune = yes                     # Prune expired volumes
> Volume Retention = 365 days         # one year
> Storage = changer1
> ActionOnPurge = Truncate
> RecyclePool = Scratch
> Next Pool = vfull
> }
>
> Pool {
> Name = vfull
> Pool Type = Backup
> Recycle = yes                       # Bacula can automatically
> recycle Volumes
> AutoPrune = yes                     # Prune expired volumes
> Volume Retention = 365 days         # one year
> Storage = changer1
> ActionOnPurge=Truncate
> Next Pool = External
> RecyclePool = Scratch
> }
> Storage {
> Name = changer1   # same as 'changer_name' in the vchanger config file
> Address = localhost
> SDPort = 9103
> Password = "A"
> Device = usb-changer  # name of the Autochanger resource in bacula-sd.conf
> Media Type = File
> Autochanger = yes
> Maximum Concurrent Jobs = 2
> }
>
> Autochanger {
> Name = usb-changer
> Device = usb-changer-drive-0
> Device = usb-changer-drive-1
> Changer Command = "/etc/bacula/scripts/disk-changer %c %o %S %a %d"
> #  Changer Command = "/usr/local/bin/vchanger %c %o %S %a %d"
> #  Changer Device = "/etc/bacula/c1.conf"
> Changer Device = "/etc/bacula/scripts/disk-changer.conf"
>
> }
>
> #---  drive 0 of the usb-changer autochanger
> Device {
> Name = usb-changer-drive-0
> DriveIndex = 0
> Autochanger = yes;
> DeviceType = vtape
> MediaType = File
> ArchiveDevice = /tmp/bacula/drive0
> RemovableMedia = no;
> RandomAccess = yes;
>
> }
>
> #---  drive 1 of the usb-changer autochanger
> Device {
> Name = usb-changer-drive-1
> DriveIndex = 1
> Autochanger = yes;
> DeviceType = vtape
> MediaType = File
> ArchiveDevice = /tmp/bacula/drive1
> RemovableMedia = no;
> RandomAccess = yes;
>
> }
>
> thanks
> Mike



------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to