Re: [Bacula-users] why catalog backup
On Sun, 2009-03-08 at 16:44 -0500, John Drescher wrote: On Sun, Mar 8, 2009 at 4:13 PM, Ulrich Leodolter ulrich.leodol...@obvsg.at wrote: hello, do i really need a daily catalog backup ? (like the default setup) isn't it enough to dump (maybe rsync) the catalog database to other system(s) ? Yes, that will be fine. Make sure you properly dump and not just rsync the folder containing the database. I would have each dump compressed and have the name of the file contain the date of the dump. Here is what I do daily for a different database backup: #! /bin/sh mkdir -p /var/backup/mythtv mysqlrepair --all-databases /usr/bin/mysqldump -u mythtv -pmythtv mythconverg | /bin/bzip2 -c /var/backup/mythtv/mythtv-`date +%F`.bz2 Hello, I think about snapshot backup http://www.lenzg.net/mylvmbackup/ Thanks Ulrich -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Quantum Superloader3 LT04
Hi All, Any one had previous with Quantum superloader 3 before, please let me know. btape is not working but mtx work fine. Is there any further logging I can enable, to get more information for what btape is finding wrong. Kind Regards, Prashant Prashant Ramhit wrote: Hi Dan, From the following files I can see the Changer device is /devsg0 and the Archive Device is /dev/nst0. But btape -c bacula-sd.conf /dev/nst0 give me the following and freezes and nothing else. r...@backupserver:/etc/bacula# *btape -c bacula-sd.conf /dev/nst0* Tape block granularity is 1024 bytes. btape: butil.c:285 Using device: "/dev/nst0" for writing. 06-Mar 16:38 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command. 06-Mar 16:38 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing loaded. Is there anything I can do to get this fixed please, Kind regards, Prashant Some out put commands r...@backupserver:/etc/bacula# *mtx -f /dev/sg2 status* Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full :VolumeTag=VOL101 Storage Element 2:Full :VolumeTag=VOL102 Storage Element 3:Empty Storage Element 4:Empty Storage Element 5:Empty Storage Element 6:Empty Storage Element 7:Empty Storage Element 8:Empty Storage Element 9:Empty Storage Element 10:Empty Storage Element 11:Empty Storage Element 12:Empty Storage Element 13:Empty Storage Element 14:Empty Storage Element 15:Empty Storage Element 16:Empty r...@backupserver:/etc/bacula# lsscsi [2:0:0:0]diskATA HDS728080PLA380 PF2O /dev/sda [4:0:5:0]tapeHP Ultrium 4-SCSI B22Z /dev/st0 [4:0:5:1]mediumx QUANTUM UHDL 0054 - r...@backupserver:/etc/bacula# * * Dan Langille wrote: Prashant Ramhit wrote: Hi All, Is anyone using a SuperLoader 3 LTO4 . I cannot get it to load and unload tapes. Please have a look at my bacula-sf.conf, is there anything wrong in it? Many thanks Prashant Storage { Name = server-sd SDPort = 9103 WorkingDirectory = "/var/bacula/working" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 } Director { Name = backupserver-dir Password = "password" } Autochanger { Name = AutoLoader Device = TapeDrive Changer Device = /dev/sg2 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Have you: run the btape tests, including the changer test? tried running the changer command (above) manually, from the command line? If yes to either, what are the results? } Device { Name = TapeDrive Drive Index = 0 Autochanger = yes Archive Device = /dev/nst0 Media Type = LTO-4 LabelMedia = yes; # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Offline On Unmount = no Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } Messages { Name = Standard director = backupserver-dir = all } -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] why catalog backup
On Mon, 09 Mar 2009 09:19:28 +0100, Ulrich Leodolter wrote: do i really need a daily catalog backup ? (like the default setup) isn't it enough to dump (maybe rsync) the catalog database to other system(s) ? Yes, that will be fine. Make sure you properly dump and not just rsync the folder containing the database. I would have each dump compressed and have the name of the file contain the date of the dump. Here is what I do daily for a different database backup: #! /bin/sh mkdir -p /var/backup/mythtv mysqlrepair --all-databases /usr/bin/mysqldump -u mythtv -pmythtv mythconverg | /bin/bzip2 -c /var/backup/mythtv/mythtv-`date +%F`.bz2 Hello, I think about snapshot backup http://www.lenzg.net/mylvmbackup/ if your host with bacula catalog database dies, you really wan't to have a catalog backup. re-creating the catalog from the tapes/disk isn't really a fun task (if you have lot's of tapes and/or lots of data it will be a pain-in-the-ass job). you will be _much_ faster restoring it from a dump. if you don't backup it regularly with your jobs, i recommend at least to have a copy on another computer. what are your motives to not make backups of your catalog? - Thomas -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Permissions error
I'm getting the following error, and have no idea why - hoping someone can shed some light on it. It seems to be only happening for the Full backup (which is the only one that has a RunBeforeJob defined currently - I'm not sure what that does so I hadn't added it to others yet). I've included the message and permissions listings below. This is on Ubuntu 8.04. -- Forwarded message -- Subject: Bacula: Backup Error of flamtap.com-fd Full 07-Mar 23:10 flamtap.com-dir JobId 1594: BeforeJob: run command /usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk -v cat1=BackupCatalog /etc/bacula/bacula-dir.conf 07-Mar 23:10 flamtap.com-dir JobId 1594: BeforeJob: awk: /etc/bacula/scripts/make_catalog_backup_awk:10: fatal: cannot open file `/etc/bacula/bacula-dir.conf' for reading (Permission denied) 07-Mar 23:10 flamtap.com-dir JobId 1594: Error: Runscript: BeforeJob returned non-zero status=2. ERR=Child exited with code 2 ls -l /etc/bacula: -rw-r- 1 root root 11184 2009-03-05 23:27 bacula-dir.conf -rw-r- 1 root root8710 2009-03-01 22:54 bacula-dir.conf.dist -rw-r- 1 root root1024 2009-03-01 22:54 bacula-fd.conf -rw-r- 1 root root1023 2009-03-01 22:54 bacula-fd.conf.dist -rw-r- 1 bacula bacula 6481 2009-03-01 22:54 bacula-sd.conf -rw-r- 1 bacula bacula 6467 2009-03-01 22:54 bacula-sd.conf.dist -rw-r- 1 root bacula 178 2009-03-01 22:54 bconsole.conf -rw-r- 1 root bacula 178 2009-03-01 22:54 bconsole.conf.dist drwx-- 2 root root4096 2009-03-01 22:54 dir-files drwxr-xr-x 2 root root4096 2009-03-01 22:55 scripts ls -l /etc/bacula/scripts: -rw-r--r-- 1 root root 280 2009-03-01 22:54 btraceback.gdb -rwxr-xr-x 1 root root 104 2009-03-01 22:54 delete_catalog_backup -rwxr-xr-x 1 root root 6752 2009-03-01 22:54 disk-changer -rwxr-xr-x 1 root root 16997 2009-03-01 22:54 dvd-handler -rwxr-xr-x 1 root root 1949 2009-03-01 22:54 make_catalog_backup -rw-r--r-- 1 root root 1646 2009-03-01 22:54 make_catalog_backup_awk -rwxr-xr-x 1 root root 5861 2009-03-01 22:54 mtx-changer -rw-r--r-- 1 root root 6635 2009-03-01 22:54 query.sql -- Tony Yarusso http://tonyyarusso.com/ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Permissions error
I'm getting the following error, and have no idea why - hoping someone can shed some light on it. It seems to be only happening for the Full backup (which is the only one that has a RunBeforeJob defined currently - I'm not sure what that does so I hadn't added it to others yet). I've included the message and permissions listings below. This is on Ubuntu 8.04. -- Forwarded message -- Subject: Bacula: Backup Error of flamtap.com-fd Full 07-Mar 23:10 flamtap.com-dir JobId 1594: BeforeJob: run command /usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk -v cat1=BackupCatalog /etc/bacula/bacula-dir.conf 07-Mar 23:10 flamtap.com-dir JobId 1594: BeforeJob: awk: /etc/bacula/scripts/make_catalog_backup_awk:10: fatal: cannot open file `/etc/bacula/bacula-dir.conf' for reading (Permission denied) 07-Mar 23:10 flamtap.com-dir JobId 1594: Error: Runscript: BeforeJob returned non-zero status=2. ERR=Child exited with code 2 I strongly believe that these catalog backup scripts are something very Ubuntu-spesific stuff, that has been set up by Ubuntu packagers and does not originate from bacula developers. Answering propably would require knowledge what these scripts are supposed to do. So maybe you had better luck with this if you asked this in some Ubuntu-spesific forum? Regards, Timo -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Permissions error
May be runbefore script is executed as bacula user while bacula-dir.conf is owned by root and other users are forbidden to read/write/exec it. A solution should be: sudo chown bacula. /etc/bacula/bacula-dir.conf I hope it helps.. Massimo On Mon, 2009-03-09 at 04:52 -0500, Tony Yarusso wrote: /etc/bacula/bacula-dir.con -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Permissions error
On Monday 09 March 2009 5:52:19 am Tony Yarusso wrote: I'm getting the following error, and have no idea why - hoping someone can shed some light on it. It seems to be only happening for the Full backup (which is the only one that has a RunBeforeJob defined currently - I'm not sure what that does so I hadn't added it to others yet). I've included the message and permissions listings below. This is on Ubuntu 8.04. [snip] 07-Mar 23:10 flamtap.com-dir JobId 1594: BeforeJob: awk: /etc/bacula/scripts/make_catalog_backup_awk:10: fatal: cannot open file `/etc/bacula/bacula-dir.conf' for reading (Permission denied) [snip] ls -l /etc/bacula: -rw-r- 1 root root 11184 2009-03-05 23:27 bacula-dir.conf The bacula-dir program generally runs as the user bacula, which will not have permission to read this file. You can chgrp it to some group that bacula is part of (disk, perhaps) and it should then be able to read it. Brian -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
On 09.03.2009, at 11:20, Gerald Leier wrote: Hello, Hi, Is there some kind of archive containing valid bacula FileSet configurations available somewhere? You might want to check out the wiki: http://wiki.bacula.org/doku.php?id=sample_configs Even sniplets like for example exclude patterns would be very helpfull in figuring out how to do it right. The following example is something that looks ok to me but doesnt work at all and makes bacula barf about allmost every line contained within the exclude options.(the ones containing wild*) Also im a little confused about Exclude{} and Exclude=yes... comparing rel-bacula.pdf with the provided default configurations and the few google hits just made that worse. i use bacula 2.4.4. --- FileSet { Name = WinxpFull Enable VSS = yes Include { Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp wilddir = c:/windows/temp* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat } } --- bacula-dir -t Config error: Keyword wilddir not permitted in this resource any hints would be very appreciated. If you include exclude = yes in your Exclude {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ (seems weird to me since the block is clearly called Exclude...) First of all a Exclude {} block accepts only File directives. If you want to exclude files and/or directories based on wildcards or regexps than you have to put these insind an Options {} block. If you include exclude = yes in your Options {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ Following your example the FileSet should look like this: FileSet { Name = WinxpFull Enable VSS = yes Include { Options { wilddir = c:/windows/temp/* wilddir = *temporary internet files* wildfile = *pagefile.sys wildfile = *.log wildfile = *system32/perflib*.dat exclude = yes } Options { signature = SHA1 compression=GZIP ignore case = yes } File = c:/ File = d:/ } Exclude { File = c:/temp File = d:/temp } } Note that if you put something inside an Exclude {} block it will be completely ignored (the whole directory). If you have to restore your system then there will be no temp dir on you disks. sincerely yours Gerald -- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users regards, Stefan Sorin Nicolin http://nicolinux.org/timr --- Unix guy, Mac head, Rails wannabe, iPhone Dev-ious, Computer Science alumnus, usability guesspert and overall big time visionary -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] why catalog backup
Hello, On Mon, 2009-03-09 at 12:47 +0200, Timo Neuvonen wrote: if your host with bacula catalog database dies, you really wan't to have a catalog backup. re-creating the catalog from the tapes/disk isn't really a fun task (if you have lot's of tapes and/or lots of data it will be a pain-in-the-ass job). you will be _much_ faster restoring it from a dump. if you don't backup it regularly with your jobs, i recommend at least to have a copy on another computer. what are your motives to not make backups of your catalog? I think he wasn't going to not-to-do-any-backup, but the question actually was if it is better to backup the catalog dump as a regular Bacula backup (as in default conf) or simply dump it to another system. If doing both of them isn't an option, I would choose to back the catalog to another computer, that is in a different physical location. But the bottom line is to have a catalog backup that really can be restored, and is as safe as the actual backup media. So, making catalog backup only to another computer located in the same room or cabinet with the original one obviously is not a good choice if it is desirable to recover something from the properly saved other media after a fire or sabotage. Another thing to remember: though conf files are not impossible to set up from a scratch again, it propably will save lot of valuable time during a distaster recovery (or even after an accidental deletion of a conf file) if also all the conf files of the Bacula daemons are backed up to somewhere (together with the catalog dump) where they are available without a working install of Bacula. In other words, if they are stored somewhere outside of the Bacula-accessible-only backup media. I am doing both, my make_daily_backup script is called as second RunBeforeScript. /opt/bacula contains full bacula installation + catalog backup made by first RunBeforeScript RunBeforeJob = /opt/bacula/etc/make_catalog_backup bacula bacula RunBeforeJob = /opt/bacula/etc/make_daily_backup #!/bin/bash # make_dail_backup script HERE=`uname -n` THERE=backup2 PIPE=/tmp/bacula_backup_pipe rm -rf $PIPE mkfifo $PIPE || exit 1 ssh u...@$there cat /home/ul/backup/bacula-daily.tar.gz $PIPE cd / tar -czf - opt/bacula $PIPE exit 0 Regards, Timo -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Quantum Superloader3 LT04
On Mon, Mar 9, 2009 at 5:17 AM, Prashant Ramhit prash...@bluebarracuda.com wrote: Hi All, Any one had previous with Quantum superloader 3 before, please let me know. btape is not working but mtx work fine. Is there any further logging I can enable, to get more information for what btape is finding wrong. Bacula executables (utility tools + daemons) accept -d 100 as a param and this will enable debug output. John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
On 09.03.2009, at 13:55, Martin Simmons wrote: On Mon, 9 Mar 2009 12:41:06 +0100, Stefan Sorin Nicolin said: If you include exclude = yes in your Exclude {} block then all Files and/or directories selected would be excluded. If you leave out the exclude=yes statement then everything will be _included_ (seems weird to me since the block is clearly called Exclude...) I think you have this mixed up. All matching items in the Exclude {} block are excluded and exclude = yes is ignored there. Can you give an example where that is wrong? Yes, you are right. I mixed it up. Ment to remove this paragraph before sending but forgot it. Thanks __Martin Stefan Sorin Nicolin http://nicolinux.org/timr --- Unix guy, Mac head, Rails wannabe, iPhone Dev-ious, Computer Science alumnus, usability guesspert and overall big time visionary -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Problems with Verify
Hello, I have a problem with the VolumeToCatalog Verify of one of my backup jobs. I always get the error message that some files are in the Catalog but not on the volume. However this is not true - I can successfully restore files which are being reported as missing. I just reinitialized my whole bacula database and tried it with a fresh configuration but the logfile always looks the same: 09-Mar 16:06 DIR.linus JobId 3: Verifying against JobId=2 Job=JOB.Backup.linus.sts.2009-03-09_15.28.04 09-Mar 16:06 DIR.linus JobId 3: Bootstrap records written to /var/lib/bacula/DIR.linus.restore.1.bsr 09-Mar 16:06 DIR.linus JobId 3: 09-Mar 16:06 DIR.linus JobId 3: The job will require the following Volume(s) Storage(s)SD Device(s) === 09-Mar 16:06 DIR.linus JobId 3: 09-Mar 16:06 DIR.linus JobId 3:VOL-MANUAL-0001 STORE.FileStorage DEV.FileStorage 09-Mar 16:06 DIR.linus JobId 3: 09-Mar 16:06 DIR.linus JobId 3: Start Verify JobId=3 Level=VolumeToCatalog Job=JOB.Verify.linus.sts.2009-03-09_16.06.06 09-Mar 16:06 DIR.linus JobId 3: Using Device DEV.FileStorage 09-Mar 16:06 SD.xen JobId 3: Ready to read from volume VOL-MANUAL-0001 on device DEV.FileStorage (/local/var/backup/volumes). 09-Mar 16:06 SD.xen JobId 3: Forward spacing Volume VOL-MANUAL-0001 to file:block 0:199. 09-Mar 16:11 SD.xen JobId 3: End of Volume at file 7 on device DEV.FileStorage (/local/var/backup/volumes), Volume VOL-MANUAL-0001 09-Mar 16:11 SD.xen JobId 3: End of all volumes. 09-Mar 16:11 DIR.linus JobId 3: The following files are in the Catalog but not on the Volume(s): ... VERY LONG LIST OF FILES... 09-Mar 16:11 DIR.linus JobId 3: Bacula DIR.linus 2.2.8 (26Jan08): 09-Mar-2009 16:11:59 Build OS: x86_64-pc-linux-gnu debian lenny/sid JobId: 3 Job:JOB.Verify.linus.sts.2009-03-09_16.06.06 FileSet:FSET.linus.sts Verify Level: VolumeToCatalog Client: CLIENT.linus Verify JobId: 2 Verify Job: JOB.Backup.linus.sts Start time: 09-Mar-2009 16:06:23 End time: 09-Mar-2009 16:11:59 Files Expected: 70,966 Files Examined: 70,966 Non-fatal FD errors:0 FD termination status: OK SD termination status: OK Termination:Verify Differences # Bacula always seems to think that the end of volume is reached: - 09-Mar 16:11 SD.xen JobId 3: End of Volume at file 7 on device DEV.FileStorage (/local/var/backup/volumes), Volume VOL-MANUAL-0001 There are no other errors and I can successfully restore files which are reported as missing. Any Ideas? -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Quantum Superloader3 LT04
Hi All, I manually loaded a tape in the drive and ran "btape" test. All went well, except at the auto changer bit, where is gave me unload status=Bad 268435457 although the tape was unloaded to its slot. I do have mt-st installed. btape runs as root so as bacula-sd Any one can help me to get this solved? So you think my sd-conf is wrong? Can anyone please point to the proper direction to fix this. Kind Regards, Prashant === Autochanger test === 3301 Issuing autochanger "loaded" command. btape: btape.c:1169-0 run_prog: /etc/bacula/mtx-changer /dev/sg2 loaded 1 /dev/nst0 0 stat=0 result="1 " Slot 1 loaded. I am going to unload it. btape: btape.c:1183-0 Results from loaded query=1 btape: dev.c:1836-0 close_dev "TapeDrive" (/dev/nst0) btape: dev.c:1826-0 Clear volhdr vol= 3302 Issuing autochanger "unload 1 0" command. unload status=Bad 268435457 3992 Bad autochanger command: /etc/bacula/mtx-changer /dev/sg2 unload 1 /dev/nst0 0 3992 result="Unloading drive 0 into Storage Element 1...mtx: Request Sense: Long Report=yes ": ERR=Child exited with code 1 3303 Issuing autochanger "load 1 0" command. btape: btape.c:1211-0 Changer=/etc/bacula/mtx-changer /dev/sg2 load 1 /dev/nst0 0 btape: dev.c:1836-0 close_dev "TapeDrive" (/dev/nst0) btape: dev.c:1843-0 device "TapeDrive" (/dev/nst0) already closed vol= btape: btimers.c:107-0 watchdog 80d7850 term PID 10942 3993 Bad autochanger command: /etc/bacula/mtx-changer /dev/sg2 load 1 /dev/nst0 0 3993 result="Drive 0 Full (Storage Element 1 loaded) ": ERR=Child died from signal 15: Termination You must correct this error or the Autochanger will not work. *btape: btape.c:2581 "" is an invalid command *btape: btape.c:2581 "" is an invalid command * mimmo lariccia wrote: Date: Mon, 9 Mar 2009 10:00:00 -0400 From: dresche...@gmail.com To: prash...@bluebarracuda.com; Bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Quantum Superloader3 LT04 On Mon, Mar 9, 2009 at 5:17 AM, Prashant Ramhit prash...@bluebarracuda.com wrote: Hi All, Any one had previous with Quantum superloader 3 before, please let me know. btape is not working but mtx work fine. Is there any further logging I can enable, to get more information for what btape is finding wrong. Bacula executables (utility tools + daemons) accept -d 100 as a param and this will enable debug output. John And in every case: - have You tried to pre-load manually a tape into the drives and then run the "btape" test? And more over: - have You checked who are the owners of /usr/sbin/b_commands ? Cheers... -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users Get news, entertainment and everything you care about at Live.com. Check it out! -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Quantum Superloader3 LT04
On Mon, Mar 9, 2009 at 12:57 PM, Prashant Ramhit prash...@bluebarracuda.com wrote: Hi All, I manually loaded a tape in the drive and ran btape test. All went well, except at the auto changer bit, where is gave me unload status=Bad 268435457 although the tape was unloaded to its slot. I do have mt-st installed. btape runs as root so as bacula-sd Any one can help me to get this solved? So you think my sd-conf is wrong? No. Most likely your mtx-changer script is not customized for your hardware. So you need to edit the file to fix this. Can anyone please point to the proper direction to fix this. Did the changer finish unloading before btape printed the error message? John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Quantum Superloader3 LT04
Title: Blue Barracuda Hi John, Yes the changer unloaded the tape then I had the error message. Thanks again, Prashant John Drescher wrote: On Mon, Mar 9, 2009 at 12:57 PM, Prashant Ramhit prash...@bluebarracuda.com wrote: Hi All, I manually loaded a tape in the drive and ran "btape" test. All went well, except at the auto changer bit, where is gave me unload status=Bad 268435457 although the tape was unloaded to its slot. I do have mt-st installed. btape runs as root so as bacula-sd Any one can help me to get this solved? So you think my sd-conf is wrong? No. Most likely your mtx-changer script is not customized for your hardware. So you need to edit the file to fix this. Can anyone please point to the proper direction to fix this. Did the changer finish unloading before btape printed the error message? John -- Prashant Ramhit Technical prash...@bluebarracuda.com d: +44 (0)20 7923 6870 t: +44 (0)20 7923 6840 www.bluebarracuda.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Quantum Superloader3 LT04
On Mon, Mar 9, 2009 at 1:07 PM, Prashant Ramhit prash...@bluebarracuda.com wrote: Hi John, Yes the changer unloaded the tape then I had the error message. I think you need a delay after the load. There is a section it the mtx-changer that talks about this. The reason why I believe this is the cause is the following line: 3992 result=Unloading drive 0 into Storage Element 1...mtx: Request Sense: Long Report=yes I see this error on my changer if bacula tries to run mtx commands when the archive is busy doing some other operation. Here is the lines to change in mtx-changer: # # Increase the sleep time if you have a slow device # or remove the sleep and add the following: # sleep 15 wait_for_drive $device before the wait_for_drive add sleep 120 and see if that fixes the issue. John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bacula with an empty tape drive (was: mtx-changer loaded issues)
On Fri, Mar 6, 2009 at 6:29 PM, (private) HKS hks.priv...@gmail.com wrote: On Fri, Mar 6, 2009 at 3:29 PM, mark.berg...@uphs.upenn.edu wrote: In the message dated: Fri, 06 Mar 2009 14:30:12 EST, The pithy ruminations from (private) HKS on Re: [Bacula-users] mtx-changer loaded issues were: = On Fri, Mar 6, 2009 at 2:00 PM, Arno Lehmann a...@its-lehmann.de wrote: = Hi, = = 06.03.2009 16:20, (private) HKS wrote: = Thanks for the response. = = On Fri, Mar 6, 2009 at 3:12 AM, Arno Lehmann a...@its-lehmann.de wrote: = Hi, = = 05.03.2009 21:57, (private) HKS wrote: = Hello, = = I'm introducing a Dell Powervault 124T autochanger to my Bacula = config, and am having a bit of trouble with the mtx-changer script. I've got a Dell PV132T. Which mtx does the script call? I'm running 1.2.18rel with no problems. = = Bacula 2.2.8 on OpenBSD 4.4. Oh. Hmm... I haven't done anything with OpenBSD, so I'm not sure how much I can help. [SNIP!] = = = Okay, I think I understand how Bacula is handling these. I'm testing = some other modifications to the mtx-changer script, though. If anybody = has a working autochanger on Linux, could you send me the following = output for comparison's sake? I can send you some of that info. = = - mtx -f device inventory sudo mtx -f /dev/changer inventory (no output, exit status = 0) = - mtx -f device status sudo mtx -f /dev/changer status Storage Changer /dev/changer:2 Drives, 24 Slots ( 1 Import/Export ) Data Transfer Element 0:Empty Data Transfer Element 1:Full (Storage Element 18 Loaded):VolumeTag = 000127 Storage Element 1:Full :VolumeTag=000314 Storage Element 2:Full :VolumeTag=000311 Storage Element 3:Full :VolumeTag=94 Storage Element 4:Full :VolumeTag=000315 Storage Element 5:Full :VolumeTag=000317 Storage Element 6:Full :VolumeTag=000113 Storage Element 7:Full :VolumeTag=95 Storage Element 8:Full :VolumeTag=000123 Storage Element 9:Full :VolumeTag=14 Storage Element 10:Full :VolumeTag=000118 Storage Element 11:Full :VolumeTag=50 Storage Element 12:Full :VolumeTag=000114 Storage Element 13:Full :VolumeTag=51 Storage Element 14:Full :VolumeTag=000116 Storage Element 15:Full :VolumeTag=000159 Storage Element 16:Full :VolumeTag=000301 Storage Element 17:Full :VolumeTag=000146 Storage Element 18:Empty:VolumeTag= Storage Element 19:Full :VolumeTag=000141 Storage Element 20:Full :VolumeTag=000142 Storage Element 21:Full :VolumeTag=000144 Storage Element 22:Full :VolumeTag=46 Storage Element 23:Full :VolumeTag=000143 Storage Element 24 IMPORT/EXPORT:Empty:VolumeTag= = - mtx-changer device list sudo mtx -f /dev/changer list Usage: mtx --version mtx [ -f loader-dev ] noattach more commands mtx [ -f loader-dev ] inquiry | inventory mtx [ -f loader-dev ] [nobarcode] status mtx [ -f loader-dev ] first [drive#] mtx [ -f loader-dev ] last [drive#] mtx [ -f loader-dev ] next [drive#] mtx [ -f loader-dev ] previous [drive#] mtx [ -f loader-dev ] [invert] load storage-element-number [drive#] mtx [ -f loader-dev ] [invert] unload [storage-element-number][drive#] mtx [ -f loader-dev ] [eepos eepos-number] transfer storage-element-number storage-element-number mtx [ -f device ] eject = - mtx-changer device loaded 0 drive drive index I've got backups running right now, so I'm not going to move tapes around. In addition, the version of mtx I'm running uses a different syntax (see above). = = This would be really, really helpful. I hope so... Mark Thanks a ton to John and Mark for getting me that information so quickly. That was a great help. I rewrote much of mtx-changer to interact more happily with my environment (OpenBSD 4.4 w/Dell Powervault 124T 16-tape changer, for those just joining us). My goals were to make it more or less slot-agnostic so I don't have to be careful about sticking the right tapes into the right slots and all that nonsense. The trick was treating slots from Bacula like volume tags for chio, and vice versa. I *think* this will work, but I haven't been able to test because bacula-sd hangs if I start it up without a tape loaded. By hangs I mean status storage never returns - it just sits on the Connecting line. This happens with the default mtx-changer script as well, and I haven't been able to track down any rhyme or reason here. When I push all sd messages to a log file, it just shows this upon startup: -- 06-Mar 17:17 bacula-sd JobId 0: 3301 Issuing autochanger loaded? drive 0 command. 06-Mar 17:17 bacula-sd JobId 0: 3302 Autochanger loaded? drive 0, result: nothing loaded. 06-Mar 17:17 bacula-sd JobId 0: 3301 Issuing autochanger loaded? drive 0 command. 06-Mar 17:17 bacula-sd JobId 0: 3302 Autochanger loaded? drive 0, result: nothing loaded. -- Logging all
Re: [Bacula-users] Bacula with an empty tape drive (was: mtx-changerloaded issues)
Changed the subject to better reflect the current issue. Attempting to run bacula-sd or btape when my drive is empty results in the application hanging. I believe this is related to section 37.1.1 in the manual. Can anyone confirm that Bacula simply does not operate properly when configured to use a tape drive that does not have a tape in it? Are there any workarounds for this? -HKS relevant bacula-sd.conf: Autochanger { Name = 124T-Autochanger Device = 124T-Drive Changer Command = /usr/local/libexec/bacula/mtx-changer %c %o %s %a %d Changer Device = /dev/ch0 } Device { Name = 124T-Drive Drive Index = 0 Media Type = 124T Archive Device = /dev/nrst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes Hardware End of Medium = No Fast Forward Space File = No BSF at EOM = yes } Not sure why you are having such issues. I've used a Dell PV142T with only one tape drive and have had no problems when the drive was empty. I am using btape right now and it doesn't like it if there is no tape. I haven't used the Dell library in over a year now. I did not have to modify any scripts to get it to work. Robert LeBlanc Life Sciences Computer Support Brigham Young University lebl...@byu.edu (801)422-1882 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula with an empty tape drive (was: mtx-changer loaded issues)
Changed the subject to better reflect the current issue. Attempting to run bacula-sd or btape when my drive is empty results in the application hanging. I believe this is related to section 37.1.1 in the manual. Can anyone confirm that Bacula simply does not operate properly when configured to use a tape drive that does not have a tape in it? Are there any workarounds for this? I have no issues starting bacula-sd or bscan with an empty tape drive actually this is the way I do that every time. John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula with an empty tape drive (was: mtx-changerloaded issues)
On Mon, Mar 9, 2009 at 2:40 PM, Robert LeBlanc rob...@leblancnet.us wrote: Changed the subject to better reflect the current issue. Attempting to run bacula-sd or btape when my drive is empty results in the application hanging. I believe this is related to section 37.1.1 in the manual. Can anyone confirm that Bacula simply does not operate properly when configured to use a tape drive that does not have a tape in it? Are there any workarounds for this? -HKS relevant bacula-sd.conf: Autochanger { Name = 124T-Autochanger Device = 124T-Drive Changer Command = /usr/local/libexec/bacula/mtx-changer %c %o %s %a %d Changer Device = /dev/ch0 } Device { Name = 124T-Drive Drive Index = 0 Media Type = 124T Archive Device = /dev/nrst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes Hardware End of Medium = No Fast Forward Space File = No BSF at EOM = yes } Not sure why you are having such issues. I've used a Dell PV142T with only one tape drive and have had no problems when the drive was empty. I am using btape right now and it doesn't like it if there is no tape. I haven't used the Dell library in over a year now. I did not have to modify any scripts to get it to work. Robert LeBlanc Life Sciences Computer Support Brigham Young University lebl...@byu.edu (801)422-1882 Thanks for the responses. The trouble listed in my other thread is mostly due to OpenBSD's chio utility not keeping track of the slot from which the currently loaded tape was pulled. I'm unclear on your response, though. Are you saying that btape gives you problems if you don't have a tape loaded? If it's working, would you mind including your storage configs? -HKS -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula with an empty tape drive (was:mtx-changerloaded issues)
Thanks for the responses. The trouble listed in my other thread is mostly due to OpenBSD's chio utility not keeping track of the slot from which the currently loaded tape was pulled. I'm unclear on your response, though. Are you saying that btape gives you problems if you don't have a tape loaded? If it's working, would you mind including your storage configs? Btape bombs out if there is not a tape loaded. I have to manually load a tape, also if bacula-sd is running, I have to first release the drive, then manually load the tape and then run btape. I thought bacula kept track of where the tapes were loaded from. The reason I suspect this is that before I had udev map the drives based on WWID, tapes would get swapped when the drives did not come up in the same order. The mtx command showed the correct slot loaded in the drive, but Bacula would switch them. Robert LeBlanc Life Sciences Computer Support Brigham Young University lebl...@byu.edu (801)422-1882 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula with an empty tape drive (was:mtx-changerloaded issues)
On Mon, Mar 9, 2009 at 3:20 PM, Robert LeBlanc rob...@leblancnet.us wrote: Thanks for the responses. The trouble listed in my other thread is mostly due to OpenBSD's chio utility not keeping track of the slot from which the currently loaded tape was pulled. I'm unclear on your response, though. Are you saying that btape gives you problems if you don't have a tape loaded? If it's working, would you mind including your storage configs? Btape bombs out if there is not a tape loaded. I have to manually load a tape, also if bacula-sd is running, I have to first release the drive, then manually load the tape and then run btape. I thought bacula kept track of where the tapes were loaded from. The reason I suspect this is that before I had udev map the drives based on WWID, tapes would get swapped when the drives did not come up in the same order. The mtx command showed the correct slot loaded in the drive, but Bacula would switch them. Robert LeBlanc Life Sciences Computer Support Brigham Young University lebl...@byu.edu (801)422-1882 I think you're right that Bacula tracks this itself too, but mtx-changer /dev/ch0 loaded is written to report the slot number that's loaded into the drive itself. This is also how Bacula interprets it. Anyway, I'll save my changes to this script until I've finished testing them. On another note, I've discovered that I jumped the gun when concluding that the sd hung without a tape. btape does indeed eat itself when the there's no tape, but the sd was apparently just waiting for the Maximum Open Wait window to expire before it would respond to status requests. After five minutes of this: *status storage Automatically selected Storage: Tape Connecting to Storage daemon Tape at 10.123.0.17:9103 I finally got a reply. Decreasing this window to 30 seconds makes it a bit more palatable, though I have to test to make sure this isn't going to cause other problems. Thanks for the help, and sorry for misunderstanding that behavior. -HKS -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula with an empty tape drive (was:mtx-changerloaded issues)
I think you're right that Bacula tracks this itself too, but mtx-changer /dev/ch0 loaded is written to report the slot number that's loaded into the drive itself. This is also how Bacula interprets it. Anyway, I'll save my changes to this script until I've finished testing them. On another note, I've discovered that I jumped the gun when concluding that the sd hung without a tape. btape does indeed eat itself when the there's no tape, but the sd was apparently just waiting for the Maximum Open Wait window to expire before it would respond to status requests. After five minutes of this: *status storage Automatically selected Storage: Tape Connecting to Storage daemon Tape at 10.123.0.17:9103 I finally got a reply. Decreasing this window to 30 seconds makes it a bit more palatable, though I have to test to make sure this isn't going to cause other problems. That will likely make all changer loads fail. Because bacula will terminate any load that takes longer than 30 seconds. I don't know about your archive but mine takes at least 90 seconds to find a slot grab the tape, put it in the drive and the drive to recognize the tape. John -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula loses tape label?
So it seems this is related to the library losing power and during the start-up it rewind the tape. Bacula then happily writes to the tape without knowing that it is not at the end of the data. To have bacula always check would be a pain because the best I can come up with is to rewind the tape and then forward to the end. To have that happen at every job would be a nightmare. Unfortunately I couldn't find a way for the LTO drive to report which file it was positioned at, that sure would be helpful in this case. It also seems that LTO keeps the last file record on the chip in the cartridge, so even if the bits are intact on the tape, the drive refuses to read them. Also when bcopy is run, it can't find the Volume tag so it dies without trying to read anything. Although I could use btape and issue the scanblocks command it would read all the Bacula blocks on the tape. This makes me very confused about what exactly Bacula can and can't read off the tape. If anyone has any other ideas I can try, I'd like to hear them. Otherwise, I guess I'll have to just recycle the volumes and hope that they didn't need the data on the tapes. Robert LeBlanc Life Sciences Computer Support Brigham Young University lebl...@byu.edu (801)422-1882 From: Robert LeBlanc Sent: Saturday, March 07, 2009 10:25 PM To: Bacula-users@lists.sourceforge.net Subject: [Bacula-users] Bacula loses tape label? I've and my third instance now where Bacula has lost the tape label. This seems to happen after a power outage (our tape library goes out, but the server is on UPS). What is really interesting is that when the power goes out, nothing is writing to the tape, but the tape is usually in the drive at the end of the data. When Bacula goes to write to the tape again, it tells me to insert the volume that is in the drive or label a new tape. I would just write a new label to it, but my understanding is that it also writes an EoF basically blanking the tape and losing all the data on it. Can someone give me an idea of how to get the data off or relabel the tape so that none of the data is lost? These are LTO4 tape and only using 100 GB or so; we are going to run through the tapes too fast if I just have to mark them as used. I'm also worried that I won't be able to restore any data off them since the label can not be read. Here are the btape commands to read the labels from two of the tapes; I can't remember the third tape that showed the problem. Thanks, Robert btape: butil.c:285 Using device: /dev/tape/drive2 for writing. 07-Mar 22:12 btape JobId 0: 3301 Issuing autochanger loaded? drive 2 command. 07-Mar 22:12 btape JobId 0: 3302 Autochanger loaded? drive 2, result is Slot 101. btape: btape.c:372 open device Drive-2 (/dev/tape/drive2): OK *readlabel btape: btape.c:422 Volume has no label. Volume Label: Id: **error**VerNo : 0 VolName : PrevVolName : VolFile : 0 LabelType : Unknown 0 LabelSize : 0 PoolName : MediaType : PoolType : HostName : Date label written: -4712-01-01 at 00:00 *q lsgw0:/home/leblanc# btape /dev/tape/drive2 Tape block granularity is 1024 bytes. btape: butil.c:285 Using device: /dev/tape/drive2 for writing. 07-Mar 22:22 btape JobId 0: 3301 Issuing autochanger loaded? drive 2 command. 07-Mar 22:22 btape JobId 0: 3302 Autochanger loaded? drive 2, result is Slot 105. btape: btape.c:372 open device Drive-2 (/dev/tape/drive2): OK *readlabel btape: btape.c:422 Volume has no label. Volume Label: Id: **error**VerNo : 0 VolName : PrevVolName : VolFile : 0 LabelType : Unknown 0 LabelSize : 0 PoolName : MediaType : PoolType : HostName : Date label written: -4712-01-01 at 00:00 * -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Quantum Superloader3 LT04
Hi Prashant, I am using Quantum Superloader 3 LTO-4 on W2k Server and Debian (etch) connected through Adaptec 29160LP to good success. If needed I can do some test for you. Cheers. Udo -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users