Hello,

> > I am using 'UDF formatted DVD-RAMs' for backup at home. So it's the
> > write-files-to-disk approach rather than the write-data-part-to-media
> > approach.
> >
> > To mount the media automatically when bacula needs it (and umount after
> > backup) I am using autofs.

[...]

> > I can post the config if anyone is interested. Just let me know.
>
> Yes, Please I would love to see how you are doing this.
>

no problem. Autofs needs two config files: /etc/auto.master 
and /etc/auto.dvd-ram. The first one is mandatory. It defines where autofs 
maintains those 'special' mount points. The later one is created by me - it 
contains all settings for the actual mount point. Here are the essential 
lines:

        [EMAIL PROTECTED] ~]# cat /etc/auto.master
        [...]
        /mnt/autofs    /etc/auto.dvd-ram --timout=600 --ghost

and 

        [EMAIL PROTECTED] ~]# cat /etc/auto.dvd-ram
        [...]
        dvdwriter   -fstype=udf,rw,nosuid,nodev,noatime,user  :/dev/dvdwriter

the timeout in auto.master defines after which (idle) time autofs should try 
to umount. Maybe it is better so set a somewhat larger value - I don't know 
what happens when autofs tries to umount while there is still a bacula job 
running (and waiting for something)...

Testing it: provided the autofs daemon is running and there is a UDF formated 
DVD-RAM in the drive you shold be able to do this:

        [EMAIL PROTECTED] ~]# ls -l /mnt/autofs/dvdwriter/
        < ------- this takes a couple seconds -------->
        total 173156
        -rw-r-----  1 bacula disk 177311477 Aug 29 19:45 Daily-0005
        drwxr-xr-x  2 root   root        40 Jun 11 21:30 lost+found

autofs should 'block' the ls command while mounting the DVD seamlessly. You 
notice a more-or-less short delay.

If ls returns right away and you get a empty directory listing then something 
doesn't work. Check the usual log files (ie /var/log/messages).

Finally here is my device resource operating on that mount point. It's 
essentially a regular 'disk' device....

        Device {
          Name           = DVD-Writer
          Media Type     = DVD
          DeviceType     = File

          # autofs will deal with mounting
          # - see /etc/auto.master and /etc/auto.dvd-ram
          ArchiveDevice  = /mnt/autofs/dvdwriter
          MountPoint     = /mnt/autofs/dvdwriter

          # general parameters
          LabelMedia     = no
          AutomaticMount = yes
          RemovableMedia = yes
          AlwaysOpen     = no
        }

regards,
Stephan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to