Hi, I'm trying to get a USB disk to be automatically mounted and unmounted before/after each backup job with Bacula 1.38.9. My USB drive in at /dev/sdb, so I created this device configuration for the Storage Daemon:
Device { Name = FileStorage Media Type = File Archive Device = /dev/sdb1; LabelMedia = yes; Random Access = Yes; Automatic Mount = yes; Removable Media = yes; Always Open = no; Label Media = yes; Requires Mount = yes; Mount Point = /media/sdb1; Mount Command = "/bin/mount -t ext3 -o rw %a %m" Unmount Command = "/bin/umount %m" } With this setup, bacula-sd complains: dev.c:189 Write part command must be defined for a device which requires mount. So, I addedd this "Write Part Command" line: Write Part Command = "echo nothing > /dev/null" Unfortunately, the backup jobs don't run as expected. Bacula keeps waiting for the volume to be mounted. If I run bacula-sd with debugging turned on, I get the following output: server-sd: dev.c:276 open dev: tape=0 dev_name="FileStorage" (/dev/sdb1) vol=FILE0004 mode=OPEN_READ_WRITE server-sd: dev.c:476 Enter: open_dvd_dev: DVD dev= mode=OPEN_READ_WRITE server-sd: dev.c:493 open_dvd_device: num_parts=0, VolCatInfo.VolCatParts=0 server-sd: dvd.c:78 Enter mount_dev server-sd: dvd.c:78 Enter mount_dev server-sd: dvd.c:242 update_free_space_dev: free_space=0, free_space_errno=0 (!icmd) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found . (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found .. (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found lost+found (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found FILE0001 (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found FILE0002 (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found FILE0003 (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found Platte1 (versus FILE0004) server-sd: dvd.c:798 check_can_write_on_non_blank_dvd: found FILE0004 (versus FILE0004) server-sd: dvd.c:815 check_can_write_on_non_blank_dvd: size of /media/sdb1/FILE0004 is 375282086 server-sd: dvd.c:824 check_can_write_on_non_blank_dvd: got 8 files in the mount point (matched=0) server-sd: dvd.c:93 Enter unmount_dev server-sd: dvd.c:93 Enter unmount_dev After that, nothing happens and the console log says: 24-May 13:09 server-sd: Please mount Volume "FILE0004" on Storage Device "FileStorage" (/dev/sdb1) for Job BackupCatalog.2006-05-24_13.08.55 How do I get Bacula to recognize the files on the disk properly? Best regards, Henning Holtschneider -- LocaNet oHG - http://www.loca.net Lindemannstrasse 81, D-44137 Dortmund tel +49 231 91596-25, fax +49 231 91596-55 sip [EMAIL PROTECTED]
pgpNmXE5gSMxz.pgp
Description: PGP signature