On Sun, 25 Dec 2005 10:28:43 -0800 "Jeffrey J. Nonken" <[EMAIL PROTECTED]> wrote:
> For now I'm going to assume I want to return 0, quick-fix this script, > and try the new settings. Gah. Now I can mount it but not label it! *mount The defined Storage resources are: 1: File 2: DVD Select Storage resource (1-2): 2 3002 Device "DVD" (/BaculaDVD/fakedevicefile) is mounted. *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 ... End of Volume "DVDTest001" at 0:0 on device "DVD" (/BaculaDVD/fakedevicefile) (part_size=0, free_space=0, free_space_errno=32, errmsg=block.c:953 Read zero bytes at 0:0 on device "DVD" (/BaculaDVD/fakedevicefile). ). 3912 Failed to label Volume: ERR=block.c:953 Read zero bytes at 0:0 on device "DVD" (/BaculaDVD/fakedevicefile). Label command failed for Volume DVDTest001. Do not forget to mount the drive!!! * Looks like it's trying to read back from the archive device to see whether the label worked? Device { Name = "DVD" Media Type = DVD Archive Device = /BaculaDVD/fakedevicefile LabelMedia = yes; Random Access = Yes; AutomaticMount = yes; RemovableMedia = yes; AlwaysOpen = no; MaximumPartSize = 800M; RequiresMount = yes; MountPoint = /BaculaDVD/mnt; MountCommand = "/BaculaDVD/mountcd.sh %m"; UnmountCommand = "/BaculaDVD/umountcd.sh %m"; SpoolDirectory = /usr/backup; WritePartCommand = "/usr/local/share/bacula/dvd-handler /dev/cd0 write %e %v" FreeSpaceCommand = "/usr/local/share/bacula/dvd-handler /dev/cd0 free" } badb# ls -l /BaculaDVD/ total 6 -rw-rw-r-- 1 bacula bacula 0 Dec 25 08:55 fakedevicefile drwxrwxr-x 2 bacula bacula 512 Dec 25 08:53 mnt -rwxrwxr-- 1 bacula bacula 57 Dec 25 08:56 mountcd.sh -rwxrwxr-- 1 bacula bacula 33 Dec 25 08:56 umountcd.sh badb# cat /BaculaDVD/mountcd.sh #!/bin/sh /sbin/mount -t cd9660 -o ro /dev/cd0 $1 exit 0 badb# cat /BaculaDVD/umountcd.sh #!/bin/sh /sbin/umount $1 exit 0 Here I tested the mount and unmount scripts (again using a handy James Burke DVD): badb# ./mountcd.sh /BaculaDVD/mnt badb# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) /dev/cd0 on /BaculaDVD/mnt (cd9660, local, read-only) badb# ls /BaculaDVD/mnt video_ts zrnid ztemp badb# ./umountcd.sh /BaculaDVD/mnt/ badb# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s1e on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) I think I'm going to go ahead and set up that Linux system I was thinking about, as a parallel effort. I really want to get my backups working soon. -- 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_id=7637&alloc_id=16865&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users