[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] Trying out the VirtualFull feature.


On Friday 15 August 2008 10:36:36 Graham Keeling wrote:
> On Fri, Aug 15, 2008 at 10:20:56AM +0200, Kern Sibbald wrote:
> > Duh!  Contrary to what I wrote, there must be two different Storage
> > resource definitions as you have.  One is used for Input, and the other
> > is used for output.  So off hand, I am not sure there is anything wrong
> > with your above definition.
> >
> > Sorry for my confusion.  I'll look at this in more detail today to see if
> > I can figure out what is going wrong.
>
> OK - I was about to reply that I actually did try running with a single
> storage resource, but I got an error message telling me that I couldn't
> read/write to the same one.

Yes, sorry.  I was too tired when I answered you and so the answer was just 
wrong.

>
> I commented out that section of the source code (around line 705 in
> src/dird/jobq.c), tried again, and got a similar error, commented out that
> one too (around line 510 in src/dird/vbackup.c), and tried again.
> The result was exactly the same as before, in that it looked like it was
> working but didn't include the incrementals.
> It would be nice if it did let you read/write to the same storage if it
> were possible - as it is in my case, as I am exclusively using disk-based
> storage.

Unfortunately it is not possible to read and write to the same device, because 
on a tape it is just impossible, and on a disk, it requires two I/O packets.

The above said, it is possible to read and write to the same disk directory 
providing the volumes are different.  This is most easily accomplished by 
using something such as the virtual disk changer (disk-changer script), which 
provides two or more virtual drives.  It is probably also possible by using 
the virtual disk device, which is a sort of automatic disk changer, but I 
don't use that code, so I hesitate to recommend it.  

I'm working on the documentation now, which will possibly help, and I will 
come back to your configuration later this evening and look at it in detail 
(hopefully less tired than yesterday).

By the way, below is the output that I get after running a virtual backup 
(JobId number 5).  As you can see it looks reasonably consistent ...


Sorry for the email wrapping bug you can probably figure it out.

Regards,

Kern

15-Aug 10:44 localhost-dir JobId 5: Bootstrap records written 
to /home/kern/bacula/regress/working/localhost-dir.restore.1.bsr
15-Aug 10:44 localhost-dir JobId 5: Start Vbackup JobId 5, 
Job=Vbackup.2008-08-15_10.44.07
15-Aug 10:44 localhost-dir JobId 5: Using Device "Drive-0"
15-Aug 10:44 localhost-sd JobId 5: Ready to read from volume "FileVolume001" 
on device "FileStorage" (/home/kern/bacula/regress/tmp).
15-Aug 10:44 localhost-sd JobId 5: Wrote label to prelabeled 
Volume "ChangerVolume002" on device "Drive-0" 
(/home/kern/bacula/regress/tmp/disk-changer/drive0)
15-Aug 10:44 localhost-sd JobId 5: Spooling data ...
15-Aug 10:44 localhost-sd JobId 5: Forward spacing Volume "FileVolume001" to 
file:block 0:197.
15-Aug 10:44 localhost-sd JobId 5: End of file 0 on device "FileStorage" 
(/home/kern/bacula/regress/tmp), Volume "FileVolume001"
15-Aug 10:44 localhost-sd JobId 5: End of Volume at file 0 on 
device "FileStorage" (/home/kern/bacula/regress/tmp), Volume "FileVolume001"
15-Aug 10:44 localhost-sd JobId 5: End of all volumes.
15-Aug 10:44 localhost-sd JobId 5: Committing spooled data to 
Volume "ChangerVolume002". Despooling 151,455,172 bytes ...
15-Aug 10:44 localhost-sd JobId 5: Despooling elapsed time = 00:00:07, 
Transfer rate = 21.63 M bytes/second
15-Aug 10:44 localhost-sd JobId 5: Sending spooled attrs to the Director. 
Despooling 1,991,175 bytes ...
15-Aug 10:44 localhost-dir JobId 5: Bacula localhost-dir 2.5.3 (12Aug08): 
15-Aug-2008 10:44:27
  Build OS:               i686-pc-linux-gnu ubuntu 8.04
  JobId:                  5
  Job:                    Vbackup.2008-08-15_10.44.07
  Backup Level:           Full
  Client:                 "localhost-fd" 2.5.3 (12Aug08) 
i686-pc-linux-gnu,ubuntu,8.04
  FileSet:                "Full Set" 2008-08-15 10:43:47
  Pool:                   "Default" (From Job Pool's NextPool resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "DiskChanger" (From Storage from Pool's NextPool 
resource)
  Scheduled time:         15-Aug-2008 10:44:11
  Start time:             15-Aug-2008 10:44:14
  End time:               15-Aug-2008 10:44:27
  Elapsed time:           13 secs
  Priority:               10
  SD Files Written:       6,812
  SD Bytes Written:       151,106,548 (151.1 MB)
  Rate:                   11623.6 KB/s
  Software Compression:   None
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):         ChangerVolume002
  Volume Session Id:      5
  Volume Session Time:    1218789825
  Last Volume Bytes:      158,490,054 (158.4 MB)
  SD Errors:              0
  SD termination status:  OK
  Termination:            Backup OK

15-Aug 10:44 localhost-dir JobId 5: Begin pruning Jobs.
15-Aug 10:44 localhost-dir JobId 5: No Jobs found to prune.
15-Aug 10:44 localhost-dir JobId 5: Begin pruning Files.
15-Aug 10:44 localhost-dir JobId 5: No Files found to prune.
15-Aug 10:44 localhost-dir JobId 5: End auto prune.

list jobs
+-------+---------+---------------------+------+-------+----------+-----------+-----------+
| JobId | Name    | StartTime           | Type | Level | JobFiles | 
JobBytes  | JobStatus |
+-------+---------+---------------------+------+-------+----------+-----------+-----------+
| 1     | Vbackup | 2008-08-15 10:43:49 | B    | F     | 6812     | 
150081537 | T         |
| 2     | Vbackup | 2008-08-15 10:44:03 | B    | I     | 43       | 
921469    | T         |
| 3     | Vbackup | 2008-08-15 10:44:07 | B    | D     | 86       | 
3514117   | T         |
| 4     | Vbackup | 2008-08-15 10:44:10 | B    | I     | 43       | 
2592648   | T         |
| 5     | Vbackup | 2008-08-15 10:44:14 | B    | F     | 6812     | 
151106548 | T         |
+-------+---------+---------------------+------+-------+----------+-----------+-----------+


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.