Bacula-users

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

2012-04-12 16:29:53
Subject: Re: [Bacula-users] Volume Doesn't create automatically
From: Juan Pablo Botero <juanpabloboterolopez AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 12 Apr 2012 15:26:42 -0500
Hi

2012/4/12 Joe Nyland <joe AT joenyland.co DOT uk>
-----Original message-----
From:   Juan Pablo Botero <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;
> 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>
>
>

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.

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



--
Cordialmente:
Juan Pablo Botero
Administrador de Sistemas informáticos
Fedora Ambassador for Colombia
------------------------------------------------------------------------------
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