Hello again
sorry the à come from my crappy webmail client sorry ....
i tried the same setup with a physical autochanger ( 2 drives 10 slots )
1/ virtualfull
2/ incremental
3/ virtualfull
i have the same problem again :
the previous virtualfull sits idle in drive2 and bacula expects it in drive1
but never unloads it from drive2
i added maximum volume jobs =1 to the pool to make sure bacula does not try to
read and write to the same volume but it did not solve the problem
if i manually unload the first vbackup from the drive before trying theÂ
vbackup everything works fine....
STATUSÂ STORAGEÂ BEFOREÂ VIRTUALFULL
Running Jobs:
No Jobs running.
====
Jobs waiting to reserve a drive:
====
Device status:
Autochanger "changer1" with devices:
"Drive-1" (/dev/nst0)
"Drive-2" (/dev/nst1)
Device "Drive-1" (/dev/nst0) is mounted with:
Volume:Â Â Â Â Â A03
Pool:Â Â Â Â Â Â Â Incr
Media type:Â l700
Slot 4 is loaded in drive 0.
Total Bytes=193,536 Blocks=2 Bytes/block=96,768
Positioned at File=2 Block=0
Device "Drive-2" (/dev/nst1) is mounted with:
Volume:Â Â Â Â Â A02
Pool:Â Â Â Â Â Â Â vfull
Media type:Â l700
Slot 3 is loaded in drive 1.
Total Bytes=129,024 Blocks=1 Bytes/block=129,024
Positioned at File=1 Block=0
====
VIRTUALÂ FULL
10-Sep 13:52 debian-dir JobId 18: Start Virtual Backup JobId 18,
Job=BackupClient1.2010-09-10_13.52.06_08
10-Sep 13:52 debian-dir JobId 18: Warning: This Job is not an Accurate backup
so is not equivalent to a Full backup.
10-Sep 13:52 debian-dir JobId 18: Bootstrap records written to
/var/lib/bacula/debian-dir.restore.2.bsr
10-Sep 13:52 debian-dir JobId 18: Using Volume "A04" from 'Scratch' pool.
10-Sep 13:52 debian-dir JobId 18: Using Device "Drive-2"
10-Sep 13:52 debian-sd JobId 18: 3307 Issuing autochanger "unload slot 4, drive
0" command.
*
*
10-Sep 13:55 debian-sd JobId 18: Warning: Volume "A02" wanted on "Drive-1"
(/dev/nst0) is in use by device "Drive-2" (/dev/nst1)
10-Sep 13:55 debian-sd JobId 18: 3301 Issuing autochanger "loaded? drive 0"
command.
10-Sep 13:55 debian-sd JobId 18: 3302 Autochanger "loaded? drive 0", result:
nothing loaded.
10-Sep 13:55 debian-sd JobId 18: Warning: acquire.c:224 Read open device
"Drive-1" (/dev/nst0) Volume "A02" failed: ERR=dev.c:491 Unable to open device
"Drive-1" (/dev/nst0): ERR=No medium found
10-Sep 13:55 debian-sd JobId 18: 3301 Issuing autochanger "loaded? drive 0"
command.
10-Sep 13:55 debian-sd JobId 18: 3302 Autochanger "loaded? drive 0", result:
nothing loaded.
10-Sep 13:58 debian-sd JobId 18: Warning: Volume "A02" wanted on "Drive-1"
(/dev/nst0) is in use by device "Drive-2" (/dev/nst1)
10-Sep 13:58 debian-sd JobId 18: Please mount Volume "A02" for:
Job:Â Â Â Â Â Â Â Â Â BackupClient1.2010-09-10_13.52.06_08
Storage:Â Â Â Â Â "Drive-1" (/dev/nst0)
Pool:Â Â Â Â Â Â Â Â Incr
Media type:Â Â l700
STATUS STORAGE AFTERÂ FAILED VIRTUALÂ FULL
Running Jobs:
Reading: Virtual Full Backup job BackupClient1 JobId=18 Volume="A02"
pool="Incr" device="Drive-1" (/dev/nst0)
Writing: Virtual Full Backup job BackupClient1 JobId=18 Volume="A04"
pool="vfull" device="Drive-2" (/dev/nst1)
spooling=0 despooling=0 despool_wait=0
Files=0 Bytes=0 Bytes/sec=0
FDSocket closed
====
Device status:
Autochanger "changer1" with devices:
"Drive-1" (/dev/nst0)
"Drive-2" (/dev/nst1)
Device "Drive-1" (/dev/nst0) is not open.
Device is BLOCKED waiting for mount of volume "A02",
Pool:Â Â Â Â Â Â Â Incr
Media type:Â l700
Drive 0 status unknown.
Device "Drive-2" (/dev/nst1) is mounted with:
Volume:Â Â Â Â Â A02
Pool:Â Â Â Â Â Â Â vfull
Media type:Â l700
Slot 3 is loaded in drive 1.
Total Bytes=129,024 Blocks=1 Bytes/block=129,024
Positioned at File=1 Block=0
====
Used Volume status:
A04 on device "Drive-2" (/dev/nst1)
Reader=0 writers=0 devres=1 volinuse=1
A02 read volume JobId=18
A03 read volume JobId=18
====
====
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:
[Hide Quoted Text] 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