-----Original message-----
From: Juan Pablo Botero <juanpabloboterolopez < at > gmail.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.net;
Hi
2012/4/12 Joe Nyland <joe < at > joenyland.co.uk <mailto:joe < at > joenyland.co.uk> >
-----Original message-----
From: Â Juan Pablo Botero <juanpabloboterolopez < at > gmail.com
<mailto:juanpabloboterolopez < at > gmail.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.net
<mailto:bacula-users < at > lists.sourceforge.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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users