Re: [Bacula-users] Merry Christmas...

2006-12-24 Thread Sarath Jayewardena


 On Dec 23, 2006, at 7:40 AM, Arno Lehmann wrote:
 
  ... to all of you, even if you aren't christian, or have to work, or
  whatever. Have some nice days!
 
  Arno
 
Merry Christmas and Happy Holidays to all in the Bacula community
including Kern and other developers. A big thank to all of you for
developing such a good piece of software and for excellent, gentle
support. Where else would you find a discussion list in which the chief
developer reads each and every mail and answers questions even from
dummies like us! The same goes for other leading developers. Thank you all
again!

- Sarath


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restored file not found

2006-11-08 Thread Sarath Jayewardena
Have you checked for the restored files on the correct machine? From your
output, the files are restored in the /data/bacula-restores/ directory on
tls-intra-fd. By default, files are restored to a directory on the
corresponding client.

- Sarath

On Wed, 8 Nov 2006, DAve wrote:

 Good morning,
 
 What little time I have to work with the new Bacula install has gone 
 well. I have all my clients working, baculaups are running fine.
 Thanks for the help with the messages resource, my messages are working 
 as we wanted now.
 
 I wanted to test a restore before turning off my old Bacula install and 
 I can't seem to find the files! Oddly, everything appears to be working 
 fine. The restore process functions, I find the file and mark it, 
 messages show the restore is running, I get a completion notice showing 
 the file restored. But when I look in my bacula-restores directory there 
 is nothing there.
 
 Perms on bacula-restores are bacula:bacula
 
 bash-2.05b# ls -la /data/bacula-restores/
 total 4
 drwxr-xr-x  2 bacula  bacula  512 Jul 10 14:01 .
 drwxr-xr-x  7 bacula  bacula  512 Oct 11 14:28 ..
 
 
 The default restore job is unchanged from the install other than the 
 restore location.
 
 # 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 = director-fd
FileSet=Full Set
Storage = director
Pool = Default
Messages = Standard
Where = /data/bacula-restores
 }
 
 
 I find the file and mark it, I mod the 'When' param, I mod the 'Storage' 
 param, and run the job. Checking status from bconsole shows the job 
 running just fine. The job notification is below,
 
 08-Nov 10:39 director-dir: Start Restore Job 
 RestoreFiles.2006-11-08_10.39.34
 08-Nov 08:29 storage2-sd: Ready to read from volume 
 Inc-tls-intra-data-0001 on device FileStorage-tls-intra-data 
 (/data/backups/tls/intra-data).
 08-Nov 10:39 director-dir: Bacula 1.38.5 (18Jan06): 08-Nov-2006 10:39:39
JobId:  1211
Job:RestoreFiles.2006-11-08_10.39.34
Client: tls-intra-fd
Start time: 08-Nov-2006 10:39:36
End time:   08-Nov-2006 10:39:39
Files Expected: 1
Files Restored: 1
Bytes Restored: 28,059
Rate:   9.4 KB/s
FD Errors:  0
FD termination status:  OK
SD termination status:  OK
Termination:Restore OK
 
 08-Nov 10:39 director-dir: Begin pruning Jobs.
 08-Nov 10:39 director-dir: No Jobs found to prune.
 08-Nov 10:39 director-dir: Begin pruning Files.
 08-Nov 10:39 director-dir: No Files found to prune.
 08-Nov 10:39 director-dir: End auto prune.
 
 But there is no file in /data/bacula-restores! I've no problems 
 restoring on my previous Bacula installs. The *one* difference is my 
 other Bacula installs all have the director, sd, and fd on the same 
 server with the backup storage on mirrored drives. This install has a 
 central director with two storage servers and multiple clients.
 
 I read through the manual thoroughly, or so I thought. Do I need to do 
 something different for this configuration?
 
 Thanks,
 
 DAve
 
 -- 
 Three years now I've asked Google why they don't have a
 logo change for Memorial Day. Why do they choose to do logos
 for other non-international holidays, but nothing for
 Veterans?
 
 Maybe they forgot who made that choice possible.
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] `make_sqlite_tables` failing, syntax error in regress/scripts/setup?

2006-10-20 Thread Sarath Jayewardena
I had a similar problem. It turned out to be a permission issue. I was
running make_sqlite_tables as root, so bacula.db was ownned by root. I had
to change ownership to bacula to get it working. Your problem is not
exactly the same, but could be caused by a similar permission problem.

- Sarath

On Fri, 20 Oct 2006, Ryan Novosielski wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hey all,
 
 Still plugging away at regress (HP-UX was probably not the easiest
 platform choice, but it is what is available for testing)...
 
 My latest trouble is with make_sqlite_tables. I don't know why it is
 failing -- it doesn't seem like I missed a step as this seems to 'just
 work' normally...
 
 Any ideas?
 
 My SQLite is 2.8.7 in /opt/sqlite and my Bacula is 1.38.11. Finally got
 through the build portions, but having never used SQLite before, not
 sure where to go from here -- does not seem to be more than a few files
 in my SQLite install, and no man pages:
 
 # ./make_sqlite_tables bacula
 SQL error: near bacula: syntax error
 chmod: can't access bacula.db
 
 ...which appears to be this command here:
 
 ${bindir}/${sqlite} $* bacula.db END-OF-DATA
 CREATE TABLE Filename (
   FilenameId INTEGER,
   Name TEXT DEFAULT ,
   PRIMARY KEY(FilenameId)
   );
 
 ...where $sqlite=sqlite and $*=bacula.
 
 This is called by 'make_bacula_tables bacula':
 
 if test xsqlite = xsqlite -o xsqlite3 = xsqlite ; then
   echo Making SQLite tables
   /home/novosirj/regress/bin/make_sqlite_tables $*
 else
 
 ...which is in turn called by 'setup':
 
 cd bin
 ./create_bacula_database bacula
 ./drop_bacula_tables bacula
 ./make_bacula_tables bacula
 ./grant_bacula_privileges bacula
 
 Thanks for the help.
 - --
   _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
  |$| |__| |  | |__/ | \| _| |[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
 
 iD8DBQFFOO/jmb+gadEcsb4RAsX2AJ41ZMp3QMiR/l/wv7ZDpQ4FvwOjUACfZaUX
 2UQ4tHUtfwgImMOas8Jy8cI=
 =SsLk
 -END PGP SIGNATURE-
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Labeling problem

2006-10-19 Thread Sarath Jayewardena
Hi,

On Thu, 19 Oct 2006, Eric Yellin wrote:

 I installed Bacula and labeled a few tapes. After playing around with it a 
 bit I deleted the database and re-created it.
 When trying to run a backup I got the following: 
 Cannot find any appendable volumes.
 Please use the label  command to create a new Volume for:
 Storage:  Tape-Drive1 (/dev/sa0)
 Media type:   DLT-1
 Pool: Default
 
 The volumes are already labeled and therefore I cannot label them: Cannot 
 label Volume because it is already labeled: volume:1
 Since I deleted the database, I can't use the purge or relabel commands 
 either. 
 How can I proceed and relable the already labeled volume that is not in the 
 database?
 
 Thanks,
 
 Eric

You have apparently labeled tapes using btape. Bacula has no idea about
their existence. You need to *add* them to the database (using 'add'
command in bconsole).

- Sarath


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Make install blows up on HP-UX 11i during regress build

2006-10-18 Thread Sarath Jayewardena
Hi,

Without trying to analyze in detail, could it be that you are running make
in some unexpected environment? I have encountered similar problems (not
bacula specific) when I, for example, try to run a bash script from the
csh prompt.

- Sarath

On Tue, 17 Oct 2006, Ryan Novosielski wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 The interesting thing is that I have Bacula 1.39.22 BETA installed on
 this host, so this must have worked at some point... but I can't imagine
 what could be different between then and now. I went back and tried
 'make install' on that version too, but it blows up the same way.
 
 At any rate, here's what happens... I do a make (or actually regress
 does, but it doesn't really make a difference). It then calls make
 install, which the Makefile says is:
 
 - ---
 install: installdirs
 @for I in $(all_subdirs); do (cd $$I  $(MAKE)
 DESTDIR=$(DESTDIR) $@ ||
  exit 1); done
 - ---
 
 ...installdirs seems to succeed, but install does not:
 
 - ---
 # make install
 ./autoconf/mkinstalldirs /home/novosirj/regress/bin
 ./autoconf/mkinstalldirs /home/novosirj/regress/bin
 ./autoconf/mkinstalldirs /home/novosirj/regress/bin
 if test ! -d /home/novosirj/regress/working ; then \
./autoconf/mkinstalldirs /home/novosirj/regress/working; \
chmod 770 /home/novosirj/regress/working; \
 fi
 if test x != x ; then \
chown  /home/novosirj/regress/working; \
 fi
 if test x != x ; then \
chgrp  /home/novosirj/regress/working; \
 fi
 sh: Syntax error at line 1 : `for' is not matched.
 *** Error exit code 2
 
 Stop.
 
 - ---
 
 I'm personally at a loss, and like I said, this fails identically on my
 1.39.22 source that is already installed. Did I play some trick and
 forget about it, because I don't see anything that jumps out at me now.
 
 Thank you for any assistance any of you are able to provide.
 
 - --
   _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
  |$| |__| |  | |__/ | \| _| |[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
 
 iD8DBQFFNUNNmb+gadEcsb4RAmTvAJ9K87m1fi4r4OGcehbc9HTnjQWVxwCfUWEw
 Xb5SwSazUYTPuHauF71DiSE=
 =OQLh
 -END PGP SIGNATURE-
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] ./bacula-tray-monitor error message

2006-10-12 Thread Sarath Jayewardena
Hi,

On Thu, 12 Oct 2006, Jayashri Kuntamukkala wrote:

 
 
 I am Trying to Install Bacula on Suse Linux 10. following are the steps i 
 followed..
 
 1. Downloaded   depkgs-25Jun06.tar.gz,bacula-1.38.11.tar.gz 
 ,bacula-docs-1.38.11-1.tar.gz and
 installed the packages.
 
 2. then,  ./configure   --enable-smartalloc   --sbindir=/usr/local/bacula/bin 
  
 --sysconfdir=/usr/local/bacula/bin   
 --with-pid-dir=/usr/local/bacula/bin/working  
 --with-subsys-dir=/usr/local/bacula/bin/working   
 --with-sqlite=/usr/local/bacula/depkgs/sqlite  
 --with-working-dir=/usr/local/bacula/working   --enable-gnome
 /usr/local/baucla/bacula-1.38.11/src --enable-tray-monitor  --enable-conio
 
 3. make
 
 4. make install
 
 5 ./make_sqlite_tables to install sqlite tables
 
 6. didnot make ANY changes to any conf  files and took the defaults.
 
I never compiled bacula from source. But it is very unlikely that you can
get bacula going without *ANY* changes to the configuration files. At the
least, the director, storage daemon and the file daemon need to know about
each other, which means you have to specify the hostnames/IP addresses in
the configuration files.

- Sarath

 7. [EMAIL PROTECTED] bin]# ./bacula start
 
 Starting the Bacula Storage daemon
 
 Starting the Bacula File daemon
 
 Starting the Bacula Director   daemon
 
 8.   [EMAIL PROTECTED] bin]# bacula-tray-monitor
 
 I am getting error message:fatal error:bnet.c:859-unable to connect to 
 director deamon on
 esunxcs:9102
 
 how do I fix this
 
  
 
 Thanks
 
 Jay
 
 
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem restoring files

2006-10-11 Thread Sarath Jayewardena
Hi,

On Wed, 11 Oct 2006, kazabe wrote:

 Hi!
 
 Im starting with bacula, and is  great!
 
 I have a question.  When i do the backup from the clients, the console
 show all the process backup was done sucefully.  When i start a
 restore task, the console dont report any error, but i cant found any
 restored file in the directory assigned to that job.
 
 How can i find the restored files, if the console show restored
 process sucefully, but in the directory dont appear any restored file?
 
 The directory have correct file permission to the bacula process
 (exactly same permission related to the default bacula dir).
 
 Thanks in advance
 
 -- 
 Imagination is more important than knowlege
 A.E.
 
You haven't provided a lot of details about your particular set up for
anybody to give a good answer. But in case you ran into the same silly
situation as I did, when I started playing with Bacula, please note that
the files are restored, by default, to the specified place *on the
respective client* and not the DIR machine.

Cheers.

- Sarath


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Poll - What operating systems do you run Bacula on?

2006-10-10 Thread Sarath Jayewardena
Hi,

Experimental Bacula setup:

  Bacula 1.36.2
DIR, SD, FD
  running on an Compaq Alpha server (ES20)
  with Quantum DLT7000 tape drive
  OS: Debian GNU/Linux (sarge)

FD's
  running on Intel machines
  OS: Debian GNU/Linux (sarge)
  4 machines

- Sarath

On Tue, 10 Oct 2006, Peter L. Buschman wrote:

 
 All:
 
 If it isn't too much of an imposition, I'd like to survey the list 
 and ask the question
 what operating system are you running Bacula on?. I'm interested in which OS
 distributions, versions and platforms are being deployed as Bacula servers.
 
 Mainly, this is to identify the highest-priority configurations for a 
 test environment
 I am setting-up, but I think it would also be interesting from a 
 broader Bacula adoption
 perspective to see what the distribution is.
 
 I will aggregate all of the responses and post a summary and 
 percentage distribution
 of the results. If you would like to add your installation to the 
 count but do not want to
 post openly to the list, please feel free to email me privately. The 
 summarized results
 will be anonymous as they will only consist of rolled-up statistics.
 
 Best regards,
 
 Peter Buschman
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Manual ejection of tape confuses bacula

2006-09-27 Thread Sarath Jayewardena
Hi,

I am experimenting to see whether bacula would be a good system for me to
backup our department's servers. I am running bacula director and storage
daemon on a Debian (sarge) machine which has a scsi DLT tape drive
attached to it. The version of bacula is 1.36.2. It looks promising,
except for one annoying, and in my view, serious problem:

The tape drive allows me to eject the tape by pressing an 'unload'
button. However, afterwards, when I re-insert the tape, bacula cannot read
it, so all the backup data is useless. (Of course, if I have 'unmounted'
the tape from within bconsole before  ejecting, bacula has no problem
accessing the data afterwards.) The question is, is there any way to make
bacula accept the tape if the tape was accidientally, 'improperly'
ejected?

I have browsed the mailing list archive and seen the advice that I could
use AlwaysOpen = no and OfflineOnUnmount = yes to guarantee that
bacula unmounts the tape after each backup. But the advice comes with
the warning that for each backup bacula will be rewinding and
re-positioning the tape consuming a lot of time, so leaving the default
behaviour is really preferred.

If someone knows that this problem does not exist in newer versions of
bacula, I could upgrade to the version (1.38.11) in the Debian testing
distribution.

I would greatly appreciate any help regarding this. Thanks.

- Sarath


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-25 Thread Sarath Jayewardena
On Mon, 25 Sep 2006, Alan Brown wrote:

 On Fri, 22 Sep 2006, Sarath Jayewardena wrote:
 
  How about if I had not started a new
  backup after re-inserting the tape, yet?
 
 You would probably be ok.
 
  Will an unmount/mount before
  running any jobs make bacula accept the tape?
 
 Probably.
 
I have verified (at least in the experiments I did) that bacula
forgets and forgives if I ran umount/mount after manually ejecting
the tape and re-inserting. I tried backing up and restoring both.
Immediately after umount/mount, the tape is postitioned at file
0; nevertheless, it looks like bacula moves the tape to the end
of data before actually performing the backup.

 The safest action is to NEVER insert a new tape before doing an 
 unmount/mount operation.
 
I will remember this and take all possible precautions that the tape
is never manually ejected without unmounting.

 Kern, is it possible to insert some sanity checks when starting jobs to 
 ensure the tape is positioned where bacula thinks it should be? If not, 
 I'd suggest rereading the label.
 
As I mentioned above, after umount/mount, the tape is still positioned
at file 0, although when a backup is performed it is moved to the
correct position. It would be really great if some kind of sanity check
can notice what happened and block the tape, or at least give a warning.

 I have to say I am surprised that a tape drive which was held open by any 
 software wasn't locked. I've never been able to remove a DAT or other 
 individual tape from a drive without using emergency eject procedures.
 
 AB
 
If it is going to be helpful, I am using a Quantum DLT7000 connected
to an Alpha server (ES20) running Debian (sarge). The drive has two
buttons on the front, one for selecting the tape (type) and the other
is the 'unload' button. I don't know whether you consider the 'unload'
button as an 'emergency' button, but that's the one I use to eject
the tape. With no complains, it ejects the tape.

Thank you all for responding to my request for help.

- Sarath


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Sarath Jayewardena
To demonstrate the problem with manual ejection of tape, this is what
I did:

  - start with a fresh database
  - start bconsole
  - add a volume to the Default pool
  - run two backup jobs
  - quit bconsole
  - * manually eject tape without unmounting
  - * re-insert tape
  - start bconsole
  - without unmounting/mounting try to run a job (fails)
  - do an unmount/mount
  - try to run a job (fails)

The transcript of the session is attached to the end of this mail.
Actually, I tried out a couple of variations. In some cases, bacula
seemed to be able to run jobs after re-inserting the tape. It would
even list them as completed jobs. But then, when I tried to restore,
it had problems accessing the tape. These are the dangers I am
afraid of. Are there any rescue methods in such cases? Again thank
you very much for the help.

- Sarath


On Thu, 21 Sep 2006, Kern Sibbald wrote:

 On Thursday 21 September 2006 19:08, Sarath Jayewardena wrote:
  Hi,
  
  I am experimenting to see whether bacula would be a good system for me to
  backup our department's servers. I am running bacula director and storage
  daemon on a Debian (sarge) machine which has a scsi DLT tape drive
  attached to it. The version of bacula is 1.36.2. It looks promising,
  except for one annoying, and in my view, serious problem:
  
  The tape drive allows me to eject the tape by pressing an 'unload'
  button. However, afterwards, when I re-insert the tape, bacula cannot read
  it, so all the backup data is useless. (Of course, if I have 'unmounted'
  the tape from within bconsole before  ejecting, bacula has no problem
  accessing the data afterwards.) The question is, is there any way to make
  bacula accept the tape if the tape was accidientally, 'improperly'
  ejected?
 
 As long as Bacula is not writing on the tape at the moment you ejected the 
 tape, the data is fine and can be read by Bacula.  
 
 However, when you eject a tape without unmounting the storage device first, 
 Bacula will not know or except that you have changed the tape until you 
 unmount and re-mount the storage device.
 
  
  I have browsed the mailing list archive and seen the advice that I could
  use AlwaysOpen = no and OfflineOnUnmount = yes to guarantee that
  bacula unmounts the tape after each backup. But the advice comes with
  the warning that for each backup bacula will be rewinding and
  re-positioning the tape consuming a lot of time, so leaving the default
  behaviour is really preferred.
  
  If someone knows that this problem does not exist in newer versions of
  bacula, I could upgrade to the version (1.38.11) in the Debian testing
  distribution.
  
  I would greatly appreciate any help regarding this. Thanks.
  
  - Sarath
  
  
  
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys -- and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
  
 

===
Transcript of the session follows:

Script started on Fri Sep 22 10:48:09 2006
csci485b:~# bconsole
Connecting to Director csci485b:9101
1000 OK: csci485b-dir Version: 1.36.2 (28 February 2005)
Enter a period to cancel a command.
*stat dir
Using default Catalog name=MyCatalog DB=bacula
csci485b-dir Version: 1.36.2 (28 February 2005) alpha-unknown-linux-gnu debian 
3.1
Daemon started 22-Sep-06 10:48, 0 Jobs run since started.

Scheduled Jobs:
Level  Type Pri  Scheduled  Name   Volume
===
IncrementalBackup10  23-Sep-06 01:05CSCI485bFiles  *unknown*
IncrementalBackup10  23-Sep-06 01:05CSCI251Files   *unknown*
IncrementalBackup10  23-Sep-06 01:05CSCIfaiFiles   *unknown*
Full   Backup11  23-Sep-06 01:10BackupCatalog  *unknown*


Running Jobs:
No Jobs running.

No Terminated Jobs.

*stat sto
Automatically selected Storage: DLTDrive
Connecting to Storage daemon DLTDrive at csci485b:9103

csci485b-sd Version: 1.36.2 (28 February 2005) alpha-unknown-linux-gnu debian 
3.1
Daemon started 22-Sep-06 10:48, 0 Jobs run since started.

Running Jobs:
No Jobs running.

No Terminated Jobs.

Device status:
Device /dev/nst0 is mounted with Volume NetBackupVol0001
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0
*list media
Pool: Default
No results to list.
*add
You probably don't want to be using this command since it
creates database records without labeling the Volumes.
You probably want to use the label command.

Automatically

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Sarath Jayewardena

On Fri, 22 Sep 2006, Kern Sibbald wrote:

 Unfortunately, you are out of luck.  You did the unmount/mount *after* you 
 ejected the tape, reloaded it in the drive, and started another job, which 
 started writing on the *beginning* of the tape rather than appending to it. 
 
 The simplest solution is to stop and restart the SD (probably not necessary), 
 delete the Volume from the catalog, relabel it, and re-run all the jobs that 
 were backed up to that Volume.
 
Thank you for the straigt answer. So, in other words, all the data on the
tape is useless, right? Assuming I had multiple backups over several
days (or weeks), they are all gone. How about if I had not started a new
backup after re-inserting the tape, yet? Will an unmount/mount before
running any jobs make bacula accept the tape? Or at least, can I use
any other utility to access the data?

- Sarath

 On Friday 22 September 2006 21:00, Sarath Jayewardena wrote:
  To demonstrate the problem with manual ejection of tape, this is what
  I did:
  
- start with a fresh database
- start bconsole
- add a volume to the Default pool
- run two backup jobs
- quit bconsole
- * manually eject tape without unmounting
- * re-insert tape
- start bconsole
- without unmounting/mounting try to run a job (fails)
- do an unmount/mount
- try to run a job (fails)
  
  The transcript of the session is attached to the end of this mail.
  Actually, I tried out a couple of variations. In some cases, bacula
  seemed to be able to run jobs after re-inserting the tape. It would
  even list them as completed jobs. But then, when I tried to restore,
  it had problems accessing the tape. These are the dangers I am
  afraid of. Are there any rescue methods in such cases? Again thank
  you very much for the help.
  
  - Sarath
  
  
  On Thu, 21 Sep 2006, Kern Sibbald wrote:
  
   On Thursday 21 September 2006 19:08, Sarath Jayewardena wrote:
Hi,

I am experimenting to see whether bacula would be a good system for me 
 to
backup our department's servers. I am running bacula director and 
 storage
daemon on a Debian (sarge) machine which has a scsi DLT tape drive
attached to it. The version of bacula is 1.36.2. It looks promising,
except for one annoying, and in my view, serious problem:

The tape drive allows me to eject the tape by pressing an 'unload'
button. However, afterwards, when I re-insert the tape, bacula cannot 
 read
it, so all the backup data is useless. (Of course, if I have 'unmounted'
the tape from within bconsole before  ejecting, bacula has no problem
accessing the data afterwards.) The question is, is there any way to 
 make
bacula accept the tape if the tape was accidientally, 'improperly'
ejected?
   
   As long as Bacula is not writing on the tape at the moment you ejected 
   the 
   tape, the data is fine and can be read by Bacula.  
   
   However, when you eject a tape without unmounting the storage device 
 first, 
   Bacula will not know or except that you have changed the tape until you 
   unmount and re-mount the storage device.
   

I have browsed the mailing list archive and seen the advice that I could
use AlwaysOpen = no and OfflineOnUnmount = yes to guarantee that
bacula unmounts the tape after each backup. But the advice comes with
the warning that for each backup bacula will be rewinding and
re-positioning the tape consuming a lot of time, so leaving the default
behaviour is really preferred.

If someone knows that this problem does not exist in newer versions of
bacula, I could upgrade to the version (1.38.11) in the Debian testing
distribution.

I would greatly appreciate any help regarding this. Thanks.

- Sarath




 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
 your
opinions on IT  business topics through brief surveys -- and earn cash

 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

   
  
  ===
  Transcript of the session follows:
  
  Script started on Fri Sep 22 10:48:09 2006
  csci485b:~# bconsole
  Connecting to Director csci485b:9101
  1000 OK: csci485b-dir Version: 1.36.2 (28 February 2005)
  Enter a period to cancel a command.
  *stat dir
  Using default Catalog name=MyCatalog DB=bacula
  csci485b-dir Version: 1.36.2 (28 February 2005) alpha-unknown-linux-gnu 
 debian 3.1
  Daemon started 22-Sep-06 10:48, 0 Jobs run since started.
  
  Scheduled Jobs:
  Level  Type Pri  Scheduled  Name

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Sarath Jayewardena


On Thu, 21 Sep 2006, Dan Langille wrote:

 On 21 Sep 2006 at 10:08, Sarath Jayewardena wrote:
 
  Hi,
  
  I am experimenting to see whether bacula would be a good system for me to
  backup our department's servers. I am running bacula director and storage
  daemon on a Debian (sarge) machine which has a scsi DLT tape drive
  attached to it. The version of bacula is 1.36.2. It looks promising,
  except for one annoying, and in my view, serious problem:
  
  The tape drive allows me to eject the tape by pressing an 'unload'
  button. However, afterwards, when I re-insert the tape, bacula cannot
  read it, so all the backup data is useless. (Of course, if I have
  'unmounted' the tape from within bconsole before ejecting, bacula has
  no problem accessing the data afterwards.) The question is, is there
  any way to make bacula accept the tape if the tape was accidientally,
  'improperly' ejected? 
 
  I have browsed the mailing list archive and seen the advice that I
  could use AlwaysOpen = no and OfflineOnUnmount = yes to guarantee that
  bacula unmounts the tape after each backup. But the advice comes with
  the warning that for each backup bacula will be rewinding and
  re-positioning the tape consuming a lot of time, so leaving the
  default behaviour is really preferred. 
  
  If someone knows that this problem does not exist in newer versions of
  bacula, I could upgrade to the version (1.38.11) in the Debian testing
  distribution.
 
 My tape drive does not allow me to eject the tape if Bacula has the 
 device. I think the key directive from my SD config is:
 
 Offline on Unmount = yes
 
 I do not specify AlwaysOpen, but that defaults to Yes.
 
 What is wrong with unmounting withing bconsole before ejecting the 
 tape?
 
There is really nothing wrong with unmounting within bconsole. My problem
arises when you *accidentally* eject the tape without unmounting. In my
environment, this can easily happen, because we have some tape drives
where we just eject the old tape and insert a new one for the nightly
backup (not using bacula).

I haven't tried the OfflineOnUnmount = yes yet. But my understanding is
that it would automatically unmount the tape after the backup (thus
causing it to to the time-consuming rewinding and re-positioning).

- Sarath


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Sarath Jayewardena

On Thu, 21 Sep 2006, Michael Brennen wrote:

 On Thursday 21 September 2006 12:08 pm, Sarath Jayewardena wrote:
 
  I am experimenting to see whether bacula would be a good system for me to
  backup our department's servers. I am running bacula director and storage
  daemon on a Debian (sarge) machine which has a scsi DLT tape drive
  attached to it. The version of bacula is 1.36.2. It looks promising,
  except for one annoying, and in my view, serious problem:
 
 As a perhaps poor analogy, think of a bacula mounted medium as a mounted 
 filesystem.  You want to manually unmount a filesystem before taking it down. 
  
 It isn't that the mount isn't recoverable if it gets out of sync, but things 
 work more cleanly that way.
 
 From what I've seen over the past few weeks, bacula is an excellent choice 
 for 
 multi-system backup.  It does take some time to learn to admin it, but that 
 is part of why it is a good choice.
 
  The tape drive allows me to eject the tape by pressing an 'unload'
  button. However, afterwards, when I re-insert the tape, bacula cannot read
  it, so all the backup data is useless. (Of course, if I have 'unmounted'
  the tape from within bconsole before  ejecting, bacula has no problem
  accessing the data afterwards.) The question is, is there any way to make
  bacula accept the tape if the tape was accidientally, 'improperly'
  ejected?
 
 In your described case it might well be as simple as mounting the drive with 
 bconsole if you manually eject/reinsert it.
 
Thank you all you nice people offering help. This is really wonderfull.

Now Michael, I also agree with your analogy with a mounted filesystem. But
the problem is that even if I mounted with bconsole afterwards, it is
still blocked. Bacula is waiting for appendable media to do next backups.

 Kern has emphasized to me that in the 1.39.+ releases it will be more 
 important than ever to only make media changes with bconsole.  With an 
 autochanger that (nominally) locks closed, I find it easy enough to use 
 bconsole to manage media in the drives; that way I can manage it all running 
 gconsole from my linux desktop.
 
 -- 
 
-- Michael

I am just wondering, whether there shouldn't be a way to fix the problem
if something like the above happens.

- Sarath


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users