Re: [Bacula-users] Scratch Pool

2012-06-23 Thread Bryan Harris
Hi Dan,

I believe that solved my problem, and explains why the new volume (which only 
got created after making changes and running "reload") made it into the 
"bryanslack-scratch" pool.  But the other old volumes still around from before 
the changes didn't seem to want to go into the scratch pool like I wanted.

Also I put some lines to kick off a "remove scratch pools" admin-job after my 
job.  After a migration the source volumes go to scratch, then after that, they 
get deleted from the catalog and from the disk.  I'm not sure if after or 
before is right, in fact I am not sure if I'm using the scratch pools correctly 
in the first place.  But now when I run "list volume" I don't see anything in 
the virtual pool anymore, which was what I was hoping for.  They go to scratch, 
and then the stuff below removes them.

Command = "sh -c \"/bin/echo run job=bryanslack-remove yes | bconsole -n\""

Then that job (bryanslack-remove) basically does nothing at all except it runs 
this at the end,

Command = "/etc/bacula/scripts/removeScratchPools.sh %c"

And that command is converted from a perl script I found somewhere.



Thanks Dan and Phil for your time.

Bryan

On Jun 22, 2012, at 9:56 AM, Dan Langille wrote:

> On 2012-06-19 19:57, Bryan Harris wrote:
>> Hello all,
>> 
>> I'm trying to place my volumes into a scratch pool of a custom name
>> using these lines.  However, the volumes do not move into the scratch
>> pool after usage.  Instead, they remain in the pool called
>> "bryanslack-virtuals".  When I run "list volume" I get a volume in my
>> scratch pool.  The listed volume says Recycle for VolStatus.
>> 
>> I guess my question is, how can I move the volumes used by a job
>> right after that job runs?
>> 
>> Pool {
>>  Name = bryanslack-virtuals
>>  Storage = bryanslack-virtuals
>>  Pool Type = Backup
>>  Use Volume Once = yes
>>  Recycle = yes
>>  Recycle Oldest Volume = yes
>>  Recycle Current Volume = yes
>>  Purge Oldest Volume = yes
>>  Auto Prune = yes
>>  Maximum Volumes = 100
>>  Volume Retention = 1 minute
>>  Maximum Volume Jobs = 1
>>  Label Format =
>> "${Client}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}-${Pool}-${JobId}"
>>  Next Pool = bryanslack
>>  Action On Purge = Truncate
>>  Scratch Pool = bryanslack-scratch
>>  Recycle Pool = bryanslack-scratch
>> }
>> 
>> Pool {
>>  Name  = bryanslack-scratch
>>  Pool Type = Backup
>> }
> 
> After making these changes, did you run update in bconsole?  You need to 
> update the volume definitions from the pool definition.
> 
> That is, you need to tell the existing volumes that their attributes have 
> changes.
> 
> -- 
> Dan Langille - http://langille.org/


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Scratch Pool

2012-06-22 Thread Dan Langille
On 2012-06-19 19:57, Bryan Harris wrote:
> Hello all,
>
> I'm trying to place my volumes into a scratch pool of a custom name
> using these lines.  However, the volumes do not move into the scratch
> pool after usage.  Instead, they remain in the pool called
> "bryanslack-virtuals".  When I run "list volume" I get a volume in my
> scratch pool.  The listed volume says Recycle for VolStatus.
>
> I guess my question is, how can I move the volumes used by a job
> right after that job runs?
>
> Pool {
>   Name = bryanslack-virtuals
>   Storage = bryanslack-virtuals
>   Pool Type = Backup
>   Use Volume Once = yes
>   Recycle = yes
>   Recycle Oldest Volume = yes
>   Recycle Current Volume = yes
>   Purge Oldest Volume = yes
>   Auto Prune = yes
>   Maximum Volumes = 100
>   Volume Retention = 1 minute
>   Maximum Volume Jobs = 1
>   Label Format =
> 
> "${Client}_${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}-${Pool}-${JobId}"
>   Next Pool = bryanslack
>   Action On Purge = Truncate
>   Scratch Pool = bryanslack-scratch
>   Recycle Pool = bryanslack-scratch
> }
>
> Pool {
>   Name  = bryanslack-scratch
>   Pool Type = Backup
> }

After making these changes, did you run update in bconsole?  You need 
to update the volume definitions from the pool definition.

That is, you need to tell the existing volumes that their attributes 
have changes.

-- 
Dan Langille - http://langille.org/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Scratch Pool

2012-06-19 Thread Phil Stracchino
On 06/19/2012 07:57 PM, Bryan Harris wrote:
> Hello all,
> 
> I'm trying to place my volumes into a scratch pool of a custom name
> using these lines.  However, the volumes do not move into the scratch
> pool after usage.  Instead, they remain in the pool called
> "bryanslack-virtuals".  When I run "list volume" I get a volume in my
> scratch pool.  The listed volume says Recycle for VolStatus.
> 
> I guess my question is, how can I move the volumes used by a job
> right after that job runs?

The short answer is, to my knowledge there is no built-in capability to
cause a volume to be moved into a specified pool upon completion of a job.

Now, you can leave volumes in the scratch pool and have them moved from
there into a specified new folder BEFORE running a job.  And you can
have volumes moved into a specified scratch pool when recycled.  But if
you want to trigger a pool change on job *completion*, I believe you're
going to have to script it yourself as a RunAfterJob event.


-- 
  Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
  ala...@caerllewys.net   ala...@metrocast.net   p...@co.ordinate.org
  Renaissance Man, Unix ronin, Perl hacker, SQL wrangler, Free Stater
 It's not the years, it's the mileage.



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scratch pool usage (Cannot find any appendable volumes)

2007-11-29 Thread Michael Galloway
On Thu, Nov 29, 2007 at 01:16:30PM -0500, John Drescher wrote:
> On Nov 29, 2007 10:50 AM, Michael Galloway <[EMAIL PROTECTED]> wrote:
> > good day all, i'm working thru getting backups working on my new
> > library, i labled 10 tapes in the library from inside bconsole
> > using barcodes, i put them all into the scratch pool:
> >
> > Pool: Scratch
> > +-++---+-+--+--+--+-+--+---+---+-+
> > | mediaid | volumename | volstatus | enabled | volbytes | volfiles | 
> > volretention | recycle | slot | inchanger | mediatype | lastwritten |
> > +-++---+-+--+--+--+-+--+---+---+-+
> > |   1 | 002048L4   | Append|   1 |   64,512 |0 |   
> > 31,536,000 |   1 |2 | 1 | LTO4  | |
> > |   2 | 002047L4   | Append|   1 |   64,512 |0 |   
> > 31,536,000 |   1 |3 | 1 | LTO4
> >
> For some reason the Media Type for these tapes in the Scratch Pool is
> set to LTO4 which is not Ultrium-4 so bacula will ignore these tapes.
> You need to correct that for the tapes. I am not exactly sure how to
> do that. You might need to delete the volumes and to get bacula to
> relabel them.
> 
> John
> 
> John
>

doh! yes, i see that now, thank you very much. its running, i reset the media 
type in the storage definition and it got the
job running. 

-- michael 

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scratch pool usage (Cannot find any appendable volumes)

2007-11-29 Thread John Drescher
On Nov 29, 2007 10:50 AM, Michael Galloway <[EMAIL PROTECTED]> wrote:
> good day all, i'm working thru getting backups working on my new
> library, i labled 10 tapes in the library from inside bconsole
> using barcodes, i put them all into the scratch pool:
>
> Pool: Scratch
> +-++---+-+--+--+--+-+--+---+---+-+
> | mediaid | volumename | volstatus | enabled | volbytes | volfiles | 
> volretention | recycle | slot | inchanger | mediatype | lastwritten |
> +-++---+-+--+--+--+-+--+---+---+-+
> |   1 | 002048L4   | Append|   1 |   64,512 |0 |   
> 31,536,000 |   1 |2 | 1 | LTO4  | |
> |   2 | 002047L4   | Append|   1 |   64,512 |0 |   
> 31,536,000 |   1 |3 | 1 | LTO4
>
For some reason the Media Type for these tapes in the Scratch Pool is
set to LTO4 which is not Ultrium-4 so bacula will ignore these tapes.
You need to correct that for the tapes. I am not exactly sure how to
do that. You might need to delete the volumes and to get bacula to
relabel them.

John

John

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scratch pool usage (Cannot find any appendable volumes)

2007-11-29 Thread Michael Galloway
On Thu, Nov 29, 2007 at 11:19:43AM -0500, Michael Galloway wrote:
> On Thu, Nov 29, 2007 at 11:06:05AM -0500, Flak Magnet wrote:
> > Don't configure your jobs to USE the scratch pool.  That's the root of the 
> > issue.
> > 
> > Instead, set your job's pool to be something else OTHER than "Scratch", 
> > let's 
> > say it's "Client1_Pool" just for example.  Of course, you'll have to define 
> > the pool to the director and reload the config before you run the job.  
> > It's 
> > a good idea to test the config before you actually issue the "reload" 
> > command.  Speak up if you need help with that.
> > 
> > When your job "Client1" runs, if there are valid volumes in "Client1_Pool" 
> > then bacula will use a volume in the "Client1_Pool".  
> > 
> > If there is NOT a valid volume in the "Client1_Pool" THEN bacula will 
> > re-assign an appropriate volume from the "Scratch" pool into "Client1_Pool" 
> > and use that one.
> > 
> > So your jobs should never be explicitly told to use the Scratch pool.  
> > Bacula 
> > does it automagically.
> > 
> > I hope that helps it make sense.
> > 
> > --Tim
> >
> 
> like this:
> 
> *list pools
> ++-+-+-+--+-+
> | poolid | name| numvols | maxvols | pooltype | labelformat |
> ++-+-+-+--+-+
> |  1 | Default |   0 |   0 | Backup   | *   |
> |  2 | Scratch |  10 |   0 | Backup   | *   |
> |  3 | Full|   0 |   0 | Backup   | *   |
> ++-+-+-+--+-+
> 
> and the job:
> 
> Run Backup job
> JobName:  Client1
> Level:Full
> Client:   molbio-fd
> FileSet:  Full Set
> Pool: Full (From Job resource)
> Storage:  LTO4 (From Job resource)
> When: 2007-11-29 11:17:32
> Priority: 10
>  
> and again:
> 
> 29-Nov 11:18 molbio-dir JobId 9: Start Backup JobId 9, 
> Job=Client1.2007-11-29_11.18.03
> 29-Nov 11:18 molbio-dir JobId 9: Using Device "LTO4"
> 29-Nov 11:18 molbio-sd JobId 9: Job Client1.2007-11-29_11.18.03 waiting. 
> Cannot find any appendable volumes.
> Please use the "label"  command to create a new Volume for:
> Storage:  "LTO4" (/dev/nst0)
> Pool: Full
> Media type:   Ultrium-4
> 
>

sorry, should have included this, bacula-dir.conf, bacula-sd.conf, this is 
bacula version 2.2.5:


 
#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 2.2.5 (09 October 2007) -- redhat 
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#

Director {# define myself
  Name = molbio-dir
  DIRport = 9101# where we listen for UA connections
  QueryFile = "/opt/bacula/bin/query.sql"
  WorkingDirectory = "/opt/bacula/bin/working"
  PidDirectory = "/opt/bacula/bin/working"
  Maximum Concurrent Jobs = 1
  Password = "KEI+uWMRWamvrL7luIICAgj8UnNg0XFfNvGyz5/LgT3d" # Console 
password
  Messages = Daemon
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = molbio-fd 
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = LTO4
  Messages = Standard
  Pool = Full
  Priority = 10
}


#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /tmp
Job {
  Name = "Client1"
  JobDefs = "DefaultJob"
  Write Bootstrap = "/opt/bacula/bin/working/Client1.bsr"
}

#Job {
#  Name = "Client2"
#  Client = molbio2-fd
#  JobDefs = "DefaultJob"
#  Write Bootstrap = "/opt/bacula/bin/working/Client2.bsr"
#}

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/opt/bacula/bin/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/opt/bacula/bin/delete_catalog_backup"
  Write Bootstrap = "/opt/bacula/bin/working/BackupCatalog.bsr"
  Priority = 11   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=molbio-fd 
  FileSet="Full Set"  
  Storage = File  
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}


# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
Options {
  signature = MD5
}
#
#  Put your list of files here, preceded by 'File =', one per line
#or include an external list with:
#
#File = \" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/opt/ba

Re: [Bacula-users] scratch pool usage (Cannot find any appendable volumes)

2007-11-29 Thread Michael Galloway
On Thu, Nov 29, 2007 at 11:06:05AM -0500, Flak Magnet wrote:
> Don't configure your jobs to USE the scratch pool.  That's the root of the 
> issue.
> 
> Instead, set your job's pool to be something else OTHER than "Scratch", let's 
> say it's "Client1_Pool" just for example.  Of course, you'll have to define 
> the pool to the director and reload the config before you run the job.  It's 
> a good idea to test the config before you actually issue the "reload" 
> command.  Speak up if you need help with that.
> 
> When your job "Client1" runs, if there are valid volumes in "Client1_Pool" 
> then bacula will use a volume in the "Client1_Pool".  
> 
> If there is NOT a valid volume in the "Client1_Pool" THEN bacula will 
> re-assign an appropriate volume from the "Scratch" pool into "Client1_Pool" 
> and use that one.
> 
> So your jobs should never be explicitly told to use the Scratch pool.  Bacula 
> does it automagically.
> 
> I hope that helps it make sense.
> 
> --Tim
>

like this:

*list pools
++-+-+-+--+-+
| poolid | name| numvols | maxvols | pooltype | labelformat |
++-+-+-+--+-+
|  1 | Default |   0 |   0 | Backup   | *   |
|  2 | Scratch |  10 |   0 | Backup   | *   |
|  3 | Full|   0 |   0 | Backup   | *   |
++-+-+-+--+-+

and the job:

Run Backup job
JobName:  Client1
Level:Full
Client:   molbio-fd
FileSet:  Full Set
Pool: Full (From Job resource)
Storage:  LTO4 (From Job resource)
When: 2007-11-29 11:17:32
Priority: 10
 
and again:

29-Nov 11:18 molbio-dir JobId 9: Start Backup JobId 9, 
Job=Client1.2007-11-29_11.18.03
29-Nov 11:18 molbio-dir JobId 9: Using Device "LTO4"
29-Nov 11:18 molbio-sd JobId 9: Job Client1.2007-11-29_11.18.03 waiting. Cannot 
find any appendable volumes.
Please use the "label"  command to create a new Volume for:
Storage:  "LTO4" (/dev/nst0)
Pool: Full
Media type:   Ultrium-4



-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scratch pool usage (Cannot find any appendable volumes)

2007-11-29 Thread Flak Magnet
Don't configure your jobs to USE the scratch pool.  That's the root of the 
issue.

Instead, set your job's pool to be something else OTHER than "Scratch", let's 
say it's "Client1_Pool" just for example.  Of course, you'll have to define 
the pool to the director and reload the config before you run the job.  It's 
a good idea to test the config before you actually issue the "reload" 
command.  Speak up if you need help with that.

When your job "Client1" runs, if there are valid volumes in "Client1_Pool" 
then bacula will use a volume in the "Client1_Pool".  

If there is NOT a valid volume in the "Client1_Pool" THEN bacula will 
re-assign an appropriate volume from the "Scratch" pool into "Client1_Pool" 
and use that one.

So your jobs should never be explicitly told to use the Scratch pool.  Bacula 
does it automagically.

I hope that helps it make sense.

--Tim

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] scratch pool usage (Cannot find any appendable volumes)

2007-11-29 Thread Jason A. Kates
You need to have a different pool to do your backup in.   The Scratch
pool is a special pool that the other pools go to when they are out of
media. 

I have 3 pools a Scratch, Weekly and Daily pool.  All new tapes are put
into the Scratch pool then backups are done in the Weekly and Daily
pool.  As tapes are needed they are pulled from the Scratch pool.

I hope that helps.
-Jason


On Thu, 2007-11-29 at 10:50 -0500, Michael Galloway wrote:
> good day all, i'm working thru getting backups working on my new
> library, i labled 10 tapes in the library from inside bconsole
> using barcodes, i put them all into the scratch pool:
> 
> Pool: Scratch
> +-++---+-+--+--+--+-+--+---+---+-+
> | mediaid | volumename | volstatus | enabled | volbytes | volfiles | 
> volretention | recycle | slot | inchanger | mediatype | lastwritten |
> +-++---+-+--+--+--+-+--+---+---+-+
> |   1 | 002048L4   | Append|   1 |   64,512 |0 |   
> 31,536,000 |   1 |2 | 1 | LTO4  | |
> |   2 | 002047L4   | Append|   1 |   64,512 |0 |   
> 31,536,000 |   1 |3 | 1 | LTO4  
> 
> etc 
> 
> when i try and run a backup using the scratch pool via the command line:
> 
> Run Backup job
> JobName:  Client1
> Level:Full
> Client:   molbio-fd
> FileSet:  Full Set
> Pool: Scratch (From Job resource)
> Storage:  LTO4 (From Job resource)
> When: 2007-11-29 10:16:59
> Priority: 10
> OK to run? (yes/mod/no): yes
> Job queued. JobId=7
> 
> i get:
> 
> 29-Nov 10:17 molbio-dir JobId 7: Start Backup JobId 7, 
> Job=Client1.2007-11-29_10.17.11
> 29-Nov 10:17 molbio-dir JobId 7: Using Device "LTO4"
> 29-Nov 10:17 molbio-sd JobId 7: Job Client1.2007-11-29_10.17.11 waiting. 
> Cannot find any appendable volumes.
> Please use the "label"  command to create a new Volume for:
> Storage:  "LTO4" (/dev/nst0)
> Pool: Scratch
> Media type:   Ultrium-4
> 
> all though all volumes in scratch pool are listed as appendable. 
> 
> i must be misunderstanding the use of the scratch pool, i understood that 
> bacula would select volumes 
> as needed from it. my bacula version is:
> 
> *version
> molbio-dir Version: 2.2.5 (09 October 2007) x86_64-unknown-linux-gnu redhat 
> 
> is my approach to this incorrect?
> 
> -- michael
> 
> -
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 

Jason A. Kates ([EMAIL PROTECTED]) 
Fax:208-975-1514
Phone:  212-400-1670 x2




-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Scratch pool example

2007-02-08 Thread John Drescher
> So just this? and no other options?
>
> Pool {
>   Name = "Scratch"
> }
>

Here is what I have:

Pool {
  Name = Scratch
  Pool Type = Backup
}

John

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


Re: [Bacula-users] Scratch pool example

2007-02-08 Thread Thomas Glatthor
a known Pool Type is required,

Pool {
  Name = Scratch
}

> [EMAIL PROTECTED] conf.d]$ ../bacula-ctl-dir start
> Starting the Bacula Director daemon
> 08-Feb 21:14 bacula-dir: ERROR TERMINATION at dird_conf.c:1199
> pooltype item is required in pool resource, but not found.


next try:

Pool {
  Name = Scratch
  Pool Type = eeek
}

result:
> Starting the Bacula Director daemon
> 08-Feb 21:16 bacula-dir:  Fatal error: sql_create.c:207 sql_create.c:207 
> insert INSERT INTO Pool 
> (Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat)
>  VALUES ('Scratch',0,0,0,1,0,1,1,31536000,0,0,0,0,'eek',0,'*') failed:
> ERROR:  new row for relation "pool" violates check constraint 
> "pool_pooltype_check"
> 
> 08-Feb 21:16 bacula-dir: sql_create.c:207 INSERT INTO Pool 
> (Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat)
>  VALUES ('Scratch',0,0,0,1,0,1,1,31536000,0,0,0,0,'eek',0,'*')
> 08-Feb 21:16 bacula-dir:  Fatal error: sql_create.c:207 sql_create.c:207 
> insert INSERT INTO Pool 
> (Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat)
>  VALUES ('Scratch',0,0,0,1,0,1,1,31536000,0,0,0,0,'eek',0,'*') failed:
> ERROR:  new row for relation "pool" violates check constraint 
> "pool_pooltype_check"
> 
> 08-Feb 21:16 bacula-dir: sql_create.c:207 INSERT INTO Pool 
> (Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat)
>  VALUES ('Scratch',0,0,0,1,0,1,1,31536000,0,0,0,0,'eek',0,'*')




Brian Debelius schrieb:
> John Drescher wrote:
>> On 2/8/07, Brian Debelius <[EMAIL PROTECTED]> wrote:
>>> Hello,
>>>
>>> Would someone please post you configuration for a Scratch pool?
>>>
>> Simply create a pool named Scratch and add tapes to it. Bacula
>> automatically will move tapes from the Scratch pool when it needs a
>> tape for a pool and there are no appendable tapes left in that pool.
>> For my autochanger when I add some new tapes I run label barcodes and
>> set the destinaton pool to be the scratch pool. Then bacula finds the
>> unlabeled tapes (I still have labeled ones in the changer) and labels
>> all of them and sends them to the Scratch pool.
>>
>> John
> So just this? and no other options?
> 
> Pool {
>   Name = "Scratch"
> }
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IC3S Information, Computer und Solartechnik AG
Baekerbarg 6, 22889 Tangstedt, Germany

Telefon+49.4109.555.121
Telefax+49.4109.555.57
E-Mail [EMAIL PROTECTED]
Webhttp://www.ic3s.de/

Vorstand: Jan Behrmann (Vorsitzender), Stefan Fehlauer
Aufsichtsrat: Sven Niklasson (Vorsitzender)
Dresdner Bank (200 800 00), Kto. 0123 9582 00
Commerzbank (200 400 00), Kto. 8540 288
Amtsgericht Kiel HRB 7590
UST.IdNr. DE184532766

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


Re: [Bacula-users] Scratch pool example

2007-02-08 Thread Brian Debelius
John Drescher wrote:
> On 2/8/07, Brian Debelius <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> Would someone please post you configuration for a Scratch pool?
>>
> Simply create a pool named Scratch and add tapes to it. Bacula
> automatically will move tapes from the Scratch pool when it needs a
> tape for a pool and there are no appendable tapes left in that pool.
> For my autochanger when I add some new tapes I run label barcodes and
> set the destinaton pool to be the scratch pool. Then bacula finds the
> unlabeled tapes (I still have labeled ones in the changer) and labels
> all of them and sends them to the Scratch pool.
>
> John
So just this? and no other options?

Pool {
  Name = "Scratch"
}


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


Re: [Bacula-users] Scratch pool example

2007-02-08 Thread John Drescher
On 2/8/07, Brian Debelius <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Would someone please post you configuration for a Scratch pool?
>
Simply create a pool named Scratch and add tapes to it. Bacula
automatically will move tapes from the Scratch pool when it needs a
tape for a pool and there are no appendable tapes left in that pool.
For my autochanger when I add some new tapes I run label barcodes and
set the destinaton pool to be the scratch pool. Then bacula finds the
unlabeled tapes (I still have labeled ones in the changer) and labels
all of them and sends them to the Scratch pool.

John

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


Re: [Bacula-users] Scratch Pool Question

2006-09-07 Thread Kern Sibbald
On Tuesday 05 September 2006 18:29, Michael Brennen wrote:
> On Tue, 5 Sep 2006, Uwe Schuerkamp wrote:
> 
> > I have a question regarding the scratch pool: The docs note that a 
> > volume from the scratch pool will be used whenever no other volume 
> > is available. Will this work for a tape-based pool 
> > ("storage=DLT8000"), too?
> 
> Yes.
> 
> > i'd like bacula to switch to a disk-based full backup whenever no 
> > tape volume is either available nor eligible for recycling, so I was 
> > wondering if the scratch pool definition could be used for something 
> > like this.
> 
> I do not think that Bacula has this capability to switch media, but 
> others will know that much better than me.

Yes, you are right for version 1.38.x.  However, for version 1.39.x, this can 
be effectively done by using Migration jobs to copy old disk Volumes to tape 
when the Pool becomes too full.  The disk Volume can then be recycled and 
re-used by normal jobs.

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

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


Re: [Bacula-users] Scratch Pool Question

2006-09-07 Thread Michael Brennen
On Tue, 5 Sep 2006, Uwe Schuerkamp wrote:

> I have a question regarding the scratch pool: The docs note that a 
> volume from the scratch pool will be used whenever no other volume 
> is available. Will this work for a tape-based pool 
> ("storage=DLT8000"), too?

Yes.

> i'd like bacula to switch to a disk-based full backup whenever no 
> tape volume is either available nor eligible for recycling, so I was 
> wondering if the scratch pool definition could be used for something 
> like this.

I do not think that Bacula has this capability to switch media, but 
others will know that much better than me.

-- Michael

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


Re: [Bacula-users] Scratch Pool Question

2006-04-15 Thread Kern Sibbald
On Friday 14 April 2006 22:04, Bennett, Silas (GE Indust, Security) wrote:
> Hi Kern,
>
> I did not intend for my emails to be read as complaints. 

I don't really mind complains, and in fact, my response was a complaint :-)

> Bacula works 
> _Very_ well for me, and I am very grateful for the work that you do. My
> intent was to essentially submit bug reports against the docs. Is it the
> case that the Scratch Pool just doesn't work in 1.36? 

I don't believe the Scratch Pool was implemented in 1.36.  There were a few 
minor bugs in the first releases of 1.38, but nothing that I remember being a 
total show stopper.

> If that is the case, 
> simply modifing the docs as such would clear things up a bit:

There *should* be no mention of the Scratch Pool in the 1.36 document, so this 
issue should not come up.  I suppose someone could have created a Scratch 
pool in 1.36, but other than the fact that things would work a bit 
differently in 1.38.x, I don't see any major problem with having a pool with 
the name Scratch prior to 1.38, and I don't understand why it would hinder an 
upgrade.

>
> ORIGINAL:
>
> 
> The Scratch Pool
> 
> 
> 
> In general, you can give your Pools any name you wish, but there is one
> important restriction: the Pool named Scratch, if it exists behaves
> like a scratch pool of Volumes in that when Bacula needs a new Volume for
> writing and it cannot find one, it will look in the Scratch pool, and if
> it finds an available Volume, it will move it out of the Scratch pool into
> the Pool currently being used by the job.
> 
>
> MODIFIED:
>
> 
> The Scratch Pool
> 
> 
> 
> In general, you can give your Pools any name you wish, but there is one
> important restriction: the Pool named Scratch, if it exists behaves
> like a scratch pool of Volumes in that when Bacula needs a new Volume for
> writing and it cannot find one, it will look in the Scratch pool, and if
> it finds an available Volume, it will move it out of the Scratch pool into
> the Pool currently being used by the job. Note that the Scratch pool does
> not work properly for versions prior to {INSERT VERSION IN WHICH IT IS KNOW
> TO WORK HERE}, but it is still recommended that you not use the Scratch
> pool in prior versions for anything else as it will hinder your upgrade
> path.
> 
>
>
>
>   Regaurding my previous email, on the migration from SQLite to MySQL, I
> don't have enough knowledge of the intricacies of SQLite or MySQL to
> propose a proper migration solution. But I will attempt to put together a
> documentation change that will point the reader in the right direction. I
> will send this in a seperate email.

I've modified the document in that area simplifying the text letting the user 
know that the process is not so simple.  The new document should be up 
tomorrow.

Regards,

Kern

>
>
> -Original Message-----
> From: Kern Sibbald [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 14, 2006 12:06 AM
> To: bacula-users@lists.sourceforge.net
> Cc: Bennett, Silas (GE Indust, Security)
> Subject: Re: [Bacula-users] Scratch Pool Question
>
> On Friday 14 April 2006 04:08, Bennett, Silas (GE Indust, Security) wrote:
> > Hi All,
> >
> > This is a follow up to my SQLite -> MySQL migration Email.
> >
> > The Scratch Pool has _NEVER_ worked for me, and during the database
> > migration, I noticed something.
> >
> > In the Pool Table there is a field called ScratchPoolId, and all of the
> > records in the table have ScratchPoolId set to 0. What is the purpose of
> > ScratchPoolId, can I set that to the PoolId value of the Scratch Pool and
> > make stuff work? Is there any configuration file directives to put into
> > the Pool resource definitions to tell it which scratch pool to use?
> >
> > The Docs are again a bit thin here.
>
> The ScratchPoolId is not used, so don't worry about it (at least not yet). 
> I don't have time to document all the technical details, so the docs are
> going to remain very thin in that regard for a long time.
>
> However, in the case where someone has specific knowledge of the
> deficiencies of the manual, it would be more useful to complain and at the
> same time send me suggested new text rather than throw the work back on me
> as is the case 95% of the time.

--


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] Scratch Pool Question

2006-04-14 Thread Bennett, Silas (GE Indust, Security)
Hi Kern,

I did not intend for my emails to be read as complaints. Bacula works _Very_ 
well for me, and I am very grateful for the work that you do. My intent was to 
essentially submit bug reports against the docs. Is it the case that the 
Scratch Pool just doesn't work in 1.36? If that is the case, simply modifing 
the docs as such would clear things up a bit:

ORIGINAL:


The Scratch Pool



In general, you can give your Pools any name you wish, but there is one 
important restriction: the Pool named Scratch, if it exists behaves 
like a scratch pool of Volumes in that when Bacula needs a new Volume for 
writing and it cannot find one, it will look in the Scratch pool, and if
it finds an available Volume, it will move it out of the Scratch pool into
the Pool currently being used by the job.


MODIFIED:


The Scratch Pool



In general, you can give your Pools any name you wish, but there is one 
important restriction: the Pool named Scratch, if it exists behaves 
like a scratch pool of Volumes in that when Bacula needs a new Volume for 
writing and it cannot find one, it will look in the Scratch pool, and if
it finds an available Volume, it will move it out of the Scratch pool into
the Pool currently being used by the job. Note that the Scratch pool does
not work properly for versions prior to {INSERT VERSION IN WHICH IT IS KNOW TO 
WORK HERE}, but it is
still recommended that you not use the Scratch pool in prior versions for
anything else as it will hinder your upgrade path.




Regaurding my previous email, on the migration from SQLite to MySQL, I 
don't have enough knowledge of the intricacies of SQLite or MySQL to propose a 
proper migration solution. But I will attempt to put together a documentation 
change that will point the reader in the right direction. I will send this in a 
seperate email.

Cheers,
Silas

=0)



-Original Message-
From: Kern Sibbald [mailto:[EMAIL PROTECTED]
Sent: Friday, April 14, 2006 12:06 AM
To: bacula-users@lists.sourceforge.net
Cc: Bennett, Silas (GE Indust, Security)
Subject: Re: [Bacula-users] Scratch Pool Question


On Friday 14 April 2006 04:08, Bennett, Silas (GE Indust, Security) wrote:
> Hi All,
>
> This is a follow up to my SQLite -> MySQL migration Email.
>
> The Scratch Pool has _NEVER_ worked for me, and during the database
> migration, I noticed something.
>
> In the Pool Table there is a field called ScratchPoolId, and all of the
> records in the table have ScratchPoolId set to 0. What is the purpose of
> ScratchPoolId, can I set that to the PoolId value of the Scratch Pool and
> make stuff work? Is there any configuration file directives to put into the
> Pool resource definitions to tell it which scratch pool to use?
>
> The Docs are again a bit thin here.

The ScratchPoolId is not used, so don't worry about it (at least not yet).  I 
don't have time to document all the technical details, so the docs are going 
to remain very thin in that regard for a long time.

However, in the case where someone has specific knowledge of the deficiencies 
of the manual, it would be more useful to complain and at the same time send 
me suggested new text rather than throw the work back on me as is the case 
95% of the time.

-- 
Best regards,

Kern

  (">
  /\
  V_V
N�HS^�隊X���'���u��<�ڂ�.���y�"��*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�v&��קv�^�+j�Z{az^��h��஋�n���)��{h�����ا�׫�+h�(m�Z��jY�w��ǥrg

Re: [Bacula-users] Scratch Pool Question

2006-04-14 Thread Kern Sibbald
On Friday 14 April 2006 04:08, Bennett, Silas (GE Indust, Security) wrote:
> Hi All,
>
> This is a follow up to my SQLite -> MySQL migration Email.
>
> The Scratch Pool has _NEVER_ worked for me, and during the database
> migration, I noticed something.
>
> In the Pool Table there is a field called ScratchPoolId, and all of the
> records in the table have ScratchPoolId set to 0. What is the purpose of
> ScratchPoolId, can I set that to the PoolId value of the Scratch Pool and
> make stuff work? Is there any configuration file directives to put into the
> Pool resource definitions to tell it which scratch pool to use?
>
> The Docs are again a bit thin here.

The ScratchPoolId is not used, so don't worry about it (at least not yet).  I 
don't have time to document all the technical details, so the docs are going 
to remain very thin in that regard for a long time.

However, in the case where someone has specific knowledge of the deficiencies 
of the manual, it would be more useful to complain and at the same time send 
me suggested new text rather than throw the work back on me as is the case 
95% of the time.

-- 
Best regards,

Kern

  (">
  /\
  V_V


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Scratch pool

2005-08-25 Thread Ludovic Strappazon
Kern Sibbald a écrit :

>On Thursday 25 August 2005 10:54, Ludovic Strappazon wrote:
>  
>
>>Kern Sibbald a écrit :
>>
>>
>>>On Thursday 25 August 2005 10:24, Ludovic Strappazon wrote:
>>>  
>>>
Kern Sibbald a écrit :


>On Thursday 25 August 2005 03:40, Craig Holyoak wrote:
>  
>
>>I'm currently using 1.36.2 successfully, but am looking at the features
>>coming in 1.37, and am particularly interested in the scratch pool
>>feature. I understand this allows me to put all my tapes in the scratch
>>pool, and they will be moved into daily/weekly/monthly pools as
>>required. What I would like is for the tapes to be returned to the
>>scratch pool when they are recycled, thus allowing tapes to rotate
>>between pools and hopefully even wear. Is this possible as an option?
>>
>>
>No, unfortunately, I didn't add a field to keep track of the fact that
>they come from the scratch pool.
>  
>
Oh, I believed it was the aim of the RecyclePoolId field of the Pool
table...


>>>Duh!  after a bit more thought, I don't think RecyclePoolId is going to
>>>help if it is in the Pool record. It needs to be in the Media record to
>>>get the Volume back to the right pool :-(
>>>
>>>I wonder what I had in mind.
>>>  
>>>
>>Wasn't it something like "Recycle volumes from pool X to its
>>RecyclePoolId" ?
>>
>>
>
>I guess that would work. I guess I wasn't so dumb after all, but it is a pity 
>it is not on a volume by volume basis. That means that if you recycle from 
>pool X to the Scratch pool, all volumes in pool X will go there.  Certainly 
>that is an improvement over the "nothing" that exist today.
>
>  
>
For the way I'd use it, it seems perfect :

* I create a new pool XXX with ScratchPoolId = MyScratchPool's PoolId
and let it fill itself,
 and RecyclePoolId = XXX's PoolId so I can see if it become stable and I
just have to supervise
 MyScratchPool
 
* If I want to remove this pool, I set RecyclePoolId = MyScratchPool's
PoolId, and once it is empty,
 I can remove it safely.

Ludovic Strappazon



---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Scratch pool

2005-08-24 Thread Kern Sibbald
On Thursday 25 August 2005 03:40, Craig Holyoak wrote:
> I'm currently using 1.36.2 successfully, but am looking at the features
> coming in 1.37, and am particularly interested in the scratch pool feature.
> I understand this allows me to put all my tapes in the scratch pool, and
> they will be moved into daily/weekly/monthly pools as required. What I
> would like is for the tapes to be returned to the scratch pool when they
> are recycled, thus allowing tapes to rotate between pools and hopefully
> even wear. Is this possible as an option? 

No, unfortunately, I didn't add a field to keep track of the fact that they 
come from the scratch pool.

> I can imagine this could also be 
> done with a python script triggered by a recycle event, but at this stage
> there doesn't seem to be such an event referenced in the manual. Is any of
> this possible to add to a wishlist?

Yes, good idea :-)   It is on my list.

-- 
Best regards,

Kern

  (">
  /\
  V_V


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users