Re: [Bacula-users] [Bacula-devel] Pruning and recycling volumes
Le Lundi 26 Mars 2007 00:09, Kern Sibbald a écrit : On Sunday 25 March 2007 22:53, Eric Bollengier wrote: Hi, 1. Previous when Bacula needed a new Volume, it would prune *all* volumes in the current pool. Now it prunes only one at a time, until it finds one that has been Purged. This means that less pruning will be done, and database records will tend to remain longer (possibly much longer). Although individual volumes can be prunned by command, there is no command to prune a whole pool. Question: does anyone feel there is a need for a new command that will pemit manually pruning a whole pool? An appropriate place *may* be dbcheck. I think this is a good idea to keep the old feature. I don't know what you mean by the old feature -- do you mean to prune all volumes when the SD needs a new volume? This is the way that it previously worked, and what I would call the old feature. The advantage of the old way is that it prunes Volumes that might otherwise not be pruned. The disadvantage is that it does more work than is really necessary to find one new Volume for the SD. It is what I wanted to say, for me, old feature = prune pool=xxx and prune allpool With RecyclePool feature, it's more simple to manage media. I'm not sure what you mean by RecyclePool feature. I was asking if people want a new command to prune a whole pool. Recycling comes later when the volume is actually needed. If that is what you mean, then yes, I completely agree a prune pool=xxx is much easier for the user to manage pruning as he/she wishes. sorry for my english :) With the new code that prunes only the minimum number of volumes to make the SD happy, I think it is absolutely necessary to have a prune pool=xxx command, and it is something that should be easy to execute (a new feature is required for this), so that regular pruning can be forced according to the retention period defined, if that is desired. In a *very* big shop, I think such pruning will be required. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] disk spooling and despooling: concurrency
On Sat, 24 Mar 2007, Marc Cuypers wrote: I'm asking this because backups without spooling are faster than those with spooling. Is this normal? Yes - for a single job If you have multiple concurrent jobs running the individual backups will run as slow as a single backup, but because they will interleave you are able to do 2 backups in the same amount of time as one backup. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Still Unable To Truncate Files
-Original Message- From: [EMAIL PROTECTED] [mailto:bacula-users- [EMAIL PROTECTED] On Behalf Of Eric Bambach Sent: Sunday, March 25, 2007 8:17 PM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Still Unable To Truncate Files Hello again list. Original thread is: [Bacula-users] Unable to Truncate Error Solved! I have some additional information about my problem. I am still getting error truncating files. It has to be some weird incompatibility with windows 2000 server and Bacula. -The file permissions say everyone full control. -SysInternals Process explorer at the time of the error show that only bacula-sd.exe has an open handle for Vol0071 (Or any of the volumes for that matter). -SysInternals Filemon shows no access besides bacula-sd.exe to that volume at the time of the error. -I tried both the packged mingw.dll and a different version from the MinGW website. -I have no antivirus software installed. -Winver shows Windows 2000 Version 5.0 (Build 2195: Service Pack 4) -I have cygwin installed. Maybe a .dll conflict there? There shouldn't be any possibility of a cygwin conflict. -Using 2xInitio inic1620 S-ATA Controller to power a dynamic disk Raid-5 array of 4xWDC WD3200JD-00KLB0 SCSI Disk Device -I DO have Legato Networker installed which backs up those files. (Off-site). But legato did not have filehandles for Vol0071 (or any other in the pool) open at the time. Any ideas anyone? This will put a complete halt to using bacula in our environment. I am not opposed to debugging/tracing the problem for the developers because bacula seems like such an awesome product but I need some pointers as I am out of ideas for the moment. I built a new version of bacula-sd.exe and bacula.dll with additional debugging output. Please copy these to your system, reproduce the problem and then send me the job log. ftp://ftp.the-nelsons.org/pub/bacula-sd.exe ftp://ftp.the-nelsons.org/pub/bacula.dll Perhaps the source needs an #IFDEF WIN32 chsize(...) #ELSE truncate(...) #ENDIF? If you look at the mingw source you will see that all ftruncate does is call chsize. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Still Unable To Truncate Files
On Monday 26 March 2007 05:16, Eric Bambach wrote: Hello again list. Original thread is: [Bacula-users] Unable to Truncate Error Solved! I have some additional information about my problem. I am still getting error truncating files. It has to be some weird incompatibility with windows 2000 server and Bacula. -The file permissions say everyone full control. -SysInternals Process explorer at the time of the error show that only bacula-sd.exe has an open handle for Vol0071 (Or any of the volumes for that matter). -SysInternals Filemon shows no access besides bacula-sd.exe to that volume at the time of the error. -I tried both the packged mingw.dll and a different version from the MinGW website. -I have no antivirus software installed. -Winver shows Windows 2000 Version 5.0 (Build 2195: Service Pack 4) -I have cygwin installed. Maybe a .dll conflict there? -Using 2xInitio inic1620 S-ATA Controller to power a dynamic disk Raid-5 array of 4xWDC WD3200JD-00KLB0 SCSI Disk Device -I DO have Legato Networker installed which backs up those files. (Off-site). But legato did not have filehandles for Vol0071 (or any other in the pool) open at the time. Any ideas anyone? If we assume that this is a Windows bug rather than a Bacula bug, I have the following comments: - I've seen this kind of thing *many* times on Win32 machines. Most recently was two days ago when I was cleaning up an older laptop that I was donating to a 3rd world country. I wanted to blow away all my files. I did so by creating a new account, loging out of my account, then proceeding to delete my files (after deleting my account). When I got to one particular part of the system (my profile if I remember right), it would not delete the directory complaining that I could not delete NTLDR.dat (or some file such as that). The error message was total nonsense. In the end I succeeded in deleting my file *only* after rebooting and never logging in on my account. What that tells me is that there are conditions in which files are opened, and even if the user goes away, the OS still thinks the file is open (or at least cannot be deleted). - You might try rebooting your machine, and in doing so make sure that no other software runs (by turning it off before rebooting) that could possibly open or touch the file that Bacula wants to truncate. Then see if Bacula can do its thing. - Ensure that you really have installed Bacula as system administrator of the local machine (not as a domain administrator or whatever the term is). The manual explains this for the FD. Now, if we assume that this is a Bacula bug (i.e. something is incorrect in the libraries), it seems to me that this is going to take a bit of work to resolve. The first step would be either manually in the source code or with a debugger, trace exactly what code Bacula is executing when it does the truncate() (actually, I think it does an ftruncate(), which as far as I can tell is defined as chsize(). Once you find where it is getting the error, we can examine the system call and probably figure out how to fix it. I do note that there is a comment in the gcc code that indicates that ftruncate() does not work ... This will put a complete halt to using bacula in our environment. I am not opposed to debugging/tracing the problem for the developers because bacula seems like such an awesome product but I need some pointers as I am out of ideas for the moment. Perhaps the source needs an #IFDEF WIN32 chsize(...) #ELSE truncate(...) #ENDIF? Should we take this to the MinGW development list? -Error log--- 25-Mar 21:59 moe-dir: No prior Full backup Job record found. 25-Mar 21:59 moe-dir: No prior or suitable Full backup found in catalog. Doing FULL backup. 25-Mar 21:59 moe-dir: Start Backup JobId 46, Job=Junior.2007-03-25_21.59.31 25-Mar 21:59 moe-dir: Recycled current volume Vol0071 25-Mar 21:59 moe-sd: Junior.2007-03-25_21.59.31 Fatal error: ../../stored/label.c:448 Truncate error on device FileStorage (E: \Bacula-Storage): ERR=../../stored/dev.c:1943 Unable to truncate device FileStorage (E:\Bacula-Storage). ERR=Invalid argument 25-Mar 21:59 moe-sd: Marking Volume Vol0071 in Error in Catalog. 25-Mar 21:59 moe-sd: Junior.2007-03-25_21.59.31 Fatal error: Job 46 canceled. 25-Mar 20:59 junior-fd: Junior.2007-03-25_21.59.31 Fatal error: job.c:1665 Bad response to Append Data command. Wanted 3000 OK data , got 3903 Error append data 25-Mar 21:59 moe-dir: Junior.2007-03-25_21.59.31 Error: Bacula 2.0.3 (06Mar07): 25-Mar-2007 21:59:40 JobId: 46 Job:Junior.2007-03-25_21.59.31 Backup Level: Full (upgraded from Incremental) Client: junior-fd i386-pc-linux-gnu,debian,3.1 FileSet:Full Linux Root 2007-03-22 22:56:17 Pool: DiskPool (From Job
Re: [Bacula-users] Problems with VSS enabled windows backup
Did you have any clues on that yet? :) On 3/13/07, Frank Altpeter [EMAIL PROTECTED] wrote: On 3/8/07, Damian Lubosch [EMAIL PROTECTED] wrote: Frank Altpeter wrote: Hi list, Hi Frank! I was just hitting a little confusing problem in backing up a Windows 2003 Server with bacula (both client and server have version 2.0.2 running). The Server is configured to backup C: and D:, the FileSet has Enable VSS = yes defined. The client has been installed with winbacula.exe like the other windows hosts im having. The VSS service is up and running on the client. This is what i'm getting as output from the backup job in my bconsole gui: [snip] Does anyone has an idea what i'm missing here? It's quite confusing to have a full backup with 0 bytes written... Please post your configuration data. Maybe your FileSet is wrong. Thanks for your help in advance - to not pollute the whole list with my configuration, i have put them online (reducted to the interesting parts): http://www.73f.de/temp/bacula/ BTW: If i didn't mention it yet - the same FileSet used for this host is working on some other windows based clients with success. Only this one host makes that problem... -- Le deagh dhùraghd, Frank Altpeter Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence. -- Anonymous -- Le deagh dhùraghd, Frank Altpeter Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence. -- Anonymous - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Problems with VSS enabled windows backup
We had something about like this happen. Two different things fixed the problem, 1 was to turn off VSS the other was to split the jobs so one job did one drive. The reason that we split the jobs was a re-org. of the backup jobs. I had no reason to think that it would fix the problem. The problem system was/is a ghost server. Frank Altpeter wrote: Did you have any clues on that yet? :) On 3/13/07, Frank Altpeter [EMAIL PROTECTED] wrote: On 3/8/07, Damian Lubosch [EMAIL PROTECTED] wrote: Frank Altpeter wrote: Hi list, Hi Frank! I was just hitting a little confusing problem in backing up a Windows 2003 Server with bacula (both client and server have version 2.0.2 running). The Server is configured to backup C: and D:, the FileSet has Enable VSS = yes defined. The client has been installed with winbacula.exe like the other windows hosts im having. The VSS service is up and running on the client. This is what i'm getting as output from the backup job in my bconsole gui: [snip] Does anyone has an idea what i'm missing here? It's quite confusing to have a full backup with 0 bytes written... Please post your configuration data. Maybe your FileSet is wrong. Thanks for your help in advance - to not pollute the whole list with my configuration, i have put them online (reducted to the interesting parts): http://www.73f.de/temp/bacula/ BTW: If i didn't mention it yet - the same FileSet used for this host is working on some other windows based clients with success. Only this one host makes that problem... -- Le deagh dhùraghd, Frank Altpeter Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence. -- Anonymous -- It is MDT, Inc's policy to delete mail containing unsolicited file attachments. Please be sure to contact the MDT staff member BEFORE sending an e-mail with any file attachments; they will be able to arrange for the files to be received. This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please advise [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]. Philip W. Dalrymple III [EMAIL PROTECTED] MDT Software - The Change Management Company +1 678 297 1001 Fax +1 678 297 1003 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Pruning and recycling volumes
On Sat, 24 Mar 2007 13:35:28 +0100, Kern Sibbald said: Hello, As you may remember, one of the things I am working on for version 2.1.x is performance. My most recent work on performance has been to review and re-write the pruning and purging code. Over the years, this code has been added to and patched, and there are a number of issues that I want to address: 1. Review the pruning algorithms to improve the SQL. 2. Pruning during status dir 3. User complaints that it requires two passes to recycle Volumes The basic algorithm for recycling volumes is documented in the manual, and it will remain unchanged. However, I have now re-written the prune/purge code to do the following things: 1. Reduce unnecessary SQL calls to a minimum 2. When pruning, submit SQL statements that prune up to 1000 jobs in a single SQL statement rather than 1000 separate SQL statements. 3. Prune only a single volume if the SD requests pruning rather than pruning *all* the volumes in the Pool. 4. After pruning a Volume, explicitly check if it can be marked as Purged. 5. Ensure that there are not multiple copies of the same code (pruning and and purging share a lot code, some of which was duplicated). The net result is not a huge gain in performance, except in a few exceptional cases, but the code base is much cleaner, and I believe I have corrected at least one case where pruning would be performed but Bacula did not detect and hence mark the Volume purged. There are two issues where I would appreciate a bit of user feedback: 1. Previous when Bacula needed a new Volume, it would prune *all* volumes in the current pool. Now it prunes only one at a time, until it finds one that has been Purged. This means that less pruning will be done, and database records will tend to remain longer (possibly much longer). Although individual volumes can be prunned by command, there is no command to prune a whole pool. Re until it finds one that has been Purged: will it still consider other volumes if the newly-purged tape is not in the drive? E.g. if there are two tapes A and B, both past their Volume Retention times, what will happen if tape A gets purged first but tape B is in the drive? Currently tape B is purged and recycled as well, which I think is the correct behaviour. Similarly, if tape A is in the drive today and gets purged and recycled, what happens if tomorrow tape B is in the drive? Will it be purged and recycled as well? These are cases where it currently prints Recycled current volume __Martin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Install-problems with OpenSUSE 10.2
Hello, At first, please be lenient toward me, I'm German and my English lessons in school are lying some years behind me. Now, my problem as named in the subject: My aim is to use a bacula-sytem to backup a Windows 2003 Server and some WinXP machines. I tried to install the bacula-2.0.3-1.src.rpm on a machine with OpenSuSE 10.2 as OS. The command on the console was: rpmbuild --rebuild \ --define build_su102 1 \ --define build_sqlite 1 \ bacula-2.0.3-1.src.rpm The result is: error: cannot open build_sqlite 1: No such file or directory The packages sqlite and sqlite2 form the distribution-dvd are installed. Please help me find the right way to install... Greetings from Duisburg, Germany Uli - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Sorting in update volumes
Hi List, Little question: when i use the update volumes command on the bconsole. I get for the first volume when i change the InChanger-Flag this: Enter slot (0 or Enter for none): 1 Defined Pools: 1: Default 2: Vollbackup = 3: Daily 4: MonatsPool Select the Pool (1-4): 3 For the second volume i get this: Enter slot (0 or Enter for none): 2 Defined Pools: 1: Default 2: Vollbackup 3: MonatsPool = 4: Daily Select the Pool (1-4): 4 is the slip of the options normal? Or may i have a configuration mistake in my configuration files? Tim - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Pruning and recycling volumes
On Monday 26 March 2007 14:00, Martin Simmons wrote: On Sat, 24 Mar 2007 13:35:28 +0100, Kern Sibbald said: Hello, As you may remember, one of the things I am working on for version 2.1.x is performance. My most recent work on performance has been to review and re-write the pruning and purging code. Over the years, this code has been added to and patched, and there are a number of issues that I want to address: 1. Review the pruning algorithms to improve the SQL. 2. Pruning during status dir 3. User complaints that it requires two passes to recycle Volumes The basic algorithm for recycling volumes is documented in the manual, and it will remain unchanged. However, I have now re-written the prune/purge code to do the following things: 1. Reduce unnecessary SQL calls to a minimum 2. When pruning, submit SQL statements that prune up to 1000 jobs in a single SQL statement rather than 1000 separate SQL statements. 3. Prune only a single volume if the SD requests pruning rather than pruning *all* the volumes in the Pool. 4. After pruning a Volume, explicitly check if it can be marked as Purged. 5. Ensure that there are not multiple copies of the same code (pruning and and purging share a lot code, some of which was duplicated). The net result is not a huge gain in performance, except in a few exceptional cases, but the code base is much cleaner, and I believe I have corrected at least one case where pruning would be performed but Bacula did not detect and hence mark the Volume purged. There are two issues where I would appreciate a bit of user feedback: 1. Previous when Bacula needed a new Volume, it would prune *all* volumes in the current pool. Now it prunes only one at a time, until it finds one that has been Purged. This means that less pruning will be done, and database records will tend to remain longer (possibly much longer). Although individual volumes can be prunned by command, there is no command to prune a whole pool. Re until it finds one that has been Purged: will it still consider other volumes if the newly-purged tape is not in the drive? What it will do is accept any Volume currently in the drive providing the Volume is in append or purged modes. What it will not do is prune all volumes in the pool. It will purge the first one that it finds that can be pruned. If you have pre-loaded a volume you think will be purged, when the SD finds a volume in the drive, it asks the Dir if it can be used. The Dir will then carefully check to see if the volume has expired and can be reused, and it will attempt to prune the volume. E.g. if there are two tapes A and B, both past their Volume Retention times, what will happen if tape A gets purged first but tape B is in the drive? Currently tape B is purged and recycled as well, which I think is the correct behaviour. Yes, I that is what happens. However, in looking at the code to verify this, I noticed that I forgot to update the code for pruning a single volume to the new algorithms. I am now fixing this so it will use the same more efficient code. It would have worked but using somewhat older code. Similarly, if tape A is in the drive today and gets purged and recycled, what happens if tomorrow tape B is in the drive? Will it be purged and recycled as well? It should work correctly, providing I haven't introduced a new bug ... These are cases where it currently prints Recycled current volume Yes. Regards, Kern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re : Windows::Permission denied
Changes below in bold Device { Name = HPStorageTape0 Archive Device = Tape0 Drive Index = 0 Device Type = Tape Changer Device = 4:0:5:1 Media Type = *HPUltriumTape* Autochanger = yes *LabelMedia = yes AutomaticMount = yes* Alert Command = tapeinfo -f %c | findstr TapeAlert Autoselect = yes Always Open = *no* Removable media = yes Random access = no Requires Mount = no Minimum block size = *1* Maximum block size = *16777215* } Device { Name = HPStorageTape1 Archive Device = Tape1 Drive Index = 1 Device Type = Tape Changer Device = 4:0:5:1 Media Type = *HPUltriumTape* Autochanger = yes *LabelMedia = yes AutomaticMount = yes* Alert Command = tapeinfo -f %c | findstr TapeAlert Autoselect = yes Always Open = *no* Removable media = yes Random access = no Requires Mount = no Minimum block size = *1* Maximum block size = *16777215* } Autochanger { Name = HPStorageAutochanger Device = HPStorageTape0,HPStorageTape1 Changer Command = mtx-changer %c %o %S %a %d Changer Device = 4:0:5:1 # Label media = yes # Automatic mount = yes } [EMAIL PROTECTED] wrote: C:\Program Files\Bacula\bintapeinfo -f Tape0 Product Type: Tape Drive Vendor ID: 'HP ' Product ID: 'Ultrium 1-SCSI ' Revision: 'P54W' Attached Changer API: No SerialNumber: 'HU10628AN8' MinBlock:1 MaxBlock:16777215 SCSI ID: 0 SCSI LUN: 0 Ready: no Device { Name = HPStorageTape0Archive Device = Tape0 Device Type = Tape Media Type = *HPUltriumTape* Autochanger = yes Changer Device = 4:0:5:1 Alert Command = tapeinfo -f %c | findstr TapeAlert Autoselect = yes Always Open = yes Removable media = yes Random access = no Requires Mount = no Minimum block size = 100 Maximum block size = 100 } Device { Name = HPStorageTape1 Archive Device = Tape1 Device Type = Tape Media Type = damnedHPUltriumTape Autochanger = yes Changer Device = 4:0:5:1 Alert Command = tapeinfo -f %c | findstr TapeAlert Drive Index = 1 Autoselect = yes Always Open = yes Removable media = yes Random access = no Requires Mount = no Minimum block size = 100 Maximum block size = 100 } Autochanger { Name = HPStorageAutochanger Device = HPStorageTape0,HPStorageTape1 Changer Command = mtx-changer %c %o %S %a %d Changer Device = 4:0:5:1 # Label media = yes # Automatic mount = yes } - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re : Windows::Permission denied
On Mon, 26 Mar 2007, Brian Debelius wrote: Changes below in bold Only for those using a HTML mail client. Please use Unified diff format (diff -u), as this makes using the 'patch' command very easy... :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Still Unable To Truncate Files
On Monday 26 March 2007 04:54, Robert Nelson wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:bacula-users- [EMAIL PROTECTED] On Behalf Of Eric Bambach Sent: Sunday, March 25, 2007 8:17 PM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Still Unable To Truncate Files Hello again list. Original thread is: [Bacula-users] Unable to Truncate Error Solved! I have some additional information about my problem. I am still getting error truncating files. It has to be some weird incompatibility with windows 2000 server and Bacula. -The file permissions say everyone full control. -SysInternals Process explorer at the time of the error show that only bacula-sd.exe has an open handle for Vol0071 (Or any of the volumes for that matter). -SysInternals Filemon shows no access besides bacula-sd.exe to that volume at the time of the error. -I tried both the packged mingw.dll and a different version from the MinGW website. -I have no antivirus software installed. -Winver shows Windows 2000 Version 5.0 (Build 2195: Service Pack 4) -I have cygwin installed. Maybe a .dll conflict there? There shouldn't be any possibility of a cygwin conflict. Didn't think so. Just grasping at straws. -Using 2xInitio inic1620 S-ATA Controller to power a dynamic disk Raid-5 array of 4xWDC WD3200JD-00KLB0 SCSI Disk Device -I DO have Legato Networker installed which backs up those files. (Off-site). But legato did not have filehandles for Vol0071 (or any other in the pool) open at the time. Any ideas anyone? This will put a complete halt to using bacula in our environment. I am not opposed to debugging/tracing the problem for the developers because bacula seems like such an awesome product but I need some pointers as I am out of ideas for the moment. I built a new version of bacula-sd.exe and bacula.dll with additional debugging output. Please copy these to your system, reproduce the problem and then send me the job log. ftp://ftp.the-nelsons.org/pub/bacula-sd.exe ftp://ftp.the-nelsons.org/pub/bacula.dll Perhaps the source needs an #IFDEF WIN32 chsize(...) #ELSE truncate(...) #ENDIF? If you look at the mingw source you will see that all ftruncate does is call chsize. Thanks for the great pointers. As you can tell I havent looked into the MinGW source so I really don't know, but someone a while ago(2005) with another minGW application had some truncate/disk access problems with files 2GB because of some funky pointer conversions. I set my Max Vol bytes to 2GB(little under) to see. I doubt this is the case, but would explain why I falsely called it solved in the other thread when I tried to reproduce with a handful of 100MB files. I will also try disabling the backup software for a few days and especially between reboots. For the life of me that is the only software I can think of that would crawl that directory and touch those files. I have been rebooting the box every now and again but I will make sure it isnt running and see if it is holding open files. Thanks again for your time and I'll respond back in a few days when I've exhausted this new set of possibilites or collected the debugging output. -- Thanks, Eric Bambach Systems Manager Northern Star Suite 130 Campus Life Bldg. Northern Illinois University, DeKalb IL - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re : Windows::Permission denied
We can explain diff to Nawfel later :) one thing at a time. Alan Brown wrote: On Mon, 26 Mar 2007, Brian Debelius wrote: Changes below in bold Only for those using a HTML mail client. Please use Unified diff format (diff -u), as this makes using the 'patch' command very easy... :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re : Windows::Permission denied
I don't think that will work. I recommend that you do not put min/max block size directives unless you are forced to, and almost certainly Bacula will not work with those values, which are what the drive supports but not approprate for Bacula blocks. On Monday 26 March 2007 15:53, Brian Debelius wrote: Changes below in bold Device { Name = HPStorageTape0 Archive Device = Tape0 Drive Index = 0 Device Type = Tape Changer Device = 4:0:5:1 Media Type = *HPUltriumTape* Autochanger = yes *LabelMedia = yes AutomaticMount = yes* Alert Command = tapeinfo -f %c | findstr TapeAlert Autoselect = yes Always Open = *no* Removable media = yes Random access = no Requires Mount = no Minimum block size = *1* Maximum block size = *16777215* } Device { Name = HPStorageTape1 Archive Device = Tape1 Drive Index = 1 Device Type = Tape Changer Device = 4:0:5:1 Media Type = *HPUltriumTape* Autochanger = yes *LabelMedia = yes AutomaticMount = yes* Alert Command = tapeinfo -f %c | findstr TapeAlert Autoselect = yes Always Open = *no* Removable media = yes Random access = no Requires Mount = no Minimum block size = *1* Maximum block size = *16777215* } Autochanger { Name = HPStorageAutochanger Device = HPStorageTape0,HPStorageTape1 Changer Command = mtx-changer %c %o %S %a %d Changer Device = 4:0:5:1 # Label media = yes # Automatic mount = yes } [EMAIL PROTECTED] wrote: C:\Program Files\Bacula\bintapeinfo -f Tape0 Product Type: Tape Drive Vendor ID: 'HP ' Product ID: 'Ultrium 1-SCSI ' Revision: 'P54W' Attached Changer API: No SerialNumber: 'HU10628AN8' MinBlock:1 MaxBlock:16777215 SCSI ID: 0 SCSI LUN: 0 Ready: no Device { Name = HPStorageTape0Archive Device = Tape0 Device Type = Tape Media Type = *HPUltriumTape* Autochanger = yes Changer Device = 4:0:5:1 Alert Command = tapeinfo -f %c | findstr TapeAlert Autoselect = yes Always Open = yes Removable media = yes Random access = no Requires Mount = no Minimum block size = 100 Maximum block size = 100 } Device { Name = HPStorageTape1 Archive Device = Tape1 Device Type = Tape Media Type = damnedHPUltriumTape Autochanger = yes Changer Device = 4:0:5:1 Alert Command = tapeinfo -f %c | findstr TapeAlert Drive Index = 1 Autoselect = yes Always Open = yes Removable media = yes Random access = no Requires Mount = no Minimum block size = 100 Maximum block size = 100 } Autochanger { Name = HPStorageAutochanger Device = HPStorageTape0,HPStorageTape1 Changer Command = mtx-changer %c %o %S %a %d Changer Device = 4:0:5:1 # Label media = yes # Automatic mount = yes } - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Strange ERROR on successful backup
According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume name(s): Volume Session Id: 2 Volume Session Time:1174687096 Last Volume Bytes: 64,512 (64.51 KB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: Error Termination:*** Backup Error *** The error messages are not descriptive. At the top, the message just says error. Then at the bottom it says SD termination status: Error. I don't know what any of that means. What does this all mean? This backup job uses spooling BTW. Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Tape Full Error when tape is not full
I'm using a DLT7000 drive and DLT IV tapes (35/70) and basically decided to start fresh and start my backups for real after testing and getting things working. I toasted the database tables etc, and re-labled a couple of tapes: 1) mt -f /dev/nst0 status (verify density) # mt -f /dev/nst0 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x84 (DLT 35GB uncompressed). Soft error count since last status=0 General status bits on (4101): BOT ONLINE IM_REP_EN 2) Get rid of the existing label # mt -f /dev/nst0 weof 3) use label command to add the media again (in my case BRT000 and BRT001) Ok so far so good, this is what I did the first time with no issues and the first time the tape filled to about 33GB. This tim when I did it the backups cabbed with an error of No apendable media found and the tape was full at about 1.3 GB. I did everything all over again but this time before I went through everything I actually erased the tape: # mt -f /dev/nst0 erase 2.5 hours later I relabeled as lited above. Result ... after some backups again it went to 9.3G and error'd out again. What could I possibly be missing? Are there other files I should remove when starting from scratch or is there another way to debug this? The media is new and the drive has been working fine for a while now so I'm not sure what it could be, maybe a block size issue? Currently it looks like it's variable and set to 0: Tape block size 0 bytes. Density code 0x84 (DLT 35GB uncompressed). Should I be running HW compression? Thanks everyone!! -- Lonny -- To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work ON it. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re : Re : Windows::Permission denied
with or without the Min/Max block size params I get the following message : ilemma009-sd Version: 2.0.3 (06 March 2007) Linux Cross-compile Win32 Daemon started 26-Mar-07 15:08, 1 Job run since started. Heap: bytes=18,066 max_bytes=114,757 bufs=80 max_bufs=93 Running Jobs: No Jobs running. Jobs waiting to reserve a drive: Terminated Jobs: JobId LevelFiles Bytes Status FinishedName === 22 Full 0 0 Error26-Mar-07 15:04 Client1 24 Full 0 0 Error26-Mar-07 15:10 Client1 Device status: Autochanger HPStorageAutochanger with devices: HPStorageTape0 (Tape0) HPStorageTape1 (Tape1) Device HPStorageTape0 (Tape0) is not open. Slot 1 is loaded in drive 0. Device HPStorageTape1 (Tape1) is not open. Drive 1 status unknown. In Use Volume status: when I type messages in the bconsole I get the following : (sorry for the lenth ! and thank you for your interest) 23-Mar 03:03 ilemma009-sd: Job Client1.2007-03-23_02.03.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HPStorageTape0 (Tape0) Media type: damnedHPUltriumTape Pool: Default 23-Mar 03:03 ilemma009-dir: Client1.2007-03-23_02.03.00 Error: ../../lib/message .c:713 Operator mail program terminated in error. CMD=C:\Program Files\Bacula\bin\bsmtp -h @smtp_host@ -f (Bacula) Administrato r -s Bacula: Intervention needed for Client1.2007-03-23_02.03.00 Administrato r ERR=Unknown error 23-Mar 05:03 ilemma009-sd: Job Client1.2007-03-23_02.03.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HPStorageTape0 (Tape0) Media type: damnedHPUltriumTape Pool: Default 23-Mar 05:03 ilemma009-dir: Client1.2007-03-23_02.03.00 Error: ../../lib/message .c:713 Operator mail program terminated in error. CMD=C:\Program Files\Bacula\bin\bsmtp -h @smtp_host@ -f (Bacula) Administrato r -s Bacula: Intervention needed for Client1.2007-03-23_02.03.00 Administrato r ERR=Unknown error 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: Network err or with FD during Backup: ERR=Broken pipe 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: No Job stat us returned from FD. 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Error: ../../cats/sql_up date.c:194 ../../cats/sql_update.c:194 update UPDATE Job SET JobStatus='f',EndTi me='2007-03-23 18:32:37',ClientId=1,JobBytes=0,JobFiles=0,JobErrors=3,VolSession Id=1,VolSessionTime=1174650862,PoolId=1,FileSetId=1,JobTDate=1174674757,RealEndT ime='2007-03-23 18:32:37',PriorJobId=0 WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Warning: Error updating job record. ../../cats/sql_update.c:194 update UPDATE Job SET JobStatus='f',EndT ime='2007-03-23 18:32:37',ClientId=1,JobBytes=0,JobFiles=0,JobErrors=3,VolSessio nId=1,VolSessionTime=1174650862,PoolId=1,FileSetId=1,JobTDate=1174674757,RealEnd Time='2007-03-23 18:32:37',PriorJobId=0 WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: ../../cats/ sql_get.c:288 ../../cats/sql_get.c:288 query SELECT VolSessionId,VolSessionTime, PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,Type,Level,Cli entId,Name,PriorJobId,RealEndTime,JobId FROM Job WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Warning: Error getting j ob record for stats: ../../cats/sql_get.c:288 query SELECT VolSessionId,VolSessi onTime,PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,Type,Le vel,ClientId,Name,PriorJobId,RealEndTime,JobId FROM Job WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: ../../cats/ sql_get.c:663 ../../cats/sql_get.c:663 query SELECT ClientId,Name,Uname,AutoPrun e,FileRetention,JobRetention FROM Client WHERE Client.Name='ilemma009-fd' failed : Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Warning: Error getting c lient record for stats: Client record not found in Catalog. 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: ../../cats/ sql.c:233 ../../cats/sql.c:233 query SELECT count(*) from Media failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: ../../cats/ sql_get.c:351 ../../cats/sql_get.c:351 query SELECT VolumeName,MAX(VolIndex) FRO M JobMedia,Media WHERE JobMedia.JobId=20 AND JobMedia.MediaId=Media.MediaId GROU P BY VolumeName ORDER BY 2 ASC failed: Can't connect to MySQL
Re: [Bacula-users] Tape Full Error when tape is not full
It'd help if you told us what the errors are that you are seeing. You may be having other issues not related to your tapes or your drive. Jason Lonny Selinger wrote: I'm using a DLT7000 drive and DLT IV tapes (35/70) and basically decided to start fresh and start my backups for real after testing and getting things working. I toasted the database tables etc, and re-labled a couple of tapes: 1) mt -f /dev/nst0 status (verify density) # mt -f /dev/nst0 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x84 (DLT 35GB uncompressed). Soft error count since last status=0 General status bits on (4101): BOT ONLINE IM_REP_EN 2) Get rid of the existing label # mt -f /dev/nst0 weof 3) use label command to add the media again (in my case BRT000 and BRT001) Ok so far so good, this is what I did the first time with no issues and the first time the tape filled to about 33GB. This tim when I did it the backups cabbed with an error of No apendable media found and the tape was full at about 1.3 GB. I did everything all over again but this time before I went through everything I actually erased the tape: # mt -f /dev/nst0 erase 2.5 hours later I relabeled as lited above. Result ... after some backups again it went to 9.3G and error'd out again. What could I possibly be missing? Are there other files I should remove when starting from scratch or is there another way to debug this? The media is new and the drive has been working fine for a while now so I'm not sure what it could be, maybe a block size issue? Currently it looks like it's variable and set to 0: Tape block size 0 bytes. Density code 0x84 (DLT 35GB uncompressed). Should I be running HW compression? Thanks everyone!! -- Lonny - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re : Re : Windows::Permission denied
Nawfel, you are getting ahead of yourself. Try taking out the min and max like kern suggested. after you make the changes, load a tape into Tape0 goto your bacula program directory and run btape -c c:\program files\all users\application data\bacula\bacula-sd.conf Tape0 enter 'test' at the prompt [EMAIL PROTECTED] wrote: with or without the Min/Max block size params I get the following message : ilemma009-sd Version: 2.0.3 (06 March 2007) Linux Cross-compile Win32 Daemon started 26-Mar-07 15:08, 1 Job run since started. Heap: bytes=18,066 max_bytes=114,757 bufs=80 max_bufs=93 Running Jobs: No Jobs running. Jobs waiting to reserve a drive: Terminated Jobs: JobId LevelFiles Bytes Status FinishedName === 22 Full 0 0 Error26-Mar-07 15:04 Client1 24 Full 0 0 Error26-Mar-07 15:10 Client1 Device status: Autochanger HPStorageAutochanger with devices: HPStorageTape0 (Tape0) HPStorageTape1 (Tape1) Device HPStorageTape0 (Tape0) is not open. Slot 1 is loaded in drive 0. Device HPStorageTape1 (Tape1) is not open. Drive 1 status unknown. In Use Volume status: when I type messages in the bconsole I get the following : (sorry for the lenth ! and thank you for your interest) 23-Mar 03:03 ilemma009-sd: Job Client1.2007-03-23_02.03.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HPStorageTape0 (Tape0) Media type: damnedHPUltriumTape Pool: Default 23-Mar 03:03 ilemma009-dir: Client1.2007-03-23_02.03.00 Error: ../../lib/message .c:713 Operator mail program terminated in error. CMD=C:\Program Files\Bacula\bin\bsmtp -h @smtp_host@ -f (Bacula) Administrato r -s Bacula: Intervention needed for Client1.2007-03-23_02.03.00 Administrato r ERR=Unknown error 23-Mar 05:03 ilemma009-sd: Job Client1.2007-03-23_02.03.00 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: HPStorageTape0 (Tape0) Media type: damnedHPUltriumTape Pool: Default 23-Mar 05:03 ilemma009-dir: Client1.2007-03-23_02.03.00 Error: ../../lib/message .c:713 Operator mail program terminated in error. CMD=C:\Program Files\Bacula\bin\bsmtp -h @smtp_host@ -f (Bacula) Administrato r -s Bacula: Intervention needed for Client1.2007-03-23_02.03.00 Administrato r ERR=Unknown error 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: Network err or with FD during Backup: ERR=Broken pipe 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: No Job stat us returned from FD. 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Error: ../../cats/sql_up date.c:194 ../../cats/sql_update.c:194 update UPDATE Job SET JobStatus='f',EndTi me='2007-03-23 18:32:37',ClientId=1,JobBytes=0,JobFiles=0,JobErrors=3,VolSession Id=1,VolSessionTime=1174650862,PoolId=1,FileSetId=1,JobTDate=1174674757,RealEndT ime='2007-03-23 18:32:37',PriorJobId=0 WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Warning: Error updating job record. ../../cats/sql_update.c:194 update UPDATE Job SET JobStatus='f',EndT ime='2007-03-23 18:32:37',ClientId=1,JobBytes=0,JobFiles=0,JobErrors=3,VolSessio nId=1,VolSessionTime=1174650862,PoolId=1,FileSetId=1,JobTDate=1174674757,RealEnd Time='2007-03-23 18:32:37',PriorJobId=0 WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: ../../cats/ sql_get.c:288 ../../cats/sql_get.c:288 query SELECT VolSessionId,VolSessionTime, PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,Type,Level,Cli entId,Name,PriorJobId,RealEndTime,JobId FROM Job WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Warning: Error getting j ob record for stats: ../../cats/sql_get.c:288 query SELECT VolSessionId,VolSessi onTime,PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus,Type,Le vel,ClientId,Name,PriorJobId,RealEndTime,JobId FROM Job WHERE JobId=20 failed: Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Fatal error: ../../cats/ sql_get.c:663 ../../cats/sql_get.c:663 query SELECT ClientId,Name,Uname,AutoPrun e,FileRetention,JobRetention FROM Client WHERE Client.Name='ilemma009-fd' failed : Can't connect to MySQL server on 'localhost' (10061) 23-Mar 18:32 ilemma009-dir: Client1.2007-03-23_02.03.00 Warning: Error getting c lient record for stats: Client record not found in Catalog. 23-Mar 18:32 ilemma009-dir:
Re: [Bacula-users] Strange ERROR on successful backup
Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume name(s): Volume Session Id: 2 Volume Session Time:1174687096 Last Volume Bytes: 64,512 (64.51 KB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: Error Termination:*** Backup Error *** The error messages are not descriptive. At the top, the message just says error. Then at the bottom it says SD termination status: Error. I don't know what any of that means. What does this all mean? This backup job uses spooling BTW. Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
No, it did not die or crash. The SD is still running. I can check it with the director and it's still running just fine. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume name(s): Volume Session Id: 2 Volume Session Time:1174687096 Last Volume Bytes: 64,512 (64.51 KB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: Error Termination:*** Backup Error *** The error messages are not descriptive. At the top, the message just says error. Then at the bottom it says SD termination status: Error. I don't know what any of that means. What does this all mean? This backup job uses spooling BTW. Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
Also, the email I got showed the director does see a successful backup...but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume name(s): Volume Session Id: 2 Volume Session Time:1174687096 Last Volume Bytes: 64,512 (64.51 KB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: Error Termination:*** Backup Error *** The error messages are not descriptive. At the top, the message just says error. Then at the bottom it says SD termination status: Error. I don't know what any of that means. What does this all mean? This backup job uses spooling BTW. Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re : Re : Re : Re : Windows::Permission denied
Great! Now you have to modify the mtx-changer.cmd script. This will make sure that the drives are set corectly across reboots. :cmdLoad CALL :debug Doing mtx -f %ctl% load %slot% %drive% %MTX% -f %ctl% load %slot% %drive% SET rtn=%ERRORLEVEL% IF ERRORLEVEL 1 GOTO :cmdExit CALL :wait_for_drive %device% REM Force block size to 0 for variable #add this %MT% -f %device% setblk 0#add this GOTO :cmdExit [EMAIL PROTECTED] wrote: Great ! It seems like it's working : C:\Program Files\Bacula\binmt -f Tape0 setblk 0 C:\Program Files\Bacula\binbtape -c C:\Documents and Settings\All Users\Applic ation Data\Bacula\bacula-sd.conf Tape0 Tape block granularity is 1024 bytes. btape: ../../stored/butil.c:286 Using device: Tape0 for writing. 26-Mar 15:51 btape: 3301 Issuing autochanger loaded? drive 0 command. 26-Mar 15:51 btape: 3302 Autochanger loaded? drive 0, result is Slot 1. 26-Mar 15:51 btape: 3301 Issuing autochanger loaded? drive 0 command. 26-Mar 15:51 btape: 3302 Autochanger loaded? drive 0, result is Slot 1. btape: ../../stored/btape.c:368 open device HPStorageTape0 (Tape0): OK *test === Write, rewind, and re-read test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... btape: ../../stored/btape.c:825 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:841 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:850 Rewind OK. 1000 blocks re-read correctly. Got EOF on tape. 1000 blocks re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === === Write, rewind, and position test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and position to a few blocks and verify that it is correct. This is an *essential* feature ... btape: ../../stored/btape.c:937 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:953 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:962 Rewind OK. Reposition to file:block 0:4 Block 5 re-read correctly. Reposition to file:block 0:200 Block 201 re-read correctly. Reposition to file:block 0:999 Block 1000 re-read correctly. Reposition to file:block 1:0 Block 1001 re-read correctly. Reposition to file:block 1:600 Block 1601 re-read correctly. Reposition to file:block 1:999 Block 2000 re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === === Append files test === This test is essential to Bacula. I'm going to write one record in file 0, two records in file 1, and three records in file 2 btape: ../../stored/btape.c:469 Rewound HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) 26-Mar 15:52 btape: 3301 Issuing autochanger loaded? drive 0 command. 26-Mar 15:52 btape: 3302 Autochanger loaded? drive 0, result is Slot 1. btape: ../../stored/btape.c:368 open device HPStorageTape0 (Tape0): OK btape: ../../stored/btape.c:469 Rewound HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1091 Now moving to end of medium. btape: ../../stored/btape.c:520 Moved to end of medium. We should be in file 3. I am at file 3. This is correct! Now the important part, I am going to attempt to append to the tape. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:469 Rewound HPStorageTape0 (Tape0) Done appending, there should be no I/O errors Doing Bacula scan of blocks: 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes
Re: [Bacula-users] Re : Re : Re : Re : Windows::Permission denied
Next run btape again except enter 'fill' at the prompt [EMAIL PROTECTED] wrote: Great ! It seems like it's working : C:\Program Files\Bacula\binmt -f Tape0 setblk 0 C:\Program Files\Bacula\binbtape -c C:\Documents and Settings\All Users\Applic ation Data\Bacula\bacula-sd.conf Tape0 Tape block granularity is 1024 bytes. btape: ../../stored/butil.c:286 Using device: Tape0 for writing. 26-Mar 15:51 btape: 3301 Issuing autochanger loaded? drive 0 command. 26-Mar 15:51 btape: 3302 Autochanger loaded? drive 0, result is Slot 1. 26-Mar 15:51 btape: 3301 Issuing autochanger loaded? drive 0 command. 26-Mar 15:51 btape: 3302 Autochanger loaded? drive 0, result is Slot 1. btape: ../../stored/btape.c:368 open device HPStorageTape0 (Tape0): OK *test === Write, rewind, and re-read test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... btape: ../../stored/btape.c:825 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:841 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:850 Rewind OK. 1000 blocks re-read correctly. Got EOF on tape. 1000 blocks re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === === Write, rewind, and position test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and position to a few blocks and verify that it is correct. This is an *essential* feature ... btape: ../../stored/btape.c:937 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:953 Wrote 1000 blocks of 64412 bytes. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:962 Rewind OK. Reposition to file:block 0:4 Block 5 re-read correctly. Reposition to file:block 0:200 Block 201 re-read correctly. Reposition to file:block 0:999 Block 1000 re-read correctly. Reposition to file:block 1:0 Block 1001 re-read correctly. Reposition to file:block 1:600 Block 1601 re-read correctly. Reposition to file:block 1:999 Block 2000 re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === === Append files test === This test is essential to Bacula. I'm going to write one record in file 0, two records in file 1, and three records in file 2 btape: ../../stored/btape.c:469 Rewound HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) 26-Mar 15:52 btape: 3301 Issuing autochanger loaded? drive 0 command. 26-Mar 15:52 btape: 3302 Autochanger loaded? drive 0, result is Slot 1. btape: ../../stored/btape.c:368 open device HPStorageTape0 (Tape0): OK btape: ../../stored/btape.c:469 Rewound HPStorageTape0 (Tape0) btape: ../../stored/btape.c:1091 Now moving to end of medium. btape: ../../stored/btape.c:520 Moved to end of medium. We should be in file 3. I am at file 3. This is correct! Now the important part, I am going to attempt to append to the tape. btape: ../../stored/btape.c:1571 Wrote one record of 64412 bytes. btape: ../../stored/btape.c:1573 Wrote block to device. btape: ../../stored/btape.c:499 Wrote 1 EOF to HPStorageTape0 (Tape0) btape: ../../stored/btape.c:469 Rewound HPStorageTape0 (Tape0) Done appending, there should be no I/O errors Doing Bacula scan of blocks: 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes in file 2 End of File mark. 3 blocks of 64448 bytes in file 3 End of File mark. 1 block of 64448 bytes in file 4 End of File mark. Total files=4, blocks=7, bytes = 451,136 End scanning the tape. We should be in file 4. I am at file 4. This is correct! The above Bacula scan should have output identical to what follows. Please double check it ... === Sample correct output === 1
Re: [Bacula-users] Tape Full Error when tape is not full
It'd help if you told us what the errors are that you are seeing. You may be having other issues not related to your tapes or your drive. Sorry I thought I included enough of the error or what was being reported. Here is the full output: 25-Mar 19:45 amanda-sd: Job Sexy.2007-03-25_19.42.13 waiting. Cannot find any appendable volumes. Please use the label command to create a new Volume for: Storage: Drive-1 (/dev/nst0) Media type: DLT7000 Pool: BRT_Daily There is no real error per se' ... it's showing that my 35G tape is full at 9G and that it would like another volume but the tape is not full. The log shows nothing for errors just that the pervious backup was successfull. Anything else I could provide that would help? Currently in messages I'm seeing this 25-Mar 20:40 amanda-sd: Job Sexy.2007-03-25_19.42.13 canceled while waiting for mount on Storage Device Drive-1 (/dev/nst0). 25-Mar 20:40 amanda-sd: Job write elapsed time = 00:58:01, Transfer rate = 95.76 K bytes/second 25-Mar 20:40 sexy-fd: Sexy.2007-03-25_19.42.13 Fatal error: backup.c:860 Network send error to SD. ERR=Connection reset by peer That was from me stopping the bacula proccesses though. Status on storage shows this (which is kind of odd too I guess as there is no pool assigned to the media): Device status: Device Drive-1 (/dev/nst0) is mounted with Volume=BRT000 Pool=*unknown* Total Bytes Read=0 Blocks Read=0 Bytes/block=0 Positioned at File=0 Block=0 In Use Volume status: BRT000 on device Drive-1 (/dev/nst0) The tape has been written to however though so I'm not sure how this would affect this situation. All of the clients belong to the same pool and 3 worked. Dmesg shows nothing out of the ordinary as well. I'll try getting rid of everything again and verify the volume is assigned to the propper pool I guess and see if that does anything. -- L Lonny Selinger wrote: I'm using a DLT7000 drive and DLT IV tapes (35/70) and basically decided to start fresh and start my backups for real after testing and getting things working. I toasted the database tables etc, and re-labled a couple of tapes: 1) mt -f /dev/nst0 status (verify density) # mt -f /dev/nst0 status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x84 (DLT 35GB uncompressed). Soft error count since last status=0 General status bits on (4101): BOT ONLINE IM_REP_EN 2) Get rid of the existing label # mt -f /dev/nst0 weof 3) use label command to add the media again (in my case BRT000 and BRT001) Ok so far so good, this is what I did the first time with no issues and the first time the tape filled to about 33GB. This tim when I did it the backups cabbed with an error of No apendable media found and the tape was full at about 1.3 GB. I did everything all over again but this time before I went through everything I actually erased the tape: # mt -f /dev/nst0 erase 2.5 hours later I relabeled as lited above. Result ... after some backups again it went to 9.3G and error'd out again. What could I possibly be missing? Are there other files I should remove when starting from scratch or is there another way to debug this? The media is new and the drive has been working fine for a while now so I'm not sure what it could be, maybe a block size issue? Currently it looks like it's variable and set to 0: Tape block size 0 bytes. Density code 0x84 (DLT 35GB uncompressed). Should I be running HW compression? Thanks everyone!! -- Lonny -- To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work ON it. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume name(s): Volume Session Id: 2 Volume Session Time:1174687096 Last Volume Bytes: 64,512 (64.51 KB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: Error Termination:*** Backup Error *** The error messages are not descriptive. At the top, the message just says error. Then at the bottom it says SD termination status: Error. I don't know what any of that means. What does this all mean? This backup job uses spooling BTW. Jason - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list
Re: [Bacula-users] Tape Full Error when tape is not full
On Mon, 26 Mar 2007, Lonny Selinger wrote: 2.5 hours later I relabeled as lited above. Result ... after some backups again it went to 9.3G and error'd out again. What could I possibly be missing? Are there other files I should remove when starting from scratch or is there another way to debug this? If the drive supports it, you might like to try 'mt -f /dev/[tapedrive] retension' The media is new and the drive has been working fine for a while now so I'm not sure what it could be, maybe a block size issue? Currently it looks like it's variable and set to 0: Given the media is new, the problem could also be a tape dropped in transit - in which case spooling it to the end and back (retensioning) may solve your problem. I'll give this a shot and see what happens :) ... DLT tapes are a single spool/caster so I always assumed that a reel to reel or caster to caster tape was subject to requiring retension'ing but It's very possible it affects all linear media *shrug* Thanks! I'll see if it does the trick. -- Lonny -- To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work ON it. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Tape Full Error when tape is not full
On Mon, 26 Mar 2007, Lonny Selinger wrote: Given the media is new, the problem could also be a tape dropped in transit - in which case spooling it to the end and back (retensioning) may solve your problem. I'll give this a shot and see what happens :) ... DLT tapes are a single spool/caster so I always assumed that a reel to reel or caster to caster tape was subject to requiring retension'ing but It's very possible it affects all linear media *shrug* This affects all linear media formats to a greater or lesser extent. DLT, LTO and SAIT are all reel-to-reel formats, but the other reel is inside the drive. This allows smaller cartridges. There is a 2-reel LTO cartridge format, but it's very rare... My first experience with tape pancakes getting misaligned was a long time ago with studio audio reels, but audio, video and DAT/DDS cassettes were very prone to it. I haven't seen much of a problem with the single reel formats, but there is always a possibility if a cartridge is dropped hard enough. AB - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Job resume
A useful feature would be to halt a job and then resume it, for when restarting bacula. In fact I think it should happen by default that if a job gets cut off for some reason, such as a network timeout, it should be possible to resume later and only explicitly cancel a job. Reloading the config is said to have unforeseen side effects, and if I have backups continuously running it means I have to cancel jobs in order to restart. For a site running lots of backups around the clock, this could well be a showstopper. Someone please correct me if there is a way to do this that I'm not seeing in the docs. A Google search for 'bacula resume jobs' naturally returns lots of results having to do with job resumes, as in people looking for work, which I think is funny. (\_/) (o,o) ()_() Joseph Wright - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Tape Full Error when tape is not full
It'd help if you told us what the errors are that you are seeing. You may be having other issues not related to your tapes or your drive. Ok this time I kept bconsole open when I retried everything and this is what I got: 26-Mar 11:11 amanda-dir: No prior Full backup Job record found. 26-Mar 11:11 amanda-dir: No prior or suitable Full backup found in catalog. Doing FULL backup. 26-Mar 11:11 amanda-dir: Start Backup JobId 1, Job=Amanda.2007-03-26_11.11.08 26-Mar 11:11 amanda-sd: Wrote label to prelabeled Volume BRT000 on device Drive-1 (/dev/nst0) 26-Mar 11:37 amanda-sd: Amanda.2007-03-26_11.11.08 Error: block.c:569 Write error at 4:13879 on device Drive-1 (/dev/nst0). ERR=Input/output error. * 26-Mar 11:37 amanda-sd: Amanda.2007-03-26_11.11.08 Error: Re-read of last block OK, but block numbers differ. Last block=75877 Current block=75879. 26-Mar 11:37 amanda-sd: End of medium on Volume BRT000 Bytes=4,895,170,560 Blocks=75,879 at 26-Mar-2007 11:37. So it sppears that I'm getting an I/O error that I don't entirely understand. The odd thing is it happens at different points. I'm guessing media? maybe it it just a bunk tape? ... I'll try a different tape and see if I have the same issues I guess. Unless anyone can tag this error to a specific issue :-) Thanks! -- Lonny -- To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work ON it. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume name(s): Volume Session Id: 2 Volume Session Time:1174687096 Last Volume Bytes: 64,512 (64.51 KB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: Error Termination:*** Backup Error *** The error messages are not descriptive. At the
Re: [Bacula-users] Strange ERROR on successful backup
Hello Jason, Are you using the MAIL ON SUCCESS feature? Jaime Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins
Re: [Bacula-users] Strange ERROR on successful backup
No, I didn't know there was such a thing. Jaime Ventura wrote: Hello Jason, Are you using the MAIL ON SUCCESS feature? Jaime Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes
Re: [Bacula-users] Strange ERROR on successful backup
On Monday 26 March 2007 19:53, Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? On the shell window for Unix/Linux machines, and in bacula.trace for Windows machine. Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client: dctn-fd 2.0.3 (06Mar07) Linux,Cross-compile,Win32 FileSet:DCTNSet 2007-03-20 23:32:54 Pool: GovDeals (From Job resource) Storage:DLT-Tape (From Job resource) Scheduled time: 26-Mar-2007 09:01:47 Start time: 26-Mar-2007 09:01:57 End time: 26-Mar-2007 09:39:59 Elapsed time: 38 mins 2 secs Priority: 10 FD Files Written: 20,621 SD Files Written: 0 FD Bytes Written: 9,756,487,879 (9.756 GB) SD Bytes Written: 0 (0 B) Rate: 4275.4 KB/s Software Compression: None VSS:yes Encryption: no Volume
[Bacula-users] Changing catalog name...
Hello, Is there a safe way to change a catalog's name? Can I simply change it on the config files or its also mentioned on the database itself? Thanks -- Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url:www.isep.ipp.pt http://www.isep.ipp.pt - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Removable disk HOWTO autofs question
Hi, finally I've upgraded to 2.0.3 to try Removable disk HOWTO, but have a problem: I do not have /dev/disk/by-label only by-path How to fix it Running: CentOS 4.4 (RHEL 4u4) Thanks, Hristo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula and HP MSL2024 autochanger
On 2007-03-24, Marc Cuypers [EMAIL PROTECTED] wrote: John Goerzen wrote: Thanks John. Anything special i have to take into account for the configuration? Or did it work with the normal configuration stuff? Not really. It works with mtx just fine. I think I maybe added a couple of sleep statements into the changer script because the robot wasn't ready to accept new commands immediately with mtx returned, but I haven't tested it with current mtx/drivers so it may or may not still be a problem. -- John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Changing catalog name...
On Monday 26 March 2007 20:49, Jaime Ventura wrote: Hello, Is there a safe way to change a catalog's name? Can I simply change it on the config files or its also mentioned on the database itself? First backup the database before doing anything. I cannot reply for PostgreSQL, but for SQLite, you simply change the name of the database file. For MySQL, you change the name of the directory that holds the database files, and you must also grant access to the users that will access the new name. For both, you must also change the name in the bacula-dir.conf Catalog resource entry. For PostgreSQL, you will need to find a PostgreSQL expert, or simply export the database such as Bacula does when it backs it up, create a new one by modifying the appropriate scripts and running them, then feeding the export file back into PostgreSQL, and then making sure users have access rights to the new name. This would also work with MySQL and SQLite and is a more conservative (but slower) way of doing the change. Thanks -- Jaime Ventura [Infra-estruturas e Comunicações] Rua Dr. António Bernardino de Almeida, 431 4200 - 072 Porto Telef: +351 22 834 05 00 (04) - ext. 1641 Fax: +351 22 832 11 59 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] url: www.isep.ipp.pt http://www.isep.ipp.pt - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
You mean in the console? I set my debug level to 100 and nothing different has come through to my console. Where can I get the debug information? Kern Sibbald wrote: On Monday 26 March 2007 19:53, Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? On the shell window for Unix/Linux machines, and in bacula.trace for Windows machine. Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Registry Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Event Log Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): NTDS, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WMI Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 maint-dir: dctn.2007-03-26_09.01.49 Error: Bacula 2.0.1 (12Jan07): 26-Mar-2007 09:39:59 JobId: 353 Job:dctn.2007-03-26_09.01.49 Backup Level: Full Client:
Re: [Bacula-users] Tape Full Error when tape is not full
On Mon, 26 Mar 2007 11:44:01 -0600 (CST), Lonny Selinger said: It'd help if you told us what the errors are that you are seeing. You may be having other issues not related to your tapes or your drive. Ok this time I kept bconsole open when I retried everything and this is what I got: 26-Mar 11:11 amanda-dir: No prior Full backup Job record found. 26-Mar 11:11 amanda-dir: No prior or suitable Full backup found in catalog. Doing FULL backup. 26-Mar 11:11 amanda-dir: Start Backup JobId 1, Job=Amanda.2007-03-26_11.11.08 26-Mar 11:11 amanda-sd: Wrote label to prelabeled Volume BRT000 on device Drive-1 (/dev/nst0) 26-Mar 11:37 amanda-sd: Amanda.2007-03-26_11.11.08 Error: block.c:569 Write error at 4:13879 on device Drive-1 (/dev/nst0). ERR=Input/output error. * 26-Mar 11:37 amanda-sd: Amanda.2007-03-26_11.11.08 Error: Re-read of last block OK, but block numbers differ. Last block=75877 Current block=75879. 26-Mar 11:37 amanda-sd: End of medium on Volume BRT000 Bytes=4,895,170,560 Blocks=75,879 at 26-Mar-2007 11:37. So it sppears that I'm getting an I/O error that I don't entirely understand. The odd thing is it happens at different points. I'm guessing media? maybe it it just a bunk tape? ... I'll try a different tape and see if I have the same issues I guess. Unless anyone can tag this error to a specific issue :-) Any syslog or OS console messages? __Martin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula and HP MSL2024 autochanger
On Monday 26 March 2007 20:46, John Goerzen wrote: On 2007-03-24, Marc Cuypers [EMAIL PROTECTED] wrote: John Goerzen wrote: Thanks John. Anything special i have to take into account for the configuration? Or did it work with the normal configuration stuff? Not really. It works with mtx just fine. I think I maybe added a couple of sleep statements into the changer script because the robot wasn't ready to accept new commands immediately with mtx returned, but I haven't tested it with current mtx/drivers so it may or may not still be a problem. Yes, I had that same problem today when trying a new autochanger that I had just hooked up. In looking at mtx-changer.in, I realized that the wait_for_drive function was not turned on by default, so I have done so for 2.0.4. That should make about 99% of all installations work out of the box (Linux, Solaris, and FreeBSD). Kern - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
On Monday 26 March 2007 21:20, Jason King wrote: You mean in the console? No. I set my debug level to 100 and nothing different has come through to my console. Where can I get the debug information? Unless you redirect the output, it will appear in the shell from which you started the SD. I.e. stdout. Note, many rpm and distro scripts send stdout to /dev/null. The bacula start script does not do that. Also, if you have a non-developer version (i.e. many distros and rpms), then when Bacula daemonizes it closes stdout. To avoid that as I mentioned, you need to *start* it with at least -d1 on the command line, you can then later change the debug level with the setdebug command. Also, note that I am saying to set the debug level in the SD. Each daemon has its own debug level. I'll leave it to the list to help you get this working if you still have problems ... Kern Sibbald wrote: On Monday 26 March 2007 19:53, Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? On the shell window for Unix/Linux machines, and in bacula.trace for Windows machine. Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Dhcp Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): Certificate Authority, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): DFS Replication service writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): FRS Writer, State: 0x1 (VSS_WS_STABLE)
Re: [Bacula-users] Strange ERROR on successful backup
The problem I have is that this particular SD is running on Windows so there is no STOUT. Where do I look from there? I can set the -d option within the services options but I just don't know where to look for the debug information. jason Kern Sibbald wrote: On Monday 26 March 2007 21:20, Jason King wrote: You mean in the console? No. I set my debug level to 100 and nothing different has come through to my console. Where can I get the debug information? Unless you redirect the output, it will appear in the shell from which you started the SD. I.e. stdout. Note, many rpm and distro scripts send stdout to /dev/null. The bacula start script does not do that. Also, if you have a non-developer version (i.e. many distros and rpms), then when Bacula daemonizes it closes stdout. To avoid that as I mentioned, you need to *start* it with at least -d1 on the command line, you can then later change the debug level with the setdebug command. Also, note that I am saying to set the debug level in the SD. Each daemon has its own debug level. I'll leave it to the list to help you get this working if you still have problems ... Kern Sibbald wrote: On Monday 26 March 2007 19:53, Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? On the shell window for Unix/Linux machines, and in bacula.trace for Windows machine. Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): MSDEWriter, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): WINS Jet Writer, State: 0x1 (VSS_WS_STABLE) 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): COM+ REGDB Writer,
Re: [Bacula-users] Bacula and HP MSL2024 autochanger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kern Sibbald wrote: Yes, I had that same problem today when trying a new autochanger that I had just hooked up. In looking at mtx-changer.in, I realized that the wait_for_drive function was not turned on by default, so I have done so for 2.0.4. That should make about 99% of all installations work out of the box (Linux, Solaris, and FreeBSD). Kern Thank you for this! I ran into some snafus setting-up a Dell ML autochanger and had to enable this function in my mtx-changer script. Happy to know it will be enabled by-default in 2.0.4. - -Proto - -- Michael Proto| SecureWorks Unix Administrator | PGP ID: 5D575BBE | [EMAIL PROTECTED] *** -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGCCMKOLq/wl1XW74RAjYJAJ4rSFKXh7ThKscxad+UB4hOueivwACgh6iw X+i0SAfTg2rvamPtxymgNLk= =Ogru -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
On Monday 26 March 2007 21:38, Jason King wrote: The problem I have is that this particular SD is running on Windows so there is no STOUT. Where do I look from there? I can set the -d option within the services options but I just don't know where to look for the debug information. Well for Windows, you will need to get help from someone else the details are slightly different. However, it seems to me that I already mentioned in a previous email that the output is put into bacula.trace (actually, I think it is bacula-sd.trace). That file is probably created in the directory the SD executable is located. Robert has previously given instructions on how to do this (probably several times) on the email list, and it is also documented in the manual for the FD. jason Kern Sibbald wrote: On Monday 26 March 2007 21:20, Jason King wrote: You mean in the console? No. I set my debug level to 100 and nothing different has come through to my console. Where can I get the debug information? Unless you redirect the output, it will appear in the shell from which you started the SD. I.e. stdout. Note, many rpm and distro scripts send stdout to /dev/null. The bacula start script does not do that. Also, if you have a non-developer version (i.e. many distros and rpms), then when Bacula daemonizes it closes stdout. To avoid that as I mentioned, you need to *start* it with at least -d1 on the command line, you can then later change the debug level with the setdebug command. Also, note that I am saying to set the debug level in the SD. Each daemon has its own debug level. I'll leave it to the list to help you get this working if you still have problems ... Kern Sibbald wrote: On Monday 26 March 2007 19:53, Jason King wrote: I'm sorry, I said that wrong. I tried to say the email I got showed the director sees an errored backup...but the file daemon puts a successful backup in its own history logs. I'll try using debugging to see if that gives me what I need. Where can I find the debug output? On the shell window for Unix/Linux machines, and in bacula.trace for Windows machine. Kern Sibbald wrote: On Monday 26 March 2007 18:10, Jason King wrote: Also, the email I got showed the director does see a successful backup... That seems unlikely because the output you showed below indicates that the job failed. but like I said, the file daemon says the backup WAS successful when I do a status client from the console of the director. For the backup to be successful, all three components (DIR, FD, and SD) must report success. In this case, the Dir did not get a success from the SD. Why is the mystery you need to resolve. You might set debug to -d100 in the SD via the setdebug command before running the job. If the SD is built with DEBUG off, you will need to start it with atleast -d1 for the setdebug command to work. A -d100 should show you where things went wrong, if not, up the debug level. Jason Kern Sibbald wrote: Your email title is a bit misleading as this was not successful backup. It looks like the SD might have died ... i.e. probably crashed. On Monday 26 March 2007 17:10, Jason King wrote: According to my bacula database, my backup of one of my servers ended in an error but when I do a status on the servers file daemon, it shows a successful backup, here is the email I received: 26-Mar 09:01 maint-dir: Start Backup JobId 353, Job=dctn.2007-03-26_09.01.49 26-Mar 09:01 dctn-sd: Wrote label to prelabeled Volume GovDeals-01 on device DLT-Drive (Tape0) 26-Mar 09:01 dctn-sd: Spooling data ... 26-Mar 09:02 dctn-fd: Generate VSS snapshots. Driver=VSS Win 2003, Drive(s)=D 26-Mar 09:39 dctn-fd: VSS Writer (BackupComplete): System Writer, State:
Re: [Bacula-users] Strange ERROR on successful backup
Kern Sibbald wrote: On Monday 26 March 2007 21:38, Jason King wrote: The problem I have is that this particular SD is running on Windows so there is no STOUT. Where do I look from there? I can set the -d option within the services options but I just don't know where to look for the debug information. Well for Windows, you will need to get help from someone else the details are slightly different. However, it seems to me that I already mentioned in a previous email that the output is put into bacula.trace (actually, I think it is bacula-sd.trace). That file is probably created in the directory the SD executable is located. Robert has previously given instructions on how to do this (probably several times) on the email list, and it is also documented in the manual for the FD. Mine for what ever reason get created in c:\windows\system32 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
Ok, I've got the debug output of the storage daemon now: I have the system setup to spool the data to the drive then write to the media. Everything looks fine until after the system starts to despool everything to tape. Here are the debug messages from despool on: dctn-sd: ../../stored/spool.c:220 Despooling data dctn-sd: ../../stored/askdir.c:395 dird: Jmsg Job=dctn.2007-03-26_15.37.12 type=6 level=1174944136 dctn-sd: Job write elapsed time = 00:44:54, Transfer rate = 3.623 M bytes/second dctn-sd: ../../stored/askdir.c:332 Update cat VolFiles=2 dctn-sd: ../../stored/askdir.c:351 dird: dctn-sd: ../../stored/askdir.c:357 Didn't get vol info vol=GovDeals-01: ERR=Network error on bnet_recv in req_vol_info. dctn-sd: ../../stored/block.c:748 dir_update_volume_info terminate writing -- ERROR dctn-sd: ../../stored/block.c:771 Leave terminate_writing_volume -- ERROR dctn-sd: ../../stored/spool.c:140 Bad return from despool WroteVol=0 dctn-sd: ../compat/compat.cpp:194 Enter wchar_win32_path There is more but it's all the finishing up stuff like removing spool file and releasing the tape drive. So there you have the debug. Looks like the storage daemon isn't able to get the volume information from the tape or something. There is another entry higher up in the log that shows a similar volume error: dctn-sd: ../../stored/label.c:155 Requested Volume GovDeals-01 on DLT-Drive (Tape0) is not a Bacula labeled Volume, because: ERR=../../stored/block.c:1006 Read zero bytes at 0:0 on device DLT-Drive (Tape0). dctn-sd: ../../stored/label.c:179 No volume label - bailing out But that isn't true because I labeled the tape just before I ran the job. Crap I don't know what the problem with this thing is. Does this information help? I have attached the entire debug trace file for anyone that can help to view. Thanks, Jason Kern Sibbald wrote: On Monday 26 March 2007 21:54, Brian Debelius wrote: Kern Sibbald wrote: On Monday 26 March 2007 21:38, Jason King wrote: The problem I have is that this particular SD is running on Windows so there is no STOUT. Where do I look from there? I can set the -d option within the services options but I just don't know where to look for the debug information. Well for Windows, you will need to get help from someone else the details are slightly different. However, it seems to me that I already mentioned in a previous email that the output is put into bacula.trace (actually, I think it is bacula-sd.trace). That file is probably created in the directory the SD executable is located. Robert has previously given instructions on how to do this (probably several times) on the email list, and it is also documented in the manual for the FD. Mine for what ever reason get created in c:\windows\system32 Oh! That's precisely why I said for Windows you will need to get help from someone else; the details are slightly different. Thanks. Eventhough Win32 is not my favorite platform, I am determined to learn these things :-) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users bacula-sd: ../compat/compat.cpp:194 Enter wchar_win32_path bacula-sd: ../compat/compat.cpp:378 Leave wchar_win32_path=\ bacula-sd: ../compat/compat.cpp:107 Enter convert_unix_to_win32_path bacula-sd: ../compat/compat.cpp:158 path=\\?\bacula-sd.conf bacula-sd: ../compat/compat.cpp:167 Leave cvt_u_to_win32_path path=\\?\bacula-sd.conf bacula-sd: ../compat/compat.cpp:194 Enter wchar_win32_path bacula-sd: ../compat/compat.cpp:208 Leave wchar_win32_path no change bacula-sd: ../compat/compat.cpp:729 GetFileAttributes(\\?\bacula-sd.conf): The system cannot find the file specified. bacula-sd: ../../stored/stored_conf.c:675 Inserting director res: dctn-dir bacula-sd: ../../stored/stored_conf.c:675 Inserting director res: dctn-mon bacula-sd: ../../stored/stored_conf.c:675 Inserting device res: DLT-Drive bacula-sd: ../compat/compat.cpp:194 Enter wchar_win32_path bacula-sd: ../compat/compat.cpp:378 Leave wchar_win32_path=\ dctn-sd: ../../lib/jcr.c:129 read_last_jobs seek to 192 dctn-sd: ../../lib/jcr.c:136 Read num_items=2 dctn-sd: ../../stored/stored.c:476 calling init_dev D:\bacula-tmp dctn-sd: ../compat/compat.cpp:194 Enter wchar_win32_path dctn-sd: ../../lib/bnet_server.c:98 Addresses host[ipv4:0.0.0.0:9103] dctn-sd: ../compat/compat.cpp:378 Leave wchar_win32_path=\ dctn-sd: ../../stored/dev.c:254 init_dev: tape=0
Re: [Bacula-users] Job resume
Joseph Wright wrote: A useful feature would be to halt a job and then resume it, for when restarting bacula. In fact I think it should happen by default that if a job gets cut off for some reason, such as a network timeout, it should be possible to resume later and only explicitly cancel a job. Reloading the config is said to have unforeseen side effects, and if I have backups continuously running it means I have to cancel jobs in order to restart. For a site running lots of backups around the clock, this could well be a showstopper. Someone please correct me if there is a way to do this that I'm not seeing in the docs. A Google search for 'bacula resume jobs' naturally returns lots of results having to do with job resumes, as in people looking for work, which I think is funny. I have just had a situation where I would have been happy to be able to resume a back-up job. The current job sensed end of tape and requested the mount of the next tape. Few minutes later the connection broke and the job was aborted. The back-up had run almost to completion, but I had to run the whole job again from the very beginning. -- Erik P. Olsen, Civilingeniør, MSc Solsortvej 30, DK-2000 Frederiksberg, Denmark Phone: +45 38346480, Fax: +45 32106480, Mobil: +45 40765300 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Strange ERROR on successful backup
On Monday 26 March 2007 23:55, Jason King wrote: Ok, I've got the debug output of the storage daemon now: I have the system setup to spool the data to the drive then write to the media. Everything looks fine until after the system starts to despool everything to tape. Here are the debug messages from despool on: dctn-sd: ../../stored/spool.c:220 Despooling data dctn-sd: ../../stored/askdir.c:395 dird: Jmsg Job=dctn.2007-03-26_15.37.12 type=6 level=1174944136 dctn-sd: Job write elapsed time = 00:44:54, Transfer rate = 3.623 M bytes/second dctn-sd: ../../stored/askdir.c:332 Update cat VolFiles=2 dctn-sd: ../../stored/askdir.c:351 dird: dctn-sd: ../../stored/askdir.c:357 Didn't get vol info vol=GovDeals-01: ERR=Network error on bnet_recv in req_vol_info. This indicates that the comm connection from the SD to the Dir was lost. There was no error messages from the SD because they were directed to the Director. The details of the error were lost because the message could not be delivered. You could write all the messages to a log file, but I suspect that it will simply show that the comm line dropped, but who knows it might turn up something interesting. The solution is to fix the comm line problems. Possibly turning on a Heartbeat Interval could help. dctn-sd: ../../stored/block.c:748 dir_update_volume_info terminate writing -- ERROR dctn-sd: ../../stored/block.c:771 Leave terminate_writing_volume -- ERROR dctn-sd: ../../stored/spool.c:140 Bad return from despool WroteVol=0 dctn-sd: ../compat/compat.cpp:194 Enter wchar_win32_path There is more but it's all the finishing up stuff like removing spool file and releasing the tape drive. So there you have the debug. Looks like the storage daemon isn't able to get the volume information from the tape or something. There is another entry higher up in the log that shows a similar volume error: dctn-sd: ../../stored/label.c:155 Requested Volume GovDeals-01 on DLT-Drive (Tape0) is not a Bacula labeled Volume, because: ERR=../../stored/block.c:1006 Read zero bytes at 0:0 on device DLT-Drive (Tape0). dctn-sd: ../../stored/label.c:179 No volume label - bailing out This is enough out of context so that I cannot be sure without looking at the whole trace file, which I didn't do (it wasn't attached and I don't have the time anyway). However I can say that this is is normal when labeling a blank tape. But that isn't true because I labeled the tape just before I ran the job. Crap I don't know what the problem with this thing is. Does this information help? I have attached the entire debug trace file for anyone that can help to view. Thanks, Jason Kern Sibbald wrote: On Monday 26 March 2007 21:54, Brian Debelius wrote: Kern Sibbald wrote: On Monday 26 March 2007 21:38, Jason King wrote: The problem I have is that this particular SD is running on Windows so there is no STOUT. Where do I look from there? I can set the -d option within the services options but I just don't know where to look for the debug information. Well for Windows, you will need to get help from someone else the details are slightly different. However, it seems to me that I already mentioned in a previous email that the output is put into bacula.trace (actually, I think it is bacula-sd.trace). That file is probably created in the directory the SD executable is located. Robert has previously given instructions on how to do this (probably several times) on the email list, and it is also documented in the manual for the FD. Mine for what ever reason get created in c:\windows\system32 Oh! That's precisely why I said for Windows you will need to get help from someone else; the details are slightly different. Thanks. Eventhough Win32 is not my favorite platform, I am determined to learn these things :-) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___
Re: [Bacula-users] Strange ERROR on successful backup
I already read about that and the Heartbeat Interval has already been setup and changed to 90 seconds. I have Heartbeat setup on both the SD and the FD of this server. I actually had to setup the Heartbeat to handle a different problem with the backup. The Heartbeat solved that problem but then caused/showed this problem. I did attach the trace file. I'm not sure why you didn't see it. On Monday 26 March 2007 23:55, Jason King wrote: Ok, I've got the debug output of the storage daemon now: I have the system setup to spool the data to the drive then write to the media. Everything looks fine until after the system starts to despool everything to tape. Here are the debug messages from despool on: dctn-sd: ../../stored/spool.c:220 Despooling data dctn-sd: ../../stored/askdir.c:395 dird: Jmsg Job=dctn.2007-03-26_15.37.12 type=6 level=1174944136 dctn-sd: Job write elapsed time = 00:44:54, Transfer rate = 3.623 M bytes/second dctn-sd: ../../stored/askdir.c:332 Update cat VolFiles=2 dctn-sd: ../../stored/askdir.c:351 dird: dctn-sd: ../../stored/askdir.c:357 Didn't get vol info vol=GovDeals-01: ERR=Network error on bnet_recv in req_vol_info. This indicates that the comm connection from the SD to the Dir was lost. There was no error messages from the SD because they were directed to the Director. The details of the error were lost because the message could not be delivered. You could write all the messages to a log file, but I suspect that it will simply show that the comm line dropped, but who knows it might turn up something interesting. The solution is to fix the comm line problems. Possibly turning on a Heartbeat Interval could help. dctn-sd: ../../stored/block.c:748 dir_update_volume_info terminate writing -- ERROR dctn-sd: ../../stored/block.c:771 Leave terminate_writing_volume -- ERROR dctn-sd: ../../stored/spool.c:140 Bad return from despool WroteVol=0 dctn-sd: ../compat/compat.cpp:194 Enter wchar_win32_path There is more but it's all the finishing up stuff like removing spool file and releasing the tape drive. So there you have the debug. Looks like the storage daemon isn't able to get the volume information from the tape or something. There is another entry higher up in the log that shows a similar volume error: dctn-sd: ../../stored/label.c:155 Requested Volume GovDeals-01 on DLT-Drive (Tape0) is not a Bacula labeled Volume, because: ERR=../../stored/block.c:1006 Read zero bytes at 0:0 on device DLT-Drive (Tape0). dctn-sd: ../../stored/label.c:179 No volume label - bailing out This is enough out of context so that I cannot be sure without looking at the whole trace file, which I didn't do (it wasn't attached and I don't have the time anyway). However I can say that this is is normal when labeling a blank tape. But that isn't true because I labeled the tape just before I ran the job. Crap I don't know what the problem with this thing is. Does this information help? I have attached the entire debug trace file for anyone that can help to view. Thanks, Jason Kern Sibbald wrote: On Monday 26 March 2007 21:54, Brian Debelius wrote: Kern Sibbald wrote: On Monday 26 March 2007 21:38, Jason King wrote: The problem I have is that this particular SD is running on Windows so there is no STOUT. Where do I look from there? I can set the -d option within the services options but I just don't know where to look for the debug information. Well for Windows, you will need to get help from someone else the details are slightly different. However, it seems to me that I already mentioned in a previous email that the output is put into bacula.trace (actually, I think it is bacula-sd.trace). That file is probably created in the directory the SD executable is located. Robert has previously given instructions on how to do this (probably several times) on the email list, and it is also documented in the manual for the FD. Mine for what ever reason get created in c:\windows\system32 Oh! That's precisely why I said for Windows you will need to get help from someone else; the details are slightly different. Thanks. Eventhough Win32 is not my favorite platform, I am determined to learn these things :-) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT
[Bacula-users] A crashed JobMedia table in MySql.
I'm running the bacula-mysql-2.0.1-1 rpm on Fedora Core 6. About a week ago, my /var partition filled causing general system problems. It gets better. Now I'm having problems with the /usr partion (SCSI drive is dying) and when I try to restore to a new disk, I get the following MySql error: *restore First you select one or more JobIds that contain files to be restored. You will be presented several methods of specifying the JobIds. Then you will be allowed to select which files from those JobIds are to be restored. To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Find the JobIds of the most recent backup for a client 10: Find the JobIds for a backup for a client before a specified time 11: Enter a list of directories to restore for found JobIds 12: Cancel Select item: (1-12): 9 Defined Clients: 1: alpha-fd 2: beta-fd Select the Client (1-2): 1 The defined FileSet resources are: 1: Catalog 2: Full Set Select FileSet resource (1-2): 2 Query failed: INSERT INTO temp1 SELECT Job.JobId,JobTdate FROM Client,Job,JobMedia,Media,FileSet WHERE Client.ClientId=1 AND Job.ClientId=1 AND Job.StartTime'2007-03-26 21:59:38' AND Level='F' AND JobStatus='T' AND Type='B' AND JobMedia.JobId=Job.JobId AND Media.Enabled=1 AND JobMedia.MediaId=Media.MediaId AND Job.FileSetId=FileSet.FileSetId AND FileSet.FileSet='Full Set' ORDER BY Job.JobTDate DESC LIMIT 1: ERR=Table './bacula/JobMedia' is marked as crashed and should be repaired end of output I know that working on the bacula database by hand is just asking for it. I tried mysqldump but that gives me the same error. Is there anything I can do to repair this or is this a case where all I can do is wipe the database and reload the catalogs off tape. TIA. AltGrendel - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] A crashed JobMedia table in MySql.
On Mon, Mar 26, 2007 at 10:30:33PM -0400, AltGrendel wrote: Job.JobTDate DESC LIMIT 1: ERR=Table './bacula/JobMedia' is marked as crashed and should be repaired You should be able to at least attempt repairing the mysql table before resorting to reloading the catalog via dbscan. http://dev.mysql.com/doc/refman/4.1/en/repair-table.html -- Frank Sweetser fs at wpi.edu | For every problem, there is a solution that WPI Network Engineer | is simple, elegant, and wrong. - HL Mencken GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] A crashed JobMedia table in MySql.
Frank Sweetser wrote: On Mon, Mar 26, 2007 at 10:30:33PM -0400, AltGrendel wrote: Job.JobTDate DESC LIMIT 1: ERR=Table './bacula/JobMedia' is marked as crashed and should be repaired You should be able to at least attempt repairing the mysql table before resorting to reloading the catalog via dbscan. http://dev.mysql.com/doc/refman/4.1/en/repair-table.html That cleared up the problem, mysqldump suceeded. And now the solution is in the archive too. Thanks Frank. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Should tapes drives on windows work?
I tried to get a tape drive working with the storage daemon on Windows without success. Before I bang my head against the wall too much, I wanted to ask if in general this works or not. I realize that the Windows side of stuff is still experimental. I am running Windows 2003 Server that is up to date patch-wise. I am trying to use a DLT-7000 tape drive. The tape drive seems to work correctly with Windows backup and Veritas Backup Exec. The tape drive passed both the Quantum and HP DLT diagnostics. I installed the 2.0.3 binaries on the server and set up the configuration files. My director on another machine can communicate with it. My problem is that there seems to be some basic issue talking to the tape drive. When I fire up btape and try something simple like asking for capabilities I get: *cap Configured device capabilities: EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT !LABEL !ANONVOLS ALWAYSOPEN MTIOCGET Device status: OPENED TAPE LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT Device parameters: Device name: Tape0 File=0 block=0 Min block=0 Max block=0 Status: Bacula status: file=0 block=0 Device status: BOT ONLINE IM_REP_EN file=0 block=0 btape: ../../stored/btape.c:1799 Device status: 645. ERR=../../stored/dev.c:1545 ioctl MTBSR error on DLT-7000 (Tape0) . ERR=Input/output error. If I run the btape test command I don't even get past the first step. Is there something basic about setting up tape drives under Windows I am missing? Rex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Should tapes drives on windows work?
Make sure the storage daemon isn't running when you run btape. net stop bacula-sd Once you are finished you can start the storage daemon with Net start bacula-sd -Original Message- From: [EMAIL PROTECTED] [mailto:bacula-users- [EMAIL PROTECTED] On Behalf Of Rex Wheeler Sent: Monday, March 26, 2007 8:18 PM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Should tapes drives on windows work? I tried to get a tape drive working with the storage daemon on Windows without success. Before I bang my head against the wall too much, I wanted to ask if in general this works or not. I realize that the Windows side of stuff is still experimental. I am running Windows 2003 Server that is up to date patch-wise. I am trying to use a DLT-7000 tape drive. The tape drive seems to work correctly with Windows backup and Veritas Backup Exec. The tape drive passed both the Quantum and HP DLT diagnostics. I installed the 2.0.3 binaries on the server and set up the configuration files. My director on another machine can communicate with it. My problem is that there seems to be some basic issue talking to the tape drive. When I fire up btape and try something simple like asking for capabilities I get: *cap Configured device capabilities: EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT !LABEL !ANONVOLS ALWAYSOPEN MTIOCGET Device status: OPENED TAPE LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT Device parameters: Device name: Tape0 File=0 block=0 Min block=0 Max block=0 Status: Bacula status: file=0 block=0 Device status: BOT ONLINE IM_REP_EN file=0 block=0 btape: ../../stored/btape.c:1799 Device status: 645. ERR=../../stored/dev.c:1545 ioctl MTBSR error on DLT-7000 (Tape0) . ERR=Input/output error. If I run the btape test command I don't even get past the first step. Is there something basic about setting up tape drives under Windows I am missing? Rex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Should tapes drives on windows work?
Thanks for the suggestion, but I already tried that. Btape does successfully open the tape drive (it won't if bacula-sd is running.) -Original Message- From: Robert Nelson [mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 9:05 PM To: Rex Wheeler; bacula-users@lists.sourceforge.net Subject: RE: [Bacula-users] Should tapes drives on windows work? Make sure the storage daemon isn't running when you run btape. net stop bacula-sd Once you are finished you can start the storage daemon with Net start bacula-sd - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Should tapes drives on windows work?
The cap command just prints out the last error message encountered. It isn't actually hitting an error itself. To provide useful information you need to supply the error messages in the context in which they occur. I recommend starting btape with the -v and -d 100 options and then post the output. Are you using a blank tape? Have you tried rewinding the tape and writing an EOF mark to clear any existing data? -Original Message- From: [EMAIL PROTECTED] [mailto:bacula-users- [EMAIL PROTECTED] On Behalf Of Robert Nelson Sent: Monday, March 26, 2007 9:05 PM To: 'Rex Wheeler'; bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Should tapes drives on windows work? Make sure the storage daemon isn't running when you run btape. net stop bacula-sd Once you are finished you can start the storage daemon with Net start bacula-sd -Original Message- From: [EMAIL PROTECTED] [mailto:bacula-users- [EMAIL PROTECTED] On Behalf Of Rex Wheeler Sent: Monday, March 26, 2007 8:18 PM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Should tapes drives on windows work? I tried to get a tape drive working with the storage daemon on Windows without success. Before I bang my head against the wall too much, I wanted to ask if in general this works or not. I realize that the Windows side of stuff is still experimental. I am running Windows 2003 Server that is up to date patch-wise. I am trying to use a DLT-7000 tape drive. The tape drive seems to work correctly with Windows backup and Veritas Backup Exec. The tape drive passed both the Quantum and HP DLT diagnostics. I installed the 2.0.3 binaries on the server and set up the configuration files. My director on another machine can communicate with it. My problem is that there seems to be some basic issue talking to the tape drive. When I fire up btape and try something simple like asking for capabilities I get: *cap Configured device capabilities: EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT !LABEL !ANONVOLS ALWAYSOPEN MTIOCGET Device status: OPENED TAPE LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT Device parameters: Device name: Tape0 File=0 block=0 Min block=0 Max block=0 Status: Bacula status: file=0 block=0 Device status: BOT ONLINE IM_REP_EN file=0 block=0 btape: ../../stored/btape.c:1799 Device status: 645. ERR=../../stored/dev.c:1545 ioctl MTBSR error on DLT-7000 (Tape0) . ERR=Input/output error. If I run the btape test command I don't even get past the first step. Is there something basic about setting up tape drives under Windows I am missing? Rex - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users