From: Andreas H. <ahn...@el...> - 2007-05-28 09:57:10
|
Andreas Helmcke wrote: > Kern Sibbald wrote: >> Hello, >> >> I've attached a corrected <bacula-source>/src/dird/dird.c file that should >> correct your problem with StorageId getting set to zero during a reload. >> Simply copy the file into the above mentioned location, then: >> >> cd <bacula-source> >> make >> ... >> make install >> >> This is a 2.1.x bug, and is not present in version 2.0.x. > > This patch works for me. The StorageId is correct and stays correct even after "reload". > > Unfortunately this doesn't fix the main problem of this thread. I still have the problem, that a job stops with "no appendable volume found" while there definitely are usable volumes. At least I have 5 volumes with status purged in the scratch pool in addition to usable volumes in the pool. for which the job runs. So there should be no reason for this error. I am still trying to make this problem reproducable but I'll try to summarize, what I have found out by now: 1. The problem never occurs for jobs, which can use an already loaded tape. 2. It only occurs if there are concurrent jobs running. 3. It never effects the first job, which gets started but sometimes the second, sometimes the third or (rarely) both. (I only have three concurrent jobs) 4. It seems to be a temporary problem. Since I am using V2.1.10 the jobs, which where blocked with "no appendable volume found" did continue after some time. 5. While they are blocked it did *not* help to mount an usable tape to the drive, which is used by the job. Two more strange effects, which i have seen on "status storage". I am not sure if this is normal behavior and if not, if its connected to the main problem: Sometimes (after starting a job): the line Device "Drive-1" (/dev/nst1) is mounted with Volume="GLG332L1" Pool="Srv04-Daily" show the mounted volume but the pool isn't the pool the volume belongs to, but the pool to which the running job will write. The "In Use Volume status:" doesn't match the running jobs: > *Connecting to Storage daemon ADIC at elablnsrv04:9103 > > elablnsrv04-sd Version: 2.1.10 (18 May 2007) i686-pc-linux-gnu suse 10.0 > Daemon started 27-May-07 12:54, 9 Jobs run since started. > Heap: heap=671,744 smbytes=577,988 max_bytes=609,657 bufs=224 max_bufs=229 > > Running Jobs: > Writing: Incremental Backup job Srv04-std JobId=647 Volume="GLG332L1" > pool="Srv04-Daily" device="Drive-1" (/dev/nst1) > spooling=0 despooling=0 despool_wait=0 > Files=130 Bytes=174,434,918 Bytes/sec=670,903 > FDReadSeqNo=3,653 in_msg=3313 out_msg=5 fd=8 > Writing: Incremental Backup job Srv01-std JobId=648 Volume="GLG324L1" > pool="Srv01-Daily" device="Drive-0" (/dev/nst0) > spooling=0 despooling=0 despool_wait=0 > Files=14 Bytes=699,017 Bytes/sec=33,286 > FDReadSeqNo=88 in_msg=63 out_msg=5 fd=10 > Writing: Incremental Backup job Mail01-std JobId=649 Volume="000045L1" > pool="Mail01-Daily" device="Drive-2" (/dev/nst2) > spooling=0 despooling=0 despool_wait=0 > Files=712 Bytes=387,798,025 Bytes/sec=1,570,032 > FDReadSeqNo=10,570 in_msg=8980 out_msg=5 fd=12 > ==== > > > Device status: > Autochanger "ADIC" with devices: > "Drive-0" (/dev/nst0) > "Drive-1" (/dev/nst1) > "Drive-2" (/dev/nst2) > "Drive-3" (/dev/nst3) > Device "FileStorage" (/tmp) is not open. > Device "Drive-0" (/dev/nst0) is mounted with Volume="GLG324L1" Pool="Srv01-Daily" > Slot 35 is loaded in drive 0. > Total Bytes=1,207,406,592 Blocks=18,715 Bytes/block=64,515 > Positioned at File=2 Block=10 > Device "Drive-1" (/dev/nst1) is mounted with Volume="GLG332L1" Pool="Srv04-Daily" > Slot 6 is loaded in drive 1. > Total Bytes=24,710,934,528 Blocks=383,043 Bytes/block=64,512 > Positioned at File=27 Block=2,705 > Device "Drive-2" (/dev/nst2) is mounted with Volume="000045L1" Pool="Mail01-Daily" > Slot 1 is loaded in drive 2. > Total Bytes=1,305,013,248 Blocks=20,228 Bytes/block=64,515 > Positioned at File=1 Block=6,016 > Device "Drive-3" (/dev/nst3) is not open. > Drive 3 status unknown. > ==== > > In Use Volume status: > GLG318L1 on device "Drive-1" (/dev/nst1) > GLG324L1 on device "Drive-0" (/dev/nst0) > ==== Andreas |