Re: [Bacula-users] Volume errors since update to 2.0.3
I tried but : [EMAIL PROTECTED] bacula]# /usr/lib/bacula/sqlite/sqlite /var/bacula/bacula.db sqlite> select * from pool; 1|Default|99|0|0|1|1|864|518400|0|0|20|1|1|Backup|0|ScribeVolume|1|0|0|0|0|0|0 sqlite> UPDATE Pool SET NumVols=109 WHERE Name='Default'; sqlite> select * from pool; 1|Default|109|0|0|1|1|864|518400|0|0|20|1|1|Backup|0|ScribeVolume|1|0|0|0|0|0|0 (here it has been correctly changed) [EMAIL PROTECTED] bacula]# /etc/init.d/bacula-dir start Starting the Bacula Director: [ OK ] *list pool Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" ++-+-+-+--+--+ | PoolId | Name| NumVols | MaxVols | PoolType | LabelFormat | ++-+-+-+--+--+ | 1 | Default | 99 | 0 | Backup | ScribeVolume | ++-+-+-+--+--+ Is there a limit on NumVols when using SQLITE ? K. Martin Simmons a écrit : >> On Thu, 24 May 2007 09:35:18 +0200, le dahut said: >> Here are some additional informations : >> >> *list volumes >> Pool: Default >> ... >> | 108 | ScribeVolume0108 | Full | 1 | 149066 | 0 >> | 5184000 | 1 | 0| 0 | File | 2007-05-06 >> 02:01:39 | >> | 109 | ScribeVolume0109 | Full | 1 | 136408 | 0 >> | 5184000 | 1 | 0| 0 | File | 2007-05-13 >> 02:20:23 | >> ... >> >> *list pools >> ++-+-+-+--+--+ >> | PoolId | Name| NumVols | MaxVols | PoolType | LabelFormat | >> ++-+-+-+--+--+ >> | 1 | Default | 99 | 0 | Backup | ScribeVolume | >> ++-+-+-+--+--+ >> >> *show pools >> Pool: name=Default PoolType=Backup >>use_cat=1 use_once=0 cat_files=1 >>max_vols=0 auto_prune=1 VolRetention=3 months 10 days >>VolUse=6 days recycle=1 LabelFormat=ScribeVolume >>CleaningPrefix=*None* LabelType=0 >>RecyleOldest=1 PurgeOldest=0 MaxVolJobs=0 MaxVolFiles=0 >>MigTime=0 secs MigHiBytes=0 MigLoBytes=0 >> >> >> This night, Bacula tried again to create those volumes, why ???! > > Because the NumVols is 99 in the catalog. You could try setting this to 109 > using an sql command such as > > UPDATE Pool SET NumVols=109 WHERE Name='Default'; > > Do you have 109 volumes or did the Pool and Media tables get out-of-sync > somehow? > > __Martin > > >> >> K. >> >> >> >> le dahut wrote : >>> Hello, >>> >>> I used bacula-1.38, since I updated it to 2.0.3, it backuped 4 times ok >>> and then it errors with : >>> """ >>> 23-May 15:53 127.0.0.1-dir: Client1.2007-05-23_15.32.54 Warning: Wanted >>> to create Volume "ScribeVolume0109", but it already exists. Trying >>> again. >>> 23-May 15:53 127.0.0.1-dir: Client1.2007-05-23_15.32.54 Error: Too many >>> failures. Giving up creating Volume name. >>> """ >>> >>> >>> I noticed that that the concerned volumes are not always the same. For >>> example today bacula errors about "ScribeVolume0100" to >>> "ScribeVolume0109" and on may 20th it errored on "ScribeVolume0090 to >>> ScribeVolume0097". >>> >>> Here's part of my SD configuration : >>> Device { >>>Name = FileStorage >>>Media Type = File >>>Archive Device = /var/sauvegardes >>>LabelMedia = yes; # lets Bacula label unlabeled media >>>Random Access = Yes; >>>AutomaticMount = yes; # when device opened, read it >>>RemovableMedia = no; >>>AlwaysOpen = no; >>> } >>> >>> the DIR conf : >>> Pool { >>>Name = Default >>>Pool Type = Backup >>>Recycle = yes >>>AutoPrune = yes >>>Volume Retention = 100 days >>>LabelFormat = "ScribeVolume" >>>Recycle Oldest Volume = yes >>>Maximum Volume Bytes = 2 gb >>>Volume Use Duration = 6 days >>> } >>> >>> >>> liste volumes shows all the concerned volumes in database ... what's >>> happening ? >>> >>> >>> K. >>> >>> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Bacula-u
Re: [Bacula-users] [Bacula-devel] feature request : clustered server
On 2007.05.24. 01:05, Arno Lehmann wrote: > Hi, > > On 5/23/2007 3:12 PM, Kern Sibbald wrote: >> Hello, >> >> Thanks for your feature request. Unfortunately at the moment no one is >> collecting these, and so you will probably need to resubmit it later. > > Not exactly... I'm still thinking about how to do this properly, but in > the meantime, I hope I won't forget any new feature requests. kern, arno, thanks for the responses :) i understand that clustered servers isn't exactly a basic feature or one to easy implement, but i hope that this still qualifies for a feature request, at least as #41 :) as for the method, what about using a wiki page for feature requests ? that way permanent links to versions could be used for voting results, but head could be used to add new ones, fix typos and so on. > I noticed this one, at least :-) > > Arno -- Rich - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Spooling directory management
On Wed, 23 May 2007, Ivan Adzhubey wrote: > One more question: currently, the size of my spooling directory is 250GB and I > need to add another server to backup list that holds 1.1TB of data. Will that > create problems? No. > On a more general note: how do you guys deal with huge > datasets? Add more tapes. > This server is projected to accumulate 12TB of data in the next 18 > months and I was asked to have them all backed up on tape, even though > disks are in a RAID5 on a hardware controller (3ware). RAID5 only protects against hardware failure (and only some forms of hardware failure). There are still things like "rm -rf /" and other kinds of luser error to cope with. > I am wondering, have anybody had any experience with Bacula working on a > really large amounts of data? I'm backing up 30Tb here and we just bought up another 28Tb array which will fill up durig the next 6-8 months. The things to bear in mind are: 1: Do not try backing up all the filesets at once (I have 12 week cycle on full backups, with 2-3 full backups triggered each week instead of trying to backup 28 1TB sets in one go) 2: Keep fileset sizes sensible. We use a rule of thumb of 1Tb, which takes abour 20 hours on LTO2 (spooling plus tape run) and can run 2 of those simultaneously on each tape drive in the same time period (one spools, one despools, etc) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Restorating a Job on alternate machine.
Hi, When I tries to restore the data, it restores on the Server whose backup was taken. I want that backup should be restored on some other server. How can i configure this? PS: I am using the default settings under Restoration Job. Job { Name = "RestoreFiles" Type = Restore FileSet="Full Set" Storage = File Pool = Default Messages = Standard Where = /tmp/bacula-restores } Thanks, Gaurav Pruthi - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] 2.1.10 beta: no appendable volume found problem with multidrive autochanger
Hello, Thanks for the detailed info, and from examining the "llist volume...", I believe that I have found what is causing your problems. A bit of background: as I mentioned, Bacula has been evolving and improving concerning autochangers. For example in 1.38, Bacula could handle multidrive autochangers but not two or more autochangers -- all the Volumes were in *all* the autochangers. Not too good. In 2.0.x, Bacula started keeping track of what Autochanger contains each Volume. It does this with the Media record field StorageId, which points to a really simplistic Autochanger record. Now if InChanger is set but StorageId is not set, there is going to be a problem, because Bacula doesn't know in which Autochanger the Volume is, so it probably will not be selected as the next appendable volume for your changer. In your listing below, the volume 46L1: (before start of jobs) has StorageId 0 (also after the job, which is surprising). Which means that a request to find the next appendable volume is not going to work for that volume. A specific request to load that Slot will work. Now, exactly how Bacula figured out how to load it, I am not sure (it has several last resort algorthms, one of which probably succeeded). So bottom line: you need to figure out why your Volume has StorageId=0. This is probably because you either you created it with a pre-2.0 Bacula, which didn't know anything about StorageId, or you haven't yet done an "update slots" on your Autochanger, which *should* immediately fix the problem. The morale of the story is in version 2.0 or later of Bacula, it is *critical* to do an "update slots" when moving up from any prior version, and whenever you modify the contents of the magazine. Users who have the habit of manually tweaking the fields in the database such as InChanger, may also have problems. There may be some other "bug" (i.e. sequence of commands such as Scratch pools, or recycling, ...) that cause the StorageId to be lost, so I would suggest you first do an "update slots ..." then check that the StorageId is properly set on all your autochanger volumes, then when you have problems, check again. I believe this (need for update slots) was documented in the 2.0 Release notes, but I can see that it is more important than I thought and I will make sure it is appropriately documented in the manual. Best regards, Kern PS: for non-autochanger configurations, I have noticed that Bacula can label a volume and will often set InChanger=1, which is incorrect, and could lead to the same problem noted above (message: no appendable volume found, ...). In non-autochanger configurations, the StorageId is not significant since the volume can be mounted on any device with the same Media Type. On Thursday 24 May 2007 10:40, Andreas Helmcke wrote: > On 21.05.2007 23:39, Andreas Helmcke wrote: > > Kern Sibbald wrote: > >> On Sunday 20 May 2007 20:33, Andreas Helmcke wrote: > >>> Kern Sibbald wrote: > Unless I am mistaken, this sounds like a standard support problem rather than > something specific with Beta version 2.1.10, and as such, you should report > this on the bacula-users list where you are more likely to get a response. > >>> The reason, why i do think that it is a 2.1.10 specific problem is, that with > >>> version 2.0.3 in the same configuration bacula always finds an appendable > >>> volume for each job and does change the tapes accordingly. > >>> *This* error only happens with version 2.1.10. > >>> > >>> In version 2.0.3 bacula sometimes changes tapes to often, as i already > >>> reported to the bacula-users list. > >> Well, it would have been helpful if you mentioned these points in the > >> beginning. > >> > >> From everything I see, this is most likely not a bug, and if it is a bug, it > >> is probably one that is in 2.0.3 as well. (please note: I said "most likely > >> not" and "probably"). > >> > >> It appears to me that the volume that job 3 wanted was perhaps not purged at > >> the time that job 3 started, because when you finally got it to work, the > >> first thing the SD did was recycle the volume. Since there is no indication > >> when the volume was purged or marked purged, I can only assume it was after > >> job 3 had started, and instead of cancelling it, you probably could have > >> simply done a "mount" and it would have accomplished the same thing. > >> > > Ok. Next try to get nearer to the problem, which might be a bug: > > A few times the backup worked like expected. All of my jobs where > incremental backups which where using already loaded, appendable > volumes. And thy did. No tape swapping (as i have seen Version 2.03 > doing), no errors. > So, as far as i can tell, the volume selection of version 2.1.10 *is* > really improved. > > Now for the problem: > > Briefly: > - SD reports "cannot find any appendable volume" although there is one. > - Nonetheless the job gets starte
[Bacula-users] Simultanous Jobs
Hello list, i have started to setup bacula and at this moment i am very happy with this decision ;-) We migrate our backups from amanda to bacula and everything looks fine, but there is one little problem. I have several jobs with priority 10 which are scheduled over different schedule-entrys at the same time, only with different destinations for the storagedaemon. These jobs won't start simoultanously, they only start job by job and i can't figure out why... I allready have setup the Maximum Concurrent Job variable in the given configfiles as described in the manual, but it won't work. Whats going wrong? Where can i find more debugmessages to solve this problem or has anybody a solution for this? If you need more information please let me now. Regards, Volker - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] 2.1.10 beta: no appendable volume found problemwith multidrive autochanger
> PS: for non-autochanger configurations, I have noticed that Bacula can > label a > volume and will often set InChanger=1, which is incorrect, and could lead > to > the same problem noted above (message: no appendable volume found, ...). > In > non-autochanger configurations, the StorageId is not significant since the > volume can be mounted on any device with the same Media Type. Would this argue for defining manual drives as an autochanger with a special/null changer device? That would allow the device selection code to be completely consistent regardless of device type or configuration. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] 2.1.10 beta: no appendable volume found problemwith multidrive autochanger
On Friday 25 May 2007 16:52, David Boyes wrote: > > PS: for non-autochanger configurations, I have noticed that Bacula can > > label a > > volume and will often set InChanger=1, which is incorrect, and could > lead > > to > > the same problem noted above (message: no appendable volume found, > ...). > > In > > non-autochanger configurations, the StorageId is not significant since > the > > volume can be mounted on any device with the same Media Type. > > Would this argue for defining manual drives as an autochanger with a > special/null changer device? That would allow the device selection code > to be completely consistent regardless of device type or configuration. > > I don't understand the problem you are trying to solve. As far as I know everything is consistent, it is just that autochangers have functionality that does not exist on regular drives -- slots, whether or not a cartrige is in the magazine, the fact that the media cannot be moved from one autochanger to another (without operator intervention) ... - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Proper Scratch Pool Creation
All, I've been looking around for a bit but I can't seem to find a good template for creating a scratch pool. I'm assuming this is pretty much all I need(?): Pool { Name = Scratch Pool Type = Backup Label Format = "BTRTG-" } So far it looks like the only directive you can assign to Pool Type is backup. Everything started fine and now I'm trying to figure out how to add volumes. Basically I'd like to know if it's possible to assign volumes to the Scratch pool but not have them associated with a device. I have two DLT4000 drives I'd like to be able to have Bacula just grab media from the Scratch pool when a backup requests a tape but not have it matter what drive/job is requesting the tape. Is this possible? >From the console when you try to add media it requests which device :-/ ... I >was just going to add a whack of media and then label them after the fact. Any input/suggestions are appreciated :) Thanks! Lonny - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Need help to understand migration
I created a Test volume in de Default Pool and I ran a backup Job in it : Pool: Default +-++---+-+---+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+---+--+--+-+--+---+---+-+ | 153 | Test | Append| 1 | 7,359,916,646 |1 | 1,209,600 | 1 |0 | 1 | File | 2007-05-25 11:03:10 | +-++---+-+---+--+--+-+--+---+---+-+ I also defined a test migration job : -- Job { Pool = Default Type = Migrate Name = "MigrTtest" Schedule = "Migr2TapeFullSched" Storage = Filer Client = jmdufour-fd Fileset = "LinuxSet" JobDefs = "MigrFullDef" Selection Type = Volume Selection Pattern = ".*" Priority = 15 } When I estimate the job, everything seems OK : The defined Job resources are: ... 45: MigrTtest Select Job resource (1-45): 45 Using Catalog "MyCatalog" Connecting to Client jmdufour-fd at 192.168.211.42:9102 2000 OK estimate files=181895 bytes=7,330,971,740 However when I run the job. No files are selected : *run A job name must be specified. The defined Job resources are: 1: Client_mlevy 2: Client_ffournier 3: Client_zerocool 4: Client_jfparis 5: Client_jduchesne 6: Client_jdupont 7: Client_htabet 8: Client_yrzaini 9: Client_conference 10: Client_erobibaro 11: Client_jmdufour 12: Client_cscott 13: Client_nmarcotte 14: Client_slavoie 15: Client_ebudkewitsch 16: Client_clavoie 17: Client_adilella 18: Client_bcollins 19: Client_llariviere 20: Client_antivirus 21: Client_tts-dev 22: Client_lcardinal 23: Client_sarora 24: Client_rcpaul 25: Client_sringuet 26: Client_rleprohon 27: Client_atouzin 28: Client_jbergeron 29: Client_bvilleneuve 30: Client_mvilleneuve 31: Client_pmorin 32: Client_msaumier 33: Client_rbelanger 34: Client_plandry 35: Client_sdesautels 36: Client_integra32 37: BackupCatalog 38: RestoreFiles 39: MigrateSafe1 40: MigrateSafe2 41: MigrateSafe3 42: MigrateSafe4 43: MigrateIron 44: MigrTQuery 45: MigrTtest Select Job resource (1-45): 45 Run Migration job JobName: MigrTtest Bootstrap: *None* Client:jmdufour-fd FileSet: LinuxSet Pool: Default (From Job resource) Read Storage: Filer (From Job resource) Write Storage: Taper (From Storage from Pool's NextPool resource) JobId: *None* When: 2007-05-25 12:18:28 Catalog: MyCatalog Priority: 15 OK to run? (yes/mod/no): yes Job queued. JobId=1781 You have messages. *messages 25-May 12:18 zerocool-dir: Query of Pool "Default" returned no Jobs to migrate. 25-May 12:18 zerocool-dir: No JobIds found to migrate. 25-May 12:18 zerocool-dir: Bacula 2.0.3 (06Mar07): 25-May-2007 12:18:35 Prev Backup JobId: 0 New Backup JobId: 0 Migration JobId:1781 Migration Job: MigrTtest.2007-05-25_12.18.33 Backup Level: Full Client: jmdufour-fd FileSet:"LinuxSet" Read Pool: "Default" (From Job resource) Read Storage: "Filer" (From Job resource) Write Pool: "Default" (From Job resource) Write Storage: "Taper" (From Storage from Pool's NextPool resource) Start time: 25-May-2007 12:18:35 End time: 25-May-2007 12:18:35 Elapsed time: 0 secs Priority: 15 SD Files Written: 0 SD Bytes Written: 0 (0 B) Rate: 0.0 KB/s Volume name(s): Volume Session Id: 0 Volume Session Time:0 Last Volume Bytes: 0 (0 B) SD Errors: 0 SD termination status: Termination:Migration -- no files to migrate 25-May 12:18 zerocool-dir: Begin pruning Jobs. 25-May 12:18 zerocool-dir: No Jobs found to prune. 25-May 12:18 zerocool-dir: Begin pruning Files. 25-May 12:18 zerocool-dir: No Files found to prune. 25-May 12:18 zerocool-dir: End auto prune. Please help me to understand the migration process. Jean-Marc Dufour [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Deleteing records from catalog
Hi, How can we delete a certain record from the catalog? I have this volume record in a catalog which I have purged, and tried to relabel it as well, but the record still shows that volume and when i try to label another tape with the same name, bacula says that it cannot do it because there is a volume with that name. I wish to delete that entry from the catalog permenantly so that bacula does not have any record whatsoever of that volume. Thanks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Deleteing records from catalog
>From within bconsole type: "delete volume" The interactive menus ought to take you from there. Purging only removes the records of what it written ON the tape from the bacula database. Deleting is what removed the volumes from the database. Hope that helps. --Tim On Friday 25 May 2007 2:16:04 pm Naufal Sheikh wrote: > Hi, > > How can we delete a certain record from the catalog? I have this volume > record in a catalog which I have purged, and tried to relabel it as well, > but the record still shows that volume and when i try to label another tape > with the same name, bacula says that it cannot do it because there is a > volume with that name. I wish to delete that entry from the catalog > permenantly so that bacula does not have any record whatsoever of that > volume. > > Thanks -- -- Flak Magnet (Tim) www.flakmagnet.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Deleteing records from catalog
delete the volume #delete Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" In general it is not a good idea to delete either a Pool or a Volume since they may contain data. You have the following choices: 1: volume 2: pool 3: jobid Choose catalog item to delete (1-3): 1 Naufal Sheikh wrote: > Hi, > > How can we delete a certain record from the catalog? I have this volume > record in a catalog which I have purged, and tried to relabel it as well, > but the record still shows that volume and when i try to label another > tape > with the same name, bacula says that it cannot do it because there is a > volume with that name. I wish to delete that entry from the catalog > permenantly so that bacula does not have any record whatsoever of that > volume. > > Thanks > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] 2.1.10 beta: no appendable volume found problemwith multidrive autochanger
> > > In > > > non-autochanger configurations, the StorageId is not significant since > > the > > > volume can be mounted on any device with the same Media Type. > > > > Would this argue for defining manual drives as an autochanger with a > > special/null changer device? That would allow the device selection code > > to be completely consistent regardless of device type or configuration. > > I don't understand the problem you are trying to solve. The question is that manual tape drives are treated as a special case and there doesn't need to be a special case if we choose so. A manual tape drive can be thought of as an autochanger with a null changer device and a maximum of one slot (the drive itself) and a magazine size of 1. Using this definition would allow treating manual drives and robotic-assisted drives the same way conceptually and in the documentation. Perhaps there isn't a problem, but unnecessary special cases are a concept that bothers me, so I asked the question. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula ask for a volume which has inchanger=no ?!?!?
Hi, On 5/24/2007 9:18 AM, Adam Cécile wrote: > I'm thinking about creating an admin job that parse volumes list and > mark all volumes not in changer as used. What would happened with bacula > then ? Does volumes with status "used" but without any recent writing > dates will be recycled according to their last written date ? Yes. But I don't suppose that would be the solution to your problem. I'm quite sure that Bacula would not understand the two autochangers to be the same devices, so they could not easily share volumes. > Adam Cécile a écrit : >> Hi, >> >> Not really... I made some changes on my configuration which should fix >> the problem but it doesn't : >> >> ### SD conf >> Autochanger { >> Name = Dell-PV132T >> Device = ULTRIUM-TD3-1 >> Device = ULTRIUM-TD3-2 >> Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" >> Changer Device = /dev/sg2 >> } >> Autochanger { >> Name = Dell-PV132T-1drive >> Device = ULTRIUM-TD3-1 >> Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" >> Changer Device = /dev/sg2 >> } >> Device { >> Name = ULTRIUM-TD3-1 >> Drive Index = 0 >> Media Type = LTO3 >> Archive Device = /dev/nst0 >> AutomaticMount = yes; >> AlwaysOpen = yes; >> RemovableMedia = yes; >> Offline On Unmount = no; >> AutoChanger = yes >> } >> Device { >> Name = ULTRIUM-TD3-2 >> Drive Index = 1 >> Media Type = LTO3 >> Archive Device = /dev/nst1 >> AutomaticMount = yes; >> AlwaysOpen = yes; >> RemovableMedia = yes; >> Offline On Unmount = no; >> AutoChanger = yes >> } >> >> ### Dir conf >> Storage { >> Name = Autochanger >> Address = srv-mpp-lrs >> SDPort = 9103 >> Password = "xxx" >> Device = Dell-PV132T >> Media Type = LTO3 >> Autochanger = yes >> Maximum Concurrent Jobs = 2 >> } >> Storage { >> Name = Autochanger-1drive >> Address = srv-mpp-lrs >> SDPort = 9103 >> Password = "xxx" >> Device = Dell-PV132T-1drive >> Media Type = LTO3 >> Autochanger = yes >> Maximum Concurrent Jobs = 1 >> } >> >> As you can see I've written to autochanger ressources, but one has only >> one drives. The same problems still occurs but now we can't tell bacula >> haven't looked a inchanger flag because the device wasn't an autochanger... Well, the problem is just the two autochangers... Bacula does not kow they share the media, and so it won't load a volume marked as being in one of them into the other. >> Any other pointers ? For now I can only recommend to find a setup where you don't have to address he drives separately. I.e., create one autochanger with two drives, use the autochanger device in the DIR only, and let Bacula handle the details. This will still not allow to set up jobs to use a distinct tape drive, though. Arno >> May I run two different SD ? (maybe without having "always open = on") >> >> >> Arno Lehmann a écrit : >> >>> Hi, >>> >>> well, I think this problem is understood now :-) >>> >>> On 5/23/2007 9:00 AM, Adam Cécile wrote: >>> >>> Hi, Here is what happens : Blogs are scheduled on the first appendable volume, without looking at the inchanger flag. If I mark this volume as Used or Full, jobs gets scheduled on the next appendable volume, instead of the next one appendable and inchanger. Scheduled jobs Scheduled Jobs: Level Type Pri Scheduled Name Volume === Full Backup 5 23-mai-07 12:00Backup-srv-mpp-archi-dwh 000121 Full Backup 5 23-mai-07 12:00 Backup-srv-mpp-archi-treso 000121 Full Backup 5 23-mai-07 12:00 Backup-srv-mpp-archi-totem 000121 Full Backup 5 23-mai-07 12:00 Backup-srv-mpp-archi-filemaker 000121 Full Backup 5 23-mai-07 12:00 Backup-srv-mpp-archi-equilibre 000121 Full Backup 5 23-mai-07 20:00 Backup-srv-mpp-exchang-daily 000121 ### List volumes (on this Pool) Pool: Daily +-++---+-+---+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+---+--+--+-+--+---+---+-+ | 59 | 000143 | Purged| 1 | 394,391,772,372 | 422 |1,209,600 | 1 |1 | 1 | LTO3 | 2007-04-05 08:44:03 | | 60 | 000115 | Purged| 1 | 152,609,505,455 | 163 |1,209,600 | 1 |8 | 0 | LTO3 | 2007-04-19 13:29:21
Re: [Bacula-users] restoring a database
Hi, On 5/25/2007 3:41 AM, Maria McKinley wrote: > Hi there, > > I had some problems with my server, and had to move bacula to a > different machine. I have complete access to bacula on the old machine, > and moved the database and the config files. I changed the config files > so that I'm using the new file server hostname, but other than that they > are the same. I have the old database in my home directory. Wait a moment... I'm not sure about the catalog. When Bacula runs, does it use a catalog populated with the data from the old server? If it doesn't, you should import the catalg data into the database. (Having the database (which one? MySQL, PosthreSQL, SQLite... hopefully as a full dump!) in your homedirectory usually doesn't help much.) If it does, you can simply look up the JobId for the jobs you need to restore using either the restore command, the different queries, or even the job reports. > I then > started to run the job RestoreFiles, but it asked for a JobId, and I > wasn't sure what to use for this. Does it matter? Absolutely. The JobId tells Bacula whch Job you want to restore. > I didn't see any > reference to this in the manual. Hmm... I think you should reread the Restore chapter and perhaps the system outline :-) A Job is defined as a certain set of files from a certain client, plus some options. Whenever Bacula runs a job, it saves the data specified like this. Such a job instance gets a unique JobId. So, for a complete restore of a job, you need the job Ids of the latest full, the latest differential backup after that full one, and any incremental backups after that. This list of JobIds is then fed to the restore process. Much of the selection can be done more or less user-friendly with the initial queries of the restore command. Anyway, unless I somehow misunderstood you, I'd need some more details regarding your problem - most important: is the catalog database populated and shows all your existing backups, volumes, etc., and what exactly do you want to restore? Arno > thanks, > maria > > I just picked number 1, and it sort of worked. Well it ran, and > teminated with ok, but couldn't find old volume information in the > catalog. I think I am not understanding something fundamental, because > it didn't load up any of my old catalog. Can I just move my old catalog > in place of the new catalog? I thought that from what I read in the > manual, it would just use the bootstrap file to load up the old catalog, > but it seems that isn't the way it works... > > thanks for any advice, > Maria > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] feature request : clustered server
Hi, On 5/25/2007 10:42 AM, Rich wrote: > On 2007.05.24. 01:05, Arno Lehmann wrote: >> Hi, >> >> On 5/23/2007 3:12 PM, Kern Sibbald wrote: >>> Hello, >>> >>> Thanks for your feature request. Unfortunately at the moment no one is >>> collecting these, and so you will probably need to resubmit it later. >> Not exactly... I'm still thinking about how to do this properly, but in >> the meantime, I hope I won't forget any new feature requests. > > kern, arno, thanks for the responses :) > i understand that clustered servers isn't exactly a basic feature or one > to easy implement, but i hope that this still qualifies for a feature > request, at least as #41 :) > > as for the method, what about using a wiki page for feature requests ? > that way permanent links to versions could be used for voting results, > but head could be used to add new ones, fix typos and so on. Yeah... well... difficult question. If you know a wiki system where you can do votes the way we always did them (or have good arguments for changing the voting process), I'm very open for suggestions :-) At the moment, I see three possible feature request tracker solutions: A CMS with a voting module. Until now, I didn't find anything which offers all I'd like to see. A wiki. Basically quite similar, but more open for community work. Anyone or many more people than with an CMS could change feature requests, and I don't know if this will be an advantage in the long run, and usually wikis don't offer strict limitations regarding article structure. Also, I miss a voting function. A home-grown feature request tracker. Rather simple database backend, with a simple web front end. Shouldn't be too difficult to program, but I'd prefer finding something that already has what we want. Any suggestions? Arno >> I noticed this one, at least :-) >> >> Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restorating a Job on alternate machine.
Hi, On 5/25/2007 12:31 PM, Gaurav Pruthi wrote: > Hi, > > When I tries to restore the data, it restores on the Server whose backup > was taken. I want that backup should be restored on some other server. > How can i configure this? You do this when you start the restore. After you did most of the restore job setup - restore command, job selection, file selection ended with 'done' you are prompted with a menu. Then select 'mod' and change the client to where you want to send the data. Arno > PS: I am using the default settings under Restoration Job. > > Job { Name = "RestoreFiles" > Type = Restore > FileSet="Full Set" > Storage = File > Pool = Default > Messages = Standard > Where = /tmp/bacula-restores > } > > > Thanks, > Gaurav Pruthi > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Simultanous Jobs
Hi, On 5/25/2007 2:06 PM, Volker Lieder wrote: > Hello list, > i have started to setup bacula and at this moment i am very happy with this > decision ;-) We migrate our backups from amanda to bacula and everything looks > fine, but there is one little problem. > I have several jobs with priority 10 which are scheduled over different > schedule-entrys at the same time, only with different destinations for the > storagedaemon. These jobs won't start simoultanously, they only start job by > job > and i can't figure out why... > I allready have setup the Maximum Concurrent Job variable in the given > configfiles as described in the manual, but it won't work. > Whats going wrong? Probably you overlooked something... As you simply state you set the "Maximum Concurrent Jobs" where it's necessary it's hard to give a detailed answer. As I know for sure that concurrent jobs worked from 1.36 to 2.0.3 you either use a different version, or your configuration is not yet complete... and keep in mind you've got to restart FDs and SDs to activate configuration changes, and need the 'reload' command for the DIR. > Where can i find more debugmessages Try 'setdebug level=400 trace=1 dir' in bconsole, and read the contents of the trace file created in he workin directory of the DIR. But I don't think that will be necessary :-) > to solve this problem or > has anybody a solution for this? > If you need more information please let me now. Bacula version, configuration file excerpts (without passwords) of the DIR config (director, storage, client resources where you want concurrent jobs), SD config and FD config would help. I guess this list is already a good starting point for re-checking your configuration :-) Arno > Regards, > Volker > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] A new GUI were born
May be is too alpha code. I try to run, but freeze after connect to director. What is the e-mail of JavaBacula developer ? -- Jeronimo Zucco LPIC-1 Linux Professional Institute Certified Núcleo de Processamento de Dados Universidade de Caxias do Sul http://jczucco.blogspot.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] postfix and bacula bsmtp mail option
Hello, I'm running postfix 2.4.1 on FreeBSD, with the option strict_rfc821_envelopes set to yes in my main.cf. I set up Bacula on this box as well, v2.03. When i had strict_rfc821_envelopes set to yes I kept getting the error "fatal malformed reply from localhost" and an error 501 from postfix in my bacula log. If i change the strict_rfc821_envelopes option to no it works fine. I'd rather not change this option, does anyone have a workaround? The specific error i'm seeing in the log is: 25-May 16:26 zeus-dir: message.c:481 Mail prog: bsmtp: bsmtp.c:92 Fatal malformed reply from localhost: 501 5.1.7 Bad sender address syntax and the message resource looks like this: Messages { Name = Standard # # NOTE! If you send to two email or more email addresses, you will need # to replace the %r in the from field (-f part) with a single valid # email address in both the mailcommand and the operatorcommand. # mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula: Intervention needed for %j\" %r" mail = [EMAIL PROTECTED] = all, !skipped operator = [EMAIL PROTECTED] = mount console = all, !skipped, !saved # # WARNING! the following will create a file that you must cycle from # time to time as it will grow indefinitely. However, it will # also keep all your messages if they scroll off the console. # append = "/var/db/bacula/log" = all, !skipped } Messages { Name = Daemon mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula daemon message\" %r" mail = [EMAIL PROTECTED] = all, !skipped console = all, !skipped, !saved append = "/var/db/bacula/log" = all, !skipped } Thanks. Dave. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] 2.1.10 beta: no appendable volume found problem with multidrive autochanger
Kern Sibbald wrote: > On Wednesday 23 May 2007 21:13, John Drescher wrote: >> One >> other feature I would like to see is if there are any empty drives >> when starting a job and none of the correct pools are loaded choose >> the empty drive instead of any unloading media. > > I believe this is how it currently functions but am not 100% sure. > No, as far as I have seen it isn't. When there is no usable tape loaded bacula uses the first unused drive unloading the tape, even if there are drives which are empty. Furthermore I would like to see bacula to use the available drives more evenly. I have 4 drives and at most three concurrent jobs. So the first drive is the most used, while the fourth drive almost never will be used. As a first thought I'd like to see a drive selection schema like: 1. If a useable tape is already loaded; use this drive. 2. Use an empty drive. 3. Use the drive with the lowest "usage time". As far as I can see only step 1 is implemented in V2.1.10. Andreas - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] postfix and bacula bsmtp mail option
Hi, On 5/25/2007 10:50 PM, Dave wrote: > Hello, > I'm running postfix 2.4.1 on FreeBSD, with the option > strict_rfc821_envelopes set to yes in my main.cf. I set up Bacula on this > box as well, v2.03. When i had strict_rfc821_envelopes set to yes I kept > getting the error "fatal malformed reply from localhost" and an error 501 > from postfix in my bacula log. If i change the strict_rfc821_envelopes > option to no it works fine. I'd rather not change this option, does anyone > have a workaround? The obvious solution would be to use strictly RFC compliant mail addresses for the sender :-) Let's see... postconf tells me > strict_rfc821_envelopes (default: no) >Require that addresses received in SMTP MAIL FROM and RCPT TO > commands are >enclosed with <>, and that those addresses do not contain RFC 822 > style comments >or phrases. This stops mail from poorly written software. > >By default, the Postfix SMTP server accepts RFC 822 syntax in MAIL > FROM and RCPT >TO addresses. So, a mail sender address like '<[EMAIL PROTECTED]>' should work better. Actually, assuming your system is set up accordingly, I wold even prefer '<[EMAIL PROTECTED]>', but that's a matter of taste as probably noone ever will have reason to reply to that address... Unfortunately, I did not reread the relevant RFCs recently ;-) but I suppose an address like '"Bacula system" <[EMAIL PROTECTED]>' should also work and give you a reasonable sender name in your mail client. > The specific error i'm seeing in the log is: > > 25-May 16:26 zeus-dir: message.c:481 Mail prog: bsmtp: bsmtp.c:92 Fatal > malformed reply from localhost: 501 5.1.7 Bad sender address syntax > > and the message resource looks like this: > > Messages { > Name = Standard > # > # NOTE! If you send to two email or more email addresses, you will need > # to replace the %r in the from field (-f part) with a single valid > # email address in both the mailcommand and the operatorcommand. > # > mailcommand = "/usr/local/sbin/bsmtp -h localhost -f > \"\([EMAIL PROTECTED]) %r\" -s \"Bacula: %t %e of %c %l\" %r" Note that we're talking about the sender address, given after -f, here... Arno > operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f > \"\([EMAIL PROTECTED]) %r\" -s \"Bacula: Intervention needed for > %j\" %r" > mail = [EMAIL PROTECTED] = all, !skipped > operator = [EMAIL PROTECTED] = mount > console = all, !skipped, !saved > # > # WARNING! the following will create a file that you must cycle from > # time to time as it will grow indefinitely. However, it will > # also keep all your messages if they scroll off the console. > # > append = "/var/db/bacula/log" = all, !skipped > } > > Messages { > Name = Daemon > mailcommand = "/usr/local/sbin/bsmtp -h localhost -f > \"\([EMAIL PROTECTED]) %r\" -s \"Bacula daemon message\" %r" > mail = [EMAIL PROTECTED] = all, !skipped > console = all, !skipped, !saved > append = "/var/db/bacula/log" = all, !skipped > } > > Thanks. > Dave. > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users