Hi, On 1/18/2007 11:07 PM, Benjamin Chambers wrote: > I'm doing some testing using v2.0.1 with a USB storage device. In this case, > it > is an Iomega REV USB drive, but essentially, it could be any USB mass storage > device. > > Here is the configuration for the SD: > > Device { > Name = "_REV-USB" > MediaType = "Iomega REV, USB" > ArchiveDevice = "/dev/scd0"
This is a configuration error. > LabelMedia = "yes" > RandomAccess = "yes" > AutomaticMount = "yes" > RemovableMedia = "yes" > AlwaysOpen = "yes" > DeviceType = "File" > RequiresMount = "yes" RequiresMount, MountPoint, unmountCommand are for DVDs only. > MountPoint = "/var/bacula/mnt/rev/usb" > MountCommand = "/bin/mount %a %m" > UnmountCommand = "/bin/umount %m" > MaximumVolumeSize = 70GB > } > > Note, I put the DeviceType = "File" because otherwise Bacula thinks it is a > DVD > device and requires the "Write Command" directive. Yes. Or rather, the directives above don't apply to file storage. > I know you *could* put the 'ArchiveDevice' directive as the mountpoint (in > this > case /var/bacula/mnt/rev/usb/), however, then you would required the user to > mount/umount the device, or use the RunBefore/After scripts. Using the > similarities to DVD and the additional directives when "Requires Mount" = yes > is > so much more elegant. But it does not work. > The problem is that Bacula is trying to write to the device (/dev/scd0), > rather > than the mount point. The exact message when you try and label the volume is: > > ********* > Connecting to Storage daemon _REV-USB at 192.168.2.185:9103 ... > Sending label command for Volume "Default-0001" Slot 0 ... > 3910 Unable to open device "_REV-USB" (/dev/scd0): ERR=dev.c:482 Could not > open: /dev/scd0/Default-0001, ERR=Not a directory > > Label command failed for Volume Default-0001. > Do not forget to mount the drive!!! > ********* > > Has anyone got a USB mass storage device to work in 2.0.1? Not me, but I know of others. Well, I kind of have - I operate simple usb disks but without any special consideration regarding mounting etc. These are setups where the disks are not meant to be removed. Josh Fishers "Removable Disk Howto revised" is probably interesting for you - you find it searching in the list archives. > Can anyone tell me if this is: > > a) Corrected by fixing my configuration Yes. But probably diferent than what you intend. > b) Not an advised (or supported) method to mount USB mass storage devices Yes. > c) An anomaly of the Iomega REV drive that is "part File, part DVD" in > terms of how Bacula treats the device Don't know. > d) A bug No. There's one other option, by the way: Try to understand how writing to DVD works for Bacula. Then, create a script similar to dvd-handler - basically, you could replace the invocations of growisofs with a cp, ge the available space using df, and so on. My original idea was that dvd-handler could be used as a template for low performance storage systems like ftp, CD-RW and others, but currently Bacula reads directly, so whatever media you use, you must be able to mount it for reading. Writing can be done by a handler script. Arno > Thanks in advance. > > Ben > -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users