[Bacula-users] bacula asks for a volume that is already mounted
2010-09-08 15:32:57
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
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Bacula-users] bacula asks for a volume that is already mounted,
dilbert <=
|
|
|