In the message dated: Tue, 08 May 2007 16:54:56 PDT, The pithy ruminations from Mike Toscano on <[Bacula-users] cannot open SCSI device '/dev/sg2' - Permission denied> were: => Hi. When I try to run backups, I get an error like this: => 08-May 11:22 bmm-s1-sd: Alert: cannot open SCSI device '/dev/sg2' - => Permission denied => 08-May 11:22 bmm-s1-dir: Client1.2007-05-08_11.19.52 Error: Bacula => 1.36.3 (22Apr05): => => What I've tried: => Restarting all bacula services. => Combing through my config files. => Google -- I couldn't find anyone with the same problem. => Creating new volumes for tapes. => Staring blankly at the screen. => Cursing. => Sobbing. => => Services seem to be running fine, media is mounted and labeled in => bconsole. => => Everything was running beautifully for a couple months now. We had to => shut the backup server down because of work on our building and after => bringing the server back up and changing tapes, I have not been able => to do any back-ups successfully. :( => => Can anyone give me a shove in the right direction on what I've got => wrong here? =>
Sure. The /dev/sg2 device is almost certainly owned by root, and the user "bacula" doesn't have permission to open the device. I'd suggest putting something into your system startup scripts (possibly /etc/rc.local, or the script that starts bacula) to change the ownership or group of the device to something where bacula has permissions. For example, on my server: crw-rw---- 1 root disk 21, 10 Mar 29 19:55 /dev/sg10 where bacula is in group "disk". Also, in some OS's, the scsi devices are not fixed--if the OS discovers them in a different order (not uncommon in a SAN environment), the device that controls the tape drive may have a different number at each boot. I've written a script to walk through the /dev/sg* devices, run an mtx command to determine if that device is the tape changer, and create a symlink from /dev/sgWHATEVER to /dev/changer. That way, all my bacula configs (and other admin tools and documentation) can always refer to /dev/changer. Mark => Thank you! => Mike => ---- Mark Bergman [EMAIL PROTECTED] System Administrator Section of Biomedical Image Analysis 215-662-7310 Department of Radiology, University of Pennsylvania http://pgpkeys.pca.dfn.de:11371/pks/lookup?search=mark.bergman%40.uphs.upenn.edu The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users