Jordi Espasa Clofent wrote:
> Hi all,
>
> The last goal is the bacula-sd mount and umount in every time that 
> bacula-dir uses it. So,
>
> [EMAIL PROTECTED] ~]$ uname -a
> FreeBSD anubis.opengea.org 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu 
> Apr 26 17:40:53 UTC 2007 
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
>
> [EMAIL PROTECTED] ~]$ pkg_info -Ix bacula
> bacula-client-2.2.5 The network backup solution (client)
> bacula-server-2.2.5 The network backup solution (server)
> bacula-web-1.38.9   Bacula-web provides a summarized output of Bacula jobs
>
> In /usr/local/etc/bacula-dir.conf:
>
> Storage {
>    Name = File
> # Do not use "localhost" here
>    Address = anubis.opengea.org          # N.B. Use a fully qualified 
> name here
>    SDPort = 9103
>    Password = "anubis"
>    Device = usb_disk
>    Media Type = File
> }
>
> And, in /usr/local/etc/bacula-sd.conf:
>
> Device {
>    Name = usb_disk
>    Media Type = File
>    Archive Device = /dev/da0;
>    LabelMedia = yes;                   # lets Bacula label unlabeled media
>    Random Access = Yes;
>    AutomaticMount = yes;               # when device opened, read it
>    RemovableMedia = yes;
>    AlwaysOpen = no;
>    RequiresMount = Yes;
>    MountPoint = /mnt/usb_disk/;
>    MountCommand = "/sbin/mount %a %m";
>    UnmountCommand = "/sbin/umount %m";
> }
>   

I am not familiar with how FreeBSD assigns device nodes to USB devices. 
How do you know the USB disk is always assigned to device node /dev/da0 
when it is plugged in?

> Into bconsole, I see:
>
> *status storage
> Automatically selected Storage: File
> Connecting to Storage daemon File at anubis.opengea.org:9103
>
> anubis-sd Version: 2.2.5 (09 October 2007) i386-portbld-freebsd6.2 
> freebsd 6.2-RELEASE-p4
> Daemon started 22-oct-07 17:53, 0 Jobs run since started.
>   Heap: heap=446,464 smbytes=151,148 max_bytes=216,415 bufs=99 max_bufs=102
> Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8
>
> Running Jobs:
> Writing: Full Backup job Client1 JobId=11 Volume="jordi0001"
>      pool="Default" device="usb_disk" (/dev/da0)
>      spooling=0 despooling=0 despool_wait=0
>      Files=0 Bytes=0 Bytes/sec=0
>      FDReadSeqNo=6 in_msg=6 out_msg=4 fd=6
> ====
>
> Jobs waiting to reserve a drive:
> ====
>
> Terminated Jobs:
>   JobId  Level    Files      Bytes   Status   Finished        Name
> ===================================================================
>       1  Full          0         0   OK       18-oct-07 10:36 Client1
>       2  Incr          0         0   OK       18-oct-07 23:05 Client1
>       3  Full          1    19.16 K  OK       18-oct-07 23:10 BackupCatalog
>       4  Incr          0         0   Cancel   22-oct-07 12:24 Client1
>       5  Incr          0         0   Cancel   22-oct-07 12:27 Client1
>       6  Incr          0         0   OK       22-oct-07 12:35 Client1
>       7  Incr          0         0   Cancel   22-oct-07 16:29 Client1
> ====
>
> Device status:
> Device "usb_disk" (/dev/da0) is not open.
>      Device is blocked labeling a Volume.
> ====
>
> If I run a job (client1) nothing happens.
> ¿What's the problem?
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to