Re: [Bacula-users] Ubuntu 10.10 Install Script

2011-06-30 Thread Venkatesh K Reddy
On Fri, Jul 1, 2011 at 5:53 AM, Mehma Sarja mehmasa...@gmail.com wrote:

 On 6/30/11 2:34 PM, Konstantin Khomoutov wrote:
  On Thu, Jun 30, 2011 at 11:04:34AM -0700, Mehma Sarja wrote:
 
  I submit to you an updated Ubuntu 10.10 install script which works for
  me on a 64 bit machine.
  [...]
 
  What's wrong with `aptitude install bacula`?
  In case you desperately need 5.0.3 over 5.0.2 from meerkat, what's wrong
  with backporting a 5.0.3 package from a more recent OS release?
 
 I did not know that existed. But there are a couple of things wrong with
 apt-get install bacula. The choices are confusing and the hit and miss
 approach leaves a broken install. apt-get install selects some odd
 places to put bacula config files. I could not find any control files,
 eg bacula-ctl-dir, on the system. I could not get postgresql to switch
 modes to sql_ascii from utf8. I don't know what a postgresql server
 dev package installs other than to satisfy the libpq need. What a
 headache to save typing a few commands and compile the thing.

 Besides a native compile is always good, eh? It is clean and simple and
 you control what functionality to compile in. It also gives one some
 practice skills for when the time cometh and we go looking for the usr
 local etc directory to run the upgrade commands.

 The way package dependencies are handled in Ubuntu can be bit confusing at
times.

I have Bacula installed in 10.10 and I find all the configuration files in
/etc/bacula. You can find state files in /var/lib/bacula and log in
/var/lob/bacula.

I am using MySQL though.

Thanks,

Venkatesh K
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Job is waiting for a mount request

2011-06-28 Thread Venkatesh K Reddy
Hi,

I am a newbie to Bacula. I tried to find out what is happening in the list
and could not get right answer. Probably I am not searching with right
question or looking at right place.

We have a test setup with File storage. All daemons are able to talk to each
other and a small backup successfully finished. Here is the configuration of
Pool and Storage.

# Default pool definition
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 365 days # one year
}

# File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 365 days # one year
  Maximum Volume Bytes = 50G  # Limit Volume size to something
reasonable
  Maximum Volumes = 100   # Limit number of Volumes in Pool
  Label Format = FileShare
}

Here is the storage definition

Storage { # definition of myself
  Name = cincidr-sd
  SDPort = 9103  # Director's port
  WorkingDirectory = /var/lib/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /home/backups/fileshare
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum File Size = 262144000;
  Maximum Volume Size = 262144000;
}

I tried to backup a large file set (20+ GB). It stopped half way with the
following message.

Running Jobs:
Console connected at 28-Jun-11 17:06
 JobId Level   Name   Status
==
 1 FullFileShare.2011-06-28_10.04.46_03 is waiting for a mount
request

Here is the status of storage.

Device status:
Device FileStorage (/home/backups/fileshare) open but no Bacula volume is
currently mounted.
Device is BLOCKED waiting for mount of volume FileShare0037,
   Pool:File
   Media type:  File
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0

I have already set Automatic Mount = Yes as part of configuration. I am not
sure where I am going wrong. Please help me.

thanks,

Venkatesh
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job is waiting for a mount request

2011-06-28 Thread Venkatesh K Reddy
I had used unmount. But, I nuked the whole configuration.

/etc/init.d/bacula-sd stop
/etc/init.d/bacula-dir stop
/usr/lib/bacula/drop_mysql_tables
/usr/lib/bacula/make_mysql_tables
rm -rf /var/lib/bacula/*
/etc/init.d/bacula-sd start
/etc/init.d/bacula-dir start

I did the same on the client.

Thanks,

Venkatesh K

On Wed, Jun 29, 2011 at 8:01 AM, John Drescher dresche...@gmail.com wrote:

 2011/6/28 Venkatesh K Reddy venkat...@kaevee.com:
  Hi,
 
  I am a newbie to Bacula. I tried to find out what is happening in the
 list
  and could not get right answer. Probably I am not searching with right
  question or looking at right place.
 
  We have a test setup with File storage. All daemons are able to talk to
 each
  other and a small backup successfully finished. Here is the configuration
 of
  Pool and Storage.
 
  # Default pool definition
  Pool {
Name = Default
Pool Type = Backup
Recycle = yes   # Bacula can automatically recycle
  Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
  }
 
  # File Pool definition
  Pool {
Name = File
Pool Type = Backup
Recycle = yes   # Bacula can automatically recycle
  Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G  # Limit Volume size to something
  reasonable
Maximum Volumes = 100   # Limit number of Volumes in Pool
Label Format = FileShare
  }
 
  Here is the storage definition
 
  Storage { # definition of myself
Name = cincidr-sd
SDPort = 9103  # Director's port
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
  }
 
  Device {
Name = FileStorage
Media Type = File
Archive Device = /home/backups/fileshare
LabelMedia = yes;   # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes;   # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Maximum File Size = 262144000;
Maximum Volume Size = 262144000;
  }
 
  I tried to backup a large file set (20+ GB). It stopped half way with the
  following message.
 
  Running Jobs:
  Console connected at 28-Jun-11 17:06
   JobId Level   Name   Status
  ==
   1 FullFileShare.2011-06-28_10.04.46_03 is waiting for a mount
  request
 
  Here is the status of storage.
 
  Device status:
  Device FileStorage (/home/backups/fileshare) open but no Bacula volume
 is
  currently mounted.
  Device is BLOCKED waiting for mount of volume FileShare0037,
 Pool:File
 Media type:  File
  Total Bytes Read=0 Blocks Read=0 Bytes/block=0
  Positioned at File=0 Block=0
 
  I have already set Automatic Mount = Yes as part of configuration. I am
 not
  sure where I am going wrong. Please help me.
 

 Did you use the umount command recently?

 John

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job is waiting for a mount request

2011-06-28 Thread Venkatesh K Reddy
I don't think I have used unmount after removing old state files and nuking
all data in sql database.

I had started afresh and backup ran smoothly and created about 30 volumes
(256MB each) and then stopped with following message.

Running Jobs:
Console connected at 28-Jun-11 18:45
 JobId Level   Name   Status
==
 1 FullFileShare.2011-06-28_10.04.46_03 is waiting for a mount
request

When I checked the storage status I got the following info.

Device status:
Device FileStorage (/home/backups/fileshare) open but no Bacula volume is
currently mounted.
Device is BLOCKED waiting for mount of volume FileShare0037,
   Pool:File
   Media type:  File
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0

I tried to look up in mailing lists and could not find any post similar to
problem I am facing.

Thanks,

Venkatesh K

On Wed, Jun 29, 2011 at 8:13 AM, John Drescher dresche...@gmail.com wrote:

 On Tue, Jun 28, 2011 at 10:36 PM, Venkatesh K Reddy
 venkat...@kaevee.com wrote:
  I had used unmount. But, I nuked the whole configuration.
 

 If you ever use umount then the next volume that bacula will want you
 will have to mount it since umount takes the storage device out of
 bacula's control. If you just want to unload a volume without bacula
 giving up control on the storage device use the release command
 instead.

 John

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job is waiting for a mount request

2011-06-28 Thread Venkatesh K Reddy
Hi,

On Wed, Jun 29, 2011 at 8:52 AM, John Drescher dresche...@gmail.com wrote:

 On Tue, Jun 28, 2011 at 10:59 PM, Venkatesh K Reddy
 venkat...@kaevee.com wrote:
  I don't think I have used unmount after removing old state files and
 nuking
  all data in sql database.
 
  I had started afresh and backup ran smoothly and created about 30 volumes
  (256MB each) and then stopped with following message.
 
  Running Jobs:
  Console connected at 28-Jun-11 18:45
   JobId Level   Name   Status
  ==
   1 FullFileShare.2011-06-28_10.04.46_03 is waiting for a mount
  request
 
  When I checked the storage status I got the following info.
 
  Device status:
  Device FileStorage (/home/backups/fileshare) open but no Bacula volume
 is
  currently mounted.
  Device is BLOCKED waiting for mount of volume FileShare0037,
 Pool:File
 Media type:  File
  Total Bytes Read=0 Blocks Read=0 Bytes/block=0
  Positioned at File=0 Block=0
 
  I tried to look up in mailing lists and could not find any post similar
 to
  problem I am facing.
 

 Does the volume FileShare0037 exist in /home/backups/fileshare?


No. It does not exist.



 Do you have any limits on how many volumes in your pool?


Yes. The limit is 100.

# File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 365 days # one year
  Maximum Volume Bytes = 50G  # Limit Volume size to something
reasonable
  Maximum Volumes = 100   # Limit number of Volumes in Pool
  Label Format = FileShare
}

Thanks,

Venkatesh K
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job is waiting for a mount request

2011-06-28 Thread Venkatesh K Reddy
John,

Please accept my apologies. It was disk space issue after all. The server
had 1.7T and our administrator mounted the backup partition in wrong path. I
was stupid enough not to check the mount points.

Tons of thanks for your valuable time and pointing me to right direction. I
am glad to be part of wonderful Bacula community.

Thanks again,

Venkatesh K

On Wed, Jun 29, 2011 at 9:14 AM, John Drescher dresche...@gmail.com wrote:

 On Tue, Jun 28, 2011 at 11:36 PM, Venkatesh K Reddy
 venkat...@kaevee.com wrote:
  Hi,
 
  On Wed, Jun 29, 2011 at 8:52 AM, John Drescher dresche...@gmail.com
 wrote:
 
  On Tue, Jun 28, 2011 at 10:59 PM, Venkatesh K Reddy
  venkat...@kaevee.com wrote:
   I don't think I have used unmount after removing old state files and
   nuking
   all data in sql database.
  
   I had started afresh and backup ran smoothly and created about 30
   volumes
   (256MB each) and then stopped with following message.
  
   Running Jobs:
   Console connected at 28-Jun-11 18:45
JobId Level   Name   Status
   ==
1 FullFileShare.2011-06-28_10.04.46_03 is waiting for a mount
   request
  
   When I checked the storage status I got the following info.
  
   Device status:
   Device FileStorage (/home/backups/fileshare) open but no Bacula
 volume
   is
   currently mounted.
   Device is BLOCKED waiting for mount of volume FileShare0037,
  Pool:File
  Media type:  File
   Total Bytes Read=0 Blocks Read=0 Bytes/block=0
   Positioned at File=0 Block=0
  
   I tried to look up in mailing lists and could not find any post
 similar
   to
   problem I am facing.
  
 
  Does the volume FileShare0037 exist in /home/backups/fileshare?
 
  No. It does not exist.
 

 I believe it should at that point. You may want to look at the logs to
 see if there were any error messages. You are sure you did not run out
 of space?

 
  Do you have any limits on how many volumes in your pool?
 
  Yes. The limit is 100.
 

 Does that volume exist in the output of:

 list media pool=Backup

 You can execute that in bconsole. If it does exist is this the last volume?

 John

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users