Hi! New to the list here. And new to Bacula. And, well, relatively new to Unix.
Not going to continue in that manner, not all that new to computers. :) This is my first real attempt to install Bacula. The basic tests work, it seems happy with MySQL (I was already using MySQL for another project else I'd have used PostgreSQL) and so on. But it can't seem to mount, label, or otherwise access my blank DVD-RW. I was able to format it externally. Here are some of my notes: - - - - - *label The defined Storage resources are: 1: File 2: DVD Select Storage resource (1-2): 2 Enter new Volume name: DVDTest001 Automatically selected Pool: Default Connecting to Storage daemon DVD at 192.168.10.12:9103 ... Sending label command for Volume "DVDTest001" Slot 0 ... 3999 Device "DVD Writer" not found or could not be opened. Label command failed for Volume DVDTest001. Do not forget to mount the drive!!! *mount The defined Storage resources are: 1: File 2: DVD Select Storage resource (1-2): 2 3999 Device "DVD Writer" not found or could not be opened. * I don't know. It's almost like it's trying to mount the disc and, failing, assumes it can't access the disc. If it fails it should assume that it's a non-formatted disc, shouldn't it? Can you mount a blank disc under Linux? badb# mount -t cd9660 -o ro /dev/cd0 /cdrom mount_cd9660: /dev/cd0: Invalid argument badb# That same command line works fine if I insert a written disc (I mean a DVD+R that has content written to it, a complete file system). - - - - - Here's what I've done: - - - - - cd /usr/ports/sysutils/bacula-server make install clean cd /usr/ports/sysutils/dvd+rw-tools/ make rm work/.build_done.dvd+rw-tools-5.21.4.10.8._usr_local cd /usr/ports/sysutils/dvd+rw-tools/work cp /usr/ports/sysutils/bacula-server/work/bacula-1.38.2/patches/dvd+rw-tools-5.21.4.10.8.bacula.patch . patch < dvd+rw-tools-5.21.4.10.8.bacula.patch [I just wrote the patch syntax from memory, forgive me if I got it wrong here. Whatever I did at the time seemed to work, I got happy messages when I did it.] cd .. make install clean - - - - - I did this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM I'm now able to access the DVD writer as a writer and so on (I've formatted a DVD+RW, so it seems likely I did it right). I made sure the mounting directory has the correct permissions and used the mount command syntax from the configuration to mount a written DVD+R I had handy (collection of James Burke videos :) so I know that syntax is correct. (I might suggest a couple changes in the default config later, but that's a side issue. Well, it is for me.) - - - - - Running Jobs: JobId Level Name Status ====================================================================== 5 Full Client1.2005-12-22_10.52.54 is waiting on Storage DVD ==== - - - - - That's all it ever does, sits and waits. I'm guessing, of course, but it seems like it's stalling on the mount. Is this a known problem? Has anybody else tried DVD stuff on FreeBSD? On version 6? Did I miss something critical? Here's an excerpt from bacula-sd.conf: - - - - - # # A DVD device # Device { Name = "DVD-Writer" Media Type = DVD Archive Device = /dev/cd0 LabelMedia = yes; Random Access = Yes; AutomaticMount = yes; RemovableMedia = yes; AlwaysOpen = no; MaximumPartSize = 800M; RequiresMount = yes; MountPoint = /cdrom; MountCommand = "/sbin/mount -t cd9660 -o ro %a %m"; UnmountCommand = "/sbin/umount %m"; SpoolDirectory = /usr/backup; WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v" FreeSpaceCommand = "/etc/bacula/dvd-handler %a free" } - - - - - I can post my entire set of configs if necessary, but I thought this was getting long enough as it was. Before posting this I did search the announce, bugs, and user list archives with "freebsd dvd" (all the words) and found almost nothing on the subject. Oh, and if I forgot to mention it, I did successfully perform at least one backup to the File device. So I'm pretty sure Bacula is at least nominally working. More misc info: [this is a formatted blank DVD-RW] badb# dvd+rw-mediainfo /dev/cd0 INQUIRY: [DVDRW ][IDE 16X ][A190] GET [CURRENT] CONFIGURATION: Mounted Media: 1Ah, DVD+RW Current Write Speed: 4.0x1385=5540KB/s Write Speed #0: 4.0x1385=5540KB/s Write Speed #1: 2.0x1385=2770KB/s Speed Descriptor#0: 00/2295103 [EMAIL PROTECTED]/s [EMAIL PROTECTED]/s Speed Descriptor#1: 00/2295103 [EMAIL PROTECTED]/s [EMAIL PROTECTED]/s READ DVD STRUCTURE[#0h]: Media Book Type: 92h, DVD+RW book [revision 2] Media ID: PHILIPS/041 Legacy lead-out at: 2295104*2KB=4700372992 READ DISC INFORMATION: Disc status: complete Number of Sessions: 1 State of Last Session: complete Number of Tracks: 1 BG Format Status: suspended READ TRACK INFORMATION[#1]: Track State: complete Track Start Address: 0*2KB Free Blocks: 0*2KB Track Size: 2295104*2KB FABRICATED TOC: Track#1 : [EMAIL PROTECTED] Track#AA : [EMAIL PROTECTED] Multi-session Info: [EMAIL PROTECTED] READ CAPACITY: 2295104*2048=4700372992 badb# pkg_info | grep bacula bacula-client-1.38.2_1 The network backup solution (client) bacula-server-1.38.2_1 The network backup solution (server) badb# pkg_info | grep mysql mysql-client-4.1.15 Multithreaded SQL database (client) mysql-server-4.1.13 Multithreaded SQL database (server) From dmesg: FreeBSD 6.0-RELEASE #0: Wed Dec 21 23:28:20 PST 2005 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/BADB ... acd0: DMA limited to UDMA33, device found non-ATA66 cable acd0: DVDR <DVDRW IDE 16X/VER A190> at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: <DVDRW IDE 16X A190> Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [1 x 2048 byte records] The DVD writer is an Emprex, has the latest firmware as of a few weeks ago. I can get more info on it if necessary. (It's currently in a running system. Does anybody know a command to query the drive for its info? I'm afraid I'm still Windows-centric in my knowledge. System is non-production though, so pulling it apart will be a PITA, but not going to bring down any businesses.) Thanks much for any help you can give me. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users