From: Hemant S. <hj...@ya...> - 2008-04-30 20:46:27
|
<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'><br><br>--- On Tue, 4/29/08, Drew Bentley <bac...@gm...> wrote:<br><br>> From: Drew Bentley <bac...@gm...><br>> Subject: Re: [Bacula-users] Saving each client to a seperate file?<br>> To: hj...@ya...<br>> Cc: "baculausers" <bac...@li...><br>> Date: Tuesday, April 29, 2008, 12:58 PM<br>> On Tue, Apr 29, 2008 at 12:51 PM, Hemant Shah<br>> <hj...@ya...> wrote:<br>> > Folks,<br>> ><br>> > I am backing up systems to disk and I have set pool<br>> resource as follows:<br>> ><br>> > # Full backup to disk pool definition<br>> > Pool<br>> > {<br>> > Name = FullBackupDiskPool<br>> > Pool Type = Backup<br>> > Recycle = yes<br>> > AutoPrune = yes<br>> > Maximum Volume Jobs = 1<br>> > Volume Retention = 2 weeks<br>> > Storage = File<br>> > Label Format =<br>> "FullBackup-${Client}-${Month:p/2/0/r}-${Day:p/2/0/r}-${Year}"<br>> > }<br>> ><br>> > I am running 3 concurrent jobs. Bacula does not save<br>> each client to seperate file.<br>> ><br>> > Here is the relevant lines from "stat dir"<br>> ><br>> > 23 Full 94,881 4.797 G OK 29-Apr-08<br>> 08:45 lidp7FullBackupToDisk<br>> > 24 Full 303,309 8.392 G OK 29-Apr-08<br>> 08:48 lidp1FullBackupToDisk<br>> > 26 Full 402,286 4.665 G OK 29-Apr-08<br>> 09:11 lidp5FullBackupToDisk<br>> ><br>> ><br>> ><br>> > 22 Full lidp11FullBackupToDisk.2008-04-28_22.00.32<br>> is running<br>> > 25 Full lidp4FullBackupToDisk.2008-04-28_22.00.35<br>> is running<br>> > 27 Full lidp6FullBackupToDisk.2008-04-28_22.00.37<br>> is running<br>> ><br>> ><br>> > As you can see, three clients have finished, and<br>> three are running.<br>> > The directory listing of the backup file directory<br>> shows only three files:<br>> ><br>> > # ls -ltrh<br>> > total 189G<br>> > -rw-r----- 1 root root 1.5G 2008-04-29 08:34<br>> FullBackup-lidp11-fd-04-29-2008<br>> > -rw-r----- 1 root root 14G 2008-04-29 08:45<br>> FullBackup-lidp7-fd-04-29-2008<br>> > -rw-r----- 1 root root 14G 2008-04-29 09:11<br>> FullBackup-lidp4-fd-04-29-2008<br>> > -rw-r----- 1 root root 161G 2008-04-29 12:44<br>> FullBackup-lidp6-fd-04-29-2008<br>> ><br>> > It looks like lidp11 backup is being saved in<br>> FullBackup-lidp6* file. lidp6 backup should be only 20GB<br>> when it is complete. lidp11 backup is 125GB. lidp7 should<br>> only be about 4GB instead it is 14GB so some other client<br>> is stored in it.<br>> ><br>> ><br>> > What am I doing wrong?<br>> ><br>> ><br>> > Hemant Shah<br>> > E-mail: hj...@ya...<br>> <br>> Try this option:<br>> <br>> Use Volume Once = yes<br>> <br>> It's outlined in the Pool Resource from the online<br>> manual.<br>> <br><br>I set "Use Volume Once" and "Maximum Volume Jobs", but now I have another problem. I have three concurrent jobs running. I messes up the first two jobs by using same file and purging data for the two jobs. Starting from 4th job it saves each to seperate file.<br><br>Here is my pool resource:<br><br># Full backup to disk pool definition<br>Pool<br>{<br> Name = FullBackupDiskPool<br> Pool Type = Backup<br> Recycle = yes # Bacula can automatically recycle Volumes<br> AutoPrune = yes # Prune expired volumes<br> Maximum Volume Jobs = 1<br> Use Volume Once = yes<br> Volume Retention = 2 weeks <br> Storage = File<br> Label Format = "FullBackup-${Client}-${Month:p/2/0/r}-${Day:p/2/0/r}-${Year}"<br>}<br><br><br>Here is what I see on bconsole:<br><br>30-Apr 14:45 lidp11-dir JobId 1: Start Backup JobId 1, Job=lidp11FullBackupToDisk.2008-04-30_14.45.04<br>30-Apr 14:45 lidp11-dir JobId 1: Created new Volume "FullBackup-lidp11-fd-04-30-2008" in catalog.<br>30-Apr 14:45 lidp11-dir JobId 1: Using Device "FileStorage"<br>30-Apr 14:45 lidp11-sd JobId 1: Labeled new Volume "FullBackup-lidp11-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles).<br>30-Apr 14:45 lidp11-sd JobId 1: Wrote label to prelabeled Volume "FullBackup-lidp11-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles)<br>30-Apr 14:45 lidp11-dir JobId 1: Volume used once. Marking Volume "FullBackup-lidp11-fd-04-30-2008" as Used.<br>30-Apr 14:45 lidp11-dir JobId 2: Start Backup JobId 2, Job=lidp7FullBackupToDisk.2008-04-30_14.45.05<br>30-Apr 14:45 lidp11-dir JobId 3: Start Backup JobId 3, Job=lidp1FullBackupToDisk.2008-04-30_14.45.06<br>30-Apr 14:45 lidp11-dir JobId 2: There are no more Jobs associated with Volume "FullBackup-lidp11-fd-04-30-2008". Marking it purged.<br>30-Apr 14:45 lidp11-dir JobId 2: All records pruned from Volume "FullBackup-lidp11-fd-04-30-2008"; marking it "Purged"<br>30-Apr 14:45 lidp11-dir JobId 2: Recycled volume "FullBackup-lidp11-fd-04-30-2008"<br>30-Apr 14:45 lidp11-dir JobId 2: Using Device "FileStorage"<br>30-Apr 14:45 lidp11-sd JobId 2: Recycled volume "FullBackup-lidp11-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles), all previous data lost.<br>30-Apr 14:45 lidp11-dir JobId 2: Volume used once. Marking Volume "FullBackup-lidp11-fd-04-30-2008" as Used.<br>30-Apr 14:46 lidp11-dir JobId 3: There are no more Jobs associated with Volume "FullBackup-lidp11-fd-04-30-2008". Marking it purged.<br>30-Apr 14:46 lidp11-dir JobId 3: All records pruned from Volume "FullBackup-lidp11-fd-04-30-2008"; marking it "Purged"<br>30-Apr 14:46 lidp11-dir JobId 3: Recycled volume "FullBackup-lidp11-fd-04-30-2008"<br>30-Apr 14:46 lidp11-dir JobId 3: Using Device "FileStorage"<br>30-Apr 14:46 lidp11-sd JobId 3: Recycled volume "FullBackup-lidp11-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles), all previous data lost.<br>30-Apr 14:46 lidp11-dir JobId 3: Volume used once. Marking Volume "FullBackup-lidp11-fd-04-30-2008" as Used.<br>30-Apr 14:59 lidp11-sd JobId 2: Job write elapsed time = 00:14:41, Transfer rate = 5.459 M bytes/second<br>30-Apr 15:00 lidp11-dir JobId 2: Bacula lidp11-dir 2.2.8 (26Jan08): 30-Apr-2008 15:00:04<br>30-Apr 15:00 lidp11-dir JobId 4: Start Backup JobId 4, Job=lidp5FullBackupToDisk.2008-04-30_14.45.07<br>30-Apr 15:00 lidp11-dir JobId 4: Created new Volume "FullBackup-lidp5-fd-04-30-2008" in catalog.<br>30-Apr 15:00 lidp11-dir JobId 4: Using Device "FileStorage"<br>30-Apr 15:00 lidp11-sd JobId 4: Labeled new Volume "FullBackup-lidp5-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles).<br>30-Apr 15:00 lidp11-sd JobId 4: Wrote label to prelabeled Volume "FullBackup-lidp5-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles)<br>30-Apr 15:00 lidp11-dir JobId 4: Volume used once. Marking Volume "FullBackup-lidp5-fd-04-30-2008" as Used.<br>30-Apr 15:00 lidp11-sd JobId 3: Job write elapsed time = 00:14:44, Transfer rate = 3.979 M bytes/second<br>30-Apr 15:02 lidp11-dir JobId 3: Bacula lidp11-dir 2.2.8 (26Jan08): 30-Apr-2008 15:02:02<br>30-Apr 15:02 lidp11-dir JobId 5: Start Backup JobId 5, Job=lidp8FullBackupToDisk.2008-04-30_14.45.08<br>30-Apr 15:02 lidp11-dir JobId 5: Created new Volume "FullBackup-lidp8-fd-04-30-2008" in catalog.<br>30-Apr 15:02 lidp11-dir JobId 5: Using Device "FileStorage"<br>30-Apr 15:02 lidp11-sd JobId 5: Labeled new Volume "FullBackup-lidp8-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles).<br>30-Apr 15:02 lidp11-sd JobId 5: Wrote label to prelabeled Volume "FullBackup-lidp8-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles)<br>30-Apr 15:02 lidp11-dir JobId 5: Volume used once. Marking Volume "FullBackup-lidp8-fd-04-30-2008" as Used.30-Apr 15:20 lidp11-sd JobId 4: Job write elapsed time = 00:20:39, Transfer rate = 1.469 M bytes/second<br>30-Apr 15:22 lidp11-dir JobId 4: Bacula lidp11-dir 2.2.8 (26Jan08): 30-Apr-2008 15:22:23<br>30-Apr 15:22 lidp11-dir JobId 6: Start Backup JobId 6, Job=lidp9FullBackupToDisk.2008-04-30_14.45.09<br>30-Apr 15:22 lidp11-dir JobId 6: Created new Volume "FullBackup-lidp9-fd-04-30-2008" in catalog.<br>30-Apr 15:22 lidp11-dir JobId 6: Using Device "FileStorage"<br>30-Apr 15:22 lidp11-sd JobId 6: Labeled new Volume "FullBackup-lidp9-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles).<br>30-Apr 15:22 lidp11-sd JobId 6: Wrote label to prelabeled Volume "FullBackup-lidp9-fd-04-30-2008" on device "FileStorage" (/backups/backupfiles)<br>30-Apr 15:22 lidp11-dir JobId 6: Volume used once. Marking Volume "FullBackup-lidp9-fd-04-30-2008" as Used.<br><br><br>As you can see it uses same volume, FullBackup-lidp11-fd-04-30-2008, for first three jobs, and it purges the volumes when it starts second and third job.<br><br>Is this a bug or am I doing something wrong?<br><br><br><br>Hemant Shah<br>E-mail: hj...@ya...<br><br>> -Drew</td></tr></table><br> <hr size=1>Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a> |