Re: [Bacula-users] doing always a full backup?
On Friday 27 July 2007 your cat, walking on the keyboard, wrote: Definitely on the right track, but as you can see, you have no successful jobs listed there. I don't remember the job status codes (Martin has listed them after me, I see). Can you look at your log file and find out what happened to the ends of those listed jobs? That would be useful information. Also, look for successful jobs or evidence of pruning. You might also try running one job and watching it the whole time and seeing if it completes toward the end. I found in the log this: 30-lug 03:12 backup-dir: sede_Vol2Samba_job.2007-07-30_02.00.00 Fatal error: catreq.c:424 Attribute create error.\ sql_create.c:853 Create db Filename record INSERT INTO Filename (Name) VALUES ('invio dichiarazione di conformit\ à.doc') failed. ERR=ERROR: invalid byte sequence for encoding UTF8: 0xe02e64 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which \ is controlled by client_encoding. 30-lug 03:15 backup-dir: Volume used once. Marking Volume sede_Vol2Samba_job-2007-07-30--2-0 as Used. 30-lug 03:15 backup-dir: sede_Vol2Samba_job.2007-07-30_02.00.00 Error: Bacula 1.38.11 (28Jun06): 30-lug-2007 03:1\ 5:22 JobId: 839 Job:sede_Vol2Samba_job.2007-07-30_02.00.00 Backup Level: Full (upgraded from Incremental) Client: sede-fd 2.0.3 (06Mar07) i686-pc-linux-gnu,suse,9.1 FileSet:sede_Vol2Samba_fileset 2007-05-15 02:00:02 Pool: sede_vol2_pool FileSet:sede_Vol2Samba_fileset 2007-05-15 02:00:02 Pool: sede_vol2_pool Storage:sede-samba-sd Scheduled time: 30-lug-2007 02:00:00 Start time: 30-lug-2007 02:00:05 End time: 30-lug-2007 03:15:22 Elapsed time: 1 hour 15 mins 17 secs Priority: 10 FD Files Written: 86,685 SD Files Written: 86,685 FD Bytes Written: 20,737,156,122 (20.73 GB) SD Bytes Written: 20,751,178,686 (20.75 GB) Rate: 4590,9 KB/s Software Compression: 32,9 % Volume name(s): sede_Vol2Samba_job-2007-07-30--2-0 Volume Session Id: 68 Volume Session Time:1185374415 Last Volume Bytes: 20,771,044,005 (20.77 GB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:*** Backup Error *** so it seems there are errors due to the name of some files, but the backup seems ok (FD/SD termination are ok and it is listed ok in the terminated jobs). Could it be that the problem? I ran the job manually and it shows me only problems about the file names. I guess bacula is still backuping files skipping those that cannot be inserted in the catalog, right? One guess I have is that you missed a unit on your time settings and have tapes with a retention time of 30 seconds rather than 30 days or something like that. Just a guess. As you can see though, upgrading to a full is definitely the right thing for Bacula to do. No, in the pool I've got: Volume Retention = 365 days that should be right Thanks, Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Insufficient system resources Query
Hi all, I got this error from a backup job: 26-Jul 23:16 tcssrv01-fd: TCSsrv01MailThursday.2007-07-26_19.00.03 Error: Read error on file e:/Backup/Exchange/EXCHANGE.BKF. ERR=Insufficient system resources exist to complete the requested service. 26-Jul 23:16 tcssrv02-dir: Max Volume jobs exceeded. Marking Volume TCSsrv01MailThursday as Used. 26-Jul 23:16 tcssrv02-dir: Bacula 1.38.4 (14Jan06): 26-Jul-2007 23:16:36 JobId: 1465 Job:TCSsrv01MailThursday.2007-07-26_19.00.03 Backup Level: Full Client: tcssrv01-fd Windows Server 2003,MVS,NT 5.2.3790 FileSet:TCSsrv01MailSet 2007-07-06 22:11:32 Pool: TCSsrv01ThursdayMail Storage:FileTCSsrv01MailThursdayStorage Scheduled time: 26-Jul-2007 19:00:02 Start time: 26-Jul-2007 22:25:02 End time: 26-Jul-2007 23:16:36 Priority: 10 FD Files Written: 2 SD Files Written: 2 FD Bytes Written: 11,170,942,969 SD Bytes Written: 11,170,943,242 Rate: 3610.5 KB/s Software Compression: 36.8 % Volume name(s): TCSsrv01MailThursday Volume Session Id: 24 Volume Session Time:1184914160 Last Volume Bytes: 11,180,420,127 Non-fatal FD errors:2 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:Backup OK -- with warnings Would this be a networking error or a system resources issue on my Bacula server (2.6.17-1.2142_FC4)? PS: I saw it today for the second time. It only started last week. Estimate says: Connecting to Client tcssrv01-fd at 192.168.1.1:9102 2000 OK estimate files=2 bytes=31,145,645,056 Previous day's statistics: 25-Jul 23:35 tcssrv02-dir: Max Volume jobs exceeded. Marking Volume TCSsrv01MailWednesday as Used. 25-Jul 23:35 tcssrv02-dir: Bacula 1.38.4 (14Jan06): 25-Jul-2007 23:35:51 JobId: 1460 Job:TCSsrv01MailWednesday.2007-07-25_19.00.03 Backup Level: Full Client: tcssrv01-fd Windows Server 2003,MVS,NT 5.2.3790 FileSet:TCSsrv01MailSet 2007-07-06 22:11:32 Pool: TCSsrv01WednesdayMail Storage:FileTCSsrv01MailWednesdayStorage Scheduled time: 25-Jul-2007 19:00:02 Start time: 25-Jul-2007 22:26:31 End time: 25-Jul-2007 23:35:51 Priority: 10 FD Files Written: 2 SD Files Written: 2 FD Bytes Written: 20,301,493,175 SD Bytes Written: 20,301,493,448 Rate: 4880.2 KB/s Software Compression: 34.8 % Volume name(s): TCSsrv01MailWednesday Volume Session Id: 19 Volume Session Time:1184914160 Last Volume Bytes: 20,318,535,367 Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:Backup OK Any help would be appreciated. Yours sincerely Stephan Heine Support Engineer Genetic Interactive Tel: +27 861 99 88 99 Fax: +27 861 99 77 99 Cell: +27 82 467 1164 EMail: [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] backing up MySQL databases
What is the best way to backup MySQL databases? I've got a few web servers that i'd like to backup, which rely heavily on MySQL for offering dynamic content. Should i just backup the /var/lib/mysql/* directly? Does that mean i have to shutdown the MySQL process during the backup? (which means the web server will be unable to offer content, web sites die) Any help would be appreciated - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backing up MySQL databases
On Monday 30 July 2007 Dimitrios's cat, walking on the keyboard, wrote: What is the best way to backup MySQL databases? I've got a few web servers that i'd like to backup, which rely heavily on MySQL for offering dynamic content. Should i just backup the /var/lib/mysql/* directly? Does that mean i have to shutdown the MySQL process during the backup? (which means the web server will be unable to offer content, web sites die) Any help would be appreciated I'm not sure this is related to bacula. MySQL provides a tool, called mysqldump, that can be used to dump the data of a database and to rebuild it. I guess this is what you are looking for, even if there are other strategies (PITR, ...). Luca - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backing up MySQL databases
Hi, What is the best way to backup MySQL databases? I've got a few web servers that i'd like to backup, which rely heavily on MySQL for offering dynamic content. Should i just backup the /var/lib/mysql/* directly? Does that mean i have to shutdown the MySQL process during the backup? (which means the web server will be unable to offer content, web sites die) You can look this : http://wiki.bacula.org/doku.php?id=application_specific_backups#mysql It depends on your mysql backend (innodb, myisam etc...) and the DB size, but i think, you will have a downtime during your backup. If you want have a consistent backup, mysqldump must use --lock-all-tables, so no other (UPDATE and maybe SELECT) operation will be permited during the dump. Bye - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backing up MySQL databases
On Mon, 30 Jul 2007 09:08:16 +0200 Luca Ferrari [EMAIL PROTECTED] wrote: I'm not sure this is related to bacula. MySQL provides a tool, called mysqldump, that can be used to dump the data of a database and to rebuild it. I guess this is what you are looking for, even if there are other strategies (PITR, ...). I'm already using mysqldump to create archives of my database, but i don't see how Bacula can execute mysqldump during its backup process. I'll search the docs to see if there is support for such a thing. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore errors
Hello, In my case spooling brought a remarkable improvement. Where as I had hundreds of errors on one restore I hardly see them now again with spooling in place. Doytchin, I also saw the same behavior like you did. With the concurrent jobs = 1, there were no errors. In this case no matter with or without spooling. Unfortunately setting the concurrent jobs = 1 is not an option in our environment. So my current setting is spooling = on and concurrent jobs = 5. With this settings, it looks like that the Linux systems (OpenSuse and red hat) are ok but Solaris still has problems. For example below is a restore I did on Friday. Of course I don't mind about the door files. But the difference between expected and restored files is ways to much. And even worse, I have no idea what happened to the missing files. I don't know if this has to do something with the restore errors we saw. This could also be something different. During the weekend I moved bacula to a new and separate server. It runs on OpenSuse 10.2 with the latest patches in place now. The few restore jobs I've done so far with this went ok. All in all I still don't feel very comfortable with this, it needs more tests to be done. I will continue with testing and keep you updated. Wolfgang 27-Jul 11:07 porsche-dir: Start Restore Job RestoreFiles.2007-07-27_11.07.03 27-Jul 11:07 porsche-sd: Ready to read from volume full-27-7-2007.20 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:07 porsche-sd: Forward spacing Volume full-27-7-2007.20 to file:block 0:3999802558. 27-Jul 11:08 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.20 27-Jul 11:08 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.20 27-Jul 11:08 porsche-sd: Ready to read from volume full-27-7-2007.21 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:08 porsche-sd: Forward spacing Volume full-27-7-2007.21 to file:block 0:200. 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/dev/.zone_reg_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/dev/.devfsadm_synch_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/devfsadm_event_channel/reg_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/devfsadm_event_channel/1: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/syseventconfd_event_channel/reg_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/sysevent_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/piclevent_door: ERR=Invalid argument 27-Jul 11:15 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.21 27-Jul 11:15 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.21 27-Jul 11:15 porsche-sd: Ready to read from volume full-27-7-2007.22 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:15 porsche-sd: Forward spacing Volume full-27-7-2007.22 to file:block 0:200. 27-Jul 11:21 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.22 27-Jul 11:21 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.22 27-Jul 11:21 porsche-sd: Ready to read from volume full-27-7-2007.23 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:21 porsche-sd: Forward spacing Volume full-27-7-2007.23 to file:block 0:200. 27-Jul 11:28 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.23 27-Jul 11:28 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.23 27-Jul 11:28 porsche-sd: End of all volumes. 27-Jul 11:28 porsche-dir: RestoreFiles.2007-07-27_11.07.03 Error: Bacula 2.0.3 (06Mar07): 27-Jul-2007 11:28:34 JobId: 40 Job:RestoreFiles.2007-07-27_11.07.03 Client: prinz-fd Start time: 27-Jul-2007 11:07:05 End time: 27-Jul-2007 11:28:34 Files Expected: 303,761 Files Restored: 301,923 Bytes Restored: 27,412,500,483 Rate: 21266.5 KB/s FD Errors: 7 FD termination status: Error SD termination status: OK Termination:*** Restore Error *** 27-Jul 11:28 porsche-dir: Begin pruning Jobs. 27-Jul 11:28
Re: [Bacula-users] Restore errors
Hi Mair, did you tried with a dbcheck ? (dbcheck -c /path/to/bacula-dir.conf ; Toggle modify database flag ; 16) All (3-15)) I had also a huge difference between files expected and files restored, but the operation above fixed that ... Regards, Julien On Mon, 2007-07-30 at 09:03 +0100, Mair Wolfgang-awm013 wrote: Hello, In my case spooling brought a remarkable improvement. Where as I had hundreds of errors on one restore I hardly see them now again with spooling in place. Doytchin, I also saw the same behavior like you did. With the concurrent jobs = 1, there were no errors. In this case no matter with or without spooling. Unfortunately setting the concurrent jobs = 1 is not an option in our environment. So my current setting is spooling = on and concurrent jobs = 5. With this settings, it looks like that the Linux systems (OpenSuse and red hat) are ok but Solaris still has problems. For example below is a restore I did on Friday. Of course I don't mind about the door files. But the difference between expected and restored files is ways to much. And even worse, I have no idea what happened to the missing files. I don't know if this has to do something with the restore errors we saw. This could also be something different. During the weekend I moved bacula to a new and separate server. It runs on OpenSuse 10.2 with the latest patches in place now. The few restore jobs I've done so far with this went ok. All in all I still don't feel very comfortable with this, it needs more tests to be done. I will continue with testing and keep you updated. Wolfgang 27-Jul 11:07 porsche-dir: Start Restore Job RestoreFiles.2007-07-27_11.07.03 27-Jul 11:07 porsche-sd: Ready to read from volume full-27-7-2007.20 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:07 porsche-sd: Forward spacing Volume full-27-7-2007.20 to file:block 0:3999802558. 27-Jul 11:08 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.20 27-Jul 11:08 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.20 27-Jul 11:08 porsche-sd: Ready to read from volume full-27-7-2007.21 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:08 porsche-sd: Forward spacing Volume full-27-7-2007.21 to file:block 0:200. 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/dev/.zone_reg_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/dev/.devfsadm_synch_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/devfsadm_event_channel/reg_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/devfsadm_event_channel/1: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/syseventconfd_event_channel/reg_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/sysevent_door: ERR=Invalid argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make node /export/xxx/etc/sysevent/piclevent_door: ERR=Invalid argument 27-Jul 11:15 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.21 27-Jul 11:15 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.21 27-Jul 11:15 porsche-sd: Ready to read from volume full-27-7-2007.22 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:15 porsche-sd: Forward spacing Volume full-27-7-2007.22 to file:block 0:200. 27-Jul 11:21 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.22 27-Jul 11:21 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.22 27-Jul 11:21 porsche-sd: Ready to read from volume full-27-7-2007.23 on device FileStorageFull (/export/bacula-dump). 27-Jul 11:21 porsche-sd: Forward spacing Volume full-27-7-2007.23 to file:block 0:200. 27-Jul 11:28 porsche-sd: End of file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.23 27-Jul 11:28 porsche-sd: End of Volume at file 1 on device FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.23 27-Jul 11:28 porsche-sd: End of all volumes. 27-Jul 11:28 porsche-dir: RestoreFiles.2007-07-27_11.07.03 Error: Bacula 2.0.3 (06Mar07): 27-Jul-2007 11:28:34 JobId: 40 Job:RestoreFiles.2007-07-27_11.07.03 Client: prinz-fd Start time:
[Bacula-users] Config problem with IBM TS3200
Hi all, I have an autochanger (IBM TS3200) and have some problems to set up them with bacula. The robot appears to be /dev/sg4, and it show me that i have 2 drives, 4 magazines and some IBM labels: [EMAIL PROTECTED] /usr/local/bacula-2.0.3/etc # mtx -f /dev/sg4 status Storage Changer /dev/sg4:2 Drives, 47 Slots ( 3 Import/Export ) Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = 456KKKL3 Data Transfer Element 1:Full (Storage Element 1 Loaded):VolumeTag = 455KKKL3 Storage Element 1:Empty Storage Element 2:Empty Storage Element 3:Full :VolumeTag=457KKKL3 Storage Element 4:Full :VolumeTag=172NNNL3 I have the first drive represented by /dev/nst0(/dev/st0 too). The second drive must be represented by /dev/nst1??? The ls of the devices only show me this: [EMAIL PROTECTED] /usr/local/bacula-2.0.3/etc # ls /dev/nst* -la crw-rw 1 root tape 9, 128 2007-07-30 10:21 /dev/nst0 crw-rw 1 root tape 9, 224 2007-07-30 10:21 /dev/nst0a crw-rw 1 root tape 9, 160 2007-07-30 10:21 /dev/nst0l crw-rw 1 root tape 9, 192 2007-07-30 10:21 /dev/nst0m - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Director refuse connection
OS-Fedora core6 bacula version:2.0.3 when I try starting connection with director(./bconsole) it prodiuces given below error 30-Jul 14:11 bconsole: Fatal error: bnet.c:870 Unable to connect to Director daemon on localhost:9101. ERR=Connection refused -- regards , Tanveer Haider Baig - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Insufficient system resources Query
Stephan Heine [ Genetic Interactive ] wrote: Hi all, I got this error from a backup job: 26-Jul 23:16 tcssrv01-fd: TCSsrv01MailThursday.2007-07-26_19.00.03 Error: Read error on file e:/Backup/Exchange/EXCHANGE.BKF. ERR=Insufficient system resources exist to complete the requested service. (I should warn you that I'm no Windows expert, but I'll take a guess.) Since that's the exchange database, I'm guessing that you've got VSS enabled. (If not, try turning it on!) If it works like the other snapshot systems I've played with, snapshot creation requires allocating a certain amount of diskspace to handle writes to the targeted volume while the snapshot exists. Given the error message, I'd check to make sure you've got plenty of free disk space on your e: drive. -- 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 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Web configuration tool and autoconfiguration of clients
Hello We have made a web tool to allow admins to configure bacula without having to edit a text file. For now, it is integrated in the server-manager panel of SME distribution, but we will make it stand-alone as soon as possible (and as soon as we will be ok with it - it is still in development). Now, what we would like to do to make the work of admins even easier is to make a tool on the client-side of bacula, which would do an automatic integration of the client. Here is the concept : The user chooses what directories and files he wants to be backed up, and what directories and files he does NOT want to be backed up (definition of the FileSet). Then, he chooses when he wants the backup to happen (definition of the schedule). Then, he asks the server (on which the director is installed) to give him a password, and to create a restricted console and to send him the password. Then, it would use our auto-configuration tool to add himself as a client with his schedule and fileset to the configuration of bacula, and to create an appropriate Job. The details still have to be discussed (how do we know who is the director : do we provide its address, or do we do a broadcast to discover the director present on the network ? - How do we ensure secrecy when we are being provided a password ?). If you are interested in this project, please contact us. Jerome MASSANO ASPerience - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Director refuse connection
On 7/30/07, tanveer haider [EMAIL PROTECTED] wrote: OS-Fedora core6 bacula version:2.0.3 when I try starting connection with director(./bconsole) it prodiuces given below error 30-Jul 14:11 bconsole: Fatal error: bnet.c:870 Unable to connect to Director daemon on localhost:9101. ERR=Connection refused Could be several reasons. Possibly the director is not running. ps -ef | grep bacula should tell you if the director is running. Possibly you have the wrong ipaddress (localhost or 127.0.0.1) in your configs. Do not use localhost or 127.0.0.1 in any bacula config if you expect to connect to bacula from a second machine. Possibly you don't have the same password in the config files... John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Config problem with IBM TS3200
I have an autochanger (IBM TS3200) and have some problems to set up them with bacula. The robot appears to be /dev/sg4, and it show me that i have 2 drives, 4 magazines and some IBM labels: [EMAIL PROTECTED] /usr/local/bacula-2.0.3/etc # mtx -f /dev/sg4 status Storage Changer /dev/sg4:2 Drives, 47 Slots ( 3 Import/Export ) Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = 456KKKL3 Data Transfer Element 1:Full (Storage Element 1 Loaded):VolumeTag = 455KKKL3 Storage Element 1:Empty Storage Element 2:Empty Storage Element 3:Full :VolumeTag=457KKKL3 Storage Element 4:Full :VolumeTag=172NNNL3 I have the first drive represented by /dev/nst0(/dev/st0 too). The second drive must be represented by /dev/nst1??? The ls of the devices only show me this: [EMAIL PROTECTED] /usr/local/bacula-2.0.3/etc # ls /dev/nst* -la crw-rw 1 root tape 9, 128 2007-07-30 10:21 /dev/nst0 crw-rw 1 root tape 9, 224 2007-07-30 10:21 /dev/nst0a crw-rw 1 root tape 9, 160 2007-07-30 10:21 /dev/nst0l crw-rw 1 root tape 9, 192 2007-07-30 10:21 /dev/nst0m This is more of an os or hardware issue than a bacula issue but maybe we can help. What os are you running? Have you checked your cabling as my Exabyte changer has external scsi connection between drives with an additional internal links between the changer and both of my drives so if the scsi cable to the second drive was disconnected I bet it would still show up in the changer config. One way to test if you can see both drives on the scsi bus is to use tapeinfo on all /dev/sg nodes and make sure that 2 of them show up as tape drives. If this is so perhaps modprobe -r st then modprobe st will fix the problem. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Config problem with IBM TS3200
John Drescher escribió: I have an autochanger (IBM TS3200) and have some problems to set up them with bacula. The robot appears to be /dev/sg4, and it show me that i have 2 drives, 4 magazines and some IBM labels: [EMAIL PROTECTED] /usr/local/bacula-2.0.3/etc # mtx -f /dev/sg4 status Storage Changer /dev/sg4:2 Drives, 47 Slots ( 3 Import/Export ) Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = 456KKKL3 Data Transfer Element 1:Full (Storage Element 1 Loaded):VolumeTag = 455KKKL3 Storage Element 1:Empty Storage Element 2:Empty Storage Element 3:Full :VolumeTag=457KKKL3 Storage Element 4:Full :VolumeTag=172NNNL3 I have the first drive represented by /dev/nst0(/dev/st0 too). The second drive must be represented by /dev/nst1??? The ls of the devices only show me this: [EMAIL PROTECTED] /usr/local/bacula-2.0.3/etc # ls /dev/nst* -la crw-rw 1 root tape 9, 128 2007-07-30 10:21 /dev/nst0 crw-rw 1 root tape 9, 224 2007-07-30 10:21 /dev/nst0a crw-rw 1 root tape 9, 160 2007-07-30 10:21 /dev/nst0l crw-rw 1 root tape 9, 192 2007-07-30 10:21 /dev/nst0m This is more of an os or hardware issue than a bacula issue but maybe we can help. What os are you running? Have you checked your cabling as my Exabyte changer has external scsi connection between drives with an additional internal links between the changer and both of my drives so if the scsi cable to the second drive was disconnected I bet it would still show up in the changer config. One way to test if you can see both drives on the scsi bus is to use tapeinfo on all /dev/sg nodes and make sure that 2 of them show up as tape drives. If this is so perhaps modprobe -r st then modprobe st will fix the problem. John __ Información de NOD32, revisión 2428 (20070730) __ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com Im Running debian with a 2.6.18 kernel. The IBM library was running perfectly with a windows server, so i don't think that the problem it's hardware error. I don't have to check the scsi connections beacause this library only works on fibre channel. Have you an library tape with at least 2 drives? could you show me your bacula-sd.conf? Thx in advance. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backing up MySQL databases
On Mon, 30 Jul 2007, Dimitrios wrote: I'm already using mysqldump to create archives of my database, but i don't see how Bacula can execute mysqldump during its backup process. I'll search the docs to see if there is support for such a thing. Reverse your thinking - let your mysqldump process execute bacula. I'm running two MySQL servers, one slaved to the other. I take my backups from the slave, which is rarely more than 60 seconds behind the master. I've got a cron job that calls a script that does the following: 1) Checks if this is an odd or even week. I only want backups every two weeks 2) Deletes the backup on disk from 4 weeks ago and moves the backup from two weeks ago to 'backup.old' 3) Stops the slave process 4) Locks the tables 5) Using mysqldump, dumps all tables from all databases to a known backup folder, '/data/staging/mysql_backup', gzipping them along the way 6) Restarts the slave process 7) Calls bacula to run the backup job 'backup_database', which has '/data/staging/mysql_backup' as its Fileset: /etc/bacula/bconsole -c /etc/bacula/bconsole.conf END_OF_DATA run job=backup_database yes END_OF_DATA In the end, I have a copy of the databases on tape and two copies on a RAID device separate from where the database resides. -- D, who sometimes wears both a belt and suspenders - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore errors
Hello, unfortunately spooling didn't helped here, so may you just had a chance not getting errors in your case? A rule is that if it hapens once that means it could happen more. And here is what we've got in one of our tests: --- enabled spooling (Maximum Job Spool Size = 500m) performed the same and AGAIN the first job I tested to restore ~44K files are missing: Files Expected: 348,120 Files Restored: 304,654 Another restore jobs is similar: Files Expected: 190,741 Files Restored: 154,016 The case is slightly different as this time there is NO other errors generated (like file with wrong size or the Record header file index not equal). --- As it shows spooling doesn't solve the problem of concurrent jobs. Regards. Monday, July 30, 2007, 11:03:56 AM: MWa Hello, MWa In my case spooling brought a remarkable improvement. Where as I had MWa hundreds of errors on one restore I hardly see them now again with MWa spooling in place. MWa Doytchin, MWa I also saw the same behavior like you did. With the concurrent jobs = 1, MWa there were no errors. In this case no matter with or without spooling. MWa Unfortunately setting the concurrent jobs = 1 is not an option in our MWa environment. So my current setting is spooling = on and concurrent jobs MWa = 5. MWa With this settings, it looks like that the Linux systems (OpenSuse and MWa red hat) are ok but Solaris still has problems. MWa For example below is a restore I did on Friday. Of course I don't mind MWa about the door files. But the difference between expected and restored MWa files is ways to much. And even worse, I have no idea what happened to MWa the missing files. I don't know if this has to do something with the MWa restore errors we saw. This could also be something different. MWa During the weekend I moved bacula to a new and separate server. It runs MWa on OpenSuse 10.2 with the latest patches in place now. The few restore MWa jobs I've done so far with this went ok. MWa All in all I still don't feel very comfortable with this, it needs more MWa tests to be done. I will continue with testing and keep you updated. MWa Wolfgang MWa 27-Jul 11:07 porsche-dir: Start Restore Job MWa RestoreFiles.2007-07-27_11.07.03 27-Jul 11:07 porsche-sd: Ready to read MWa from volume full-27-7-2007.20 on device FileStorageFull MWa (/export/bacula-dump). MWa 27-Jul 11:07 porsche-sd: Forward spacing Volume full-27-7-2007.20 to MWa file:block 0:3999802558. MWa 27-Jul 11:08 porsche-sd: End of file 1 on device FileStorageFull MWa (/export/bacula-dump), Volume full-27-7-2007.20 MWa 27-Jul 11:08 porsche-sd: End of Volume at file 1 on device MWa FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.20 MWa 27-Jul 11:08 porsche-sd: Ready to read from volume full-27-7-2007.21 MWa on device FileStorageFull (/export/bacula-dump). MWa 27-Jul 11:08 porsche-sd: Forward spacing Volume full-27-7-2007.21 to MWa file:block 0:200. MWa 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node /export/xxx/dev/.zone_reg_door: MWa ERR=Invalid argument 27-Jul 11:33 prinz-fd: MWa RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make MWa node /export/xxx/dev/.devfsadm_synch_door: ERR=Invalid argument 27-Jul MWa 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/devfsadm_event_channel/reg_door: ERR=Invalid MWa argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/devfsadm_event_channel/1: ERR=Invalid argument MWa 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/syseventconfd_event_channel/reg_door: MWa ERR=Invalid argument 27-Jul 11:33 prinz-fd: MWa RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make MWa node /export/xxx/etc/sysevent/sysevent_door: ERR=Invalid argument 27-Jul MWa 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/piclevent_door: ERR=Invalid argument 27-Jul MWa 11:15 porsche-sd: End of file 1 on device FileStorageFull MWa (/export/bacula-dump), Volume full-27-7-2007.21 MWa 27-Jul 11:15 porsche-sd: End of Volume at file 1 on device MWa FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.21 MWa 27-Jul 11:15 porsche-sd: Ready to read from volume full-27-7-2007.22 MWa on device FileStorageFull (/export/bacula-dump). MWa 27-Jul 11:15 porsche-sd: Forward spacing Volume full-27-7-2007.22 to MWa file:block 0:200. MWa 27-Jul 11:21 porsche-sd: End of file 1 on device FileStorageFull MWa (/export/bacula-dump), Volume full-27-7-2007.22 MWa 27-Jul 11:21 porsche-sd: End of Volume at file 1 on device MWa FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.22 MWa 27-Jul 11:21 porsche-sd: Ready to read from volume full-27-7-2007.23
[Bacula-users] One more beta
On Thursday 19 July 2007 16:25, Ryan Novosielski wrote: Kern Sibbald wrote: On Wednesday 18 July 2007 11:54, Adam Cécile wrote: Kern Sibbald a écrit : Hello, Since Beta 2.1.26 Eric and I have made a few changes and fixed a few bugs in Bacula and Dirk has made a few updates to bat, so I am thinking of making a new beta release today or tomorrow. I will wait to get some feedback from Eric concerning a problem Bill Moran has found in regression testing with regexwhere before cutting this beta. If anyone thinks there is any other critical item to implement/fix before the final release, now is the time to speak up. Best regards, Kern - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users Hi, I have some issues with a two drive autochanger and concurrent jobs. It works fine until two drive got tape from different pool. Let's assume there's one tape in drive0, pool weekly; one tape in drive1, pool daily; one job running on each tapes. If a new daily job is run, bacula will try to run it on drive0 and then fails because the drive is in use. Is this bug supposed to be fixed in 2.2 ? This problem is fixed in the current 2.1.26 beta version. If you want to be sure, I recommend that you test it. For what platforms is 'bat' available? Should it build from source on any UNIX OS? Which have been tested? I can test on HP-UX, IRIX and Solaris. I imagine Linux is covered. I do not have tape drives available on anything but Solaris though. Small update to what I previously answered. Just for grins, I recently loaded a Fedora 7 from a LiveCD on my laptop (installing from a LiveCD is rather cool). They seem to have made a lot of progress since FC5, which was a disaster for me, but they still don't check all of their rpms very well. For example, they apparently have Qt4 and the Qt4 development libraries available, at least you can download an rpm and install it. However, their silly qt4-devel package doesn't contain any binaries, headers, or libaries -- really cool Fedora :-( Well aside from that the system runs really well -- oh there is one small non-Fedora problem -- the KDE Kmail IMAP and SMTP dialogs are too big to fit on my screen and cannot be resized, which means that you need to know how to use the OK button accelerator or you cannot answer OK. So thanks to Fedora, I have separated the qwt code out of the current depkgs package and created a new depkgs-qt that has both Qt4 (4.3) and the qwt package (Graphics library). This means that as long as you have a reasonably recent GNU g++ compiler and tools (make, ...) on your machine, you will be able to build bat. Regards, Kern -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Bacula-devel-fr mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bacula-devel-fr - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula Status + professional services initiative
On 2007.07.16. 19:40, Kern Sibbald wrote: Hello, ... 4. In the near future the Bacula project will no longer be providing binaries. They will be available for free to individuals, contributors, and charitable organizations through the professional web site. i hope i haven't missed an answer to my question as i am looking through several hundreds of messages on this list. would binary packages provided by contributors be discouraged within the project ? i would hope not, but would like to know for sure :) ... -- Rich - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] VSS restores
you can only restore on a windows OS compatible with version that has been backed up some interesting things are here and around for VSS: http://msdn2.microsoft.com/en-us/library/aa384593.aspx Jean-Sébastien Hederer - Gérant ASPerience Conseil, intégration, hébergement de systèmes informatiques spécialisé en solutions logiciel libre de gestion d'entreprise Mob.: 06 69 56 21 49 Tél.: 02 51 13 50 94 Fax.: 02 40 68 70 06 XMPP/Jabber: [EMAIL PROTECTED] http://www.asperience.fr Dan Langille a écrit le 29/07/2007 22:10 : I've seen how to backup using VSS. Is there anything special to doing a VSS restore? Indeed, is there such an animal? In short, if you've done a backup using VSS, is there anything special involved in restoring that backup? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Recycling volumes
Hi all!!Lately I'm having problems with extra volumes created in a pool. I have a pool for each computer with 5 volumes for each pool (one for day). This is my pool's resource: Pool {Name = UserPoolPool Type = BackupRecycle = yesAutoPrune = yesVolume Retention = 162hMaximum Volume Jobs = 1Maximum Volumes = 5Label Format = User-With my configuration I try to perform a backup of each computer from Monday to Friday in the way each day and each computer uses its own pool and only one volume a day until complete 5 volumes in a week so the next week bacula can recycle the oldest volume which has the volume retention expired.The problem is that one computer creates extra volumes in its pool because the size of the volume which has to be recycle is greater than 1G. As I understand, when a job starts running, bacula performs internal operations to find the next volume to use. If recycle flag is set and the volume retention is expired, bacula has to recycle the volume and use it again to save the new backup. But, somehow, when the volume is greater than 1G, bacula has no time to recycle the volume so tries to create a new one.I want to avoid it because of the risk of filling the hard disk. With Maximum Volumes = 5 appears a message:Intervention needed for...17-Jul 14:20 i8-sd: Job is waiting. Cannot find any appendable volumes.Please use the label command to create a new Volume for:Storage: FileStorageMedia type: FilePool: PoolI use the console and realized that the pool has one volume recycled, but maybe bacula has no time to reuse the volume and the job remains blocking the next jobs until I use the label command or cancel the job to run it manuallyIt seems like when the Bacula looks for an appendable or recycled volume, the process that recycles the volumes are still working so any volume has been marked as Recycle. But this problem only occurs when the volume is greater than 1G.Do you know any way of recycling automaticly before a job starts running?How can I avoid the extra volumes creation without needing to use the label or cancel command to run the job?I hope you can help meThanks Encuentra tu tv, video, dvd, - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Run bconsole automatically
Hi all!!I realized that if I want to recycle volumes greater than 1G I have to run bconsole with a command that performs a communication between director and fdI want to know if there's a way to perform this automaticallyThanks Encuentra tu tv, video, dvd, - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bat
Hello Jerome I'm developing on gentoo and my qt4 include files are located in /usr/include/qt4. Is that where your compiles qt includes were installed?? On Wed, 2007-07-25 at 14:01 +0200, Jerome Massano wrote: Hello I am trying to build my own bacula rpms (to include some home-made changes). In this RPM, I have to include BAT (what a nice tool, great work Kern and devs ^^), so I need to install Qt 4.2 or better. My distribution has no package for this RPM, so I installed it with the sources. My problem is that the configure tool does not find Qt. Can you copy and paste the configure output of where it is failing. I have --enable-bat \ --enable-qwt=/usr \ in my configure script. There is no qt option but there is a requirement of qwt which is an additional requirement of a relatively small graphing library. Is ./configure failing to find qwt?? or qt?? I read the configure script, it seems to use pkg-config. What can I do to make configure to find Qt where it is installed. There does not seem to be a --with-qt=$QT_DIRECTORY option in configure. Kern is responsible for the ./configure script. I know there is someone already creating rpm spec files. Are you using that spec file modified?? Are you aware that bat and the most recent bacula that it will work with has not yet been released officially for production use?? Dirk Thank you in advance. PS : I know my english is really bad. If you do not understand my question, please tell me, I will try to explain better. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] SUSPECT: Setting up a Dell PV 132T
Mike, Try: mtx -f /dev/sg0 status or mtx -f /dev/sg0 inventory Best regards, John John W. Matthews, D.Sc. Image-guided Therapy QA Center Department of Radiation Oncology Washington University School of Medicine 314-747-5413 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Vasquez Sent: Thursday, July 26, 2007 10:49 AM To: bacula-users@lists.sourceforge.net Subject: SUSPECT: [Bacula-users] Setting up a Dell PV 132T I am trying to migrate my bacula system to a newer machine. I have installed bacula with mysql with no problems. I installed a Dell PV 132 T to this machine and ran cat /proc/scsi/scsi and got the following results: Attached devices: Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: PE/PVModel: 1x6 SCSI BP Rev: 1.0 Type: ProcessorANSI SCSI revision: 02 Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: MegaRAID Model: LD 0 RAID1 279G Rev: 521X Type: Direct-AccessANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 06 Lun: 00 Vendor: IBM Model: ULTRIUM-TD2 Rev: 333K Type: Sequential-AccessANSI SCSI revision: 03 Then when I run the command mtx -f /dev/sg2 inquiry, I get the following results: mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=0 (Unknown?!) mtx: Request Sense: Sense Key=No Sense mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 00 mtx: Request Sense: Additional Sense Qualifier = 00 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no INQUIRY Command Failed Would anyone know the cause of this error? I have the device set at the factory default settings except I have turned off the scanner, since I don't have any barcodes. TIA Mike -- View this message in context: http://www.nabble.com/Setting-up-a-Dell-PV-132T-tf4152467.html#a11813266 Sent from the Bacula - Users mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] a small setup issue.
Hello, I need a tiny bit of guidance and I was hoping you could help me out. I've included all of the appropriate, requested information below. * Your operating system - Ubuntu 7.04 server, kernel version 2.6.20-16-server #2 SMP * The version of Bacula you are using - 1.38.11-7ubuntu6 * A clear and concise http://www.chiark.greenend.org.uk/%7Esgtatham/bugs.html description of the problem I can run btape -c /etc/bacula/bacula-sd.conf and the test runs perfect. I can make a backup and read the files off of the tape using tar cvf /dev/nst0 . without issue as well so, I know that the tape works and that it works through the bacula-sd.conf file. The problem is when I try to run bconsole. I get an error saying that it cannot communicate with the storage device. I have gone through the bacula-dir.conf backwards and forwards and I can't see any thing wrong with it. I believe the Storage device is defined properly and called out in the two places in the file correctly as well. * The kind of tape drive you have - Sony SDT-11000/PB DDS-4 * Have you run the *btape* test command? - yes, and it ran perfectly * The database you are using: MySQL, PostgreSQL, SQLite, SQLite3 - We are running PostgreSQL ver. 8.1.8-1ubuntu3 I can start the tray monitor as well and it works fine and reports that the Device DDS-4 (/dev/nst0) open but no Bacula volume is mounted so, I am assuming that my bacula-sd.conf file is correct. My assumption is that I have an issue with the bacula-dir.conf file but, I can't find it. I have poured over the file for the last day and 1/2 yet nothing is jumping out at me. I was hoping you could take a look and see where I have errored. I've attached my bacula-dir.conf, bacula-sd.conf and bacula-fd.conf files for your review as well. Any help would be greatly appreciated. Thanks, Mike -- LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. # # Default Bacula Director Configuration file # # The only thing that MUST be changed is to add one or more # file or directory names in the Include directive of the # FileSet resource. # # For Bacula release 1.38.11 (28 June 2006) -- debian 4.0 # # You might also want to change the default email address # from root to your address. See the mail and operator # directives in the Messages resource. # Director {# define myself Name = marauder02-dir DIRport = 9101# where we listen for UA connections QueryFile = /etc/bacula/scripts/query.sql WorkingDirectory = /var/lib/bacula PidDirectory = /var/run/bacula Maximum Concurrent Jobs = 1 Password = Cv70F6pf1t6pBopT4vQOnigDrR0v3L # Console password Messages = Daemon DirAddress = 127.0.0.1 } JobDefs { Name = DefaultJob Type = Backup Level = Incremental Client = marauder02-fd FileSet = Full Set Schedule = WeeklyCycle # Storage = File Storage = DDS-4 Messages = Standard Pool = Default Priority = 10 } # # Define the main nightly save backup job # By default, this job will back up to disk in /tmp Job { Name = Client1 JobDefs = DefaultJob Write Bootstrap = /var/lib/bacula/Client1.bsr } #Job { # Name = Client2 # Client = marauder022-fd # JobDefs = DefaultJob # Write Bootstrap = /var/lib/bacula/Client2.bsr #} # Backup the catalog database (after the nightly save) Job { Name = BackupCatalog JobDefs = DefaultJob Level = Full FileSet=Catalog Schedule = WeeklyCycleAfterBackup # This creates an ASCII copy of the catalog RunBeforeJob = /etc/bacula/scripts/make_catalog_backup dbname user password # This deletes the copy of the catalog RunAfterJob = /etc/bacula/scripts/delete_catalog_backup Write Bootstrap = /var/lib/bacula/BackupCatalog.bsr Priority = 11 # run after main backup } # # Standard Restore template, to be changed by Console program # Only one such job is needed for all Jobs/Clients/Storage ... # Job { Name = RestoreFiles Type = Restore Client=marauder02-fd FileSet=Full Set # Storage = File Storage = DDS-4 Pool = Default Messages = Standard Where = /tmp/bacula-restores } # List of files to be backed up FileSet { Name = Full Set Include { Options { signature = MD5 } # # Put your list of files here, preceded by 'File =', one per line #or include an external list with: # #File = file-name # # Note: / backs up everything on the root partition. #if you
Re: [Bacula-users] a small setup issue.
I should also add that the error that I am getting from both bconsole and the gnome-bconsole is: 27-Jul 15:47 marauder02-dir: Client1.2007-07-27_15.47.40 Warning: bnet.c:853 Could not connect to Storage daemon on marauder02:9103. ERR=Connection refused Retrying ... Thanks! Mike Mike Michalik wrote: Hello, I need a tiny bit of guidance and I was hoping you could help me out. I've included all of the appropriate, requested information below. * Your operating system - Ubuntu 7.04 server, kernel version 2.6.20-16-server #2 SMP * The version of Bacula you are using - 1.38.11-7ubuntu6 * A clear and concise http://www.chiark.greenend.org.uk/%7Esgtatham/bugs.html description of the problem I can run btape -c /etc/bacula/bacula-sd.conf and the test runs perfect. I can make a backup and read the files off of the tape using tar cvf /dev/nst0 . without issue as well so, I know that the tape works and that it works through the bacula-sd.conf file. The problem is when I try to run bconsole. I get an error saying that it cannot communicate with the storage device. I have gone through the bacula-dir.conf backwards and forwards and I can't see any thing wrong with it. I believe the Storage device is defined properly and called out in the two places in the file correctly as well. * The kind of tape drive you have - Sony SDT-11000/PB DDS-4 * Have you run the *btape* test command? - yes, and it ran perfectly * The database you are using: MySQL, PostgreSQL, SQLite, SQLite3 - We are running PostgreSQL ver. 8.1.8-1ubuntu3 I can start the tray monitor as well and it works fine and reports that the Device DDS-4 (/dev/nst0) open but no Bacula volume is mounted so, I am assuming that my bacula-sd.conf file is correct. My assumption is that I have an issue with the bacula-dir.conf file but, I can't find it. I have poured over the file for the last day and 1/2 yet nothing is jumping out at me. I was hoping you could take a look and see where I have errored. I've attached my bacula-dir.conf, bacula-sd.conf and bacula-fd.conf files for your review as well. Any help would be greatly appreciated. Thanks, Mike -- LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. # # Default Bacula Director Configuration file # # The only thing that MUST be changed is to add one or more # file or directory names in the Include directive of the # FileSet resource. # # For Bacula release 1.38.11 (28 June 2006) -- debian 4.0 # # You might also want to change the default email address # from root to your address. See the mail and operator # directives in the Messages resource. # Director {# define myself Name = marauder02-dir DIRport = 9101# where we listen for UA connections QueryFile = /etc/bacula/scripts/query.sql WorkingDirectory = /var/lib/bacula PidDirectory = /var/run/bacula Maximum Concurrent Jobs = 1 Password = Cv70F6pf1t6pBopT4vQOnigDrR0v3L # Console password Messages = Daemon DirAddress = 127.0.0.1 } JobDefs { Name = DefaultJob Type = Backup Level = Incremental Client = marauder02-fd FileSet = Full Set Schedule = WeeklyCycle # Storage = File Storage = DDS-4 Messages = Standard Pool = Default Priority = 10 } # # Define the main nightly save backup job # By default, this job will back up to disk in /tmp Job { Name = Client1 JobDefs = DefaultJob Write Bootstrap = /var/lib/bacula/Client1.bsr } #Job { # Name = Client2 # Client = marauder022-fd # JobDefs = DefaultJob # Write Bootstrap = /var/lib/bacula/Client2.bsr #} # Backup the catalog database (after the nightly save) Job { Name = BackupCatalog JobDefs = DefaultJob Level = Full FileSet=Catalog Schedule = WeeklyCycleAfterBackup # This creates an ASCII copy of the catalog RunBeforeJob = /etc/bacula/scripts/make_catalog_backup dbname user password # This deletes the copy of the catalog RunAfterJob = /etc/bacula/scripts/delete_catalog_backup Write Bootstrap = /var/lib/bacula/BackupCatalog.bsr Priority = 11 # run after main backup } # # Standard Restore template, to be changed by Console program # Only one such job is needed for all Jobs/Clients/Storage ... # Job { Name = RestoreFiles Type = Restore Client=marauder02-fd FileSet=Full Set # Storage = File
Re: [Bacula-users] Config problem with IBM TS3200
Im Running debian with a 2.6.18 kernel. The IBM library was running perfectly with a windows server, so i don't think that the problem it's hardware error. I don't have to check the scsi connections beacause this library only works on fibre channel. Have you an library tape with at least 2 drives? could you show me your bacula-sd.conf? Thx in advance. Autochanger { Name = Magnum224-0 Device = LTO2-0, LTO2-1 Changer Command = /usr/libexec/bacula/mtx-changer %c %o %S %a %d # Changer Device = /dev/sg5 # 02/12/2007 added udev rule to link /dev/autochanger1 to the changer Changer Device = /dev/autochanger1 } Device { Name = LTO2-0 Media Type = LTO-2 Drive Index = 0 Archive Device = /dev/nst0 Autochanger=yes AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Spool Directory = /mnt/tmp/bacula/tape Maximum Job Spool Size = 2G LabelMedia = Yes Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' } Device { Name = LTO2-1 Media Type = LTO-2 Drive Index = 1 Archive Device = /dev/nst1 Autochanger=yes AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Spool Directory = /mnt/tmp/bacula/tape Maximum Job Spool Size = 2G LabelMedia = Yes Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat' } - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore errors
I think that this (serious) bug could be forwarded to -devel list ... as it seems no to be a configuration mistake ? On Mon, 2007-07-30 at 16:56 +0300, Doytchin Spiridonov wrote: Hello, unfortunately spooling didn't helped here, so may you just had a chance not getting errors in your case? A rule is that if it hapens once that means it could happen more. And here is what we've got in one of our tests: --- enabled spooling (Maximum Job Spool Size = 500m) performed the same and AGAIN the first job I tested to restore ~44K files are missing: Files Expected: 348,120 Files Restored: 304,654 Another restore jobs is similar: Files Expected: 190,741 Files Restored: 154,016 The case is slightly different as this time there is NO other errors generated (like file with wrong size or the Record header file index not equal). --- As it shows spooling doesn't solve the problem of concurrent jobs. Regards. Monday, July 30, 2007, 11:03:56 AM: MWa Hello, MWa In my case spooling brought a remarkable improvement. Where as I had MWa hundreds of errors on one restore I hardly see them now again with MWa spooling in place. MWa Doytchin, MWa I also saw the same behavior like you did. With the concurrent jobs = 1, MWa there were no errors. In this case no matter with or without spooling. MWa Unfortunately setting the concurrent jobs = 1 is not an option in our MWa environment. So my current setting is spooling = on and concurrent jobs MWa = 5. MWa With this settings, it looks like that the Linux systems (OpenSuse and MWa red hat) are ok but Solaris still has problems. MWa For example below is a restore I did on Friday. Of course I don't mind MWa about the door files. But the difference between expected and restored MWa files is ways to much. And even worse, I have no idea what happened to MWa the missing files. I don't know if this has to do something with the MWa restore errors we saw. This could also be something different. MWa During the weekend I moved bacula to a new and separate server. It runs MWa on OpenSuse 10.2 with the latest patches in place now. The few restore MWa jobs I've done so far with this went ok. MWa All in all I still don't feel very comfortable with this, it needs more MWa tests to be done. I will continue with testing and keep you updated. MWa Wolfgang MWa 27-Jul 11:07 porsche-dir: Start Restore Job MWa RestoreFiles.2007-07-27_11.07.03 27-Jul 11:07 porsche-sd: Ready to read MWa from volume full-27-7-2007.20 on device FileStorageFull MWa (/export/bacula-dump). MWa 27-Jul 11:07 porsche-sd: Forward spacing Volume full-27-7-2007.20 to MWa file:block 0:3999802558. MWa 27-Jul 11:08 porsche-sd: End of file 1 on device FileStorageFull MWa (/export/bacula-dump), Volume full-27-7-2007.20 MWa 27-Jul 11:08 porsche-sd: End of Volume at file 1 on device MWa FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.20 MWa 27-Jul 11:08 porsche-sd: Ready to read from volume full-27-7-2007.21 MWa on device FileStorageFull (/export/bacula-dump). MWa 27-Jul 11:08 porsche-sd: Forward spacing Volume full-27-7-2007.21 to MWa file:block 0:200. MWa 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node /export/xxx/dev/.zone_reg_door: MWa ERR=Invalid argument 27-Jul 11:33 prinz-fd: MWa RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make MWa node /export/xxx/dev/.devfsadm_synch_door: ERR=Invalid argument 27-Jul MWa 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/devfsadm_event_channel/reg_door: ERR=Invalid MWa argument 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/devfsadm_event_channel/1: ERR=Invalid argument MWa 27-Jul 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/syseventconfd_event_channel/reg_door: MWa ERR=Invalid argument 27-Jul 11:33 prinz-fd: MWa RestoreFiles.2007-07-27_11.07.03 Error: create_file.c:245 Cannot make MWa node /export/xxx/etc/sysevent/sysevent_door: ERR=Invalid argument 27-Jul MWa 11:33 prinz-fd: RestoreFiles.2007-07-27_11.07.03 Error: MWa create_file.c:245 Cannot make node MWa /export/xxx/etc/sysevent/piclevent_door: ERR=Invalid argument 27-Jul MWa 11:15 porsche-sd: End of file 1 on device FileStorageFull MWa (/export/bacula-dump), Volume full-27-7-2007.21 MWa 27-Jul 11:15 porsche-sd: End of Volume at file 1 on device MWa FileStorageFull (/export/bacula-dump), Volume full-27-7-2007.21 MWa 27-Jul 11:15 porsche-sd: Ready to read from volume full-27-7-2007.22 MWa on device FileStorageFull (/export/bacula-dump). MWa 27-Jul 11:15 porsche-sd: Forward spacing Volume full-27-7-2007.22 to MWa file:block 0:200. MWa 27-Jul 11:21 porsche-sd: End of
Re: [Bacula-users] a small setup issue.
How about your bconsole.conf.? Are you sure the director is running? ps -ef | grep bacula John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash, traceback attached
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. If you are pointing it at the scsi control device, I would be interested to see what the normal output of the command gives back as there may be a possible buffer overrun though that really should not happen. In any case, I recommend that you remove the tape alert for a time and see if that eliminates the problem. I suspect it will, as it only showed up when I added it, near as I can tell. A KABOOM seems like something that ought not happen either way, though, although I suppose if something is corrupting buffers, it can't be avoided. Curious, though, as the tapealert often returns Device busy which would seem to mean that there's no change that the other thing using the device would actually have an error. This does not happen every day, but every once in awhile... it occurs at the end of a set of concurrent backups to tape -- all incrementals, 7 in total. By the time my catalog backup runs 2 hours later, the -sd has died and there is no connection made. The host machine is running Solaris 9, and the binaries are from BlastWave (currently version 2.0.3 with 2.0.2 clients, but until the day before yesterday, the admin/server machine was running 2.0.2 with identical results). I have not tried 2.1.x, but I would not be allowed to run a production schedule on a beta -- perhaps an exact copy on the same machine but writing to disk might yield the same results, but I suspect that this is caused by the TapeAlert, so maybe not. For a problem with tape alert, it is very unlikely that upgrading to 2.1.x will help. Thanks for any insights you can provide -- I'd be happy to report a bug if it is needed. Until I see your response and think about it, I don't think this is worth a bug report, at least not just yet. OK, that is fine. If there's any easy way to try to get more information out of this thing, let me know. I actually had a fair amount of trouble getting this much in the first place -- if you run your bacula-dir as a non-root user as one really should, it then cannot run proper traces against daemons that run as root. I had to involve sudo; originally, I had no idea that this even ran by itself until I saw a number of empty traceback e-mails in root's box. - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGrgPumb+gadEcsb4RAj8cAJ9dmkngZlOHQBByPaP7iTRC/Ex37QCg1rqM cUnnOqLvp4fdi51FyPoMY2s= =cDNA -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net
Re: [Bacula-users] [Bacula-devel] MySQL Duplicate Entry
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Did you run this with the modify database flag set? This is actually a problem I think should be fixed, and the fix should be backported. Apparently if you search for records without a modify flag, there are situations where the thing can loop forever. I'm not sure where that stands now, but I remember having the same issue. I seem to recall that more recent versions are much better behaved, but I think if the fixes are relatively easy, a backport to at least 1.38.x is in order. I wonder if one can use new dbcheck against the old DB. Allen Barnett wrote: Hi, Thanks to Kern and Arno for pointing me to the dbcheck program (I should have read the fine manual). I ran dbcheck and was able to eliminate the orphaned files, but the eliminate orphaned paths option ran for about 24 hours with no sign of letting up! I looked at the source for dbcheck, but SQL is not my forte. Is there a way to perform the orphaned path elimination for just a few instances at a time? Bacula: 1.38.10 MySQL: 4.1.20 RHEL 4, 64-bit Thanks, Allen On Wed, 2007-07-25 at 13:54 +0200, Kern Sibbald wrote: Hello, I recommend you read the www.bacula.org - Support page. It explains the best way to get support and help. It is also useful, though probably not for this case, to read the Bugs page as well. I've forwarded your email to the bacula-users list in case they have comments. My recommendation is to read up on the dbcheck program in the manual and run it. It *should* be able to correct this problem. If it does not or if the problem comes up frequently, or you have questions, you might want to ask the bacula-users list. In any future requests, please include the name of the database Engine you are using. That may also be helpful, though it is probably not needed for the current case. Best regards, Kern On Wednesday 25 July 2007 13:41, Allen Barnett wrote: Hi, I'm running Bacula 1.38.10 on a Red Hat Enterprise Linux 4 64-bit Opteron box. The last couple of days, I've been getting this message from the nightly catalog backup run. Is there something I need to do to clean up the database(?) Thanks, Allen. 25-Jul 01:12 GLUON-DIR: Start Backup JobId 1086, Job=BackupCatalog.2007-07-24_23.10.00 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error: sql_create.c:732 sql_create.c:732 insert INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T +eIAtTB/0d1B') failed: Duplicate entry '27191534' for key 1 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error: sql_create.c:734 Create db File record INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T +eIAtTB/0d1B') failed. ERR=Duplicate entry '27191534' for key 1 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error: catreq.c:424 Attribute create error. sql_create.c:734 Create db File record INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T+eIAtTB/0d1B') failed. ERR=Duplicate entry '27191534' for key 1 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Error: Bacula 1.38.10 (08Jun06): 25-Jul-2007 01:14:27 JobId: 1086 Job:BackupCatalog.2007-07-24_23.10.00 Backup Level: Full Client: GLUON-FD x86_64-unknown-linux-gnu,redhat,Enterprise release FileSet:Catalog 2006-01-04 00:07:10 Pool: Default Storage:gluon-sd Scheduled time: 24-Jul-2007 23:10:00 Start time: 25-Jul-2007 01:12:36 End time: 25-Jul-2007 01:14:27 Elapsed time: 1 min 51 secs Priority: 11 FD Files Written: 1 SD Files Written: 1 FD Bytes Written: 473,743,123 (473.7 MB) SD Bytes Written: 473,743,238 (473.7 MB) Rate: 4268.0 KB/s Software Compression: None Volume name(s): t0007 Volume Session Id: 4 Volume Session Time:1185231255 Last Volume Bytes: 96,074,142,626 (96.07 GB) Non-fatal FD errors:0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination:*** Backup Error *** - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list
[Bacula-users] Fwd: a small setup issue.
-- Forwarded message -- From: John Drescher [EMAIL PROTECTED] Date: Jul 30, 2007 11:56 AM Subject: Re: [Bacula-users] a small setup issue. To: Mike Michalik [EMAIL PROTECTED] # # Bacula User Agent (or Console) Configuration File # Director { Name = marauder02-dir DIRport = 9101 # address = marauder02.marauderbeer.com address = localhost Password = marauder } This password should be the director password Cv70F6pf1t6pBopT4vQOnigDrR0v3L otherwise the console will not be permitted to connect. Also unless you only want to backup the local server marauder02, you should change all localhost and 127.0.0.1 to the external ipaddress. John -- John M. Drescher - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Fwd: a small setup issue.
One quick question before I get back to programming. Did you restart all the bacula daemons after you changed the password? I ask that because changing the .conf files does not take effect until restarting or issuing the reload command in a working console. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] How to know which job was restored?
Hello, If I issue several restore jobs and one of them fails, the job list doesn't give enough information to know which job was being restored, it only gives the name of the default restore job. Is there any alternative? Even the emails that bacula send doesn't have the information on what was being restored :( Thanks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fwd: a small setup issue.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And in addition, reload does not affect all daemons, if I'm not mistaken (ie. -fd and -sd). John Drescher wrote: One quick question before I get back to programming. Did you restart all the bacula daemons after you changed the password? I ask that because changing the .conf files does not take effect until restarting or issuing the reload command in a working console. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGrhDCmb+gadEcsb4RAk3JAJ4nRClYutk/Z0B8l3hoGgr9DVTc2ACfWRhF N0aJkRQQIySv0Nt7Iocjhio= =TykS -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] MySQL Duplicate Entry
On Mon, 2007-07-30 at 11:47 -0400, Ryan Novosielski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Did you run this with the modify database flag set? I tried it both ways (without and with the modification flag set). To do the elimination, dbcheck first runs a checking scan (an OUTER SELECT on Path and File), saves the results and then does the deletions. I tried just the check scan from the MySQL command line and even that by itself took a while (that is, I didn't wait for it to complete). I tried my hand at a few variations on the SELECT, for example using LIMIT to reduce the number of matches. However, there seems to be something about the GROUP BY and HAVING options that appears to require the OUTER SELECT to complete before it sorts and filters the list. (I've just exhausted my understanding of SQL.) Thanks, Allen This is actually a problem I think should be fixed, and the fix should be backported. Apparently if you search for records without a modify flag, there are situations where the thing can loop forever. I'm not sure where that stands now, but I remember having the same issue. I seem to recall that more recent versions are much better behaved, but I think if the fixes are relatively easy, a backport to at least 1.38.x is in order. I wonder if one can use new dbcheck against the old DB. Allen Barnett wrote: Hi, Thanks to Kern and Arno for pointing me to the dbcheck program (I should have read the fine manual). I ran dbcheck and was able to eliminate the orphaned files, but the eliminate orphaned paths option ran for about 24 hours with no sign of letting up! I looked at the source for dbcheck, but SQL is not my forte. Is there a way to perform the orphaned path elimination for just a few instances at a time? Bacula: 1.38.10 MySQL: 4.1.20 RHEL 4, 64-bit Thanks, Allen On Wed, 2007-07-25 at 13:54 +0200, Kern Sibbald wrote: Hello, I recommend you read the www.bacula.org - Support page. It explains the best way to get support and help. It is also useful, though probably not for this case, to read the Bugs page as well. I've forwarded your email to the bacula-users list in case they have comments. My recommendation is to read up on the dbcheck program in the manual and run it. It *should* be able to correct this problem. If it does not or if the problem comes up frequently, or you have questions, you might want to ask the bacula-users list. In any future requests, please include the name of the database Engine you are using. That may also be helpful, though it is probably not needed for the current case. Best regards, Kern On Wednesday 25 July 2007 13:41, Allen Barnett wrote: Hi, I'm running Bacula 1.38.10 on a Red Hat Enterprise Linux 4 64-bit Opteron box. The last couple of days, I've been getting this message from the nightly catalog backup run. Is there something I need to do to clean up the database(?) Thanks, Allen. 25-Jul 01:12 GLUON-DIR: Start Backup JobId 1086, Job=BackupCatalog.2007-07-24_23.10.00 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error: sql_create.c:732 sql_create.c:732 insert INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T +eIAtTB/0d1B') failed: Duplicate entry '27191534' for key 1 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error: sql_create.c:734 Create db File record INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T +eIAtTB/0d1B') failed. ERR=Duplicate entry '27191534' for key 1 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error: catreq.c:424 Attribute create error. sql_create.c:734 Create db File record INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T+eIAtTB/0d1B') failed. ERR=Duplicate entry '27191534' for key 1 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Error: Bacula 1.38.10 (08Jun06): 25-Jul-2007 01:14:27 JobId: 1086 Job:BackupCatalog.2007-07-24_23.10.00 Backup Level: Full Client: GLUON-FD x86_64-unknown-linux-gnu,redhat,Enterprise release FileSet:Catalog 2006-01-04 00:07:10 Pool: Default Storage:gluon-sd Scheduled time: 24-Jul-2007 23:10:00 Start time: 25-Jul-2007 01:12:36 End time: 25-Jul-2007 01:14:27 Elapsed time: 1 min 51 secs Priority: 11 FD Files Written: 1 SD Files Written: 1 FD Bytes Written: 473,743,123 (473.7 MB) SD
Re: [Bacula-users] [Bacula-devel] Fairly reproduca ble 2.0.3 -sd crash , traceback attached
On Monday 30 July 2007 17:29, Ryan Novosielski wrote: Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Yes, if they are stripped, that would at least explain the lack of line numbers and possibly the fact that the names were not demangled. Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. Well, that is almost surely the cause of the problem. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. Well, Solaris has 20 ways to do everything connected with devices. In any case, it is not a question of addressing the tape drive as two different devices. One addresses the tape drive through the standard tape driver, which is the /dev/rmt/ stuff. The other is a SCSI pass through driver that allow SCSI commands to go directly to the SCSI controller, and if I remember right they are addressed with /dev/sg/. That you will need to find out from someone else on the list or from your manuals -- I no longer have a Solaris. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. I'll leave this to others. If you are pointing it at the scsi control device, I would be interested to see what the normal output of the command gives back as there may be a possible buffer overrun though that really should not happen. In any case, I recommend that you remove the tape alert for a time and see if that eliminates the problem. I suspect it will, as it only showed up when I added it, near as I can tell. A KABOOM seems like something that ought not happen either way, though, although I suppose if something is corrupting buffers, it can't be avoided. Curious, though, as the tapealert often returns Device busy which would seem to mean that there's no change that the other thing using the device would actually have an error. Well, when Bacula calls the tapealert command, it releases the drive, so it doesn't get a busy. Many OSes such as Linux and Solaris permit addressing the SCSI controller directly through the normal tape driver, but this is a very bad idea (it is apparently what you are doing), and from everything users have said, it causes lots of problems such as resetting the SCSI controller. If you do that, all bets are off concerning Bacula correctly interfacing through the normal tape driver. If you would like to track it down, I think it would be good to eliminate the KABOOM if it is possible (it may well not be possible). However, you *are* apparently doing something very non-standard, and that is where things go wrong. This does not happen every day, but every once in awhile... it occurs at the end of a set of concurrent backups to tape -- all incrementals, 7 in total. By the time my catalog backup runs 2 hours later, the -sd has died and there is no connection made. The host machine is running Solaris 9, and the binaries are from BlastWave (currently version 2.0.3 with 2.0.2 clients, but until the day before yesterday, the admin/server machine was running 2.0.2 with identical results). I have not tried 2.1.x, but I would not be allowed to run a production schedule on a beta -- perhaps an exact copy on the same machine but writing to disk might yield the same results, but I suspect that this is caused by the TapeAlert, so maybe not. For a problem with tape alert, it is very unlikely that upgrading to 2.1.x will help. Thanks for any insights you can
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash, traceback attached
On Mon, 30 Jul 2007 16:48:09 +0200, Kern Sibbald said: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I think there is a bug in bnet_thread_server that causes the Kaboom. The dlist sockfds contains the fd_ptr objects, which are allocated with alloca. The problem is that the dlist destructor will deallocate them using free (i.e. sm_free). You can see this in the backtrace, where the argument to sm_free is a pointer into the stack (0xffbff028). __Martin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash, traceback attached
On Monday 30 July 2007 19:16, Martin Simmons wrote: On Mon, 30 Jul 2007 16:48:09 +0200, Kern Sibbald said: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I think there is a bug in bnet_thread_server that causes the Kaboom. The dlist sockfds contains the fd_ptr objects, which are allocated with alloca. The problem is that the dlist destructor will deallocate them using free (i.e. sm_free). You can see this in the backtrace, where the argument to sm_free is a pointer into the stack (0xffbff028). Oh, that is cute and clever of you to figure out. I'll *certainly* take a look at it. I've never seen such a crash so it must only normally happen on shutdown. Do you have any idea what is triggering the code that fails in this case? Regards, Kern __Martin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bacula-devel - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash , traceback attached
Kern Sibbald wrote: On Monday 30 July 2007 17:29, Ryan Novosielski wrote: Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Yes, if they are stripped, that would at least explain the lack of line numbers and possibly the fact that the names were not demangled. Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. Well, that is almost surely the cause of the problem. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. Well, Solaris has 20 ways to do everything connected with devices. In any case, it is not a question of addressing the tape drive as two different devices. One addresses the tape drive through the standard tape driver, which is the /dev/rmt/ stuff. The other is a SCSI pass through driver that allow SCSI commands to go directly to the SCSI controller, and if I remember right they are addressed with /dev/sg/. That you will need to find out from someone else on the list or from your manuals -- I no longer have a Solaris. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. I'll leave this to others. There is no such thing in Solaris. The st driver supports scsi pass through via the uscsi(7I) interface, and mtx (and therefore tapeinfo) does indeed use this interface on solaris. from mtx sources: mtx.h:/* the 'uscsi' interface, as used on Solaris: */ mtx.h:#include sys/scsi/impl/uscsi.h man uscsi: Ioctl Requests uscsi(7I) NAME uscsi - user SCSI command interface SYNOPSIS #include sys/scsi/impl/uscsi.h ioctl(int fildes, int request, struct uscsi_cmd *cmd); DESCRIPTION The uscsi command is very powerful and somewhat dangerous; therefore it has some permission restrictions. See WARNINGS for more details. Drivers supporting this ioctl(2) provide a general interface allowing user-level applications to cause individual SCSI commands to be directed to a particular SCSI or ATAPI device under control of that driver. The uscsi command is supported by the sd driver for SCSI disks and ATAPI CD-ROM drives, and by the st driver for SCSI tape drives. uscsi may also be supported by other device drivers; see the specific device driver manual page for complete information. The uscsi(7I) interface is only accessible by root. The sgen(7D) driver exports the uscsi(7I) interface to user (non root) processes. But the sgen(7D) man page clearly states: In general, the uscsi(7I) interface exported by sd(7D) or st(7D) should be used to gain access to direct access and sequential devices. Sorry, but I can't say more since I have no solaris box with an attached tape right now. So I can't test any interaction between bacula and tapeinfo. If you are pointing it at the scsi control device, I would be interested to see what the normal output of the command gives back as there may be a possible buffer overrun though that really should not happen. In any case, I recommend that you remove the tape alert for a time and see if that eliminates the problem. I suspect it will, as it only showed up when I added it, near as I can tell. A KABOOM seems like something that ought not happen either way, though, although I suppose if something is corrupting buffers, it can't be avoided. Curious, though, as the tapealert often returns Device
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash, traceback attached
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kern Sibbald wrote: On Monday 30 July 2007 19:16, Martin Simmons wrote: On Mon, 30 Jul 2007 16:48:09 +0200, Kern Sibbald said: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I think there is a bug in bnet_thread_server that causes the Kaboom. The dlist sockfds contains the fd_ptr objects, which are allocated with alloca. The problem is that the dlist destructor will deallocate them using free (i.e. sm_free). You can see this in the backtrace, where the argument to sm_free is a pointer into the stack (0xffbff028). Oh, that is cute and clever of you to figure out. I'll *certainly* take a look at it. I've never seen such a crash so it must only normally happen on shutdown. Do you have any idea what is triggering the code that fails in this case? Just so you know, in case I wasn't clear enough, this happens after the LAST job runs. Interestingly enough, the previous jobs (since I'm running concurrently) all succeed no problem, and all have Device busy for the TapeAlert command. I don't even notice the problem until the next backup (catalog backup a few hours later), so it apparently crashes after sending out the success e-mail and closing out the running set of jobs. Don't know what-all happens in the code at that point, but I don't find out the -sd has crashed until the next backup fails. - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGriWKmb+gadEcsb4RAoZ8AJoDFK99GqbpHZM6nftnzLGF37cL2QCgpg4y fWBfcWoPaJzeLKg20jYieXE= =uL4V -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash , traceback attached
Attila Fülöp wrote: Kern Sibbald wrote: On Monday 30 July 2007 17:29, Ryan Novosielski wrote: Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Yes, if they are stripped, that would at least explain the lack of line numbers and possibly the fact that the names were not demangled. Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. Well, that is almost surely the cause of the problem. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. Well, Solaris has 20 ways to do everything connected with devices. In any case, it is not a question of addressing the tape drive as two different devices. One addresses the tape drive through the standard tape driver, which is the /dev/rmt/ stuff. The other is a SCSI pass through driver that allow SCSI commands to go directly to the SCSI controller, and if I remember right they are addressed with /dev/sg/. That you will need to find out from someone else on the list or from your manuals -- I no longer have a Solaris. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. I'll leave this to others. There is no such thing in Solaris. The st driver supports scsi pass through via the uscsi(7I) interface, and mtx (and therefore tapeinfo) does indeed use this interface on solaris. from mtx sources: mtx.h:/* the 'uscsi' interface, as used on Solaris: */ mtx.h:#include sys/scsi/impl/uscsi.h man uscsi: Ioctl Requests uscsi(7I) NAME uscsi - user SCSI command interface SYNOPSIS #include sys/scsi/impl/uscsi.h ioctl(int fildes, int request, struct uscsi_cmd *cmd); DESCRIPTION The uscsi command is very powerful and somewhat dangerous; therefore it has some permission restrictions. See WARNINGS for more details. Drivers supporting this ioctl(2) provide a general interface allowing user-level applications to cause individual SCSI commands to be directed to a particular SCSI or ATAPI device under control of that driver. The uscsi command is supported by the sd driver for SCSI disks and ATAPI CD-ROM drives, and by the st driver for SCSI tape drives. uscsi may also be supported by other device drivers; see the specific device driver manual page for complete information. The uscsi(7I) interface is only accessible by root. The sgen(7D) driver exports the uscsi(7I) interface to user (non root) processes. But the sgen(7D) man page clearly states: In general, the uscsi(7I) interface exported by sd(7D) or st(7D) should be used to gain access to direct access and sequential devices. Sorry, but I can't say more since I have no solaris box with an attached tape right now. So I can't test any interaction between bacula and tapeinfo. If you are pointing it at the scsi control device, I would be interested to see what the normal output of the command gives back as there may be a possible buffer overrun though that really should not happen. In any case, I recommend that you remove the tape alert for a time and see if that eliminates the problem. I suspect it will, as it only
Re: [Bacula-users] Job Concurrency
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh Fisher wrote: Support wrote: Dear Shon I have a similar situation and solved it byusing this stargegy. Firstly the disk volumes should be treated as Tape drives in that only onle volume can be opened at a time but you can have many concurrent jobs writing to that volume - my setting is for a maximum of 5 concurrent jobs/ The problem with concurrent jobs writing to the same volume is that job data is interleaved on the volume. For tape, the interleaving will make restores painfully slow. Even for disk storage it will slow things down. I prefer to have one job at a time write to a volume so that the jobs are placed sequentially in the volume. This would require multiple drives for tape, but for disk it just requires multiple device resources, each writing to a separate volume. The volumes loaded in those devices are regular files and can be in the same partition or even the same directory. Spooling also solves this problem. Concurrent jobs are then written to tape in a sane manner. This helps with shoeshining on a tape drive too, as data is fed as fast as it can be written. I write data to a LaCie 1 TB disc using Firewire and get throughput of about 60 GB / hr. If you have several customers and can group them then one option is to partition your disc so that each group uses a different partition and this can be seen as a different tape drive and the jobs should write to each partition concurrently. They can be grouped by directories in the same partition. Partitioning will not likely make use of the full storage capacity of the drive because one partition will fill up first, leaving wasted space on the others. Grouping by directory and using a single partition on the drive allows the full capacity of the drive to be used. As for full backups I use job migration - ie the jobs are written to disc and then migrated to tape. If you need my config files I will email them to you. Regards Stephen Carr Shon Stephens wrote: I'm trying to understand job concurrency in Bacula and what strategy I should use for backing up clients. Its likely that I will have to backup around 50 clients. My strategy is to write incrementals to disk volumes and fulls to tapes. I assume its possible for Bacula to write to multiple disk volumes simultaneously if configured to do so, but what about tapes? I have my tapes divided by customer so that Customer1 Pool - 8 volumes, 2 in slots each week Customer2 Pool - 8 volumes, 2 in slots each week Can Bacula write a job from 2 different clients(file daemons) in Customer1 Pool at the same time? How does this work? I understand that Bacula can't write a job from Customer1 Pool and Customer2 Pool at the same time because these are different volumes. Also can bacula simultaneously spool to disk and write to tape for the same job? I'm looking for good advice on how to streamline Bacula so that I'm not always running backups or have to many jobs waiting on resources in use. Thanks, Shon - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Re: [Bacula-users] Windows script changes I make after installation for MySQL
make_catalog_backup.cmd add: set working_dir=c:\program files\bacula\var\Work change: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump -u %2 %MYSQLPASSWORD% -f --opt %1 *%working_dir%*\%1.sql delete_catalog_backup.cmd add: set working_dir=c:\program files\bacula\var\Work change: DEL /f *%working_dir%*\bacula.sql Brian Debelius wrote: create_database.cmd add: SET MYSQLUSER=root add: SET MYSQLPASS=mysqlpassword change: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql *-u %MYSQLUSER% --password=%MYSQLPASS%* %* -e CREATE DATABASE bacula; drop_database.cmd add: SET MYSQLUSER=root add: SET MYSQLPASS=mysqlpassword change: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql *-u %MYSQLUSER% --password=%MYSQLPASS%* %* -f -e DROP DATABASE bacula; grant_privileges.cmd add: SET MYSQLUSER=root add: SET MYSQLPASS=mysqlpassword change: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql *-u %MYSQLUSER% --password=%MYSQLPASS%* -f %* C:\Program Files\Bacula\bin\grant_mysql_privileges.sql grant_mysql_privileges.sql change: grant all privileges on bacula.* to [EMAIL PROTECTED] *identified by 'mysqlpassword';* change: grant all privileges on bacula.* to bacula@% *identified by 'mysqlpassword'; *make_tables.cmd add: SET MYSQLUSER=root add: SET MYSQLPASS=mysqlpassword change: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql *-u %MYSQLUSER% --password=%MYSQLPASS%* -f %* C:\Program Files\Bacula\bin\make_mysql_tables.sql drop_tables.cmd add: SET MYSQLUSER=root add: SET MYSQLPASS=mysqlpassword change: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql *-u %MYSQLUSER% --password=%MYSQLPASS%* %* C:\Program Files\Bacula\bin\drop_mysql_tables.sql - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Solaris, st, sgen, and TapeAlert/smartmontools (was: [Bacula-devel] Fairly reproducable 2.0.3 -sd crash , traceback attached)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Hoogendyk wrote: Attila Fülöp wrote: Kern Sibbald wrote: On Monday 30 July 2007 17:29, Ryan Novosielski wrote: Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Yes, if they are stripped, that would at least explain the lack of line numbers and possibly the fact that the names were not demangled. Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. Well, that is almost surely the cause of the problem. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. Well, Solaris has 20 ways to do everything connected with devices. In any case, it is not a question of addressing the tape drive as two different devices. One addresses the tape drive through the standard tape driver, which is the /dev/rmt/ stuff. The other is a SCSI pass through driver that allow SCSI commands to go directly to the SCSI controller, and if I remember right they are addressed with /dev/sg/. That you will need to find out from someone else on the list or from your manuals -- I no longer have a Solaris. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. I'll leave this to others. There is no such thing in Solaris. The st driver supports scsi pass through via the uscsi(7I) interface, and mtx (and therefore tapeinfo) does indeed use this interface on solaris. from mtx sources: mtx.h:/* the 'uscsi' interface, as used on Solaris: */ mtx.h:#include sys/scsi/impl/uscsi.h man uscsi: Ioctl Requests uscsi(7I) NAME uscsi - user SCSI command interface SYNOPSIS #include sys/scsi/impl/uscsi.h ioctl(int fildes, int request, struct uscsi_cmd *cmd); DESCRIPTION The uscsi command is very powerful and somewhat dangerous; therefore it has some permission restrictions. See WARNINGS for more details. Drivers supporting this ioctl(2) provide a general interface allowing user-level applications to cause individual SCSI commands to be directed to a particular SCSI or ATAPI device under control of that driver. The uscsi command is supported by the sd driver for SCSI disks and ATAPI CD-ROM drives, and by the st driver for SCSI tape drives. uscsi may also be supported by other device drivers; see the specific device driver manual page for complete information. The uscsi(7I) interface is only accessible by root. The sgen(7D) driver exports the uscsi(7I) interface to user (non root) processes. But the sgen(7D) man page clearly states: In general, the uscsi(7I) interface exported by sd(7D) or st(7D) should be used to gain access to direct access and sequential devices. Sorry, but I can't say more since I have no solaris box with an attached tape right now. So I can't test any interaction between bacula and tapeinfo. If you are pointing it at the scsi control device, I would be interested to see what the normal output of the command gives back as there may be a possible buffer overrun though that really should not happen. In any case, I recommend that you remove the tape alert for a time and see if that eliminates the
Re: [Bacula-users] [Bacula-devel] Fairly reproducable 2.0.3 -sd crash, traceback attached
On Mon, 30 Jul 2007 19:27:43 +0200, Kern Sibbald said: On Monday 30 July 2007 19:16, Martin Simmons wrote: On Mon, 30 Jul 2007 16:48:09 +0200, Kern Sibbald said: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I think there is a bug in bnet_thread_server that causes the Kaboom. The dlist sockfds contains the fd_ptr objects, which are allocated with alloca. The problem is that the dlist destructor will deallocate them using free (i.e. sm_free). You can see this in the backtrace, where the argument to sm_free is a pointer into the stack (0xffbff028). Oh, that is cute and clever of you to figure out. I'll *certainly* take a look at it. I've never seen such a crash so it must only normally happen on shutdown. Do you have any idea what is triggering the code that fails in this case? Right, I can't see any normal way for the main loop of bnet_thread_server to exit in the SD. Something I've wondered occasionally though: is it guaranteed that the use of errno in code like this will give the error generated by select? if ((stat = select(maxfd + 1, sockset, NULL, NULL, NULL)) 0) { berrno be; /* capture errno */ if (errno == EINTR)... I.e. could the berrno constructor (poolmem, smartalloc etc) change errno? __Martin - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Solaris, st, sgen, and TapeAlert/smartmontools
Ryan Novosielski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Hoogendyk wrote: Attila Fülöp wrote: Kern Sibbald wrote: On Monday 30 July 2007 17:29, Ryan Novosielski wrote: Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Yes, if they are stripped, that would at least explain the lack of line numbers and possibly the fact that the names were not demangled. Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. Well, that is almost surely the cause of the problem. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. Well, Solaris has 20 ways to do everything connected with devices. In any case, it is not a question of addressing the tape drive as two different devices. One addresses the tape drive through the standard tape driver, which is the /dev/rmt/ stuff. The other is a SCSI pass through driver that allow SCSI commands to go directly to the SCSI controller, and if I remember right they are addressed with /dev/sg/. That you will need to find out from someone else on the list or from your manuals -- I no longer have a Solaris. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. I'll leave this to others. There is no such thing in Solaris. The st driver supports scsi pass through via the uscsi(7I) interface, and mtx (and therefore tapeinfo) does indeed use this interface on solaris. from mtx sources: mtx.h:/* the 'uscsi' interface, as used on Solaris: */ mtx.h:#include sys/scsi/impl/uscsi.h man uscsi: Ioctl Requests uscsi(7I) NAME uscsi - user SCSI command interface SYNOPSIS #include sys/scsi/impl/uscsi.h ioctl(int fildes, int request, struct uscsi_cmd *cmd); DESCRIPTION The uscsi command is very powerful and somewhat dangerous; therefore it has some permission restrictions. See WARNINGS for more details. Drivers supporting this ioctl(2) provide a general interface allowing user-level applications to cause individual SCSI commands to be directed to a particular SCSI or ATAPI device under control of that driver. The uscsi command is supported by the sd driver for SCSI disks and ATAPI CD-ROM drives, and by the st driver for SCSI tape drives. uscsi may also be supported by other device drivers; see the specific device driver manual page for complete information. The uscsi(7I) interface is only accessible by root. The sgen(7D) driver exports the uscsi(7I) interface to user (non root) processes. But the sgen(7D) man page clearly states: In general, the uscsi(7I) interface exported by sd(7D) or st(7D) should be used to gain access to direct access and sequential devices. Sorry, but I can't say more since I have no solaris box with an attached tape right now. So I can't test any interaction between bacula and tapeinfo. If you are pointing it at the scsi control device, I
Re: [Bacula-users] Solaris, st, sgen, and TapeAlert/smartmontools
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Hoogendyk wrote: Ryan Novosielski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Hoogendyk wrote: Attila Fülöp wrote: Kern Sibbald wrote: On Monday 30 July 2007 17:29, Ryan Novosielski wrote: Kern Sibbald wrote: On Sunday 29 July 2007 19:28, Ryan Novosielski wrote: Hi all, Ever since I added the TapeAlert/smartmonctl command to my tape drive, it appears as if I get a fairly regular crash of that bacula-sd. I know there is a case where Bacula and the utility can go for the tape drive at the same time and cause problems, but I don't think Bacula should go KABOOM when this happens. The traceback, unfortunately, doesn't demangle the C++ subroutine names nor provide source line numbers, but the best that I can tell is that the heap has been corrupted, Bacula detects is, then does a Kaboom (self inflicted seg fault). I'm not too good with development tools -- is there a reason this would be that is on my end (stripped binaries or something like that)? Yes, if they are stripped, that would at least explain the lack of line numbers and possibly the fact that the names were not demangled. Are you by any chance pointing the tapealert/smartmonctl at the tape drive device rather than at the scsi control device? If you are, I am not surprised, and you should remove it as two different programs cannot properly exist using the same tape device. Yes. Well, that is almost surely the cause of the problem. And I actually will remove that, but near as I can tell, Solaris does not have a way of addressing the tape drive as two different devices. Well, Solaris has 20 ways to do everything connected with devices. In any case, it is not a question of addressing the tape drive as two different devices. One addresses the tape drive through the standard tape driver, which is the /dev/rmt/ stuff. The other is a SCSI pass through driver that allow SCSI commands to go directly to the SCSI controller, and if I remember right they are addressed with /dev/sg/. That you will need to find out from someone else on the list or from your manuals -- I no longer have a Solaris. From what I've read, the reason for this is that Solaris supposedly has the ability to do two actions on the device at once -- I'm not sure where I read that though in order to confirm it. I went looking for information about using the 'sgen' Solaris driver in order to instead use the control interface, but it appears as if sgen is only used to pick up devices that don't already have a type elsewhere; in other words, I could stop using 'st' and start using 'sgen', but that really wouldn't get me anywhere. Perhaps someone else will read about this and give me a pointer. I'll leave this to others. There is no such thing in Solaris. The st driver supports scsi pass through via the uscsi(7I) interface, and mtx (and therefore tapeinfo) does indeed use this interface on solaris. from mtx sources: mtx.h:/* the 'uscsi' interface, as used on Solaris: */ mtx.h:#include sys/scsi/impl/uscsi.h man uscsi: Ioctl Requests uscsi(7I) NAME uscsi - user SCSI command interface SYNOPSIS #include sys/scsi/impl/uscsi.h ioctl(int fildes, int request, struct uscsi_cmd *cmd); DESCRIPTION The uscsi command is very powerful and somewhat dangerous; therefore it has some permission restrictions. See WARNINGS for more details. Drivers supporting this ioctl(2) provide a general interface allowing user-level applications to cause individual SCSI commands to be directed to a particular SCSI or ATAPI device under control of that driver. The uscsi command is supported by the sd driver for SCSI disks and ATAPI CD-ROM drives, and by the st driver for SCSI tape drives. uscsi may also be supported by other device drivers; see the specific device driver manual page for complete information. The uscsi(7I) interface is only accessible by root. The sgen(7D) driver exports the uscsi(7I) interface to user (non root) processes. But the sgen(7D) man page clearly states: In general, the uscsi(7I) interface exported by sd(7D) or st(7D) should be used to gain access to direct access and sequential devices. Sorry, but I can't say more since I have no solaris box with an attached tape right now. So I can't test any interaction between bacula and tapeinfo.
[Bacula-users] Bacula setup plans - expert's help needed please
Hello everybody, I need a little help from someone more experienced with Bacula than I am. My cluster consists of ~40 clients, the total amount of data that has to be backed up is around 6 TB. To accomplish this I have two HP Ultrium 960 (400/800GB) and a sufficient number of tapes. I am planning to have a 'full' backup of all my clients every two or three weeks and 'incrementals' all other workdays. My plan is, to have about three computers per night in the 'full' backup, all others in the 'incremental'. The next night, the next three in the 'full' and so on, so that after ~3 weeks all clients have been fully backuped and we will start with the first ones again. According to the manual, the best way to do so is to define two pools, a 'full' and an 'incremental' which also allows me to write to the two tape drives simultaneously (one for each pool), which is mandatory since backups have to be done quite quickly at my site. In addition I have to run my backups on a 'daily tape rotation' basis. So, if I understand correctly, I would need another 5 pools (mo-fri). That makes 10 pools for mo/fr, full/inc. Now I have two questions. * Does this setup sound reasonable to you, or did I get something completely wrong? I would be happy, if there was an easier way... * How do I know, how many tapes I have to assign to each pool, because the amount of data is by far not constant per day and client. I do not want to have unused tapes, only because they were needed once. Let me give you an example. Let's assume, that usually one tape for the 'full' and one tape for the 'incremental' per night is sufficient. Then I would assign one tape to each pool. During one Tuesday night the 'full'-pool runs out of tape, because some user has produced a TB of data the last day. Then, I guess, I would have to add another volume to the 'full-tuesday' pool and finish the backup on Wednesday morning, right? But what happens, if all other Tuesdays one tape is sufficient again ? Do I have to put a date sticker on that once used 'extra' tape and check/erase that tape manually after the first tuesday run where it was not needed so that I could use it for another day's oversize backup? You see, the very same setup was very easy in Amanda I used up to now. The only thing I had to do was to create two identical setups and put 50% of my clients in the one (using tape1) and the other 50% in the otherone using tape2, tell Amanda how many tapes I have and that's it. All the full, incremental and daily rotation thing is handled fully automatically. I would be very happy if somebody could help me with these questions! Thanks in advance, Ralf - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Moving to new library
We just got a shiny new tape library and I'd like to move our old LTO2 tapes into it from our old one. Anyone have experience moving tapes like this? I've set-up a new server to act as just the SD and have the new library connected to it. It is labeling tapes right now. Our old library is connected to the SD/DIR. The thing that concerns me is that the barcodes overlap, but the old library is LTO2 and the new one is LTO3. It seems that the LTO format is part of the barcode of the new tapes, but the old ones don't record it. Old tapes: Storage Element 1:Full :VolumeTag=01 Storage Element 2:Full :VolumeTag=02 Storage Element 3:Full :VolumeTag=03 New tapes: Storage Element 1:Full :VolumeTag=01L3 Storage Element 2:Full :VolumeTag=02L3 Storage Element 3:Full :VolumeTag=03L3 I think I should be able to just move the tapes to the new library, but I'm not sure if bacula would get confused. Thanks, Robert Robert LeBlanc College of Life Sciences Computer Support Brigham Young University [EMAIL PROTECTED] (801)422-1882 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] backing up MySQL databases
Hi, Just curious, but is there a reason you did it this way around instead of having a 'ClientRunBeforeJob' script launch the dump process from within Bacula? You end up with the same result in the end I guess and I was wondering if there was more to it than just personal preference. Cheers, Troy. David Romerstein wrote: On Mon, 30 Jul 2007, Dimitrios wrote: I'm already using mysqldump to create archives of my database, but i don't see how Bacula can execute mysqldump during its backup process. I'll search the docs to see if there is support for such a thing. Reverse your thinking - let your mysqldump process execute bacula. I'm running two MySQL servers, one slaved to the other. I take my backups from the slave, which is rarely more than 60 seconds behind the master. I've got a cron job that calls a script that does the following: 1) Checks if this is an odd or even week. I only want backups every two weeks 2) Deletes the backup on disk from 4 weeks ago and moves the backup from two weeks ago to 'backup.old' 3) Stops the slave process 4) Locks the tables 5) Using mysqldump, dumps all tables from all databases to a known backup folder, '/data/staging/mysql_backup', gzipping them along the way 6) Restarts the slave process 7) Calls bacula to run the backup job 'backup_database', which has '/data/staging/mysql_backup' as its Fileset: /etc/bacula/bconsole -c /etc/bacula/bconsole.conf END_OF_DATA run job=backup_database yes END_OF_DATA In the end, I have a copy of the databases on tape and two copies on a RAID device separate from where the database resides. -- D, who sometimes wears both a belt and suspenders - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] a small setup issue.
I notice that the -fd is owned by root while the other two are owned by bacula, could that be the issue? No, this is ok. At work I have it that way at home I have all services owned by root. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] a small setup issue.
I should also mention that when I start up the tray monitor, it reports everything working as expected. When I click on the -fd and -sd buttons, it sees everything and reports back that it's ready. When I click on the -dir button, it states that I You must specify a use catalog name command before continuing I may be wrong but I believe this is a bug in the tray-monitor that was introduced sometime in version 1.38 that was fixed later on as it works now and I am running 2.1.X versions at home and at work. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula setup plans - expert's help needed please
Ralf Auer wrote: Hello everybody, I need a little help from someone more experienced with Bacula than I am. My cluster consists of ~40 clients, the total amount of data that has to be backed up is around 6 TB. To accomplish this I have two HP Ultrium 960 (400/800GB) and a sufficient number of tapes. Sounds like a pair of LTO3 drives. Are they just a pair of standalone drives, or do you have a library with a tape changer? I am planning to have a 'full' backup of all my clients every two or three weeks and 'incrementals' all other workdays. You may also want to throw in some differential backups in there as well, to a) cut down on the number of tapes that will be required to go through on a restore, and b) reduce the impact of losing a tape. My plan is, to have about three computers per night in the 'full' backup, all others in the 'incremental'. The next night, the next three in the 'full' and so on, so that after ~3 weeks all clients have been fully backuped and we will start with the first ones again. Sounds quite reasonable - I'm doing a similar rotation here. According to the manual, the best way to do so is to define two pools, a 'full' and an 'incremental' which also allows me to write to the two tape drives simultaneously (one for each pool), which is mandatory since backups have to be done quite quickly at my site. While this may be a good idea in terms of managing which backups go to which volumes, but it's by no means necessary, especially if you've got a tape library. I have a two drive library here, and have four simultaneous backups going to two tapes in the same pool at a time via spooling. In addition I have to run my backups on a 'daily tape rotation' basis. So, if I understand correctly, I would need another 5 pools (mo-fri). That makes 10 pools for mo/fr, full/inc. That's one option if you want to force a particular tape to be used on a particular day. The usual reason is you've got exactly enough tapes for one cycle, and you want to just cycle through them. Now I have two questions. * Does this setup sound reasonable to you, or did I get something completely wrong? I would be happy, if there was an easier way... It sounds reasonable as a first pass. * How do I know, how many tapes I have to assign to each pool, because the amount of data is by far not constant per day and client. I do not want to have unused tapes, only because they were needed once. Simple answer - enough tapes to hold however much data you back up =) Let me give you an example. Let's assume, that usually one tape for the 'full' and one tape for the 'incremental' per night is sufficient. Then I would assign one tape to each pool. During one Tuesday night the 'full'-pool runs out of tape, because some user has produced a TB of data the last day. Then, I guess, I would have to add another volume to the 'full-tuesday' pool and finish the backup on Wednesday morning, right? But what happens, if all other Tuesdays one tape is sufficient again ? Do I have to put a date sticker on that once used 'extra' tape and check/erase that tape manually after the first tuesday run where it was not needed so that I could use it for another day's oversize backup? You see, the very same setup was very easy in Amanda I used up to now. The only thing I had to do was to create two identical setups and put 50% of my clients in the one (using tape1) and the other 50% in the otherone using tape2, tell Amanda how many tapes I have and that's it. All the full, incremental and daily rotation thing is handled fully automatically. Okay, more seriously, 90% of the time, the best answer in Bacula is actually not to try to control that tightly what data goes on what volume. In this case, for example, (assuming that you have a library) a better way might be to simply set a volume use duration period of 24 hours. That would mean that 24 hours after each volume is used, it would be marked in the catalog such that no more backups would be placed onto it until it gets recycled, which in turn is controlled by the retention periods. Also note that with a library, spanning tapes is a pretty trivial event for Bacula. Once it hits the end of a tape, it simply grabs another volume from the appropriate pool and pick up right where it left off. This is a particularly big advantage over Amanda if you've got a single fileset that is larger than your volume size, as (the last time I looked, at least) Amanda couldn't span tapes. Another advantage for you by doing this would be that you can simply stuff your library full of tapes, and put them into a scratch pool. Bacula will then simply shuffle a tape out of the scratch pool into the full or incremental pool as needed, so you won't have to worry about guessing how many tapes are needed for a particular night's backups. Volume management in Bacula is fundamentally different from Amanda, and very flexible, but that flexibility brings with it
Re: [Bacula-users] a small setup issue.
The problem is when I try to run bconsole. I get an error saying that it cannot communicate with the storage device. When exactly does this error appear? I am confused on that because at home I just killed bacula-sd and then ran bconsole and it does start up fine without any sd running. However if I do a status storage I get the following error (after a few seconds timeout): jmd1 bacula # bconsole Connecting to Director jmd1:9101 1000 OK: jmd1-dir Version: 2.1.22 (26 June 2007) Enter a period to cancel a command. *status storage Automatically selected Storage: File Connecting to Storage daemon File at jmd1:9103 Failed to connect to Storage daemon File. * Is this what you mean? After starting bacula-sd again I get the following output: # /etc/init.d/bacula-sd start * Service bacula-sd starting * Service bacula-sd started jmd1 bacula # bconsole Connecting to Director jmd1:9101 1000 OK: jmd1-dir Version: 2.1.22 (26 June 2007) Enter a period to cancel a command. *status storage Automatically selected Storage: File Connecting to Storage daemon File at jmd1:9103 jmd1-sd Version: 2.1.22 (26 June 2007) x86_64-pc-linux-gnu gentoo Daemon started 30-Jul-07 23:21, 0 Jobs run since started. Heap: heap=352,256 smbytes=19,552 max_bytes=83,924 bufs=75 max_bufs=77 Running Jobs: No Jobs running. Jobs waiting to reserve a drive: Terminated Jobs: JobId LevelFiles Bytes Status FinishedName === 73 Incr 212.43 M OK 26-Jul-07 23:05 MythTV 74 Full 164.67 K OK 26-Jul-07 23:10 BackupCatalog 75 Incr 212.61 M OK 27-Jul-07 23:05 MythTV 76 Full 165.14 K OK 27-Jul-07 23:10 BackupCatalog 77 Incr 212.81 M OK 28-Jul-07 23:05 MythTV 78 Full 165.77 K OK 28-Jul-07 23:10 BackupCatalog 79 Diff 28321.5 M OK 29-Jul-07 23:05 MythTV 80 Full 168.67 K OK 29-Jul-07 23:10 BackupCatalog 81 Incr 212.64 M OK 30-Jul-07 23:05 MythTV 82 Full 169.31 K OK 30-Jul-07 23:10 BackupCatalog Device status: Device FileStorage (/mnt/vg/backups) is not open. Device JMD1-DVD-WRITER (/dev/dvd) is not open. In Use Volume status: * John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] a small setup issue.
On 7/30/07, Mike Michalik [EMAIL PROTECTED] wrote: Hi John, The error occurs right after I accept the job. I start up bconsole, at the * I type run, I choose #1, it says the job has started and then I get the following error: [EMAIL PROTECTED]:~$ bconsole Connecting to Director localhost:9101 1000 OK: marauder02-dir Version: 1.38.11 (28 June 2006) Enter a period to cancel a command. *run Using default Catalog name=MyCatalog DB=bacula A job name must be specified. The defined Job resources are: 1: Client1 2: BackupCatalog 3: RestoreFiles Select Job resource (1-3): 1 Run Backup job JobName: Client1 FileSet: Full Set Level:Incremental Client: marauder02-fd Storage: DDS-4 Pool: Default When: 2007-07-30 20:25:17 Priority: 10 OK to run? (yes/mod/no): yes Job started. JobId=24 * 30-Jul 20:25 marauder02-dir: No prior Full backup Job record found. 30-Jul 20:25 marauder02-dir: No prior or suitable Full backup found. Doing FULL backup. 30-Jul 20:25 marauder02-dir: Start Backup JobId 24, Job=Client1.2007-07-30_20.25.24 30-Jul 20:25 marauder02-dir: Client1.2007-07-30_20.25.24 Warning: bnet.c:853 Could not connect to Storage daemon on marauder02:9103. ERR=Connection refused Retrying ... * I am not sure of what is causing that but this info will help. My first thought is that the bacula-fd can not talk to the bacula-sd for some reason. Does status storage work in bconsole? John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Cleaning up failed jobs
Hi all, I've pretty much made my transition from Amanda to Bacula, and I'm pretty happy with it. I'm also starting to get the feel of the manual - everything is in there, it's just a bit hard to find sometimes. :) I'd just like to run by one simple question here about failed jobs. During my testing, and occasionally during real runs I'll have a botched job. Some just re-run later, some are mistakes. Here's a real-world example that has me a little stumped... I wanted to get a Catalog backup onto one of my Daily tapes (I'm forcing fulls, diffs and incrementals onto different pools). My catalog backup is still using the default once/week schedule and wanting to go onto the Weekly pool. I decided to run it today with a Daily tape in. It failed, and Bacula wanted me to mount the Weekly tape. This makes sense. So I've gone and stopped the director, edited the config to temporarily stash the Catalog backup into the Daily pool, and then restarted. It still wanted the Weekly tape, so I used the bconsole list jobs command to find any failed Catalog backups, and then the delete command to nuke them. I assume this removes any reference to those jobs from the Catalog and whatever the scheduler may know about it. Correct? Is this the proper way to clean up after an oops? I also see quite a few failures that I no longer care about in list jobs, should I manually walk through those and kill them? I know I should have started my production run by purging the db and starting over, but between Amanda having a rather spectacular failure and losing a drive on the backup server I decided to just keep going with what I'd already started. Full dumps take about 24 hours since we have many remote hosts, so I was trying to avoid getting rid of a perfectly good tape with good full backups on it... Thanks, Charles - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] a small setup issue.
On 7/30/07, Mike Michalik [EMAIL PROTECTED] wrote: It doesn't look like it does. [EMAIL PROTECTED]:~$ bconsole Connecting to Director localhost:9101 1000 OK: marauder02-dir Version: 1.38.11 (28 June 2006) Enter a period to cancel a command. *status Using default Catalog name=MyCatalog DB=bacula Status available for: 1: Director 2: Storage 3: Client 4: All Select daemon type for status (1-4): 2 Automatically selected Storage: DDS-4 Connecting to Storage daemon DDS-4 at marauder02:9103 Failed to connect to Storage daemon DDS-4. Ok, This means the director can not talk to the bacula-sd either. I am going to think about this for a few minutes and reheck your config files. Do you have a firewall on this machine? How about a print queue at port 9100? John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Use bextract and others with file storages ???
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 JC Júnior wrote: Hi friends!!! i'm here again Before try, i would like to know if its possible ( or make sense ) use bls , bextract and tools with file storages. thanks for all help... Yes, same as tape. - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGrrLzmb+gadEcsb4RAn5+AKCtOXJ43SZ1Ju7yXtsLt8R89X3v7wCgl24I Y8pZNTUFhfrcA2exh4ybYAs= =vGif -END PGP SIGNATURE- begin:vcard fn:Ryan Novosielski n:Novosielski;Ryan org:UMDNJ;IST/AST adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103 email;internet:[EMAIL PROTECTED] title:Systems Programmer III tel;work:(973) 972-0922 tel;fax:(973) 972-7412 tel;pager:(866) 20-UMDNJ x-mozilla-html:FALSE version:2.1 end:vcard - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Cleaning up failed jobs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charles Sprickman wrote: Hi all, I've pretty much made my transition from Amanda to Bacula, and I'm pretty happy with it. I'm also starting to get the feel of the manual - everything is in there, it's just a bit hard to find sometimes. :) I'd just like to run by one simple question here about failed jobs. During my testing, and occasionally during real runs I'll have a botched job. Some just re-run later, some are mistakes. Here's a real-world example that has me a little stumped... I wanted to get a Catalog backup onto one of my Daily tapes (I'm forcing fulls, diffs and incrementals onto different pools). My catalog backup is still using the default once/week schedule and wanting to go onto the Weekly pool. I decided to run it today with a Daily tape in. It failed, and Bacula wanted me to mount the Weekly tape. This makes sense. So I've gone and stopped the director, edited the config to temporarily stash the Catalog backup into the Daily pool, and then restarted. It still wanted the Weekly tape, so I used the bconsole list jobs command to find any failed Catalog backups, and then the delete command to nuke them. I assume this removes any reference to those jobs from the Catalog and whatever the scheduler may know about it. Correct? Yes, that's correct. Is this the proper way to clean up after an oops? I also see quite a few failures that I no longer care about in list jobs, should I manually walk through those and kill them? You could. I often do just because I'm a neat freak. I can't think of any other way to do it that is any better. - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGrrWzmb+gadEcsb4RArW5AJ47Bqn2cNHWvn4zZXL75ujQ12L8AQCgxumc 9baoE4tnIz8eWaJI8yHE9tk= =0kec -END PGP SIGNATURE- begin:vcard fn:Ryan Novosielski n:Novosielski;Ryan org:UMDNJ;IST/AST adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103 email;internet:[EMAIL PROTECTED] title:Systems Programmer III tel;work:(973) 972-0922 tel;fax:(973) 972-7412 tel;pager:(866) 20-UMDNJ x-mozilla-html:FALSE version:2.1 end:vcard - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] a small setup issue.
It doesn't look like it does. [EMAIL PROTECTED]:~$ bconsole Connecting to Director localhost:9101 1000 OK: marauder02-dir Version: 1.38.11 (28 June 2006) Enter a period to cancel a command. *status Using default Catalog name=MyCatalog DB=bacula Status available for: 1: Director 2: Storage 3: Client 4: All Select daemon type for status (1-4): 2 Automatically selected Storage: DDS-4 Connecting to Storage daemon DDS-4 at marauder02:9103 Failed to connect to Storage daemon DDS-4. How about status dir and status client from bconsole. I expect that status dir works but I am unsure of status client. Also can you see if the bacula services are definitely listing on the correct ports? netstat -l | grep bacula should show something like this: # netstat -l | grep bacula tcp0 0 *:bacula-dir*:* LISTEN tcp0 0 *:bacula-fd *:* LISTEN tcp0 0 *:bacula-sd *:* LISTEN If it does not show anything try this and look for 9101 - 9103 # netstat -l | grep tcp This really looks like a password or network port / ipaddress problem. Is there any thing in /var/lib/bacula/log besides lines like the following: CMD=/usr/sbin/bsmtp -h localhost -f (Bacula) [EMAIL PROTECTED] -s Bacula: Backup OK of jmd 1-fd Full [EMAIL PROTECTED] ERR=Child exited with code 1 30-Jul 23:16 jmd1-dir: -Console-.2007-07-30_23.16.03 Fatal error: bsock.c:129 Unable to co nnect to Storage daemon on jmd1:9103. ERR=Connection refused 30-Jul 23:20 jmd1-dir: -Console-.2007-07-30_23.19.43 Fatal error: bsock.c:129 Unable to co nnect to Storage daemon on jmd1:9103. ERR=Connection refused John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fwd: automount with single non-autoloader drive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Drescher wrote: On 7/27/07, Martin Schmid [EMAIL PROTECTED] wrote: It seems - on one server so far - that I must set 'always open' to 'No'. It seems that automatic mount is only working when the tape was closed before. I do not understand why 'close on poll' is not sufficient. It seems to have no effect. Here is what I have in my working config for a DLT-IV drive: Device { Name = DLT-IV Media Type = DLT-IV Archive Device = /dev/nst0 Autochanger=no AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum block size = 262144; Minimum block size = 262144; Spool Directory = /var/spool/bacula/tape Maximum Job Spool Size = 2G Volume Poll Interval = 5 minutes Close on Poll = Yes Offline On Unmount = Yes LabelMedia = Yes } I hope this is useful. John How do your tapes get unmounted if you do not have AlwaysOpen = no? Is there some way that I'm not currently aware of? - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGrrdJmb+gadEcsb4RAuPiAJ9JUlZIysTXAknrBMAVx/5BSeDnMwCfWiOb WZeBEUR5QtkeAJV+wTZoQ2M= =Eq5B -END PGP SIGNATURE- begin:vcard fn:Ryan Novosielski n:Novosielski;Ryan org:UMDNJ;IST/AST adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103 email;internet:[EMAIL PROTECTED] title:Systems Programmer III tel;work:(973) 972-0922 tel;fax:(973) 972-7412 tel;pager:(866) 20-UMDNJ x-mozilla-html:FALSE version:2.1 end:vcard - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] a small setup issue.
[EMAIL PROTECTED]:~$ netstat -l | grep bacula tcp0 0 localhost:bacula-dir*:* LISTEN tcp0 0 localhost:bacula-fd *:* LISTEN tcp0 0 localhost:bacula-sd *:* LISTEN [EMAIL PROTECTED]:~$ Ok, I see a very big potential problem. It says it is only listening on localhost. This is bad as localhost and marauder02 are not the same thing. You need to get rid of localhost and 127.0.0.1 and replace them with marauder02 for in all the .conf files then restart the daemons. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Fwd: automount with single non-autoloader drive
How do your tapes get unmounted if you do not have AlwaysOpen = no? Is there some way that I'm not currently aware of? I believe it is the combination of Close on Poll = Yes Offline On Unmount = Yes I have been using this since bacula 1.36.4 so I am not really sure how it does so but when bacula decides it needs a new tape it does unmount which causes the tape to eject. This also happens if I us the umount command from a console. John - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Fwd: a small setup issue.
-- Forwarded message -- From: John Drescher [EMAIL PROTECTED] Date: Jul 31, 2007 12:52 AM Subject: Re: [Bacula-users] a small setup issue. To: Mike Michalik [EMAIL PROTECTED] Yes. This looks good as well as your netstat output. BTW, the reason for this lack of connecting was that the daemons were listening only on the lo network interface (127.0.0.1) and the socket clients were trying to connect on the external ip address only as a result they could not communicate. John Now time for sleep. I have been awake for around 20 hours... On 7/31/07, Mike Michalik [EMAIL PROTECTED] wrote: I think that solved the problem. [EMAIL PROTECTED]:/etc/bacula$ bconsole Connecting to Director marauder02:9101 1000 OK: marauder02-dir Version: 1.38.11 (28 June 2006) Enter a period to cancel a command. *status dir Using default Catalog name=MyCatalog DB=bacula marauder02-dir Version: 1.38.11 (28 June 2006) i486-pc-linux-gnu debian 4.0 Daemon started 30-Jul-07 21:42, 0 Jobs run since started. Scheduled Jobs: Level Type Pri Scheduled Name Volume === IncrementalBackup10 30-Jul-07 23:05Client1 *unknown* Full Backup11 30-Jul-07 23:10BackupCatalog *unknown* Running Jobs: No Jobs running. Terminated Jobs: JobId Level Files Bytes Status FinishedName 13 Full 0 0 Error27-Jul-07 16:47 Client1 14 Full 0 0 Error27-Jul-07 23:35 Client1 15 Full 0 0 Error27-Jul-07 23:35 BackupCatalog 16 Full 0 0 Error28-Jul-07 23:35 Client1 17 Full 0 0 Error28-Jul-07 23:35 BackupCatalog 18 Full 0 0 Error29-Jul-07 12:52 BackupCatalog 19 Full 0 0 Error29-Jul-07 13:23 Client1 21 Full 0 0 Error29-Jul-07 13:53 Client1 20 Full 0 0 Error29-Jul-07 13:53 BackupCatalog 24 Full 0 0 Error30-Jul-07 20:55 Client1 *status client Automatically selected Client: marauder02-fd Connecting to Client marauder02-fd at marauder02:9102 marauder02-fd Version: 1.38.11 (28 June 2006) i486-pc-linux-gnu debian 4.0 Daemon started 30-Jul-07 21:40, 0 Jobs run since started. No Terminated Jobs. Running Jobs: Director connected at: 30-Jul-07 21:44 No Jobs running. *status storage Automatically selected Storage: DDS-4 Connecting to Storage daemon DDS-4 at marauder02:9103 marauder02-sd Version: 1.38.11 (28 June 2006) i486-pc-linux-gnu debian 4.0 Daemon started 30-Jul-07 21:39, 0 Jobs run since started. Running Jobs: No Jobs running. Jobs waiting to reserve a drive: No Terminated Jobs. Device status: Device DDS-4 (/dev/nst0) open but no Bacula volume is mounted. Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512 Positioned at File=0 Block=0 In Use Volume status: * I am going to attempt to run a job now. John Drescher wrote: [EMAIL PROTECTED]:~$ netstat -l | grep bacula tcp 0 0 localhost:bacula-dir *:* LISTEN tcp 0 0 localhost:bacula-fd *:* LISTEN tcp 0 0 localhost:bacula-sd *:* LISTEN [EMAIL PROTECTED]:~$ Ok, I see a very big potential problem. It says it is only listening on localhost. This is bad as localhost and marauder02 are not the same thing. You need to get rid of localhost and 127.0.0.1 and replace them with marauder02 for in all the .conf files then restart the daemons. John -- LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. -- John M. Drescher -- John M. Drescher - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Fwd: a small setup issue.
-- Forwarded message -- From: John Drescher [EMAIL PROTECTED] Date: Jul 31, 2007 12:56 AM Subject: Re: [Bacula-users] a small setup issue. To: Mike Michalik [EMAIL PROTECTED] Is there a place to donate for the support? There was in the past but very few contributed so it was canceled. BTW, I am actually just another bacula user like you and this is one way I make my donation. The other is I am trying to help with some coding. John -- John M. Drescher - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users