[EMAIL PROTECTED] wrote: > Hi Josh > > thanks again for your quick answer. > > I think I have understood the theoratical configuration of the virtuel > autochanger > > But now I have a practical question: > I configured the autochanger as discripted in the Howto. > If I want to label the volume (Howto 9.1) I got the following error: > 3306 Issuing Autochanger "slot" command > Device usb-changer-1 has 0 slots > No slots in changer to scan > > Than I tested to mount the autochanger via the bconsole > Here I got the following error: > 3999 Device "usb-changer-1 not found or could not be opened > > I took a look at the mailing list and found some entries > But I could not find a failure in my config. > > Here my Config-Files: > > /etc/bacula/bacula-sd.conf > ... > Autochanger { > Name = "usb-changer-1" > Device = usb-changer-1-drive-0 > Changer Command = "/etc/bacula/vchanger %c %o %S %a %d" > Changer Device = "/etc/bacula/usbchanger1.conf" > } > > Device { > Name = usb-changer-1-drive-0 > Drive Index = 0 > Autochanger = yes; > DeviceType = File > MediaType = File > ArchiveDevice = /var/lib/bacula/usbchanger1/drive0 > RemovableMedia = no; > Random Access = yes; > } > ... > > /etc/bacula/bacula-dir.conf > ... > Storage { > Name = usbchanger1 > Address = 136.8.5.24 > SDPort = 9103 > Password = "secret" > Device = usb-changer-1 > Media Type = File > Autochanger = yes; > } > > ... > > /etc/bacula/usbchanger1.conf > ... > baculasd="usbchanger1" > baculasd_user=bacula > bconsole=/usr/bin/bconsole > magslots=10 > maxdrive=0 > mountpoint=/mnt/usbchanger1/magazine > statedir=/var/lib/bacula/usbchanger1 > ... > > the directory /var/lib/bacula/usbchanger/drive0 exist > rwxrwx--- bacula.bacula >
There should be a directory /var/lib/bacula/usbchanger1. Within that directory there should be a symlink named drive0 whenever there is a slot loaded. For example, if slot 5 of magazine 01 is currently loaded in drive 0, then /var/lib/bacula/usbchanger1/drive0 should be a symlink pointing to regular file /mnt/usbchanger1/magazine/m01s005 on the USB disk. Also, make sure that the user bacula-sd runs as has read access to /etc/bacula/usbchanger1.conf and execute access for the vchanger script. On my system bacula-sd runs as bacula.disk and my vchanger script and vchanger config is in /etc/bacula, so I have: -rwxr-x--- 1 root disk 15737 Dec 1 2006 vchanger -rw-r----- 1 root disk 1372 Dec 7 2006 usbchanger1.conf Can you do this... $ su bacula $ sg disk $ /etc/bacula/vchanger /etc/bacula/usbchanger1.conf list and see a listing of the labels of the volumes in each slot? > I use debian Etch and Bacula 1.38.11 > > Any ideas??? > > Daniel > > ------------------------------------------------------------------------- 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