I have the configuration below for an USB disk in bacula-sd.conf. The disk
gets mounted and a backup job runs properly, but the disk won't get
unmounted after the job.
udev sets the owner of the device file as bacula:
brw-r----- 1 bacula disk 8, 16 Apr 11 21:01 /dev/sdb
brw-r----- 1 bacula disk 8, 17 Apr 11 21:01 /dev/sdb1
lrwxrwxrwx 1 root root 3 Apr 11 21:01 /dev/backup-a -> sdb
lrwxrwxrwx 1 root root 4 Apr 11 21:01 /dev/backup-a1 -> sdb1
/etc/fstab has this line, so user 'bacula' (the device file owner) should be
able to mount and unmount it:
/dev/backup-a1 /mnt/backup-a ext3 rw,noauto,owner 0 0
This obviously is ok, since mount works fine. But why not unmount?
Bacula version 2.4.4, on CentOS 5.2 x86_64
Device {
Name = USB-Disk-A
Device Type = File
Media Type = USB-Disk-A
Archive Device = /mnt/backup-a
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = yes;
AlwaysOpen = no;
# Volume Poll Interval = 15
Requires Mount = yes
Mount Point = /mnt/backup-a
Mount Command = "/bin/mount %m"
Unmount Command = "/bin/umount %m"
}
Regards,
Timo
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|