On 7/01/2011 3:31 AM, Jesper Krogh wrote:
Hi Anyone doing VirtualFull backups using tapedrives only? Can they shortly describe their setup? pro/con/etc?Thanks. Yes I am. I am using a TL2000 tape library with two drives. The technique can't work if you only have one tape drive. I'm taking incremental backups Mon-Fri. Then after the incremental backups are finished on Friday I consolidate them into a VirtualFull backup. For a VirtualFull backup to work it takes the previous full backup and the incremental backups since, and combines them to produce new tape(s) that will be promoted to being the latest full backups. The first incremental backups ever run for a host will auto upgrade to a full backup so you're covered for that. The process seems to work well for me, after I worked around a minor problem. After the incremental backup is complete, tapes are left in the drives. If tape X is in drive 1 after the incremental backups are complete and the VirtualFull wishes to load it it into drive 0 to read from; then Bacula can't eject the tape from drive 1 and then load it into drive 0 and deadlocks for user intervention. User intervention doesn't help either as the tape you want to eject is locked by Bacula, so you end up stopping daemons and interrupting the backup. The solution is to use an administrative job that is scheduled to eject all tapes from the drives after the incremental backups are done, and before the VirtualFull backup starts. Perhaps I should have just raised a bug on that... In your Incremental Backup Job definitions make sure you set Accurate = yes Also the Director must have 'Maximum Concurrent Jobs' set to at least 2 in order for the VirtualFull backups to work (one reader and one writer I guess). I have created a /etc/bacula/scripts/release_tapes script with the following contents to eject the tapes from the drives: #!/bin/bashThese are the relevant entries in my /etc/bacula/bacula-dir.conf file: # This job definition contains all compulsory job values even if they aren't used by the job type. In the two schedule definitions you can see that the incremental backups are set at priority 11, then the admin job to eject the tape is at priority 12, and then the VirtualFull is at priority 13. This all makes sure that they happen in the correct sequence. I'd imagine that for this to work you shouldn't modify the settings that lets jobs with different priorities run at the same time. In the last pool you can see a hint of me using Copy jobs as well. I haven't included the entries for these, but after the VirtualFull backups are complete, I produce Copies of them for off-site rotation. There were a few tricks related to them as well. Mainly to do with the job not being allowed to run a SQL query to gather the list of latest full backups at the time it is scheduled as opposed to when it can run. I solved this with an admin job to kick off the Copy job rather than scheduling it directly. Regards, ---------- Jim Barber DDI Health |
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users