Re: Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this re

2005-07-20 Thread Frederic PIERROT

Hi,

do you have the vss service runing in administration tools ? (a service 
called 'volume snapshot' or something like this ... i've a french version)


At 22:46 20/07/2005, you wrote:


Kern,
I did reboot the client. A test backup that I ran between the last email 
and this one shows up in the fd. When I get home tonight, I'll set 
everything up on a server there and see if I have the same issue.


Thanks,
Thomas
>
> From: Kern Sibbald <[EMAIL PROTECTED]>
> Date: 2005/07/20 Wed PM 04:25:28 EDT
> To: [EMAIL PROTECTED]
> CC: bacula-users@lists.sourceforge.net,
> Frederic PIERROT <[EMAIL PROTECTED]>
> Subject: Re: [Bacula-users] Config error: Keyword EnableVSS 
not  permitted in this re

>
> On Wednesday 20 July 2005 21:59, [EMAIL PROTECTED] wrote:
> > Kern,
> > Thanks for your reply. I am using the VSS enabled FD. Here is the output
> > from status client.
>
> Well, something is obviously wrong because the FD reports that 0 jobs 
have run
> since it was started.  I recommend you run again, then check that the 
number

> of jobs increments.  It appears you might be using the wrong client.
>
> If you rebooted since this morning when you ran the backup, it would 
explain
> the 0, but then I don't know what is going on -- perhaps Thorsten will 
have

> something to say.
>
> >
> > lightning:~# echo "status client=nemo-fd" | bconsole
> > Connecting to Director lightning:9101
> > 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> > Enter a period to cancel a command.
> > status client=nemo-fd
> > Using default Catalog name=MyCatalog DB=bacula
> > Connecting to Client nemo-fd at nemo:9102
> >
> > nemo-fd Version: 1.37.30 (14 July 2005) VSS Windows XP MVS NT 5.1.2600
> > Daemon started 20-Jul-05 15:34, 0 Jobs run since started.
> >  Priv 0x37f
> >  APIs=OPT,ATP,LPV,CFA,CFW,
> >  WUL,WMKD,WOP,GFAA,GFAW,GFAEA,GFAEW,SFAA,SFAW,BR,BW,SPSP,
> >  WC2MB,MB2WC,FFFA,FFFW,FNFA,FNFW,SCDA,SCDW,
> >  GCDA,GCDW
> > No Terminated Jobs.
> > Running Jobs:
> > Director connected at: 20-Jul-05 15:39
> > No Jobs running.
> > 
> >
> > Here's the FileSet that I'm using.
> >
> >  FileSet {
> > Name = "default-winxp"
> > Enable VSS = yes
> > Include {
> >   Options {
> > signature = MD5
> >   }
> >   File = "c:/"
> > }
> >  }
> >
> > Thanks,
> > Thomas
> >
> > > From: Kern Sibbald <[EMAIL PROTECTED]>
> > > Date: 2005/07/20 Wed PM 03:07:52 EDT
> > > To: bacula-users@lists.sourceforge.net
> > > CC: [EMAIL PROTECTED],  Frederic PIERROT <[EMAIL PROTECTED]>
> > > Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not
> > > permitted in this resource
> > >
> > > On Wednesday 20 July 2005 19:33, [EMAIL PROTECTED] wrote:
> > > > When backing up using VSS, is it normal to receive "cannot open file"
> > > > messages?
> > >
> > > No, you are probably not using the VSS enabled FD.  Did you load
> > > winbacula-vss-...?  You can also tell by doing a status client=xxx
> > > in the console.  The signon id of the FD should contain "VSS" after
> > > the Bacula version.
> > >
> > > In addition, when VSS is working, it will print several lines in 
the job

> > > output, which will be rather obvious.
> > >
> > > > Thanks,
> > > > Thomas
> > > >
> > > > >
> > > > > Enable VSS sjould be in FileSet, not in include / options
> > > > > there is my working fileset (with vss) :
> > > > >
> > > > > FileSet {
> > > > >Name = "fileset-fred"
> > > > >Enable VSS = yes
> > > > >Include {
> > > > >  Options { signature = MD5 }
> > > > >  File = "c:/Documents and Settings"
> > > > >  File = "d:/projects"
> > > > >}
> > > > > }
> > > > >
> > > > > Regards,
> > > > > F.
> > > > >
> > > > >
> > > > >
> > > > > ---
> > > > > SF.Net email is sponsored by: Discover Easy Linux Migration
> > > > > Strategies from IBM. Find simple to follow Roadmaps, 
straightforward

> > > > > articles, informative Webcasts and more! Get everything you need to
> > > > > get up to speed, fast.
> > > > > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > > > > ___
> > > > > Bacula-users mailing list
> > > > > Bacula-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> > > >
> > > > ---
> > > > SF.Net email is sponsored by: Discover Easy Linux Migration 
Strategies

> > > > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > > > informative Webcasts and more! Get everything you need to get up to
> > > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > > > ___
> > > > Bacula-users mailing list
> > > > Bacula-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> > >
> > > --
> > > Best regards,
> > >
> > > Kern
> > >
> > >   (">
> > >   /\
> > >   V_V
> > >
> > >
> > > -

[Bacula-users] Re: Windows VSS errors (was Config error: Keyword EnableVSS not permitted in this resource)

2005-07-20 Thread Dana J. Bolden
I, too, have received file-in-use errors while attempting to use VSS on two 
different WinXP machines with the VSS FD.  I will gladly post my configs 
and messages if it will be helpful.  I am running 1.37.30 SD & Dir and the 
1.37.30 VSS FD and I do have "Enable VSS = yes" in the FileSet defination.


Dana


At 10:23 PM 7/20/2005, [EMAIL PROTECTED] wrote:

Date: Wed, 20 Jul 2005 00:13:33 +
From: Thomas Simmons <[EMAIL PROTECTED]>
To:  [EMAIL PROTECTED]
CC: Kern Sibbald <[EMAIL PROTECTED]>,  bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not  permitted
 in this resource

Ok, I set everything up here at home and I'm getting the same thing. I
first tried backing up my laptop, which was the client I was testing
with at work, the "cannot open file" errors persisted. I then set up the
FD on another XP system I have here. Unfortunately it has the same
issue. Here's some output that I think should show everything is setup
correctly for VSS to work. Other than using a VSS enabled FD, and adding
"Enable VSS = yes" to the fileset, is there anything else required to
use VSS? I noticed there was a "Volume Shadow Copy" windows service. I
don't know if it would matter but I tried running backups with this
stopped(default) and started, with the same results.

Thanks,
Thomas

typhoon:/etc/bacula# grep -m 1 -A 9 FileSet /etc/bacula/bacula-dir.conf
  FileSet {
 Name = "default-winxp"
 Enable VSS = yes
 Include {
   Options {
 signature = MD5
   }
   File = "c:/"
 }
  }
typhoon:/etc/bacula# bconsole
Connecting to Director typhoon:9101
1000 OK: typhoon-dir Version: 1.37.30 (14 July 2005)
Enter a period to cancel a command.
*status client=odin-fd
Using default Catalog name=MyCatalog DB=bacula
Connecting to Client odin-fd at odin:9102

odin-fd Version: 1.37.30 (14 July 2005) VSS Windows XP MVS NT 5.1.2600
Daemon started 19-Jul-05 23:21, 0 Jobs run since started.
  Priv 0x22f
  APIs=OPT,ATP,LPV,CFA,CFW,
  WUL,WMKD,WOP,GFAA,GFAW,GFAEA,GFAEW,SFAA,SFAW,BR,BW,SPSP,
  WC2MB,MB2WC,FFFA,FFFW,FNFA,FNFW,SCDA,SCDW,
  GCDA,GCDW
No Terminated Jobs.
Running Jobs:
Director connected at: 19-Jul-05 23:22
No Jobs running.

*run job=Odin
Run Backup job
JobName:  Odin
FileSet:  default-winxp
Level:Incremental
Client:   odin-fd
Storage:  file
Pool: default
When: 2005-07-20 19:43:42
Priority: 10
OK to run? (yes/mod/no): yes
Job started. JobId=1
*
You have messages.
*messages
20-Jul 19:43 typhoon-dir: No prior Full backup Job record found.
20-Jul 19:43 typhoon-dir: No prior or suitable Full backup found. Doing
FULL backup.
20-Jul 19:43 typhoon-dir: Start Backup JobId 1, Job=Odin.2005-07-20_19.43.55
20-Jul 19:44 typhoon-dir: Created new Volume "inc-0001" in catalog.
20-Jul 19:44 typhoon-sd: Labeled new Volume "inc-0001" on device
"filestorage" (/backup/).
20-Jul 19:44 typhoon-sd: Wrote label to prelabeled Volume "inc-0001" on
device "filestorage" (/backup/)
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/LocalService/Local Settings/Application
Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the
file because it is being used by another process.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/LocalService/Local Settings/Application
Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access
the file because it is being used by another process.
.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the file
because it is being used by another process.
.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the
file because it is being used by another process.
.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/NetworkService/Local Settings/Application
Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the
file because it is being used by another process.
.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/NetworkService/Local Settings/Application
Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access
the file because it is being used by another process.
.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/NetworkService/NTUSER.DAT: ERR=The process cannot access the
file because it is being used by another process.
.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and
Settings/NetworkService/ntuser.dat.LOG: ERR=The process cannot access
the file because it is being used by another process.
.

[EMAIL PROTECTED] wrote:
> Kern,
> I did reboot the client. A test backup that I ran between the last 
email and this one shows up in the fd. When I get home tonight, I'll set 
everything up on a server there and see if I have the same issue.

>
> Thanks,
> Thomas
>
>>From: Kern Sibbald <[EMAIL PROTECTED]>
>>Date: 2005/07/20 Wed PM 04:25:28 EDT
>>To: [EMAIL PROTECTED]
>>CC: bacula-users@li

Re: [Bacula-users] Ver 1.36.3 does it require PostgreSQL 8?

2005-07-20 Thread Dan Langille
On 20 Jul 2005 at 22:44, Dan Langille wrote:

> On 20 Jul 2005 at 18:52, [EMAIL PROTECTED] wrote:
> 
> > I wanted to upgrade from version 1.34.6 to 1.36.3 but
> > when I go to start bacula I get an error about my
> > PostgreSQL database configuration. It says something
> > about expected version 8 but got 7 and terminates the
> > init script for the bacula director.
> 
> This sounds like you did not run the Bacula upgrade script.  This 
> will perform the necessary database changes to migrate you from db 
> version 8.

I mean: form db version 7 to db version 8.  These are Bacula-specific 
versions and used internally to ensure the code doesn't use an 
outdated database.

-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Ver 1.36.3 does it require PostgreSQL 8?

2005-07-20 Thread Dan Langille
On 20 Jul 2005 at 18:52, [EMAIL PROTECTED] wrote:

> I wanted to upgrade from version 1.34.6 to 1.36.3 but
> when I go to start bacula I get an error about my
> PostgreSQL database configuration. It says something
> about expected version 8 but got 7 and terminates the
> init script for the bacula director.

This sounds like you did not run the Bacula upgrade script.  This 
will perform the necessary database changes to migrate you from db 
version 8.

>  Normally I would
> have just upgraded the database however in my case the
> db is on a different linux box and serves many other
> applications so we are not ready to move to PostgreSQL
> 8. Does version 1.36.3 require PostgreSQL 8? 

No.
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Suggestion about saving space on tapes

2005-07-20 Thread Dan Langille
On 20 Jul 2005 at 14:44, Joshua Kugler wrote:

> On Wednesday 20 July 2005 13:51, Marcel Gsteiger wrote:
> > What do you think about this?
> 
> I think you didn't read the archives. :)  This idea has been discussed, but 
> it 
> would take a lot of planning, and probably some structural changes.  It's an 
> idea that may be implemented some day, but as of right now, it's not on the 
> active list.

Patches would certainly be considered if submitted, provided they 
followed existing conventions, practices, and standards.
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] corrupt files on full restore

2005-07-20 Thread Theron Toomey

Hello,
Thanks for responding. Also, thanks for providing such a useful program!

Kern Sibbald wrote:

You should do three things:

1. Run btape "test" and "fill" commands.  The latter is very slow.


I have done both but I don't see any critical errors. But then again, 
maybe I am missing something. I didn't have time to run a multitape fill 
test but I plan on trying it later. As recommended, I turned off 
hardware compression before running the fill test.


I have attached the output of both commands, run with the '-v -p' options.

At the end of the 'fill' test, I did see this in the syslog:
  btape: btape: End of Volume "TestVolume1" at 103:11361 on device
  /dev/nst0. Write of 64512 bytes got -1.
But I assume its because btape encountered an EOF.


2. Look at your system log to see if you are getting any errors.


Besides the occasional "Key=8h (BLANK CHECK)" SCSI error when reading a 
blank tape, I haven't seen anything.



3. Turn on the directive in the default SD config file that checks
 for tape alerts.  It can provide early warning if you have bad tapes.


I have this in my Device resource:
Alert Command = "sh -c 'tapeinfo -f /dev/sg5 | grep TapeAlert || true'"

I'm still stumped. Thanks for you help.



On Wednesday 20 July 2005 03:37, Theron Toomey wrote:


Hello,
I'm seeing some strange behavior with restores under 1.36.3/RHEL 3 using
an AIT-3 drive. I'm not quite sure what is causing it and I'd really
appreciate any suggestions.

When I choose restore option 5 (Select the most recent backup) bacula
proceeds to restore data from the last full and subsequent diff/incr
jobs. However, for large restores (>50 GB), I notice a few dozen error
messages like:
 Error: attribs.c:339 File size of restored file /foo/bar not correct.
 Original [file size], restored [large, bogus file size].

Comparing the restores against the live data, I see that the restored
files have lots of random garbage inserted/appended to them.

However, when I manually find the jobIDs of the full/diffs/incrs and
restore them individually with restore option 3, there is no corruption
and the files all seem fine.

Most of the corrupt files are older than the last full; Perhaps there's
something in the diff/incr jobs that corrupts the files from the full
job. However, most of the corrupt files are older than the last full and
so are not even present in the diff/incr jobs.

Has anyone seen behavior like this or have any ideas about where to look?

Thanks!


--
Theron Toomey, System Administrator
NSEES-IT (919-613-8148)


btape-fill.txt.gz
Description: GNU Zip compressed data


btape-test.txt.gz
Description: GNU Zip compressed data


[Bacula-users] Ver 1.36.3 does it require PostgreSQL 8?

2005-07-20 Thread drescher0110-bacula
I wanted to upgrade from version 1.34.6 to 1.36.3 but
when I go to start bacula I get an error about my
PostgreSQL database configuration. It says something
about expected version 8 but got 7 and terminates the
init script for the bacula director. Normally I would
have just upgraded the database however in my case the
db is on a different linux box and serves many other
applications so we are not ready to move to PostgreSQL
8. Does version 1.36.3 require PostgreSQL 8? 

I am running 64 bit gentoo linux on an Opteron 246
system with 4GB of memory, a DLT-IV tape drive and
around 2.5 TB software raid 6 configured with 17 250
GB SATA disks.  

"When a man sits with a pretty girl for an hour, it seems like a minute. But 
let him sit on a hot stove for a minute and it's longer than any hour. That's 
relativity." - Albert Einstein


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this resource

2005-07-20 Thread Thomas Simmons
Ok, I set everything up here at home and I'm getting the same thing. I 
first tried backing up my laptop, which was the client I was testing 
with at work, the "cannot open file" errors persisted. I then set up the 
FD on another XP system I have here. Unfortunately it has the same 
issue. Here's some output that I think should show everything is setup 
correctly for VSS to work. Other than using a VSS enabled FD, and adding 
"Enable VSS = yes" to the fileset, is there anything else required to 
use VSS? I noticed there was a "Volume Shadow Copy" windows service. I 
don't know if it would matter but I tried running backups with this 
stopped(default) and started, with the same results.


Thanks,
Thomas

typhoon:/etc/bacula# grep -m 1 -A 9 FileSet /etc/bacula/bacula-dir.conf
 FileSet {
Name = "default-winxp"
Enable VSS = yes
Include {
  Options {
signature = MD5
  }
  File = "c:/"
}
 }
typhoon:/etc/bacula# bconsole
Connecting to Director typhoon:9101
1000 OK: typhoon-dir Version: 1.37.30 (14 July 2005)
Enter a period to cancel a command.
*status client=odin-fd
Using default Catalog name=MyCatalog DB=bacula
Connecting to Client odin-fd at odin:9102

odin-fd Version: 1.37.30 (14 July 2005) VSS Windows XP MVS NT 5.1.2600
Daemon started 19-Jul-05 23:21, 0 Jobs run since started.
 Priv 0x22f
 APIs=OPT,ATP,LPV,CFA,CFW,
 WUL,WMKD,WOP,GFAA,GFAW,GFAEA,GFAEW,SFAA,SFAW,BR,BW,SPSP,
 WC2MB,MB2WC,FFFA,FFFW,FNFA,FNFW,SCDA,SCDW,
 GCDA,GCDW
No Terminated Jobs.
Running Jobs:
Director connected at: 19-Jul-05 23:22
No Jobs running.

*run job=Odin
Run Backup job
JobName:  Odin
FileSet:  default-winxp
Level:Incremental
Client:   odin-fd
Storage:  file
Pool: default
When: 2005-07-20 19:43:42
Priority: 10
OK to run? (yes/mod/no): yes
Job started. JobId=1
*
You have messages.
*messages
20-Jul 19:43 typhoon-dir: No prior Full backup Job record found.
20-Jul 19:43 typhoon-dir: No prior or suitable Full backup found. Doing 
FULL backup.

20-Jul 19:43 typhoon-dir: Start Backup JobId 1, Job=Odin.2005-07-20_19.43.55
20-Jul 19:44 typhoon-dir: Created new Volume "inc-0001" in catalog.
20-Jul 19:44 typhoon-sd: Labeled new Volume "inc-0001" on device 
"filestorage" (/backup/).
20-Jul 19:44 typhoon-sd: Wrote label to prelabeled Volume "inc-0001" on 
device "filestorage" (/backup/)
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/LocalService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the 
file because it is being used by another process.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/LocalService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access 
the file because it is being used by another process.

.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the file 
because it is being used by another process.

.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the 
file because it is being used by another process.

.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/NetworkService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the 
file because it is being used by another process.

.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/NetworkService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access 
the file because it is being used by another process.

.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/NetworkService/NTUSER.DAT: ERR=The process cannot access the 
file because it is being used by another process.

.
19-Jul 23:24 odin-fd:  Cannot open c:/Documents and 
Settings/NetworkService/ntuser.dat.LOG: ERR=The process cannot access 
the file because it is being used by another process.

.

[EMAIL PROTECTED] wrote:

Kern,
I did reboot the client. A test backup that I ran between the last email and this one shows up in the fd. When I get home tonight, I'll set everything up on a server there and see if I have the same issue. 


Thanks,
Thomas


From: Kern Sibbald <[EMAIL PROTECTED]>
Date: 2005/07/20 Wed PM 04:25:28 EDT
To: [EMAIL PROTECTED]
CC: bacula-users@lists.sourceforge.net, 
   Frederic PIERROT <[EMAIL PROTECTED]>

Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not  permitted in 
this re

On Wednesday 20 July 2005 21:59, [EMAIL PROTECTED] wrote:


Kern,
Thanks for your reply. I am using the VSS enabled FD. Here is the output
from status client.


Well, something is obviously wrong because the FD reports that 0 jobs have run 
since it was started.  I recommend you run again, then check that the number 
of jobs increments.  It appears you might be using the wrong client.


If you rebooted since this morning when you ran the backup, it would explain

Re: [Bacula-users] Suggestion about saving space on tapes

2005-07-20 Thread Joshua Kugler
On Wednesday 20 July 2005 13:51, Marcel Gsteiger wrote:
> What do you think about this?

I think you didn't read the archives. :)  This idea has been discussed, but it 
would take a lot of planning, and probably some structural changes.  It's an 
idea that may be implemented some day, but as of right now, it's not on the 
active list.

j- k-

-- 
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Suggestion about saving space on tapes

2005-07-20 Thread Marcel Gsteiger
Hi all,

I am currently backing up several similar systems onto one volume, as probably 
most people do. To save time and space, I have the following suggestion:

In principle it is unnecessary to store the same content twice on the same 
volume. I assume that, during restore, a volume can either be read completely 
or completely gets lost, so there is no immediate benefit from storing the same 
content twice on one single volume.

Now it would be nice if bacula would never put the same file *content* twice on 
the same volume. This could happen in a transparent manner: bacula has a 
database with all files stored on each volume. When a request to store a file 
arrives, bacula could easily determine if this file has already been written to 
the volume earlier (looking up the file size and MD5 sum in all entries in the 
database for this volume) and then store something like a "backlink on the 
tape" together with the filename (which may be different from the other file 
with the same content) instead of the file itself.

Personally I think about the following implementation: The FD could, before 
transmitting a file, transmit the path/name, size and MD5 sum beforehand. Then 
then the SD could perhaps decide if it still needs the data or if it could 
simply store this "hardlink" instead. The SD would probably have to consult the 
director for database lookup.

Perhaps this idea could be merged with the "basefiles" concept: a file would 
become a basefile automatically when the same content arrives a second time on 
the same volume. But, according to my idea, there would never be a need to 
store the "basefiles" separately, so no new backup level and/or strategy would 
be needed.

Of course, restores will become more complicated: instead of working through 
one single physical session, multiple sessions will have to be read.

This concept would make volume handling much more flexible. A volume would 
never overflow because of storing the same set of files multiple times. Full 
Backups would automatically shrink when inadvertently done twice on the same 
tape.

Logically, each volume would still contain the same data, just in a different 
form. Effectively this would just be an "abstraction layer" above the physical 
volume. This would mean that most procedures would not change much, there is no 
need for a new concept (like "static files" or the like).

There are some more complications, e.g. when considering spooled catalog 
updates while streaming to a fast tape device, but these should not be 
unsurmountable.

What do you think about this?
Regards
--Marcel



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this re

2005-07-20 Thread twsnnva
Kern,
I did reboot the client. A test backup that I ran between the last email and 
this one shows up in the fd. When I get home tonight, I'll set everything up on 
a server there and see if I have the same issue. 

Thanks,
Thomas
> 
> From: Kern Sibbald <[EMAIL PROTECTED]>
> Date: 2005/07/20 Wed PM 04:25:28 EDT
> To: [EMAIL PROTECTED]
> CC: bacula-users@lists.sourceforge.net, 
> Frederic PIERROT <[EMAIL PROTECTED]>
> Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not  permitted in 
> this re
> 
> On Wednesday 20 July 2005 21:59, [EMAIL PROTECTED] wrote:
> > Kern,
> > Thanks for your reply. I am using the VSS enabled FD. Here is the output
> > from status client.
> 
> Well, something is obviously wrong because the FD reports that 0 jobs have 
> run 
> since it was started.  I recommend you run again, then check that the number 
> of jobs increments.  It appears you might be using the wrong client.
> 
> If you rebooted since this morning when you ran the backup, it would explain 
> the 0, but then I don't know what is going on -- perhaps Thorsten will have 
> something to say.
> 
> >
> > lightning:~# echo "status client=nemo-fd" | bconsole
> > Connecting to Director lightning:9101
> > 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> > Enter a period to cancel a command.
> > status client=nemo-fd
> > Using default Catalog name=MyCatalog DB=bacula
> > Connecting to Client nemo-fd at nemo:9102
> >
> > nemo-fd Version: 1.37.30 (14 July 2005) VSS Windows XP MVS NT 5.1.2600
> > Daemon started 20-Jul-05 15:34, 0 Jobs run since started.
> >  Priv 0x37f
> >  APIs=OPT,ATP,LPV,CFA,CFW,
> >  WUL,WMKD,WOP,GFAA,GFAW,GFAEA,GFAEW,SFAA,SFAW,BR,BW,SPSP,
> >  WC2MB,MB2WC,FFFA,FFFW,FNFA,FNFW,SCDA,SCDW,
> >  GCDA,GCDW
> > No Terminated Jobs.
> > Running Jobs:
> > Director connected at: 20-Jul-05 15:39
> > No Jobs running.
> > 
> >
> > Here's the FileSet that I'm using.
> >
> >  FileSet {
> > Name = "default-winxp"
> > Enable VSS = yes
> > Include {
> >   Options {
> > signature = MD5
> >   }
> >   File = "c:/"
> > }
> >  }
> >
> > Thanks,
> > Thomas
> >
> > > From: Kern Sibbald <[EMAIL PROTECTED]>
> > > Date: 2005/07/20 Wed PM 03:07:52 EDT
> > > To: bacula-users@lists.sourceforge.net
> > > CC: [EMAIL PROTECTED],  Frederic PIERROT <[EMAIL PROTECTED]>
> > > Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not 
> > > permitted in this resource
> > >
> > > On Wednesday 20 July 2005 19:33, [EMAIL PROTECTED] wrote:
> > > > When backing up using VSS, is it normal to receive "cannot open file"
> > > > messages?
> > >
> > > No, you are probably not using the VSS enabled FD.  Did you load
> > > winbacula-vss-...?  You can also tell by doing a status client=xxx
> > > in the console.  The signon id of the FD should contain "VSS" after
> > > the Bacula version.
> > >
> > > In addition, when VSS is working, it will print several lines in the job
> > > output, which will be rather obvious.
> > >
> > > > Thanks,
> > > > Thomas
> > > >
> > > > Connecting to Director lightning:9101
> > > > 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> > > > Enter a period to cancel a command.
> > > > messages
> > > > 20-Jul 23:50 lightning-dir: No prior Full backup Job record found.
> > > > 20-Jul 23:50 lightning-dir: No prior or suitable Full backup found.
> > > > Doing FULL backup. 20-Jul 23:50 lightning-dir: Start Backup JobId 6,
> > > > Job=nemo-backup.2005-07-20_23.50.04 20-Jul 23:50 lightning-sd: Volume
> > > > "inc-0001" previously written, moving to end of data. 20-Jul 11:50
> > > > nemo-fd: Cannot open c:/Documents and Settings/LocalService/Local
> > > > Settings/Application Data/Microsoft/Windows/UsrClass.dat: ERR=The
> > > > process cannot access the file because it is being used by another
> > > > process. . 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > > Settings/LocalService/Local Settings/Application
> > > > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access
> > > > the file because it is being used by another process. .
> > > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > > Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the
> > > > file because it is being used by another process. .
> > > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > > Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the
> > > > file because it is being used by another process. .
> > > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > > Settings/NetworkService/Local Settings/Application
> > > > Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the
> > > > file because it is being used by another process. .
> > > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > > Settings/NetworkService/Local Settings/Application
> > > > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access
> > > > the file because it is being used by anothe

Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this re

2005-07-20 Thread Kern Sibbald
On Wednesday 20 July 2005 21:59, [EMAIL PROTECTED] wrote:
> Kern,
> Thanks for your reply. I am using the VSS enabled FD. Here is the output
> from status client.

Well, something is obviously wrong because the FD reports that 0 jobs have run 
since it was started.  I recommend you run again, then check that the number 
of jobs increments.  It appears you might be using the wrong client.

If you rebooted since this morning when you ran the backup, it would explain 
the 0, but then I don't know what is going on -- perhaps Thorsten will have 
something to say.

>
> lightning:~# echo "status client=nemo-fd" | bconsole
> Connecting to Director lightning:9101
> 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> Enter a period to cancel a command.
> status client=nemo-fd
> Using default Catalog name=MyCatalog DB=bacula
> Connecting to Client nemo-fd at nemo:9102
>
> nemo-fd Version: 1.37.30 (14 July 2005) VSS Windows XP MVS NT 5.1.2600
> Daemon started 20-Jul-05 15:34, 0 Jobs run since started.
>  Priv 0x37f
>  APIs=OPT,ATP,LPV,CFA,CFW,
>  WUL,WMKD,WOP,GFAA,GFAW,GFAEA,GFAEW,SFAA,SFAW,BR,BW,SPSP,
>  WC2MB,MB2WC,FFFA,FFFW,FNFA,FNFW,SCDA,SCDW,
>  GCDA,GCDW
> No Terminated Jobs.
> Running Jobs:
> Director connected at: 20-Jul-05 15:39
> No Jobs running.
> 
>
> Here's the FileSet that I'm using.
>
>  FileSet {
> Name = "default-winxp"
> Enable VSS = yes
> Include {
>   Options {
> signature = MD5
>   }
>   File = "c:/"
> }
>  }
>
> Thanks,
> Thomas
>
> > From: Kern Sibbald <[EMAIL PROTECTED]>
> > Date: 2005/07/20 Wed PM 03:07:52 EDT
> > To: bacula-users@lists.sourceforge.net
> > CC: [EMAIL PROTECTED],  Frederic PIERROT <[EMAIL PROTECTED]>
> > Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not 
> > permitted in this resource
> >
> > On Wednesday 20 July 2005 19:33, [EMAIL PROTECTED] wrote:
> > > When backing up using VSS, is it normal to receive "cannot open file"
> > > messages?
> >
> > No, you are probably not using the VSS enabled FD.  Did you load
> > winbacula-vss-...?  You can also tell by doing a status client=xxx
> > in the console.  The signon id of the FD should contain "VSS" after
> > the Bacula version.
> >
> > In addition, when VSS is working, it will print several lines in the job
> > output, which will be rather obvious.
> >
> > > Thanks,
> > > Thomas
> > >
> > > Connecting to Director lightning:9101
> > > 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> > > Enter a period to cancel a command.
> > > messages
> > > 20-Jul 23:50 lightning-dir: No prior Full backup Job record found.
> > > 20-Jul 23:50 lightning-dir: No prior or suitable Full backup found.
> > > Doing FULL backup. 20-Jul 23:50 lightning-dir: Start Backup JobId 6,
> > > Job=nemo-backup.2005-07-20_23.50.04 20-Jul 23:50 lightning-sd: Volume
> > > "inc-0001" previously written, moving to end of data. 20-Jul 11:50
> > > nemo-fd: Cannot open c:/Documents and Settings/LocalService/Local
> > > Settings/Application Data/Microsoft/Windows/UsrClass.dat: ERR=The
> > > process cannot access the file because it is being used by another
> > > process. . 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/LocalService/Local Settings/Application
> > > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access
> > > the file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the
> > > file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the
> > > file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/NetworkService/Local Settings/Application
> > > Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the
> > > file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/NetworkService/Local Settings/Application
> > > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access
> > > the file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/NetworkService/NTUSER.DAT: ERR=The process cannot access the
> > > file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/NetworkService/ntuser.dat.LOG: ERR=The process cannot access
> > > the file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Settings/simmons/Local Settings/Application
> > > Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the
> > > file because it is being used by another process. .
> > > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > > Setting

Re: Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this re

2005-07-20 Thread twsnnva
Kern,
Thanks for your reply. I am using the VSS enabled FD. Here is the output from 
status client. 

lightning:~# echo "status client=nemo-fd" | bconsole
Connecting to Director lightning:9101
1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
Enter a period to cancel a command.
status client=nemo-fd
Using default Catalog name=MyCatalog DB=bacula
Connecting to Client nemo-fd at nemo:9102

nemo-fd Version: 1.37.30 (14 July 2005) VSS Windows XP MVS NT 5.1.2600
Daemon started 20-Jul-05 15:34, 0 Jobs run since started.
 Priv 0x37f
 APIs=OPT,ATP,LPV,CFA,CFW,
 WUL,WMKD,WOP,GFAA,GFAW,GFAEA,GFAEW,SFAA,SFAW,BR,BW,SPSP,
 WC2MB,MB2WC,FFFA,FFFW,FNFA,FNFW,SCDA,SCDW,
 GCDA,GCDW
No Terminated Jobs.
Running Jobs:
Director connected at: 20-Jul-05 15:39
No Jobs running.


Here's the FileSet that I'm using.

 FileSet {
Name = "default-winxp"
Enable VSS = yes
Include {
  Options {
signature = MD5
  }
  File = "c:/"
}
 }

Thanks,
Thomas
> 
> From: Kern Sibbald <[EMAIL PROTECTED]>
> Date: 2005/07/20 Wed PM 03:07:52 EDT
> To: bacula-users@lists.sourceforge.net
> CC: [EMAIL PROTECTED],  Frederic PIERROT <[EMAIL PROTECTED]>
> Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not  permitted in 
> this resource
> 
> On Wednesday 20 July 2005 19:33, [EMAIL PROTECTED] wrote:
> > When backing up using VSS, is it normal to receive "cannot open file"
> > messages?
> 
> No, you are probably not using the VSS enabled FD.  Did you load 
> winbacula-vss-...?  You can also tell by doing a status client=xxx
> in the console.  The signon id of the FD should contain "VSS" after
> the Bacula version.
> 
> In addition, when VSS is working, it will print several lines in the job 
> output, which will be rather obvious.
> 
> >
> > Thanks,
> > Thomas
> >
> > Connecting to Director lightning:9101
> > 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> > Enter a period to cancel a command.
> > messages
> > 20-Jul 23:50 lightning-dir: No prior Full backup Job record found.
> > 20-Jul 23:50 lightning-dir: No prior or suitable Full backup found. Doing
> > FULL backup. 20-Jul 23:50 lightning-dir: Start Backup JobId 6,
> > Job=nemo-backup.2005-07-20_23.50.04 20-Jul 23:50 lightning-sd: Volume
> > "inc-0001" previously written, moving to end of data. 20-Jul 11:50 nemo-fd:
> >  Cannot open c:/Documents and Settings/LocalService/Local
> > Settings/Application Data/Microsoft/Windows/UsrClass.dat: ERR=The process
> > cannot access the file because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/LocalService/Local Settings/Application
> > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the
> > file because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the file
> > because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the
> > file because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/NetworkService/Local Settings/Application
> > Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the file
> > because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/NetworkService/Local Settings/Application
> > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the
> > file because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/NetworkService/NTUSER.DAT: ERR=The process cannot access the file
> > because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/NetworkService/ntuser.dat.LOG: ERR=The process cannot access the
> > file because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/simmons/Local Settings/Application
> > Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the file
> > because it is being used by another process. .
> > 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> > Settings/simmons/Local Settings/Application
> > Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the
> > file because it is being used by another process. .
> > 20-Jul 11:52 nemo-fd:  Cannot open c:/Documents and
> > Settings/simmons/NTUSER.DAT: ERR=The process cannot access the file because
> > it is being used by another process. .
> > 20-Jul 11:52 nemo-fd:  Cannot open c:/Documents and
> > Settings/simmons/ntuser.dat.LOG: ERR=The process cannot access the file
> > because it is being used by another process. .
> > 20-Jul 11:52 nemo-fd:  Could not stat c:/pagefile.sys: ERR=The process
> > cannot access the fi

Re: [Bacula-users] slot inventory problem

2005-07-20 Thread Kern Sibbald
On Wednesday 20 July 2005 20:34, Arno Lehmann wrote:
> Hi,
>
> Kern Sibbald wrote:
> > On Wednesday 20 July 2005 16:27, Arno Lehmann wrote:
> >>Hello,
> >>
> >>the following has been discussed before. I was able to reproduce the
> >>following:
> >>
> >>I use a 6-slot autoloader.
> >>I have a query to report which tapes are loaded in the slots.
> >>I insert a magazine with six cartridges and do 'update slots scan
> >>storage=HPDAT"
> >>After that, the query correctly reports the tapes in all six slots.
> >>The backup running first uses the tape already loaded in the drive after
> >>the scan.
> >>One tape is filled, bacula changes the tape, but now the report doesn't
> >>show the tape just unloaded.
> >
> > What report?
>
> The report as printed by the following query in query.sql (MySQL):
> # 17
>
> :List which media bacula thinks is in changer:
>
> SELECT MediaId,VolumeName,VolBytes/(1024*1024*1024) AS GB,Slot,Pool.Name
> AS Pool
> ,MediaType,VolStatus
>   FROM Media
>   LEFT JOIN Pool ON Media.PoolId=Pool.PoolId
>   WHERE (Slot > 0) AND (InChanger=1)
>   ORDER BY MediaType ASC, Slot ASC;
>
> >>When I manually update the volume information, everything goes as
> >> expected.
> >
> > What Volume information?  I don't understand what you are updating.
>
> Like when I do he following:
>
> #update volume=DAT-120-0027
> Updating Volume "DAT-120-0027"
> Parameters to modify:
>   1: Volume Status
>   2: Volume Retention Period
>   3: Volume Use Duration
>   4: Maximum Volume Jobs
>   5: Maximum Volume Files
>   6: Maximum Volume Bytes
>   7: Recycle Flag
>   8: Slot
>   9: InChanger Flag
>  10: Volume Files
>  11: Pool
>  12: Volume from Pool
>  13: All Volumes from Pool
>  14: Done
> Select parameter to modify (1-14): Unexpected question has been received.
> 9
> Current InChanger flag is: 0
> Set InChanger flag? yes/no: Unexpected question has been received.
> 1
> Invalid response. You must answer yes or no.
> Set InChanger flag? yes/no: Unexpected question has been received.
> yes
> New InChanger flag is: 1
> Updating Volume "DAT-120-0027"
> Parameters to modify:
>   1: Volume Status
>   2: Volume Retention Period
>   3: Volume Use Duration
>   4: Maximum Volume Jobs
>   5: Maximum Volume Files
>   6: Maximum Volume Bytes
>   7: Recycle Flag
>   8: Slot
>   9: InChanger Flag
>  10: Volume Files
>  11: Pool
>  12: Volume from Pool
>  13: All Volumes from Pool
>  14: Done
> Select parameter to modify (1-14): Unexpected question has been received.
> 14
> Selection done.
> #
>
> >>When I manually unload the tape from the drive before the job requests a
> >>tape, everything works normal, too: bacula sees the drive is empty and
> >>loads a tape automatically.
> >>
> >>Could somebody verify this?
> >
> > I don't understand the problem for the reasons noted above.
>
> The problem is that in a special case the InChanger Flag seems to get
> cleared where it should remain set.

I suspect that this is because the tape is in the drive and the "update slots 
scan ..." did not unload it.  If I am not mistaken, this will be corrected by 
the new mtx-changer script, which reports back Volumes in the drive as well 
as in the magazine.  You might want to take the 1.37.30 version as it stands 
and test it with your 1.36.x setup.  It *may* solve that problem.

>
> That case is when you do an update slots scan command, bacula fills the
> volume loaded in the drive by the update slots command, and then
> continues with another volume without user intervention.
>
> > Now would be a good time to take the pain an upgrade to 1.37.30.  If you
> > still have the problem, I can probably fix it before releasing the
> > software in the next few weeks.
>
> Yep, I will upgrade as soon as I can... I have one rather long job
> running for two days already, and only wait for that to be done, then
> for my regular jobs to run, then I'm away for three days, and in the
> next week I hope to do the upgrade.
>
> Considering that the autochanger support seems to have changed a bit, I
> even hope that the above problem disappeared automagically ;-)

Yes, probably so, but undoubtedly there will be a number of other annoyances 
until people complain.

>
> By the way - the above is far from serious.
>
> Arno

-- 
Best regards,

Kern

  (">
  /\
  V_V


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this resource

2005-07-20 Thread Kern Sibbald
On Wednesday 20 July 2005 19:33, [EMAIL PROTECTED] wrote:
> When backing up using VSS, is it normal to receive "cannot open file"
> messages?

No, you are probably not using the VSS enabled FD.  Did you load 
winbacula-vss-...?  You can also tell by doing a status client=xxx
in the console.  The signon id of the FD should contain "VSS" after
the Bacula version.

In addition, when VSS is working, it will print several lines in the job 
output, which will be rather obvious.

>
> Thanks,
> Thomas
>
> Connecting to Director lightning:9101
> 1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
> Enter a period to cancel a command.
> messages
> 20-Jul 23:50 lightning-dir: No prior Full backup Job record found.
> 20-Jul 23:50 lightning-dir: No prior or suitable Full backup found. Doing
> FULL backup. 20-Jul 23:50 lightning-dir: Start Backup JobId 6,
> Job=nemo-backup.2005-07-20_23.50.04 20-Jul 23:50 lightning-sd: Volume
> "inc-0001" previously written, moving to end of data. 20-Jul 11:50 nemo-fd:
>  Cannot open c:/Documents and Settings/LocalService/Local
> Settings/Application Data/Microsoft/Windows/UsrClass.dat: ERR=The process
> cannot access the file because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/LocalService/Local Settings/Application
> Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the file
> because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/NetworkService/Local Settings/Application
> Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the file
> because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/NetworkService/Local Settings/Application
> Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/NetworkService/NTUSER.DAT: ERR=The process cannot access the file
> because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/NetworkService/ntuser.dat.LOG: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/simmons/Local Settings/Application
> Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the file
> because it is being used by another process. .
> 20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and
> Settings/simmons/Local Settings/Application
> Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 11:52 nemo-fd:  Cannot open c:/Documents and
> Settings/simmons/NTUSER.DAT: ERR=The process cannot access the file because
> it is being used by another process. .
> 20-Jul 11:52 nemo-fd:  Cannot open c:/Documents and
> Settings/simmons/ntuser.dat.LOG: ERR=The process cannot access the file
> because it is being used by another process. .
> 20-Jul 11:52 nemo-fd:  Could not stat c:/pagefile.sys: ERR=The process
> cannot access the file because it is being used by another process.
>
> 20-Jul 11:54 nemo-fd:  Cannot open c:/Program Files/Sophos SWEEP for
> NT/INTERCHK.CHK: ERR=The process cannot access the file because it is being
> used by another process. .
> 20-Jul 12:05 nemo-fd:  Cannot open
> c:/WINDOWS/system32/CatRoot2/edb.log: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 12:05 nemo-fd:  Cannot open
> c:/WINDOWS/system32/CatRoot2/tmp.edb: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/default:
> ERR=The process cannot access the file because it is being used by another
> process. .
> 20-Jul 12:05 nemo-fd:  Cannot open
> c:/WINDOWS/system32/config/default.LOG: ERR=The process cannot access the
> file because it is being used by another process. .
> 20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SAM:
> ERR=The process cannot access the file because it is being used by another
> process. .
> 20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SAM.LOG:
> ERR=The process cannot access the file because it is being used by another
> process. .
> 20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SECURITY:
> ERR=The process cannot access the file because it is being used by another
> pr

Re: [Bacula-users] slot inventory problem

2005-07-20 Thread Arno Lehmann

Hi,

Kern Sibbald wrote:


On Wednesday 20 July 2005 16:27, Arno Lehmann wrote:


Hello,

the following has been discussed before. I was able to reproduce the
following:

I use a 6-slot autoloader.
I have a query to report which tapes are loaded in the slots.
I insert a magazine with six cartridges and do 'update slots scan
storage=HPDAT"
After that, the query correctly reports the tapes in all six slots.
The backup running first uses the tape already loaded in the drive after
the scan.
One tape is filled, bacula changes the tape, but now the report doesn't
show the tape just unloaded.



What report?


The report as printed by the following query in query.sql (MySQL):
# 17
:List which media bacula thinks is in changer:
SELECT MediaId,VolumeName,VolBytes/(1024*1024*1024) AS GB,Slot,Pool.Name 
AS Pool

,MediaType,VolStatus
 FROM Media
 LEFT JOIN Pool ON Media.PoolId=Pool.PoolId
 WHERE (Slot > 0) AND (InChanger=1)
 ORDER BY MediaType ASC, Slot ASC;





When I manually update the volume information, everything goes as expected.



What Volume information?  I don't understand what you are updating.


Like when I do he following:

#update volume=DAT-120-0027
Updating Volume "DAT-120-0027"
Parameters to modify:
 1: Volume Status
 2: Volume Retention Period
 3: Volume Use Duration
 4: Maximum Volume Jobs
 5: Maximum Volume Files
 6: Maximum Volume Bytes
 7: Recycle Flag
 8: Slot
 9: InChanger Flag
10: Volume Files
11: Pool
12: Volume from Pool
13: All Volumes from Pool
14: Done
Select parameter to modify (1-14): Unexpected question has been received.
9
Current InChanger flag is: 0
Set InChanger flag? yes/no: Unexpected question has been received.
1
Invalid response. You must answer yes or no.
Set InChanger flag? yes/no: Unexpected question has been received.
yes
New InChanger flag is: 1
Updating Volume "DAT-120-0027"
Parameters to modify:
 1: Volume Status
 2: Volume Retention Period
 3: Volume Use Duration
 4: Maximum Volume Jobs
 5: Maximum Volume Files
 6: Maximum Volume Bytes
 7: Recycle Flag
 8: Slot
 9: InChanger Flag
10: Volume Files
11: Pool
12: Volume from Pool
13: All Volumes from Pool
14: Done
Select parameter to modify (1-14): Unexpected question has been received.
14
Selection done.
#




When I manually unload the tape from the drive before the job requests a
tape, everything works normal, too: bacula sees the drive is empty and
loads a tape automatically.

Could somebody verify this?



I don't understand the problem for the reasons noted above.


The problem is that in a special case the InChanger Flag seems to get 
cleared where it should remain set.


That case is when you do an update slots scan command, bacula fills the 
volume loaded in the drive by the update slots command, and then 
continues with another volume without user intervention.


Now would be a good time to take the pain an upgrade to 1.37.30.  If you still 
have the problem, I can probably fix it before releasing the software in the 
next few weeks.


Yep, I will upgrade as soon as I can... I have one rather long job 
running for two days already, and only wait for that to be done, then 
for my regular jobs to run, then I'm away for three days, and in the 
next week I hope to do the upgrade.


Considering that the autochanger support seems to have changed a bit, I 
even hope that the above problem disappeared automagically ;-)


By the way - the above is far from serious.

Arno






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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] ACL's with Bacula on FreeBSD (resend)

2005-07-20 Thread Tony Lambregts
I have ACL's working on our FreeBSD Server using Samba but when I
tried to backup and restore the files using Bacula I was unable to
restore the ACL's. When I investigated I discovered that Bacula
configured itself to have  "ACL support: no". I compiled it from
soure using ports (bacula-1.36.2) The relevant portion of the
configure check is as follows.

checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for acl_get_file in -lacl... no

>From my research that last test is only really valid on linux.

I would really like to know how to get Bacula to backup and restore
ACL's on FreeBSD. Is this a known issue that has a simple fix or have
I missed something?

Thank you for your time.

--

Tony Lambregts


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem recycling volumes

2005-07-20 Thread Matthias Kurz
On Wed, Jul 20, 2005, Michael 'buk' Scherer wrote:

> On Wed, 20 Jul 2005 - 12:14pm, Daniel Weuthen wrote:
> 
> >> Just one quick they that jumped into my eye at first:
> >> Why do you use one pool for every day?
> >
> >Because that was why i concluded from the docs.
> >Do you replace the disk every day?
> >ours are permanantly mounted.
> Yes we do, cause we use tapes. ;^)
> With using the "Max Use Duration" you can limit the use of your disks.
> When you set it to 23h you make sure it wont get used after that -> e.g. for 
> the next days backup. And they remain "used" for the "Volume Retention", 6 
> days 
> in your config.

Now, it would be nice if it would be possible to spin down the disks after
usage.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this resource

2005-07-20 Thread twsnnva
When backing up using VSS, is it normal to receive "cannot open file" messages?

Thanks,
Thomas

Connecting to Director lightning:9101
1000 OK: lightning-dir Version: 1.37.30 (14 July 2005)
Enter a period to cancel a command.
messages
20-Jul 23:50 lightning-dir: No prior Full backup Job record found.
20-Jul 23:50 lightning-dir: No prior or suitable Full backup found. Doing FULL 
backup.
20-Jul 23:50 lightning-dir: Start Backup JobId 6, 
Job=nemo-backup.2005-07-20_23.50.04
20-Jul 23:50 lightning-sd: Volume "inc-0001" previously written, moving to end 
of data.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/LocalService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/LocalService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/LocalService/NTUSER.DAT: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/LocalService/ntuser.dat.LOG: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/NetworkService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/NetworkService/Local Settings/Application 
Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/NetworkService/NTUSER.DAT: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and 
Settings/NetworkService/ntuser.dat.LOG: ERR=The process cannot access the file 
because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and Settings/simmons/Local 
Settings/Application Data/Microsoft/Windows/UsrClass.dat: ERR=The process 
cannot access the file because it is being used by another process.
.
20-Jul 11:50 nemo-fd:  Cannot open c:/Documents and Settings/simmons/Local 
Settings/Application Data/Microsoft/Windows/UsrClass.dat.LOG: ERR=The process 
cannot access the file because it is being used by another process.
.
20-Jul 11:52 nemo-fd:  Cannot open c:/Documents and 
Settings/simmons/NTUSER.DAT: ERR=The process cannot access the file because it 
is being used by another process.
.
20-Jul 11:52 nemo-fd:  Cannot open c:/Documents and 
Settings/simmons/ntuser.dat.LOG: ERR=The process cannot access the file because 
it is being used by another process.
.
20-Jul 11:52 nemo-fd:  Could not stat c:/pagefile.sys: ERR=The process 
cannot access the file because it is being used by another process.

20-Jul 11:54 nemo-fd:  Cannot open c:/Program Files/Sophos SWEEP for 
NT/INTERCHK.CHK: ERR=The process cannot access the file because it is being 
used by another process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/CatRoot2/edb.log: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/CatRoot2/tmp.edb: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/default: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/default.LOG: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SAM: ERR=The 
process cannot access the file because it is being used by another process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SAM.LOG: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SECURITY: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/SECURITY.LOG: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/software: 
ERR=The process cannot access the file because it is being used by another 
process.
.
20-Jul 12:05 nemo-fd:  Cannot open c:/WINDOWS/system32/config/software.LOG: 
ERR=The process cannot access the file because it is being used by another 
process.
.
2

[Bacula-users] Re: Tape device definitions

2005-07-20 Thread Richard White
> Well, basically something is seriously wrong with your system...

Yeah. I tried mt -f /dev/st1 rewind again this morning and got "device busy" 
instead of "no such device or address". So I re-started the server and now 
everything is OK. Btape worked and as I type this, both drives are labeling new 
tapes. It's just an old piece of hardware that needs to retire.

Tks n rgds,
Richard White CNE6
Network Engineer
Mason County, Washington
360-427-5501
[EMAIL PROTECTED]



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem with new full backup

2005-07-20 Thread Kern Sibbald
On Wednesday 20 July 2005 17:07, Bernhard Suttner wrote:
> Thank you for your really nice help. I have made a really bad configuration
> mistake. now it works great!!!

Ah, good!  Thanks for the feedback.




>
>
>
>
>
>
>
>
> On Mon, 18 Jul 2005 17:28:19 +0200
>
> Bernhard Suttner <[EMAIL PROTECTED]> wrote:
> > Bug report now available:
> >
> > http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=385
> >
> >
> > Greets from Passau/Germany!!!
> >
> >
> >
> >
> >
> > On Wed, 13 Jul 2005 11:23:07 +0200
> >
> > Kern Sibbald <[EMAIL PROTECTED]> wrote:
> > > Hello Bernard,
> > >
> > > On Wednesday 13 July 2005 10:48, Bernhard Suttner wrote:
> > > > On Wed, 13 Jul 2005 10:44:28 +0200
> > > >
> > > > Kern Sibbald <[EMAIL PROTECTED]> wrote:
> > > > > Hello Bernhard,
> > > > >
> > > > > What version of Bacula are you using?
> > > > >
> > > > > Is there any chance that you had non-zero Slot numbers originally
> > > > > defined for those volumes that were marked in error?
> > > >
> > > > Hello,
> > > >
> > > > I am using "bacula-1.36.3".
> > > > No, all Slots were originally defined as zero-Slots.
> > >
> > > OK, thanks. There is something going on here that I don't understand.
> > > Bacula should never crunch through your tapes marking them in error. It
> > > can do that for the tape that is currently mounted if there is a
> > > serious error.
> > >
> > > Since I have not been following this in detail, and I would like to
> > > understand it, could you please file a bug report at bugs.bacula.org  ?
> > >  What is important for me is your bacula-dir.conf and bacula-sd.conf
> > > files and as much Bacula output that was generated as you still have
> > > that shows what was happening while Bacula was marking your Volumes in
> > > error.
> > > Also, if you mounted the different tapes, please indicate which ones
> > > and when as that is not obvious from Bacula Job reports ...
> > >
> > > Thanks,
> > >
> > > Kern
> > >
> > > > Bernhard
> > > >
> > > > > On Tuesday 12 July 2005 19:25, Arno Lehmann wrote:
> > > > > > Hello,
> > > > > >
> > > > > > Bernhard Suttner wrote:
> > > > > > > On Tue, 12 Jul 2005 11:35:46 +0200
> > > > > > >
> > > > > > > Arno Lehmann <[EMAIL PROTECTED]> wrote:
> > > > > > >>Hi,
> > > > > > >>
> > > > > > >>Bernhard Suttner wrote:
> > > > > > >>>No, I don´t use a autochanger.
> > > > > > >>
> > > > > > >>Have you configured a script to more or less automatically
> > > > > > >> manage volume changes? Or anything in the configuration that I
> > > > > > >> don't think about, perhaps...
> > > > > > >
> > > > > > > No, I think that if a volume (tape) is full it should ask for
> > > > > > > the next volume in the pool and not mark all volumes of this
> > > > > > > pool as Error.
> > > > > >
> > > > > > Absolutely right... I only tried to understand why it didn't ask
> > > > > > but instead assumed that he volumes should be in the drive
> > > > > > already.
> > > > > >
> > > > > > Anyway, your volumes listing looks rather normal.
> > > > > >
> > > > > > > *list volumes Pool=WeeklyPool
> > > > > > > +-++---++--
> > > > > > >+- 
> > > > > > > -+-+--+---+---+
> > > > > > >-+
> > > > > > >
> > > > > > > | MediaId | VolumeName | VolStatus | VolBytes   | VolFiles
> > > > > > > | | VolRetention | Recycle | Slot | InChanger | MediaType |
> > > > > > > | LastWritten
> > > > > > >
> > > > > > > +-++---++--
> > > > > > >+- 
> > > > > > > -+-+--+---+---+
> > > > > > >-+
> > > > > > >
> > > > > > > |   1 | FULL_01| Full  | 32,457,886,386 |   34
> > > > > > > | | 604,800 |   1 |0 | 0 | AIT   |
> > > > > > > | 2005-07-11 04:29:25
> > > > > > > |
> > > > > > > | | 2 | FULL_02| Full  | 35,432,971,514 |   35 |
> > > > > > > | | 604,800 1 |0 | 0 | AIT   | 2005-07-11
> > > > > > > | | 12:50:42 | 3 |
> > > > > > > |
> > > > > > > | FULL_03| Append| 17,663,874,444 |   20 | 
> > > > > > > | 604,800 | 1 |0 | 0 | AIT   | 2005-07-11
> > > > > > > | 16:31:14 | 4 | FULL_04
> > > > > > > |
> > > > > > > |   | Error |200 |0 |  604,800 |   
> > > > > > > |   |1
> > > > > > > |
> > > > > > > | 0 | 0 | AIT   | 2005-07-11 12:52:15 | 5 | FULL_05
> > > > > > > || Error |200 |0 |  604,800 |  
> > > > > > > | 1 | 0 | 0 | AIT   | 2005-07-11 12:52:32 |
> > > > > > >
> > > > > > > +-++---++--
> > > > > > >+- 
> > > > > > > -+-+--+---+---+
> > > > > > >-+
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > This is my the output of list volumes pool=WeeklyPool,
> > > > > > > actually.
> > > > > >
> > > > > > What I would do n

Re: [Bacula-users] slot inventory problem

2005-07-20 Thread Kern Sibbald
On Wednesday 20 July 2005 16:27, Arno Lehmann wrote:
> Hello,
>
> the following has been discussed before. I was able to reproduce the
> following:
>
> I use a 6-slot autoloader.
> I have a query to report which tapes are loaded in the slots.
> I insert a magazine with six cartridges and do 'update slots scan
> storage=HPDAT"
> After that, the query correctly reports the tapes in all six slots.
> The backup running first uses the tape already loaded in the drive after
> the scan.
> One tape is filled, bacula changes the tape, but now the report doesn't
> show the tape just unloaded.

What report?

>
> When I manually update the volume information, everything goes as expected.

What Volume information?  I don't understand what you are updating.

> When I manually unload the tape from the drive before the job requests a
> tape, everything works normal, too: bacula sees the drive is empty and
> loads a tape automatically.
>
> Could somebody verify this?

I don't understand the problem for the reasons noted above.

Now would be a good time to take the pain an upgrade to 1.37.30.  If you still 
have the problem, I can probably fix it before releasing the software in the 
next few weeks.


-- 
Best regards,

Kern

  (">
  /\
  V_V


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: Re: [Bacula-users] Config error: Keyword EnableVSS not

2005-07-20 Thread twsnnva
Thanks Frederic,
That did the trick.

Thomas
> 
> From: Frederic PIERROT <[EMAIL PROTECTED]>
> Date: 2005/07/20 Wed AM 10:46:19 EDT
> To: <[EMAIL PROTECTED]>
> CC: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Config error: Keyword EnableVSS not
>   permitted in this resource
> 
> At 16:33 20/07/2005, you wrote:
> 
> >Hello everyone...again. I finally got bacula 1.37.30 compiled and running, 
> >and I've successfully run a test backup of the server. After adding 
> >"Enable VSS = yes" to a fileset resource, bacula-dir will no longer start 
> >and I receive the error above. I was under the impression that 1.37.30 had 
> >full VSS support if used with a vss-enabled fd, is this incorrect? Should 
> >I be using a special flag when running ./configure? Here's some output and 
> >my fileset resource.
> >
> >Thanks,
> >Thomas
> >
> >FileSet {
> >  Name = "default-winxp"
> >  Include {
> >   Options {
> >signature = MD5
> >compression = GZIP
> >Enable VSS = yes
> >Exclude = yes
> >IgnoreCase = yes
> >WildDir = "[A-Z]:/Documents and Settings/*/Cookies"
> >WildDir = "[A-Z]:/Documents and Settings/*/Recent"
> >WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
> >WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temp"
> >WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temporary 
> > Internet Files"
> >WildDir = "[A-Z]:/WINNT/Temp"
> >WildDir = "[A-Z]:/temp"
> >WildFile = "*.tmp"
> >WildDir = "[A-Z]:/tmp"
> >WildDir = "[A-Z]:/var/tmp"
> >WildDir = "[A-Z]:/RECYCLER"
> >WildFile = "[A-Z]:/pagefile.sys"
> >WildFile = "[A-Z]:/hiberfil.sys"
> >   }
> >   File = "C:/"
> >  }
> >}
> 
> Enable VSS sjould be in FileSet, not in include / options
> there is my working fileset (with vss) :
> 
> FileSet {
>Name = "fileset-fred"
>Enable VSS = yes
>Include {
>  Options { signature = MD5 }
>  File = "c:/Documents and Settings"
>  File = "d:/projects"
>}
> }
> 
> Regards,
> F. 
> 
> 



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem with new full backup

2005-07-20 Thread Bernhard Suttner
Thank you for your really nice help. I have made a really bad configuration 
mistake. now it works great!!!

Greets,
Bernhard Suttner








On Mon, 18 Jul 2005 17:28:19 +0200
Bernhard Suttner <[EMAIL PROTECTED]> wrote:

> Bug report now available:
> 
> http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=385
> 
> 
> Greets from Passau/Germany!!!
> 
> 
> 
> 
> 
> On Wed, 13 Jul 2005 11:23:07 +0200
> Kern Sibbald <[EMAIL PROTECTED]> wrote:
> 
> > Hello Bernard,
> > 
> > On Wednesday 13 July 2005 10:48, Bernhard Suttner wrote:
> > > On Wed, 13 Jul 2005 10:44:28 +0200
> > >
> > > Kern Sibbald <[EMAIL PROTECTED]> wrote:
> > > > Hello Bernhard,
> > > >
> > > > What version of Bacula are you using?
> > > >
> > > > Is there any chance that you had non-zero Slot numbers originally 
> > > > defined
> > > > for those volumes that were marked in error?
> > >
> > > Hello,
> > >
> > > I am using "bacula-1.36.3".
> > > No, all Slots were originally defined as zero-Slots.
> > 
> > OK, thanks. There is something going on here that I don't understand. 
> > Bacula 
> > should never crunch through your tapes marking them in error. It can do 
> > that 
> > for the tape that is currently mounted if there is a serious error.
> > 
> > Since I have not been following this in detail, and I would like to 
> > understand 
> > it, could you please file a bug report at bugs.bacula.org  ?  What is 
> > important for me is your bacula-dir.conf and bacula-sd.conf files and as 
> > much 
> > Bacula output that was generated as you still have that shows what was 
> > happening while Bacula was marking your Volumes in error.
> > Also, if you mounted the different tapes, please indicate which ones and 
> > when 
> > as that is not obvious from Bacula Job reports ...
> > 
> > Thanks,
> > 
> > Kern
> > 
> > >
> > >
> > >
> > >
> > > Bernhard
> > >
> > > > On Tuesday 12 July 2005 19:25, Arno Lehmann wrote:
> > > > > Hello,
> > > > >
> > > > > Bernhard Suttner wrote:
> > > > > > On Tue, 12 Jul 2005 11:35:46 +0200
> > > > > >
> > > > > > Arno Lehmann <[EMAIL PROTECTED]> wrote:
> > > > > >>Hi,
> > > > > >>
> > > > > >>Bernhard Suttner wrote:
> > > > > >>>No, I don´t use a autochanger.
> > > > > >>
> > > > > >>Have you configured a script to more or less automatically manage
> > > > > >> volume changes? Or anything in the configuration that I don't think
> > > > > >> about, perhaps...
> > > > > >
> > > > > > No, I think that if a volume (tape) is full it should ask for the
> > > > > > next volume in the pool and not mark all volumes of this pool as
> > > > > > Error.
> > > > >
> > > > > Absolutely right... I only tried to understand why it didn't ask but
> > > > > instead assumed that he volumes should be in the drive already.
> > > > >
> > > > > Anyway, your volumes listing looks rather normal.
> > > > >
> > > > > > *list volumes Pool=WeeklyPool
> > > > > > +-++---++--+-
> > > > > >
> > > > > > -+-+--+---+---+-+
> > > > > >
> > > > > > | MediaId | VolumeName | VolStatus | VolBytes   | VolFiles |
> > > > > > | VolRetention | Recycle | Slot | InChanger | MediaType | 
> > > > > > LastWritten
> > > > > >
> > > > > > +-++---++--+-
> > > > > >
> > > > > > -+-+--+---+---+-+
> > > > > >
> > > > > > |   1 | FULL_01| Full  | 32,457,886,386 |   34 |
> > > > > > | 604,800 |   1 |0 | 0 | AIT   | 2005-07-11
> > > > > > | 04:29:25
> > > > > > |
> > > > > > | | 2 | FULL_02| Full  | 35,432,971,514 |   35 | 
> > > > > > | | 604,800 1 |0 | 0 | AIT   | 2005-07-11 12:50:42 |
> > > > > > | | 3 |
> > > > > > |
> > > > > > | FULL_03| Append| 17,663,874,444 |   20 |  604,800 
> > > > > > |
> > > > > > |   1 |0 | 0 | AIT   | 2005-07-11 16:31:14 | 4 |
> > > > > > | FULL_04
> > > > > > |
> > > > > > |   | Error |200 |0 |  604,800 |   1
> > > > > > |   | |
> > > > > > |
> > > > > > | 0 | 0 | AIT   | 2005-07-11 12:52:15 | 5 | FULL_05|
> > > > > > | Error |200 |0 |  604,800 |   1 |  
> > > > > >  
> > > > > > | 0 | 0 | AIT   | 2005-07-11 12:52:32 |
> > > > > >
> > > > > > +-++---++--+-
> > > > > >
> > > > > > -+-+--+---+---+-+
> > > > > >
> > > > > >
> > > > > >
> > > > > > This is my the output of list volumes pool=WeeklyPool, actually.
> > > > >
> > > > > What I would do now is manually putting the "Error" volumes in a 
> > > > > usable
> > > > > state again and the next time you expect a request for new media run
> > > > > the SD and the DIR with debug output.
> > > > > Capture that, and see what actually happens when bacula tries to 
> > > > > change

Re: [Bacula-users] Config error: Keyword EnableVSS not permitted in this resource

2005-07-20 Thread Frederic PIERROT

At 16:33 20/07/2005, you wrote:

Hello everyone...again. I finally got bacula 1.37.30 compiled and running, 
and I've successfully run a test backup of the server. After adding 
"Enable VSS = yes" to a fileset resource, bacula-dir will no longer start 
and I receive the error above. I was under the impression that 1.37.30 had 
full VSS support if used with a vss-enabled fd, is this incorrect? Should 
I be using a special flag when running ./configure? Here's some output and 
my fileset resource.


Thanks,
Thomas

FileSet {
 Name = "default-winxp"
 Include {
  Options {
   signature = MD5
   compression = GZIP
   Enable VSS = yes
   Exclude = yes
   IgnoreCase = yes
   WildDir = "[A-Z]:/Documents and Settings/*/Cookies"
   WildDir = "[A-Z]:/Documents and Settings/*/Recent"
   WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
   WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temp"
   WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temporary 
Internet Files"

   WildDir = "[A-Z]:/WINNT/Temp"
   WildDir = "[A-Z]:/temp"
   WildFile = "*.tmp"
   WildDir = "[A-Z]:/tmp"
   WildDir = "[A-Z]:/var/tmp"
   WildDir = "[A-Z]:/RECYCLER"
   WildFile = "[A-Z]:/pagefile.sys"
   WildFile = "[A-Z]:/hiberfil.sys"
  }
  File = "C:/"
 }
}


Enable VSS sjould be in FileSet, not in include / options
there is my working fileset (with vss) :

FileSet {
  Name = "fileset-fred"
  Enable VSS = yes
  Include {
Options { signature = MD5 }
File = "c:/Documents and Settings"
File = "d:/projects"
  }
}

Regards,
F. 




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Config error: Keyword EnableVSS not permitted in this resource

2005-07-20 Thread twsnnva
Hello everyone...again. I finally got bacula 1.37.30 compiled and running, and 
I've successfully run a test backup of the server. After adding "Enable VSS = 
yes" to a fileset resource, bacula-dir will no longer start and I receive the 
error above. I was under the impression that 1.37.30 had full VSS support if 
used with a vss-enabled fd, is this incorrect? Should I be using a special flag 
when running ./configure? Here's some output and my fileset resource.

Thanks,
Thomas

lightning:/etc/bacula# bacula-dir
20-Jul 22:24 bacula-dir: ERROR TERMINATION at inc_conf.c:592
Config error: Keyword EnableVSS not permitted in this resource
: line 24, col 14 of file ./bacula-dir.conf
   Enable VSS = yes

lightning:/etc/bacula# bacula-dir -?
Copyright (C) 2000-2005 Kern Sibbald.

Version: 1.37.30 (14 July 2005)

Usage: dird [-f -s] [-c config_file] [-d debug_level] [config_file]
   -cset configuration file to file
   -dnnset debug level to nn
   -f  run in foreground (for debugging)
   -g  groupid
   -r run  now
   -s  no signals
   -t  test - read configuration and exit
   -u  userid
   -v  verbose user messages
   -?  print this message.

lightning:/etc/bacula#

FileSet {
 Name = "default-winxp"
 Include {
  Options {
   signature = MD5
   compression = GZIP
   Enable VSS = yes
   Exclude = yes
   IgnoreCase = yes
   WildDir = "[A-Z]:/Documents and Settings/*/Cookies"
   WildDir = "[A-Z]:/Documents and Settings/*/Recent"
   WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
   WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temp"
   WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temporary Internet 
Files"
   WildDir = "[A-Z]:/WINNT/Temp"
   WildDir = "[A-Z]:/temp"
   WildFile = "*.tmp"
   WildDir = "[A-Z]:/tmp"
   WildDir = "[A-Z]:/var/tmp"
   WildDir = "[A-Z]:/RECYCLER"
   WildFile = "[A-Z]:/pagefile.sys"
   WildFile = "[A-Z]:/hiberfil.sys"
  }
  File = "C:/"
 }
}




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] slot inventory problem

2005-07-20 Thread Arno Lehmann

Hello,

the following has been discussed before. I was able to reproduce the 
following:


I use a 6-slot autoloader.
I have a query to report which tapes are loaded in the slots.
I insert a magazine with six cartridges and do 'update slots scan 
storage=HPDAT"

After that, the query correctly reports the tapes in all six slots.
The backup running first uses the tape already loaded in the drive after 
the scan.
One tape is filled, bacula changes the tape, but now the report doesn't 
show the tape just unloaded.


When I manually update the volume information, everything goes as expected.
When I manually unload the tape from the drive before the job requests a 
tape, everything works normal, too: bacula sees the drive is empty and 
loads a tape automatically.


Could somebody verify this?

Arno


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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger question

2005-07-20 Thread Arno Lehmann

Hello,

Beren Gamble wrote:


How do I make bacula place the next tape in the drive once it has filled
up the first tape? Can this be done automatically?


This is done automatically if you set up your SD and your DIR to use an 
autochanger.


This is documented in the manual.

If, after fllowing the manual instructions and doing the suggested tests 
you still have difficulties you should post your configuration and 
relevant configuration and command output quotes, than we can probably help.


Arno



Cheers,

Beren


**
The views expressed within this e-mail are those of the individual and not 
necessarily those of the Council. The information in this internet e-mail is 
confidential and may contain legally privileged information. If you are not the 
intended above named addressee it may be unlawful for you to read, copy, 
distribute or otherwise use the information in this internet e-mail. If you are 
not the intended recipient of this internet e-mail please telephone the sender 
on +44(0)20 8863 5611.
LONDON BOROUGH OF HARROW...
**



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem recycling volumes

2005-07-20 Thread Michael 'buk' Scherer
On Wed, 20 Jul 2005 - 12:14pm, Daniel Weuthen wrote:

>> Just one quick they that jumped into my eye at first:
>> Why do you use one pool for every day?
>
>Because that was why i concluded from the docs.
>Do you replace the disk every day?
>ours are permanantly mounted.
Yes we do, cause we use tapes. ;^)
With using the "Max Use Duration" you can limit the use of your disks.
When you set it to 23h you make sure it wont get used after that -> e.g. for 
the next days backup. And they remain "used" for the "Volume Retention", 6 days 
in your config.

Looks good, doesnt it? :]

M.

>> We do something very similar here, thats our pool for that:
>>
>> Pool {
>> Name = Daily
>> Pool Type = Backup
>> Recycle = yes
>> Recycle Current Volume = yes
>> AutoPrune = yes
>> Accept Any Volume = yes
>> LabelFormat = "D${Day:p/2/0/r}${mirror_days[$Day]}0"
>> Cleaning Prefix = "CLNI"
>> ## recycle the tape after ...
>> Volume Retention = 13 days
>> ## we use it once but for multiple jobs -> e.g. not Maximum Volume
>> Jobs = 1 Volume Use Duration = 23 hours
>> }
>>
>> The tapes can be used for 23 hours and are reused every two weeks. Works
>> here without any issues, so it might be the different usage of the pools.
>
>This looks good to me.
>I will try that. Thanks
>
>


-- 
 I am root. If you see me laughing, you better have a backup.



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Autochanger question

2005-07-20 Thread Beren Gamble
How do I make bacula place the next tape in the drive once it has filled
up the first tape? Can this be done automatically?

Cheers,

Beren


**
The views expressed within this e-mail are those of the individual and not 
necessarily those of the Council. The information in this internet e-mail is 
confidential and may contain legally privileged information. If you are not the 
intended above named addressee it may be unlawful for you to read, copy, 
distribute or otherwise use the information in this internet e-mail. If you are 
not the intended recipient of this internet e-mail please telephone the sender 
on +44(0)20 8863 5611.
LONDON BOROUGH OF HARROW...
**



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] full -> tape, incremental -> disk

2005-07-20 Thread Arno Lehmann

Hi,

Adrian Close wrote:


On Tue, 19 Jul 2005, Arno Lehmann wrote:
This might give problems with job promotion, I try to avoid that by 
starting the affected backups by hand.



Yeah.  So, my problem now becomes that promoted incrementals want to use 
the storage device defined in the job override.  The promoted jobs 
therefore get written to disk (provided I have an appropriate 
FileStorage volume defined in my "full" pool).  Scheduled full backups 
go to the right device.


That's the problem, right.

I can indeed get around this by running jobs manually, but I'll 
eventually have 150+ clients across three continents, so that gets 
tricky.  ;)


You could work around that by adding one job at a time to the config and 
the schedules and start the initila full backup manually. That's some 
work, but not too bad, considering you're usually doing it only once. Or 
set up the schedules that the first full backup is scheduled just after 
including it into the configuration.


I suppose I can live with promoted full backups going to disk, given 
that the scheduled full backups will go to tape.  The only thing I don't 
really like about that is that it increases the likelihood of full 
backups for often-absent clients never making it to tape.


Perhaps we need something like "Full Backup Storage" and "Incremental 
Backup Storage" directives so different backup types can be locked to a 
storage device.



Yes, that was discussed briefly, but I suppose that the upcoming python 
support will change baculas handling of job promotion and thus I didn't 
push that issue.


Alternatively, being able to attach a specific storage device to a pool 
would do the trick.


That's unfortunately not how bacula is intended to work, I think.

Arno



Thoughts?

Adrian Closeemail:  [EMAIL PROTECTED]
Hitwisephone:+61 3 8530 2446
Level 7, 580 St Kilda Roadfax:+61 3 9529 8907
Melbourne, VIC, 3004, Australiaweb:http://www.hitwise.com/



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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem recycling volumes

2005-07-20 Thread Daniel Weuthen
> Just one quick they that jumped into my eye at first:
> Why do you use one pool for every day?

Because that was why i concluded from the docs.
Do you replace the disk every day?
ours are permanantly mounted.

> We do something very similar here, thats our pool for that:
>
> Pool {
> Name = Daily
> Pool Type = Backup
> Recycle = yes
> Recycle Current Volume = yes
> AutoPrune = yes
> Accept Any Volume = yes
> LabelFormat = "D${Day:p/2/0/r}${mirror_days[$Day]}0"
> Cleaning Prefix = "CLNI"
> ## recycle the tape after ...
> Volume Retention = 13 days
> ## we use it once but for multiple jobs -> e.g. not Maximum Volume
> Jobs = 1 Volume Use Duration = 23 hours
> }
>
> The tapes can be used for 23 hours and are reused every two weeks. Works
> here without any issues, so it might be the different usage of the pools.

This looks good to me.
I will try that. Thanks

-- 
Mit freundlichen Gruessen / with kind regards

Daniel Weuthen

---
Megabit Informationstechnik GmbH  Karstr.25  41068 Moenchengladbach
Tel: 02161/308980   mailto:[EMAIL PROTECTED]   ftp://megabit.net
Fax: 02161/3089818  mailto:[EMAIL PROTECTED]   http://megabit.net
---


pgp08sW1ocx50.pgp
Description: PGP signature


Re: [Bacula-users] Tape device definitions

2005-07-20 Thread Arno Lehmann

Hello,

Richard White wrote:


I have some interesting problems with my tape drives. The Bacula system has three 
"identical" drives: they are all VXA-1 drives. One is mounted interally and two 
are in a RakPak, which is connected to the external SCSI bus. The ID of the internal 
drive is 4 and the external drives are 8 and 9.

When I used the default device definitions of /dev/nst0, /dev/nst1 and /dev/nst2, I got 
mixed results. I complained about that in an earlier post, and "corrected" it 
by changing them to /dev/st0, 1 and 2.

At this point, Bacula works, to a point. That is, the internal drive works all 
the time. There is a problem with the external drives, though. I can mount and 
unmount tapes and even start backups. Those backups fail, however, with this 
kind of message:

18-Jul 16:51 lbackup-sd: Ready to append to end of Volume "Week_2B" at file=3.
18-Jul 16:55 lbackup-sd: GIS_Two.2005-07_18.16.51.42 Error: block.c:552 Write 
error at 3:48 on device /dev/st1.

There are additional error lines which I will post if they are important.

When I try mt -f /dev/st1 rewind I get:

/dev/st1: No such device or address

When I run ./btape -c bacula-sd.conf /dev/st1 I get:

Tape block granularity is 1024 bytes.
btape: butil.c:258 Using device: "/dev/st1" for writing.
19-Jul 11:29 btape: Fatal Error at device.c:295 because:
dev.c:289 stored: unable to open device /dev/st1: ERR=No such device or address
19-Jul 11:29 btape: Fatal Error at device.c:288 because:
dev open failed: dev.c:289 stored: unable to open device /dev/st1: ERR=No such 
device or address

19-Jul 11:29 btape: btape Fatal error: butil.c:167 Cannot open /dev/st1

So, there is something wrong with the way I am identifying these tape devices. 
Bacula can mount, unmount and even write to them up to a point. The last two 
unsuccessful backups put 592,030,570 bytes and 750,959,576 bytes on them, 
respectively, before quitting. If I can just identify them correctly, I am 
confident that they will work for me.


Well, basically something is seriously wrong with your system...

In your place, I'd do the following:
- Boot into singel-user mode (usually you supply S as an option on the 
boot loders command line, I think)
- Verify the tape devices are recognized by your SCSI drivers - they 
should show up in dmesg output, and in /proc/scsi/scsi
- Verify if your SCSI HBA needs some special options for the devices 
(see /usr/src/linux/Documentation directory)
- Make sure the proper device nodes exist (should be /dev/st[0-2] and 
/dev/nst[0-2] and three /dev/sg? entries). this might depend on the 
setup of devfs, but I can't help you with that...)

- Check the tape drives using the manufacturers test program.
- Check the cabling, especially cable length and termination.
- Check the drives with an unused tape and using dd or tar to fill a 
tape and measure the speed. Depending on compression and the data you 
use, you should get results you can compare to the drive specs. Do this 
one drive at a time.
- Use btape to check the drive access using baculas methods, again one 
drive at a time.
- Restart the computer and verify the drives show up again in 
/proc/scsi/scsi
- Always watch he system log for SCSI errors, SCSI driver messages or st 
driver messages.


Especially if the drives can't be accessed under their "names" like 
/dev/nst2 there is something broken... might be a case for your system 
integrator or hardware service, after all...


Arno


Tks n rgds,
Richard White CNE6
Network Engineer
Mason County, Washington
360-427-5501
[EMAIL PROTECTED]



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem recycling volumes

2005-07-20 Thread Michael 'buk' Scherer
On Wed, 20 Jul 2005 - 11:48am, Hendrik Weimer wrote:

>Daniel Weuthen <[EMAIL PROTECTED]> writes:
>
>> Pool {
>>   Name = montag
>>   Pool Type = Backup
>>   Recycle = yes
>>   Auto Prune = yes
>>   Volume Retention = 6d
>>   Accept Any Volume = yes
>>   Maximum Volumes = 1
>> }
>
>You need to mark the volume as used after all jobs have been written,
>so it can be recycled. This can be done using the "Maximum Volume
>Jobs" directive. Just set it to the number of jobs you run per day,
>e.g. "Maximum Volume Jobs = 5" if you want to make a backup of four
>servers and Bacula's catalog.

AH! Now thats the thing that you might reach with the "Max Use Duration" as 
well. So you get a bit independet from the amount of jobs running.

Greetings, Michael


-- 
 I am root. If you see me laughing, you better have a backup.



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem recycling volumes

2005-07-20 Thread Michael 'buk' Scherer

Hi.

Just one quick they that jumped into my eye at first:
Why do you use one pool for every day?

We do something very similar here, thats our pool for that:

Pool {
Name = Daily
Pool Type = Backup
Recycle = yes
Recycle Current Volume = yes
AutoPrune = yes
Accept Any Volume = yes
LabelFormat = "D${Day:p/2/0/r}${mirror_days[$Day]}0"
Cleaning Prefix = "CLNI"
## recycle the tape after ...
Volume Retention = 13 days
## we use it once but for multiple jobs -> e.g. not Maximum Volume Jobs 
= 1
Volume Use Duration = 23 hours
}

The tapes can be used for 23 hours and are reused every two weeks. Works here 
without any issues, so it might be the different usage of the pools.

Greetings, Michael


On Wed, 20 Jul 2005 - 10:31am, Daniel Weuthen wrote:

>Hello Bacula List,
>
>before I start, let me say that I have read the manual chapters corosponding 
>to my problem over and over but in the end nothing worked as it should.
>
>My Problem: I have seven harddisks, 250 GB each, which schould be used for a 
>daily full backup of a bunch of servers. I want to use a new harddisk every 
>day. the harddisks are labled with the name of the day they schould get used.
>After 7 days the harddisk should get recycled an then reused.
>
>No matter what I tried (e.g. Use Volume Once paramter) the volume stayed in 
>status append and one week later the backup was appended or only one job was 
>written to tape it gets marked as "used" and no other job will be written.
>What is wrong with my config?
>
>Here are the important parts of my config:
>
>##
># S C H E D U L E#
>##
># tgliches Backup: Montag bis Sonntag um 20:00 Uhr
>Schedule {
>  Name = "Daily"
>  Run = Level=Full Pool=montag Monday at 20:00
>  Run = Level=Full Pool=dienstag Tuesday at 20:00
>  Run = Level=Full Pool=mittwoch Wednesday at 20:00
>  Run = Level=Full Pool=donnerstag Thursday at 20:00
>  Run = Level=Full Pool=freitag Friday at 20:00
>  Run = Level=Full Pool=samstag Saturday at 20:00
>  Run = Level=Full Pool=sonntag Sunday at 20:00
>}
>
>##
># S T O R A G E  #
>##
>Storage {
>  Name = File
># Do not use "localhost" here
>  Address = x.y.z # N.B. Use a fully qualified name here
>  SDPort = 9103
>  Password = ""
>  Device = FileStorage
>  Media Type = File
>  Maximum Concurrent Jobs = 20
>}
>
>##
># P O O L S  #
>##
>
>Pool {
>  Name = montag
>  Pool Type = Backup
>  Recycle = yes
>  Auto Prune = yes
>  Volume Retention = 6d
>  Accept Any Volume = yes
>  Maximum Volumes = 1
>}
>
> the same as montag for every day
>
>
>


-- 
 I am root. If you see me laughing, you better have a backup.



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem recycling volumes

2005-07-20 Thread Hendrik Weimer
Daniel Weuthen <[EMAIL PROTECTED]> writes:

> Pool {
>   Name = montag
>   Pool Type = Backup
>   Recycle = yes
>   Auto Prune = yes
>   Volume Retention = 6d
>   Accept Any Volume = yes
>   Maximum Volumes = 1
> }

You need to mark the volume as used after all jobs have been written,
so it can be recycled. This can be done using the "Maximum Volume
Jobs" directive. Just set it to the number of jobs you run per day,
e.g. "Maximum Volume Jobs = 5" if you want to make a backup of four
servers and Bacula's catalog.

HTH,
Hendrik


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] problem recycling volumes

2005-07-20 Thread Daniel Weuthen
Hello Bacula List,

before I start, let me say that I have read the manual chapters corosponding 
to my problem over and over but in the end nothing worked as it should.

My Problem: I have seven harddisks, 250 GB each, which schould be used for a 
daily full backup of a bunch of servers. I want to use a new harddisk every 
day. the harddisks are labled with the name of the day they schould get used.
After 7 days the harddisk should get recycled an then reused.

No matter what I tried (e.g. Use Volume Once paramter) the volume stayed in 
status append and one week later the backup was appended or only one job was 
written to tape it gets marked as "used" and no other job will be written.
What is wrong with my config?

Here are the important parts of my config:

##
# S C H E D U L E#
##
# tgliches Backup: Montag bis Sonntag um 20:00 Uhr
Schedule {
  Name = "Daily"
  Run = Level=Full Pool=montag Monday at 20:00
  Run = Level=Full Pool=dienstag Tuesday at 20:00
  Run = Level=Full Pool=mittwoch Wednesday at 20:00
  Run = Level=Full Pool=donnerstag Thursday at 20:00
  Run = Level=Full Pool=freitag Friday at 20:00
  Run = Level=Full Pool=samstag Saturday at 20:00
  Run = Level=Full Pool=sonntag Sunday at 20:00
}

##
# S T O R A G E  #
##
Storage {
  Name = File
# Do not use "localhost" here
  Address = x.y.z # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = ""
  Device = FileStorage
  Media Type = File
  Maximum Concurrent Jobs = 20
}

##
# P O O L S  #
##

Pool {
  Name = montag
  Pool Type = Backup
  Recycle = yes
  Auto Prune = yes
  Volume Retention = 6d
  Accept Any Volume = yes
  Maximum Volumes = 1
}

 the same as montag for every day


-- 
Mit freundlichen Gruessen / with kind regards

Daniel Weuthen

---
Megabit Informationstechnik GmbH  Karstr.25  41068 Moenchengladbach
Tel: 02161/308980   mailto:[EMAIL PROTECTED]   ftp://megabit.net
Fax: 02161/3089818  mailto:[EMAIL PROTECTED]   http://megabit.net
---


pgpC4dd0ii0Uc.pgp
Description: PGP signature


Re: [Bacula-users] corrupt files on full restore

2005-07-20 Thread Kern Sibbald
Hello,

You should do three things:

1. Run btape "test" and "fill" commands.  The latter is very slow.

2. Look at your system log to see if you are getting any errors.

3. Turn on the directive in the default SD config file that checks
 for tape alerts.  It can provide early warning if you have bad tapes.

On Wednesday 20 July 2005 03:37, Theron Toomey wrote:
> Hello,
> I'm seeing some strange behavior with restores under 1.36.3/RHEL 3 using
> an AIT-3 drive. I'm not quite sure what is causing it and I'd really
> appreciate any suggestions.
>
> When I choose restore option 5 (Select the most recent backup) bacula
> proceeds to restore data from the last full and subsequent diff/incr
> jobs. However, for large restores (>50 GB), I notice a few dozen error
> messages like:
>   Error: attribs.c:339 File size of restored file /foo/bar not correct.
>   Original [file size], restored [large, bogus file size].
>
> Comparing the restores against the live data, I see that the restored
> files have lots of random garbage inserted/appended to them.
>
> However, when I manually find the jobIDs of the full/diffs/incrs and
> restore them individually with restore option 3, there is no corruption
> and the files all seem fine.
>
> Most of the corrupt files are older than the last full; Perhaps there's
> something in the diff/incr jobs that corrupts the files from the full
> job. However, most of the corrupt files are older than the last full and
> so are not even present in the diff/incr jobs.
>
> Has anyone seen behavior like this or have any ideas about where to look?
>
> Thanks!

-- 
Best regards,

Kern

  (">
  /\
  V_V


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users