Bacula-users

Re: [Bacula-users] Volume Doesn't create automatically

2012-04-13 06:56:31
Subject: Re: [Bacula-users] Volume Doesn't create automatically
From: Joe Nyland <joe AT joenyland.co DOT uk>
To: bacula-users AT lists.sourceforge DOT net <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 13 Apr 2012 11:54:46 +0100
-----Original message-----
From:   Juan Pablo Botero <juanpabloboterolopez AT gmail DOT com>
Sent:   Thu 12-04-2012 21:30
Subject:        Re: [Bacula-users] Volume Doesn't create automatically
Attachment:     inline.txt, inline.txt
To:     bacula-users AT lists.sourceforge DOT net; 
> Hi
> 
> 2012/4/12 Joe Nyland <joe AT joenyland.co DOT uk <mailto:joe AT joenyland.co 
> DOT uk> >
> -----Original message-----
> From:   Juan Pablo Botero <juanpabloboterolopez AT gmail DOT com 
> <mailto:juanpabloboterolopez AT gmail DOT com> >
> Sent:   Wed 11-04-2012 20:20
> Subject:        [Bacula-users] Volume Doesn't create automatically
> Attachment:     inline.txt, inline.txt
> To:     bacula-users AT lists.sourceforge DOT net 
> <mailto:bacula-users AT lists.sourceforge DOT net> ;
> > Hello.
> >
> > When is necessary that bacula uses the next Volume i Got the
> >
> > 511 578 092 (01:56 p.m.):
> > 1-abr 12:35 bacula-sd JobId 35: Warning: mount.c:227 Open device
> > "StorageDevice" (/bks/) Volume "Vol0002" failed: ERR=dev.c:549 Could not 
> > open:
> > /bks/Vol0002, ERR=No such file or directory
> >
> > The bacula-sd.conf in section Device is:
> >
> > #
> > Device {
> >     Name = StorageDevice
> >     Media Type = File
> >     Archive Device = /bks
> >     LabelMedia = yes
> >     AutomaticMount = yes
> >     AlwaysOpen = no
> > }
> >
> > That was today; is there any value that i forgot to automatically create the
> > volume?
> >
> > Thanks.
> >
> > --
> > Cordialmente:
> > Juan Pablo Botero
> > Administrador de Sistemas informáticos
> > Fedora Ambassador for Colombia
> > http://www.jpilldev.net <http://www.jpilldev.net> <http://www.jpilldev.net 
> <http://www.jpilldev.net> >
> >
> >
> 
> It might be worth showing the list your Storage and Pool resources from 
> bacula-dir.conf too.
>  
> The Storage Definition
> 
> Storage {
>   Name = TheFiles
> # Do not use "localhost" here
>   Address = 192.168.1.45           # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "thePassword"
>   Device = StorageDevice
>   Media Type = File
> }
> 
> Pool Resource:
> 
> Pool {
>   Name = Default
>   Pool Type = Backup
>   Recycle = yes                       # Bacula can automatically recycle 
> Volumes
>   AutoPrune = yes                     # Prune expired volumes
>   Volume Retention = 365 days         # one year
>   Maximum Volume Jobs= 20
>   Label Format = Vol
> }
> 
>  
> 
> Nonetheless, the first things that come to my mind with this message is:
>  - Run 'ps aux | grep bacula-sd' and check who the Bacula SD is running as 
> and 
> if possible find what group it's running under.
> 
> Is there an user bacula, but it's running by root
>  
>  - Check permissions on the directory /bks/ - make sure that the user/group 
> above has full permissions to this directory.
> 
> The Directory has permissions for bacula.bacula: 755 to folder /bks/
>  
>  - Does the file /bks/Vol0002 actually exist on the filesystem? If not, has 
> the 
> volume /bks/Vol0002 been manually deleted from the filesystem, without being 
> deleted from the Bacula catalog?
> 
> Doesn't existed, i had to create Vol0002
>  
> HTH
> 
> Joe
> 
> Thanks a lot. 

Hmm, sorry, I missed that it was the SD that had reported this error.

We could do with seeing the full logs around this message - looking at one 
message on it's own doesn't give us the full picture of what's going on. 
Preferably, show us the logs from the start of the job.

Joe

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>