Re: [Bacula-users] multitape-chenger problem ...

2006-11-30 Thread Alessio Mineni - WaveGroup

Il giorno 29/nov/06, alle ore 21:03, Arno Lehmann ha scritto:


 Hi,

 On 11/29/2006 4:52 PM, Alessio Mineni wrote:

 Hi all,

  my name is Alessio and I'm writing form Italy. I'm testing  
 multitape-changer
 script that will allow me to group more drives in one virtual  
 autochenger
 device.


 Hm. Sounds interesting, I just don't understand what you mean :-)


Take a look at the multitape-changer.txt in examples/autochangers  
bacula folder.


 If I use directly the script it seams to work fine, it create the  
 right
 simlink at the real device but bacula seams DO NOT call the load  
 command. See
 here:

 Connecting to Storage daemon changer0 at 192.168.0.20:9103 ...
 Sending label command for Volume extra01-0001 Slot 1 ...
 3301 Issuing autochanger loaded drive 0 command.   --- LOADED???
 3302 Autochanger loaded drive 0, result: nothing loaded.
 Label command failed for Volume extra01-0001.
 Do not forget to mount the drive!!!

 Inserting some echo debug command in the script I verfiyed that  
 bacula call
 the loaded command.

 Any suggestions?


 Not without understanding your problem.

 The 'loaded' command is in fact to query which slot is loaded in the
 given drive.

 Bacula will only issue load commands when it knows about the  
 autochanger
 inventory, i.e. after an 'update slots' command ran.

 Arno


The update slots scan command, like label command, call loaded command.



-
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] checksums

2006-11-30 Thread Alan Brown
On Wed, 29 Nov 2006, Michael Koppelman wrote:

 Yes we could. It doesn't change the fact, in my opinion, that is it
 wasteful to back up files that have not changed.

They have changed - their mtime has altered.


-
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] Removable Disk HOWTO

2006-11-30 Thread Josh Fisher

Michael Fung wrote:
 Dear Josh,


 Thanks for releasing the vchanger script and HOWTO!

 However, I found a problem around line 94:

   # Create nextmag file to hold max magazine index used
   if [ ! -f ${statedir}/nextmag ]; then
  echo 0 ${statedir}/nextmag

 It created the nextmag file with content 0. That makes the following 
 section allways gives error nextmag has invalid value.

   # Check nextmag value
   nextmag=`cat ${statedir}/nextmag`
   if [ $? -ne 0 -o ${nextmag} ==  -o $nextmag -lt 1 -o $nextmag 
 -gt 99 ]; then
  echo ${statedir}/nextmag has invalid value
  return 1
   fi

Yes, thank you. That is a bug. It should be:

  # Check nextmag value
  nextmag=`cat ${statedir}/nextmag`
  if [ $? -ne 0 -o ${nextmag} ==  -o $nextmag -lt 0 -o $nextmag -gt 
99 ]; then
 echo ${statedir}/nextmag has invalid value
 return 1
  fi

I will post an updated version to this list.


 Also, before and after changed the script to not gives error, I still 
 got the error after issue the label barcodes command:
Connecting to Storage daemon USBChanger1 at 192.168.1.1:9103 ...
3306 Issuing autochanger slots command.
Device usb-changer-1 has 0 slots.
No slots in changer to scan.

 I run the script by hand to test output:
 [EMAIL PROTECTED] bacula]# ./vchanger /etc/bacula/vchanger1.conf slots
 7

 It reports 7 slots correctly. Could you give me some hints?  I am 
 using Bacula 1.38.11 on RHEL 4 clone.

Did you run the test by hand as root? If so, then it is likely a 
permissions problem. Normally, vchanger will run as the user and group 
that bacula-sd runs as (usually bacula.disk if installed from RPMs). 
Make sure /etc/bacula/vchanger1.conf can be read by the bacula-sd user 
and/or group. Likewise, make sure the bacula-sd user and/or group  has 
read/write permissions for the vchanger state directory (probably at 
/var/bacula/vchanger1). Also, the bacula-sd user/group must have 
read/write permissions for the mounted USB disk partition.

 Many thanks!
 Michael


 

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

 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   


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


Re: [Bacula-users] checksums

2006-11-30 Thread Michael Koppelman
That's metadata. The _data_ hasn't changed. I repeat it is wasteful  
to back up *data* that has not changed. Some programs are smart  
enough to do this.

I've also pointed out that we can have it both ways, if we want.  
Apparently some people would rather back up the same identical data  
over and over than have a program smart enough to tell the  
difference. I don't get it and hope that Kern and Co. proceed with  
making bacula smarter over time.

M.

On Nov 30, 2006, at 4:00 AM, Alan Brown wrote:

 They have changed - their mtime has altered.


-
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] Cant mount a tape after server reboot.

2006-11-30 Thread Josh Fisher
I believe that is the expected behavior. The mount command mounts the 
volume in a particular archive device. It does not perform a load and 
mount  for autochangers. Notice that the mount command does not ask for 
a slot number, thus could not possibly know what volume to load and mount.

The short answer is to load a tape using mtx and then go into bconsole 
and issue the mount.

Jaime Ventura wrote:
 Hello,
 I had to reboot my bacula server(dir and sd) and now I cant  mount 
 the tape manually(via console)
 Please have a look on the following:

 [EMAIL PROTECTED] bacula]# ./bconsole
 Connecting to Director bserver:9101
 1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
 Enter a period to cancel a command.
 *
 *status dir
 Using default Catalog name=MyCatalog DB=bacula
 bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
 Daemon started 30-Nov-06 12:30, 0 Jobs run since started.

 Scheduled Jobs:
 Level  Type Pri  Scheduled  Name   Volume
 ===
  

 IncrementalBackup10  30-Nov-06 23:05Client1
 baculaFiles-vol0001
 Full   Backup11  30-Nov-06 23:10BackupCatalog  
 baculaFiles-vol0001
 Full   Backup10  01-Dec-06 05:00webserver02Backup  
 serversFiles-vol0012
 Full   Backup10  01-Dec-06 05:00qualidadeBackup
 serversFiles-vol0012
 

 Running Jobs:
 No Jobs running.
 

 Terminated Jobs:
 JobId  Level Files  Bytes Status   FinishedName
 
  1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
  1857  Full  1 17,178,275 OK   29-Nov-06 23:10 BackupCatalog
  1864  Incr  0  0 OK   30-Nov-06 05:06 
 webserver02Backup
  1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
 qualidadeBackup

 
 *status sd
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103

 bserver-sd Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
 Daemon started 30-Nov-06 12:30, 0 Jobs run since started.

 Running Jobs:
 No Jobs running.
 

 Jobs waiting to reserve a drive:
 

 Terminated Jobs:
 JobId  Level   Files  Bytes Status   FinishedName
 ==
  1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
  1857  Full  1 17,178,382 OK   29-Nov-06 23:10 
 BackupCatalog
  1864  Incr  0  0 OK   30-Nov-06 05:06 
 webserver02Backup
 

 Device status:
 Autochanger TapeLoader124T with devices:
   IBM-Ultrium-3 (/dev/nst0)
 Device FileStorage (/backupspace/bacula/bacula) is not open or does 
 not exist.
 Device FileStorageSERVERS (/backupspaceSERVERS/bacula/servers) is not 
 open or does not exist.
 Device FileStorageUSERS (/backupspace/bacula/users) is not open or 
 does not exist.
 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is mounted.
Drive 0 is not loaded.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0
 

 In Use Volume status:
 

 *
 *
 *mount
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103 ...
 3905 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is 
 mounted.
 If this is not a blank tape, try unmounting and remounting the Volume.
 *umount
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 3301 Issuing autochanger loaded drive 0 command.
 3302 Autochanger loaded drive 0, result: nothing loaded.
 3002 Device IBM-Ultrium-3 (/dev/nst0) unmounted.
 *mount
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 3301 Issuing autochanger loaded drive 0 command.
 3302 Autochanger loaded drive 0, result: nothing loaded.
 3301 Issuing autochanger loaded drive 0 command.
 3302 Autochanger loaded drive 0, result: nothing loaded.
 3902 Cannot mount Volume on Storage Device IBM-Ultrium-3 (/dev/nst0) 
 because:
 Couldn't rewind device IBM-Ultrium-3 (/dev/nst0): ERR=dev.c:678 Rewind 
 error on IBM-Ultrium-3 (/dev/nst0). ERR=No medium found.

 3905 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is 
 mounted.
 If this is not a blank tape, try unmounting and remounting the Volume.
 *list volumes
 Pool: Default
 

Re: [Bacula-users] Advance notice of tapes required

2006-11-30 Thread Kern Sibbald
On Wednesday 29 November 2006 15:17, [EMAIL PROTECTED] wrote:
 IIRC, though, this also ignores Storage/Device names in Schedule directives, 
so this may be no more accurate than 'status dir'.

That particular problem is fixed (hopefully) in the current 1.39 CVS.

 
 -Original Message-
 
 From:  Bill Hill [EMAIL PROTECTED]
 Subj:  Re: [Bacula-users] Advance notice of tapes required
 Date:  Wed Nov 29, 2006 7:58 am
 Size:  826 bytes
 To:  Mike [EMAIL PROTECTED]
 cc:  bacula-users@lists.sourceforge.net
 
 Mike,
 
  I use 'list nextvol job=NAME'.
 
 Many Thanks, that's exactly what I needed.
 
 Cheers,
 Bill
 -- 
 Bill Hillw: http://www.hgu.mrc.ac.uk/Users/Bill.Hill
 MRC Human Genetics Unit  e: [EMAIL PROTECTED]
 Crewe Road   t: +44-131-3322471x2130
 Edinburgh EH4 2XU, UK.   f: +44-131-4678456
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

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


Re: [Bacula-users] how to debug?

2006-11-30 Thread Kern Sibbald
On Wednesday 29 November 2006 16:33, Jeremy C. Reed wrote:
 I found the problem with no debug output. I was piping the debug output. 
 Here is my fix:
 
 --- src/lib/message.c.orig  2006-11-29 07:32:12.0 -0800
 +++ src/lib/message.c   2006-11-29 07:36:52.439397776 -0800
 @@ -799,6 +799,7 @@
}
 } else {   /* not tracing */
fputs(buf, stdout);
 +  fflush(stdout);
 }
  }
  }
 
 
 Do you want me to submit to the developers list?

It is not necessary this time.  However, in general, if you want something to 
be put into the source you should copy the bacula-devel list, otherwise it 
can more easily be overlooked.

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

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


Re: [Bacula-users] Advance notice of tapes required

2006-11-30 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kern Sibbald wrote:
 On Wednesday 29 November 2006 15:17, [EMAIL PROTECTED] wrote:
 IIRC, though, this also ignores Storage/Device names in Schedule directives, 
 so this may be no more accurate than 'status dir'.
 
 That particular problem is fixed (hopefully) in the current 1.39 CVS.

Thrilling! Thank you for the help -- this should make my life infinitely
easier (at least WRT backups ;)).
- --
  _  _ _  _ ___  _  _  _
 |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

iD8DBQFFbvlNmb+gadEcsb4RAk0kAKC3FwvX69IcC3VhlRC39AHfZU9vaACeNP4H
5AWqeAf6l9vrDeYCLph+mXc=
=p7KZ
-END PGP SIGNATURE-


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


Re: [Bacula-users] checksums

2006-11-30 Thread Kern Sibbald
On Thursday 30 November 2006 16:10, Michael Koppelman wrote:
 That's metadata. The _data_ hasn't changed. I repeat it is wasteful  
 to back up *data* that has not changed. Some programs are smart  
 enough to do this.
 
 I've also pointed out that we can have it both ways, if we want.  
 Apparently some people would rather back up the same identical data  
 over and over than have a program smart enough to tell the  
 difference. I don't get it and hope that Kern and Co. proceed with  
 making bacula smarter over time.

Well, if you look carefully at all the email lists, you will see that this 
topic has been discussed a *lot*, we are concerned about it, but no one has 
stepped forward to program it.  In fact, at the current time, it is waiting 
for a few more financial sponsors to step forward.  Out of the whole Bacula 
community, only two users have indicated a willingness to encourage a 
programmer financially.  I take that to mean that most users consider that 
the feature is not very important  ( not really true, but you probably get 
the idea ).   

 
 M.
 
 On Nov 30, 2006, at 4:00 AM, Alan Brown wrote:
 
  They have changed - their mtime has altered.
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

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


Re: [Bacula-users] checksums

2006-11-30 Thread Georg Altmann

--On Mittwoch, 29. November 2006 09:07 -0800 Robert Nelson 
[EMAIL PROTECTED] wrote:

 You could always do the checksum and copy before the backup.

 Just dump the files to a different directory.  Then copy the files that
 have changed to the directory that gets backed up.

Good point. My suggestion would be to use md5 (or sha1 if you're paranoid) 
and store the result along with the dumps. Compare the hashsums before 
backup, and if they are different mv the new dump over the old one.

If your dumps are are textfiles - like mysql for example - you could even 
experiment with diff and patch. So you would have some sort of differential 
backup. Real DBMS support differential dumps anyway... ;-)

Regards,
Georg

-
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] Cant mount a tape after server reboot.

2006-11-30 Thread Kern Sibbald
On Thursday 30 November 2006 16:20, Josh Fisher wrote:
 I believe that is the expected behavior. The mount command mounts the 
 volume in a particular archive device. It does not perform a load and 
 mount  for autochangers. Notice that the mount command does not ask for 
 a slot number, thus could not possibly know what volume to load and mount.
 
 The short answer is to load a tape using mtx and then go into bconsole 
 and issue the mount.

If I am not mistaken, you can also specify the Slot  (mount storage=xxx 
slot=nnn) and in that case, Bacula will know what Slot to load into the drive 
and will proceed to do it.

 
 Jaime Ventura wrote:
  Hello,
  I had to reboot my bacula server(dir and sd) and now I cant  mount 
  the tape manually(via console)
  Please have a look on the following:
 
  [EMAIL PROTECTED] bacula]# ./bconsole
  Connecting to Director bserver:9101
  1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
  Enter a period to cancel a command.
  *
  *status dir
  Using default Catalog name=MyCatalog DB=bacula
  bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Scheduled Jobs:
  Level  Type Pri  Scheduled  Name   Volume
  
===
 
 
  IncrementalBackup10  30-Nov-06 23:05Client1
  baculaFiles-vol0001
  Full   Backup11  30-Nov-06 23:10BackupCatalog  
  baculaFiles-vol0001
  Full   Backup10  01-Dec-06 05:00webserver02Backup  
  serversFiles-vol0012
  Full   Backup10  01-Dec-06 05:00qualidadeBackup
  serversFiles-vol0012
  
 
  Running Jobs:
  No Jobs running.
  
 
  Terminated Jobs:
  JobId  Level Files  Bytes Status   FinishedName
  
   1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
   1857  Full  1 17,178,275 OK   29-Nov-06 23:10 
BackupCatalog
   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
   1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
  qualidadeBackup
 
  
  *status sd
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103
 
  bserver-sd Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Running Jobs:
  No Jobs running.
  
 
  Jobs waiting to reserve a drive:
  
 
  Terminated Jobs:
  JobId  Level   Files  Bytes Status   FinishedName
  ==
   1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
   1857  Full  1 17,178,382 OK   29-Nov-06 23:10 
  BackupCatalog
   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
  
 
  Device status:
  Autochanger TapeLoader124T with devices:
IBM-Ultrium-3 (/dev/nst0)
  Device FileStorage (/backupspace/bacula/bacula) is not open or does 
  not exist.
  Device FileStorageSERVERS (/backupspaceSERVERS/bacula/servers) is not 
  open or does not exist.
  Device FileStorageUSERS (/backupspace/bacula/users) is not open or 
  does not exist.
  Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is mounted.
 Drive 0 is not loaded.
 Total Bytes Read=0 Blocks Read=0 Bytes/block=0
 Positioned at File=0 Block=0
  
 
  In Use Volume status:
  
 
  *
  *
  *mount
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103 ...
  3905 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is 
  mounted.
  If this is not a blank tape, try unmounting and remounting the Volume.
  *umount
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  3301 Issuing autochanger loaded drive 0 command.
  3302 Autochanger loaded drive 0, result: nothing loaded.
  3002 Device IBM-Ultrium-3 (/dev/nst0) unmounted.
  *mount
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  3301 Issuing autochanger loaded drive 0 command.
  3302 Autochanger loaded drive 0, result: nothing loaded.
  3301 Issuing autochanger loaded drive 0 command.
  3302 Autochanger loaded drive 0, result: nothing loaded.
  3902 Cannot mount Volume on Storage Device IBM-Ultrium-3 

Re: [Bacula-users] Advance notice of tapes required

2006-11-30 Thread Kern Sibbald
On Thursday 30 November 2006 16:31, Ryan Novosielski wrote:
 Kern Sibbald wrote:
  On Wednesday 29 November 2006 15:17, [EMAIL PROTECTED] wrote:
  IIRC, though, this also ignores Storage/Device names in Schedule 
directives,
  so this may be no more accurate than 'status dir'.
 
  That particular problem is fixed (hopefully) in the current 1.39 CVS.
 
 Thrilling! Thank you for the help -- this should make my life infinitely
 easier (at least WRT backups ;)).

Actually to give credit where it is due, Martin supplied the patch (many 
thanks).  I forget if he sent an email or a submitted a bug report, but if I 
remember right his fix was for 1.38.11, but since 1.39.x is so close, I only 
applied it to 1.39.  I mention this just in case you really need the fix and 
don't want to upgrade to 1.39 yet, which is still BETA.

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

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


Re: [Bacula-users] Cant mount a tape after server reboot.

2006-11-30 Thread Josh Fisher

Kern Sibbald wrote:
 On Thursday 30 November 2006 16:20, Josh Fisher wrote:
   
 I believe that is the expected behavior. The mount command mounts the 
 volume in a particular archive device. It does not perform a load and 
 mount  for autochangers. Notice that the mount command does not ask for 
 a slot number, thus could not possibly know what volume to load and mount.

 The short answer is to load a tape using mtx and then go into bconsole 
 and issue the mount.
 

 If I am not mistaken, you can also specify the Slot  (mount storage=xxx 
 slot=nnn) and in that case, Bacula will know what Slot to load into the drive 
 and will proceed to do it.

   

That is new in the 1.39 series, I think. Jaime is using 1.38.11.

 Jaime Ventura wrote:
 
 Hello,
 I had to reboot my bacula server(dir and sd) and now I cant  mount 
 the tape manually(via console)
 Please have a look on the following:

 [EMAIL PROTECTED] bacula]# ./bconsole
 Connecting to Director bserver:9101
 1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
 Enter a period to cancel a command.
 *
 *status dir
 Using default Catalog name=MyCatalog DB=bacula
 bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
 Daemon started 30-Nov-06 12:30, 0 Jobs run since started.

 Scheduled Jobs:
 Level  Type Pri  Scheduled  Name   Volume

   
 ===
  
   
 IncrementalBackup10  30-Nov-06 23:05Client1
 baculaFiles-vol0001
 Full   Backup11  30-Nov-06 23:10BackupCatalog  
 baculaFiles-vol0001
 Full   Backup10  01-Dec-06 05:00webserver02Backup  
 serversFiles-vol0012
 Full   Backup10  01-Dec-06 05:00qualidadeBackup
 serversFiles-vol0012
 

 Running Jobs:
 No Jobs running.
 

 Terminated Jobs:
 JobId  Level Files  Bytes Status   FinishedName
 
  1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
  1857  Full  1 17,178,275 OK   29-Nov-06 23:10 
   
 BackupCatalog
   
  1864  Incr  0  0 OK   30-Nov-06 05:06 
 webserver02Backup
  1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
 qualidadeBackup

 
 *status sd
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103

 bserver-sd Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
 Daemon started 30-Nov-06 12:30, 0 Jobs run since started.

 Running Jobs:
 No Jobs running.
 

 Jobs waiting to reserve a drive:
 

 Terminated Jobs:
 JobId  Level   Files  Bytes Status   FinishedName
 ==
  1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
  1857  Full  1 17,178,382 OK   29-Nov-06 23:10 
 BackupCatalog
  1864  Incr  0  0 OK   30-Nov-06 05:06 
 webserver02Backup
 

 Device status:
 Autochanger TapeLoader124T with devices:
   IBM-Ultrium-3 (/dev/nst0)
 Device FileStorage (/backupspace/bacula/bacula) is not open or does 
 not exist.
 Device FileStorageSERVERS (/backupspaceSERVERS/bacula/servers) is not 
 open or does not exist.
 Device FileStorageUSERS (/backupspace/bacula/users) is not open or 
 does not exist.
 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is mounted.
Drive 0 is not loaded.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0
 

 In Use Volume status:
 

 *
 *
 *mount
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103 ...
 3905 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is 
 mounted.
 If this is not a blank tape, try unmounting and remounting the Volume.
 *umount
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 3301 Issuing autochanger loaded drive 0 command.
 3302 Autochanger loaded drive 0, result: nothing loaded.
 3002 Device IBM-Ultrium-3 (/dev/nst0) unmounted.
 *mount
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 3301 Issuing autochanger loaded drive 0 command.
 3302 Autochanger loaded drive 0, result: nothing loaded.
 3301 Issuing autochanger loaded drive 0 command.
 3302 Autochanger loaded drive 0, result: nothing loaded.
 3902 Cannot mount Volume on Storage Device 

[Bacula-users] Volume size limits backing up to file.

2006-11-30 Thread Mike B
Hi,

I am trying to back up 60Gb of data to hard disk storage. When bacula is set 
up to automatically label volumes, but when a job is run it creates multiple 
volumes, each with a 2 Gb file size. I don't specify any maximum volume size 
in bacula-dir.conf. Is there any way to force Bacula to write the backup to 
a single volume.

I am using Bacula version 1.38.11 and RHEL4. The backups are being written 
to a windows box mounted via smbmount.

Thanks for your assistance.

Mike

_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters


-
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] Cant mount a tape after server reboot.

2006-11-30 Thread Kern Sibbald
On Thursday 30 November 2006 16:49, Josh Fisher wrote:
 
 Kern Sibbald wrote:
  On Thursday 30 November 2006 16:20, Josh Fisher wrote:

  I believe that is the expected behavior. The mount command mounts the 
  volume in a particular archive device. It does not perform a load and 
  mount  for autochangers. Notice that the mount command does not ask for 
  a slot number, thus could not possibly know what volume to load and 
mount.
 
  The short answer is to load a tape using mtx and then go into bconsole 
  and issue the mount.
  
 
  If I am not mistaken, you can also specify the Slot  (mount storage=xxx 
  slot=nnn) and in that case, Bacula will know what Slot to load into the 
drive 
  and will proceed to do it.
 

 
 That is new in the 1.39 series, I think. Jaime is using 1.38.11.

Yes, that is possible. Since I have been working on 1.39 a long time, I have 
difficulty remembering in which version features were implemented.

 
  Jaime Ventura wrote:
  
  Hello,
  I had to reboot my bacula server(dir and sd) and now I cant  mount 
  the tape manually(via console)
  Please have a look on the following:
 
  [EMAIL PROTECTED] bacula]# ./bconsole
  Connecting to Director bserver:9101
  1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
  Enter a period to cancel a command.
  *
  *status dir
  Using default Catalog name=MyCatalog DB=bacula
  bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu 
redhat
  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Scheduled Jobs:
  Level  Type Pri  Scheduled  Name   
Volume
 

  
===
 

  IncrementalBackup10  30-Nov-06 23:05Client1
  baculaFiles-vol0001
  Full   Backup11  30-Nov-06 23:10BackupCatalog  
  baculaFiles-vol0001
  Full   Backup10  01-Dec-06 05:00webserver02Backup  
  serversFiles-vol0012
  Full   Backup10  01-Dec-06 05:00qualidadeBackup
  serversFiles-vol0012
  
 
  Running Jobs:
  No Jobs running.
  
 
  Terminated Jobs:
  JobId  Level Files  Bytes Status   FinishedName
  
   1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
   1857  Full  1 17,178,275 OK   29-Nov-06 23:10 

  BackupCatalog

   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
   1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
  qualidadeBackup
 
  
  *status sd
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103
 
  bserver-sd Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu 
redhat
  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Running Jobs:
  No Jobs running.
  
 
  Jobs waiting to reserve a drive:
  
 
  Terminated Jobs:
  JobId  Level   Files  Bytes Status   FinishedName
  ==
   1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
   1857  Full  1 17,178,382 OK   29-Nov-06 23:10 
  BackupCatalog
   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
  
 
  Device status:
  Autochanger TapeLoader124T with devices:
IBM-Ultrium-3 (/dev/nst0)
  Device FileStorage (/backupspace/bacula/bacula) is not open or does 
  not exist.
  Device FileStorageSERVERS (/backupspaceSERVERS/bacula/servers) is not 
  open or does not exist.
  Device FileStorageUSERS (/backupspace/bacula/users) is not open or 
  does not exist.
  Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is mounted.
 Drive 0 is not loaded.
 Total Bytes Read=0 Blocks Read=0 Bytes/block=0
 Positioned at File=0 Block=0
  
 
  In Use Volume status:
  
 
  *
  *
  *mount
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103 ...
  3905 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is 
  mounted.
  If this is not a blank tape, try unmounting and remounting the Volume.
  *umount
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  3301 Issuing autochanger loaded drive 0 command.
  3302 Autochanger loaded drive 0, result: nothing loaded.
  3002 Device IBM-Ultrium-3 (/dev/nst0) unmounted.
  *mount
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: 

Re: [Bacula-users] Cant mount a tape after server reboot.

2006-11-30 Thread Jaime Ventura
Thank you Josh, kern, for you replies.
Yes Im using 1.38.11, and the slot= does not seems to work(although 
bacula doesn't complaint about it)

I think its logical why bacula doesnt load the tape: its because mount 
command is not associated to a pool(a job is!), so bacula doesnt know 
what tape to load.
Am I right?

By the way, how can I track down why the tapeloader/bacula-sd take so 
much time to respond? Is it normal?. Seems to me that it is waiting for 
something and he gets timeout.
Im looking at the the debug info, and seems to me that bacula-sd is 
waiting for tapeloader to rewind the tape, but there is no tape on the 
drive.

Just one other question: what is the meaning of the device is BLOCKED? 
Is it blocked because the device is waiting/reserved for a job?

Once again, thanks you for your help





 


Jaime Ventura
[Infra-estruturas e Comunicações]

Rua Dr. António Bernardino de Almeida, 431
4200 - 072 Porto
Telef: +351 22 834 05 00 (04) - ext. 1641
Fax: +351 22 832 11 59

e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
url:www.isep.ipp.pt http://www.isep.ipp.pt 







Josh Fisher wrote:
 Kern Sibbald wrote:
   
 On Thursday 30 November 2006 16:20, Josh Fisher wrote:
   
 
 I believe that is the expected behavior. The mount command mounts the 
 volume in a particular archive device. It does not perform a load and 
 mount  for autochangers. Notice that the mount command does not ask for 
 a slot number, thus could not possibly know what volume to load and mount.

 The short answer is to load a tape using mtx and then go into bconsole 
 and issue the mount.
 
   
 If I am not mistaken, you can also specify the Slot  (mount storage=xxx 
 slot=nnn) and in that case, Bacula will know what Slot to load into the 
 drive 
 and will proceed to do it.

   
 

 That is new in the 1.39 series, I think. Jaime is using 1.38.11.

   
 Jaime Ventura wrote:
 
   
 Hello,
 I had to reboot my bacula server(dir and sd) and now I cant  mount 
 the tape manually(via console)
 Please have a look on the following:

 [EMAIL PROTECTED] bacula]# ./bconsole
 Connecting to Director bserver:9101
 1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
 Enter a period to cancel a command.
 *
 *status dir
 Using default Catalog name=MyCatalog DB=bacula
 bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
 Daemon started 30-Nov-06 12:30, 0 Jobs run since started.

 Scheduled Jobs:
 Level  Type Pri  Scheduled  Name   Volume

   
 
 ===
  
   
 
 IncrementalBackup10  30-Nov-06 23:05Client1
 baculaFiles-vol0001
 Full   Backup11  30-Nov-06 23:10BackupCatalog  
 baculaFiles-vol0001
 Full   Backup10  01-Dec-06 05:00webserver02Backup  
 serversFiles-vol0012
 Full   Backup10  01-Dec-06 05:00qualidadeBackup
 serversFiles-vol0012
 

 Running Jobs:
 No Jobs running.
 

 Terminated Jobs:
 JobId  Level Files  Bytes Status   FinishedName
 
  1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
  1857  Full  1 17,178,275 OK   29-Nov-06 23:10 
   
 
 BackupCatalog
   
 
  1864  Incr  0  0 OK   30-Nov-06 05:06 
 webserver02Backup
  1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
 qualidadeBackup

 
 *status sd
 The defined Storage resources are:
 1: File
 2: IBM-Ultrium-3
 3: TapeLoader124T
 4: FileSERVERS
 5: FileUSERS
 Select Storage resource (1-5): 3
 Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103

 bserver-sd Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu redhat
 Daemon started 30-Nov-06 12:30, 0 Jobs run since started.

 Running Jobs:
 No Jobs running.
 

 Jobs waiting to reserve a drive:
 

 Terminated Jobs:
 JobId  Level   Files  Bytes Status   FinishedName
 ==
  1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
  1857  Full  1 17,178,382 OK   29-Nov-06 23:10 
 BackupCatalog
  1864  Incr  0  0 OK   30-Nov-06 05:06 
 webserver02Backup
 

 Device status:
 Autochanger TapeLoader124T with devices:
   IBM-Ultrium-3 (/dev/nst0)
 Device FileStorage (/backupspace/bacula/bacula) is not open or does 
 not exist.
 Device FileStorageSERVERS (/backupspaceSERVERS/bacula/servers) is not 
 open or does not exist.
 Device FileStorageUSERS (/backupspace/bacula/users) is not open or 
 does not exist.
 Device IBM-Ultrium-3 (/dev/nst0) open but no Bacula volume is mounted.
Drive 0 is not loaded.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 

Re: [Bacula-users] Advance notice of tapes required

2006-11-30 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kern Sibbald wrote:
 On Thursday 30 November 2006 16:31, Ryan Novosielski wrote:
 Kern Sibbald wrote:
 On Wednesday 29 November 2006 15:17, [EMAIL PROTECTED] wrote:
 IIRC, though, this also ignores Storage/Device names in Schedule 
 directives,
 so this may be no more accurate than 'status dir'.

 That particular problem is fixed (hopefully) in the current 1.39 CVS.
 Thrilling! Thank you for the help -- this should make my life infinitely
 easier (at least WRT backups ;)).
 
 Actually to give credit where it is due, Martin supplied the patch (many 
 thanks).  I forget if he sent an email or a submitted a bug report, but if I 
 remember right his fix was for 1.38.11, but since 1.39.x is so close, I only 
 applied it to 1.39.  I mention this just in case you really need the fix and 
 don't want to upgrade to 1.39 yet, which is still BETA.

That I did know -- he did send an e-mail; I guess my thank you was to
the community.

I would be interested in patching my director to support this, to a
certain extent, as I'd imagine it was a fairly trivial patch (at least
in the sense of how many lines/files changed -- possibly not in
intricacy. Is it freely available somewhere (perhaps Martin can chime in)?

- --
  _  _ _  _ ___  _  _  _
 |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

iD8DBQFFbwdOmb+gadEcsb4RAgZ8AJ9LkfVotbQm5SAAV9Uj/aucU62QMQCfeJRE
bSStDBx3bDQH4k++wejpFzE=
=RRU8
-END PGP SIGNATURE-


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


Re: [Bacula-users] Volume size limits backing up to file.

2006-11-30 Thread John Drescher

On 11/30/06, Mike B [EMAIL PROTECTED] wrote:


Hi,

I am trying to back up 60Gb of data to hard disk storage. When bacula is
set
up to automatically label volumes, but when a job is run it creates
multiple
volumes, each with a 2 Gb file size. I don't specify any maximum volume
size
in bacula-dir.conf. Is there any way to force Bacula to write the backup
to
a single volume.

I am using Bacula version 1.38.11 and RHEL4. The backups are being written
to a windows box mounted via smbmount.



I think you need to mount the windows box using cifs instead as the smbfs
has a 2GB limit.

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


Re: [Bacula-users] checksums

2006-11-30 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wouldn't these databases CHANGE anyway -- do the files stay exactly the
same if nothing is written to them? How about if they are read, etc. I
personally don't know, but my feeling is 99% of the time, the files
would change at least subtly.

Michael Koppelman wrote:
 For us it's a problem because we are dumping out some very large  
 databases, some of which change daily but many which do not. We'd  
 like to dump the files out every night and just have bacula back up  
 the changed files. The unchanged files were recreated but are still  
 identical to previous versions. We wouldn't care if they were  
 restored with the wrong mtime. In fact, I've never run into a  
 situation where I was concerned about the mtime of the restored files.
 
 M.
 
 On Nov 28, 2006, at 8:12 PM, Dan Langille wrote:
 
 On 28 Nov 2006 at 17:26, Michael Koppelman wrote:

 Sorry if this is redundant but I just wanted to add my voice to the
 mix that it is too bad that bacula backs up files that have not
 changed just because their mtime changed.
 I have never seen it as a problem.

 In the end, it is probably  less expensive to checksum than move and
 handle redundant data. It  would at least be nice if one could choose
 the scheme in the  configuration so people who need to conserve
 computation time and  people who need to converse bandwidth could
 choose accordingly.
 Any restore would give you the wrong mtime.  Unless you started
 getting fancy within the Bacula Catalogs.

 -- 
 Dan Langille : Software Developer looking for work
 my resume: http://www.freebsddiary.org/dan_langille.php
 PGCon - The PostgreSQL Conference - http://www.pgcon.org/


 
 
 -
 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

- --
  _  _ _  _ ___  _  _  _
 |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

iD8DBQFFbxBGmb+gadEcsb4RAiPjAJ9zv/WPhOi9LPe8wy8wvINW17mC4ACcDIhy
nIusfZ64Q5CzAi5Qlg1TINI=
=cM6Q
-END PGP SIGNATURE-


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


Re: [Bacula-users] Cant mount a tape after server reboot.

2006-11-30 Thread Kern Sibbald
On Thursday 30 November 2006 17:27, Jaime Ventura wrote:
 Thank you Josh, kern, for you replies.
 Yes Im using 1.38.11, and the slot= does not seems to work(although 
 bacula doesn't complaint about it)
 
 I think its logical why bacula doesnt load the tape: its because mount 
 command is not associated to a pool(a job is!), so bacula doesnt know 
 what tape to load.
 Am I right?

Yes.

 
 By the way, how can I track down why the tapeloader/bacula-sd take so 
 much time to respond? Is it normal?. 

Yes.

 Seems to me that it is waiting for  something and he gets timeout.

Yes.  It probably waits for the rewind time, which by default is 5 minutes. It 
is configurable by a Directive.

 Im looking at the the debug info, and seems to me that bacula-sd is 
 waiting for tapeloader to rewind the tape, but there is no tape on the 
 drive.
 
 Just one other question: what is the meaning of the device is BLOCKED? 
 Is it blocked because the device is waiting/reserved for a job?

There are many reasons why a device is blocked.  Usually, it gives additional 
details on the output.

 
 Once again, thanks you for your help
 
 
 
 
 
  
 
 
 Jaime Ventura
 [Infra-estruturas e Comunicações]
 
 Rua Dr. António Bernardino de Almeida, 431
 4200 - 072 Porto
 Telef: +351 22 834 05 00 (04) - ext. 1641
 Fax: +351 22 832 11 59
 
 e-mail:   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 url:  www.isep.ipp.pt http://www.isep.ipp.pt 
 
   
 
 
 
 
 
 Josh Fisher wrote:
  Kern Sibbald wrote:

  On Thursday 30 November 2006 16:20, Josh Fisher wrote:

  
  I believe that is the expected behavior. The mount command mounts the 
  volume in a particular archive device. It does not perform a load and 
  mount  for autochangers. Notice that the mount command does not ask for 
  a slot number, thus could not possibly know what volume to load and 
mount.
 
  The short answer is to load a tape using mtx and then go into bconsole 
  and issue the mount.
  

  If I am not mistaken, you can also specify the Slot  (mount storage=xxx 
  slot=nnn) and in that case, Bacula will know what Slot to load into the 
drive 
  and will proceed to do it.
 

  
 
  That is new in the 1.39 series, I think. Jaime is using 1.38.11.
 

  Jaime Ventura wrote:
  

  Hello,
  I had to reboot my bacula server(dir and sd) and now I cant  mount 
  the tape manually(via console)
  Please have a look on the following:
 
  [EMAIL PROTECTED] bacula]# ./bconsole
  Connecting to Director bserver:9101
  1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
  Enter a period to cancel a command.
  *
  *status dir
  Using default Catalog name=MyCatalog DB=bacula
  bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu 
redhat
  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Scheduled Jobs:
  Level  Type Pri  Scheduled  Name   
Volume
 

  
  
===
 

  
  IncrementalBackup10  30-Nov-06 23:05Client1
  baculaFiles-vol0001
  Full   Backup11  30-Nov-06 23:10BackupCatalog  
  baculaFiles-vol0001
  Full   Backup10  01-Dec-06 05:00webserver02Backup  
  serversFiles-vol0012
  Full   Backup10  01-Dec-06 05:00qualidadeBackup
  serversFiles-vol0012
  
 
  Running Jobs:
  No Jobs running.
  
 
  Terminated Jobs:
  JobId  Level Files  Bytes Status   FinishedName
  

   1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
   1857  Full  1 17,178,275 OK   29-Nov-06 23:10 

  
  BackupCatalog

  
   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
   1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
  qualidadeBackup
 
  
  *status sd
  The defined Storage resources are:
  1: File
  2: IBM-Ultrium-3
  3: TapeLoader124T
  4: FileSERVERS
  5: FileUSERS
  Select Storage resource (1-5): 3
  Connecting to Storage daemon TapeLoader124T at 193.136.60.17:9103
 
  bserver-sd Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu 
redhat
  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Running Jobs:
  No Jobs running.
  
 
  Jobs waiting to reserve a drive:
  
 
  Terminated Jobs:
  JobId  Level   Files  Bytes Status   FinishedName
  ==
   1856  Incr  0  0 OK   29-Nov-06 23:05 Client1
   1857  Full  1 17,178,382 OK   29-Nov-06 23:10 
  BackupCatalog
   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
  
 
  Device status:
  Autochanger TapeLoader124T with devices:
IBM-Ultrium-3 (/dev/nst0)

Re: [Bacula-users] Get bacula to use whatever tape is inserted

2006-11-30 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yes. In fact, Bacula is more likely to use the wrong tape than the right
one, in my experience... by wrong I mean not what I intended. Bacula
has a fairly sophisticated mechanism for determining what tape to use.
Provided you have your pools defined properly for backups, I suspect
that a tape in the scratch pool would do, if you set the scratch pool up.

One problem here though is that there is back and forth on whether to
use the scratch pool before an available volume in the pool or not. I
would argue that it should check the tape in the drive and if it's
acceptable, run with it. You will not be able to re-use a wrong-labeled
tape, however, I suspect.

Anyways, that's a 50,000 mile view. Good luck!

Gavin Conway wrote:
 As the subject. I've got several places where Bacula is used and
 unfortunately each time someone puts the wrong tape in it throws out the
 sequencing. Is there any way to get Bacula to use whatever tape is
 inserted regardless? i.e. blank tape/none-blank tape is inserted, bacula
 runs the backup to it, labels it and puts it into the appropriate pool.
 
 Thanks,
 Gavin
 
 
 -
 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

- --
  _  _ _  _ ___  _  _  _
 |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

iD8DBQFFbxHAmb+gadEcsb4RAhYhAJ9hdNkjC2yybjkSd9qu7N1J9DcU9gCeMC++
Zc/hkSlb5pltu7LSws0/27Y=
=U4l4
-END PGP SIGNATURE-


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


Re: [Bacula-users] Cant mount a tape after server reboot.

2006-11-30 Thread Kern Sibbald
I'll let someone else continue with this thread ...

On Thursday 30 November 2006 19:06, Jaime Ventura wrote:
 
 Kern Sibbald wrote:
  On Thursday 30 November 2006 17:27, Jaime Ventura wrote:

  Thank you Josh, kern, for you replies.
  Yes Im using 1.38.11, and the slot= does not seems to work(although 
  bacula doesn't complaint about it)
 
  I think its logical why bacula doesnt load the tape: its because mount 
  command is not associated to a pool(a job is!), so bacula doesnt know 
  what tape to load.
  Am I right?
  
 
  Yes.
 

  By the way, how can I track down why the tapeloader/bacula-sd take so 
  much time to respond? Is it normal?. 
  
 
  Yes.
 

  Seems to me that it is waiting for  something and he gets timeout.
  
 
  Yes.  It probably waits for the rewind time, which by default is 5 
minutes. It 
  is configurable by a Directive.
 

 sorry about my lack of knowledge on tape drive, but is not  possible to 
 drive say  I have no tape to rewind or hey, i've finished rewinding 
 the tape?
  Im looking at the the debug info, and seems to me that bacula-sd is 
  waiting for tapeloader to rewind the tape, but there is no tape on the 
  drive.
 
  Just one other question: what is the meaning of the device is BLOCKED? 
  Is it blocked because the device is waiting/reserved for a job?
  
 
  There are many reasons why a device is blocked.  Usually, it gives 
additional 
  details on the output.
 

 Yes i understand that,  but what  is means?  does it mean It cant  be 
 used?   how do I unblock it?
 I've read the documentation(bacula console.html) where you have an 
 example, but cant figure out exactly how it works.
 Is there any other source of information, becides  you  or the bacula-users?
 I get a bit uncomfortable asking you this kind of questions waisting 
 your time.
  Once again, thanks you for your help
 
 
 
 
 
   
 
 
  Jaime Ventura
  [Infra-estruturas e Comunicações]
 
  Rua Dr. António Bernardino de Almeida, 431
  4200 - 072 Porto
  Telef: +351 22 834 05 00 (04) - ext. 1641
  Fax: +351 22 832 11 59
 
  e-mail:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  url:   www.isep.ipp.pt http://www.isep.ipp.pt 
 
 
 
 
 
 
 
  Josh Fisher wrote:
  
  Kern Sibbald wrote:


  On Thursday 30 November 2006 16:20, Josh Fisher wrote:

  
  
  I believe that is the expected behavior. The mount command mounts the 
  volume in a particular archive device. It does not perform a load and 
  mount  for autochangers. Notice that the mount command does not ask 
for 
  a slot number, thus could not possibly know what volume to load and 

  mount.

  The short answer is to load a tape using mtx and then go into bconsole 
  and issue the mount.
  


  If I am not mistaken, you can also specify the Slot  (mount storage=xxx 
  slot=nnn) and in that case, Bacula will know what Slot to load into the 
  
  drive 

  and will proceed to do it.
 

  
  
  That is new in the 1.39 series, I think. Jaime is using 1.38.11.
 


  Jaime Ventura wrote:
  


  Hello,
  I had to reboot my bacula server(dir and sd) and now I cant  
mount 
  the tape manually(via console)
  Please have a look on the following:
 
  [EMAIL PROTECTED] bacula]# ./bconsole
  Connecting to Director bserver:9101
  1000 OK: bserver-dir Version: 1.38.11 (28 June 2006)
  Enter a period to cancel a command.
  *
  *status dir
  Using default Catalog name=MyCatalog DB=bacula
  bserver-dir Version: 1.38.11 (28 June 2006) x86_64-redhat-linux-gnu 
  
  redhat

  Daemon started 30-Nov-06 12:30, 0 Jobs run since started.
 
  Scheduled Jobs:
  Level  Type Pri  Scheduled  Name   
  
  Volume


  
  
  
===
 


  
  
  IncrementalBackup10  30-Nov-06 23:05Client1
  baculaFiles-vol0001
  Full   Backup11  30-Nov-06 23:10BackupCatalog  
  baculaFiles-vol0001
  Full   Backup10  01-Dec-06 05:00webserver02Backup  
  serversFiles-vol0012
  Full   Backup10  01-Dec-06 05:00qualidadeBackup
  serversFiles-vol0012
  
 
  Running Jobs:
  No Jobs running.
  
 
  Terminated Jobs:
  JobId  Level Files  Bytes Status   FinishedName
 
  
  

   1856  Incr  0  0 OK   29-Nov-06 23:05 
Client1
   1857  Full  1 17,178,275 OK   29-Nov-06 23:10 

  
  
  BackupCatalog

  
  
   1864  Incr  0  0 OK   30-Nov-06 05:06 
  webserver02Backup
   1865  Incr 26  1,442,055 OK   30-Nov-06 05:07 
  

Re: [Bacula-users] Volume size limits backing up to file.

2006-11-30 Thread Arno Lehmann
Hello,

On 11/30/2006 5:41 PM, John Drescher wrote:
 
 
 On 11/30/06, *Mike B* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 Hi,
 
 I am trying to back up 60Gb of data to hard disk storage. When
 bacula is set
 up to automatically label volumes, but when a job is run it creates
 multiple
 volumes, each with a 2 Gb file size. I don't specify any maximum
 volume size
 in bacula-dir.conf. Is there any way to force Bacula to write the
 backup to
 a single volume.
 
 I am using Bacula version 1.38.11 and RHEL4. The backups are being
 written
 to a windows box mounted via smbmount.
 
 
 I think you need to mount the windows box using cifs instead as the 
 smbfs has a 2GB limit.

But keep in mind that, at least for the stable version, limiting he 
volume file size is a good idea anyway. The reason is that Bacula has to 
read the whole file instead of seeking to the position where it wants to 
read data.

Yes, this is kind of a problem, and I believe it will be fixed in 1.40.

Arno

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

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
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] Migrating to Bacula

2006-11-30 Thread Arno Lehmann
Hello,

On 11/30/2006 9:24 PM, Per Andreas Buer wrote:
 Hi.
 
 We are considering migrating to Bacula (from what we have seen - we are 
 impressed!) and a have a question or two I hope you might help me answer.
 
 Amanda has a feature I really like. When the correct tape is missing, 
 broken or full Amanda just spools everything. If you have a large spool, 
 backup can run for days without hick up. So, when one has fixed the 
 tape, one just runs amflush and all is well. How does Bacula react to 
 having its tape drive missing?

Badly :-)

Currently, Bacula will only run a job if the final storage volume is 
available at the time the job starts. The kind of staging Amanda does is 
not implemented in Bacula.

The upcoming solution to this is to implement a disk-to-disk-to-tape 
scenario where you first back up to disk, and later migrate jobs to 
tape. This is in the development version, and I suspect that the final 
version 1.40 will be released this year.

 
 If I need an urgent restore whilst backup is running - what are the 
 consequences of aborting a backup run.

The job you abort will need to be re-run.

 Can Bacula handle several tape drives?

Yes.

 Will I be able to run parallel 
 backup and restore?

Yes, but...

 As LTO3 has a really, really high throughput 
 (80MB/s, if I recall) I don't see much chance in using both drives in 
 parallel.

It will work, but in most cases will be severely slowed down. As you 
note, the throughput of one LTO-3 drive alone is enough to saturate 
todays computers bus bandwith. You can push the limit by using the right 
hardware, but it will be hard to find a (more or less) normal server 
that can handle moving data from the network to LTO-3 and from another 
LTO-3 drive to the network simultaneously. You'll most likely need 
higher-end server systems with multiple PCI-X or PCIe busses and lots of 
memory, CPU, bus and network bandwidth.

When I wanted to be prepared for restores during backup runs, I'd 
reserve a drive in a multi-drive autochanger for manual operations like 
restores, and / or be ready to abort or hold backup operations during 
important restore jobs.

Personally, I prefer to have a workstation equipped with a single drive 
and a configured SD available for these sorts of things. You'll have to 
swap tapes manually, but you will have a dedicated machine for the 
restore job.

 
 Any other thoughts from users who have migrated from Arkeia to Bacula 
 would be very welcome.

Do it. My little experience with Arkeia was one of the main reasons I 
moved to Bacula.

 
 TIA
 
 Per.

Arno

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
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] Removable Disk HOWTO

2006-11-30 Thread Michael Fung
- Original Message - 
From: Josh Fisher [EMAIL PROTECTED]
To: Michael Fung [EMAIL PROTECTED]
Cc: bacula-users bacula-users@lists.sourceforge.net
Sent: Thursday, November 30, 2006 9:46 PM
Subject: Re: [Bacula-users] Removable Disk HOWTO


 Also, before and after changed the script to not gives error, I still got 
 the error after issue the label barcodes command:
Connecting to Storage daemon USBChanger1 at 192.168.1.1:9103 ...
3306 Issuing autochanger slots command.
Device usb-changer-1 has 0 slots.
No slots in changer to scan.

 I run the script by hand to test output:
 [EMAIL PROTECTED] bacula]# ./vchanger /etc/bacula/vchanger1.conf slots
 7

 It reports 7 slots correctly. Could you give me some hints?  I am using 
 Bacula 1.38.11 on RHEL 4 clone.

 Did you run the test by hand as root? If so, then it is likely a 
 permissions problem. Normally, vchanger will run as the user and group 
 that bacula-sd runs as (usually bacula.disk if installed from RPMs). Make 
 sure /etc/bacula/vchanger1.conf can be read by the bacula-sd user and/or 
 group. Likewise, make sure the bacula-sd user and/or group  has read/write 
 permissions for the vchanger state directory (probably at 
 /var/bacula/vchanger1). Also, the bacula-sd user/group must have 
 read/write permissions for the mounted USB disk partition.

Hello Josh,

You are right! It is a permission problem. I fixed it and things seem to 
work perfectly now.

Thanks again,
Michael


-
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