Nicholas Piper wrote:
> I'm attempting my 2.4.0 Bacula to write the backup volumes as files to
> a drive mounted over cifs.
>
> I thought I'd try and get bacula to do the mounting and unmounting, to
> increase robustness. If this won't work, I'd be happy to leave the
> drive mounted - but now I'm curious why I couldn't get it to work how
> I'd expect.
>
Check the fstab entry for /backup. Can you mount it from the command
line with 'sudo /bin/mount /backup'? Also check that the SD user has
write permission on /backup.
Another, IMHO easier, approach is to use autofs to mount/umount the
share, then setup Bacula as for a normal disk directory.
> The Storage Daemon is configured as:
>
> Device {
> Name = FileStorage
> Media Type = File
> Archive Device = /backup/backup/bacula-space/
> LabelMedia = yes; # lets Bacula label unlabeled media
> Random Access = Yes;
> AutomaticMount = yes; # when device opened, read it
> RemovableMedia = yes;
> AlwaysOpen = no;
> Requires Mount = yes;
> Mount Point = /backup;
> Mount Command = "sudo /bin/mount %m";
> Unmount Command = "sudo /bin/umount %m";
> }
>
>
> The Storage Daemon debug log shows:
>
> my-server-sd: stored.c:480-0 calling init_dev /backup/backup/bacula-space/
> my-server-sd: mem_pool.c:119-0 sm_get_pool_memory reuse 9f2dfd0 to
> ../lib/berrno.h:77
> my-server-sd: mem_pool.c:135-0 sm_get_pool_memory give 9f3cd18 to
> message.c:1177
> my-server-sd: message.c:1083-0 Enter Jmsg type=4
> my-server-sd: message.c:609-0 Enter dispatch_msg type=4 msg=my-server-sd
> JobId 0: Error: dev.c:121 Unable to stat device /backup/backup/bacula-space/:
> ERR=No such file or directory
> my-server-sd: message.c:781-0 DIRECTOR for following msg: my-server-sd JobId
> 0: Error: dev.c:121 Unable to stat device /backup/backup/bacula-space/:
> ERR=No such file or directory
> my-server-sd: mem_pool.c:230-0 free_pool_memory 9f3cd18 pool=4 from
> message.c:1193
> my-server-sd: mem_pool.c:230-0 free_pool_memory 9f2dfd0 pool=4 from
> ../lib/berrno.h:86
> my-server-sd: stored.c:482-0 SD init done /backup/backup/bacula-space/
> my-server-sd: mem_pool.c:119-0 sm_get_pool_memory reuse 9f2dfd0 to
> message.c:1177
> my-server-sd: message.c:1083-0 Enter Jmsg type=4
> my-server-sd: message.c:609-0 Enter dispatch_msg type=4 msg=my-server-sd
> JobId 0: Error: stored.c:484 Could not initialize /backup/backup/bacula-space/
> my-server-sd: message.c:781-0 DIRECTOR for following msg: my-server-sd JobId
> 0: Error: stored.c:484 Could not initialize /backup/backup/bacula-space/
>
> Is there an item I'm missing, to tell the SD to run the mount and
> unmount when it finds that /backup isn't mounted?
>
> I set sudo so that bacula could run the command without a password -
> but from the debug log, it looks like it doesn't even attempt the
> mount anyway?
>
> Thank you for any suggestions,
>
> Regards,
>
> Nick
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|