Hello :-) The issue seems to be with vchanger 0.8.5 and auto-mounting; it may be specific to Slackware 13.0.
After disabling auto-mounting, manually mounting the USB HDD and reconfiguring Bacula sd to suit, the "label barcodes" command worked. Best Charles -----Original Message----- From: Charles [mailto:charl...@auroville.org.in] On Behalf Of bacula-us...@catcons.co.uk Sent: 28 February 2010 22:17 To: 'bacula-users@lists.sourceforge.net' Subject: "update slots scan" gets "ERR=Unknown error during program execvp" Hello :-) This cross-posted from the vchanger mailing list because the problem cause may be in either bacula-sd or vchanger -- or both, or neither if it's my error as is most likley :-) I'm setting up bacula 5.0.1 with vchanger 0.85 following the (very good, thanks) procedure in vchangerHowto.html from the tarball. All was going well until issuing the bconsole "label barcodes" command (details below). Investigating using the bconsole "update slots scan" command with the bacula-sd running with debug in the foreground gave: [CODE] 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:196-0 Run program=/usr/bin/vchanger /etc/bacula/changer1.conf load 1 /var/bacula/changer1/0/drive0 0 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:207-0 load slot 1, drive 0, bad stats=Unknown error during program execvp. 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:214-0 load slot 1 status=268435711 [/CODE] Stopping Bacula and simulating the apparent problem command, it ran OK: [CODE] r...@ps1:~# /usr/bin/vchanger -u bacula -g bacula /etc/bacula/changer1.conf load 1 /var/bacula/changer1/0/drive0 0 r...@ps1:~# echo $? 0 [/CODE] That's the essence of the problem. What follows is more detail in case it helps. I tried re-initialising vchanger's on-disk data by: {CODE] r...@ps1:~# vchanger -u bacula -g bacula /etc/bacula/changer1.conf initmag 1 <== to automount magazine in bay 1 (/mnt/vchanger/efa8a079-ab80-41c9-b018-85810dd3c45d) already initialized as magazine 1 r...@ps1:~# cd /mnt/vchanger/efa8a079-ab80-41c9-b018-85810dd3c45d/ -rw-r----- 1 bacula bacula 1 2010-02-28 20:39 loaded0 r...@ps1:/mnt/vchanger/efa8a079-ab80-41c9-b018-85810dd3c45d# rm * r...@ps1:/var/bacula# mv changer1/ changer1.aside r...@ps1:/var/bacula# vchanger -u bacula -g bacula /etc/bacula/changer1.conf initmag 1 created magazine 1 in bay 1 [/mnt/vchanger/efa8a079-ab80-41c9-b018-85810dd3c45d] [/CODE] Tested again but got same results. Here's more detail of the testing, starting with the bconsole "label barcodes" command which got: [CODE] Connecting to Storage daemon changer1 at ps1:9103 ... Connecting to Storage daemon changer1 at ps1:9103 ... 3306 Issuing autochanger "slots" command. Device "usb-changer" has 5 slots. Connecting to Storage daemon changer1 at ps1:9103 ... 3306 Issuing autochanger "list" command. No Volumes found to label, or no barcodes. [/CODE] The bconsole "update slots scan" command got: [CODE] The defined Storage resources are: 1: File 2: changer1 Select Storage resource (1-2): 2 Connecting to Storage daemon changer1 at ps1:9103 ... 3306 Issuing autochanger "slots" command. Device "usb-changer" has 5 slots. Connecting to Storage daemon changer1 at ps1:9103 ... 3306 Issuing autochanger "list" command. Connecting to Storage daemon changer1 at ps1:9103 ... 3301 Issuing autochanger "loaded? drive 0" command. 3302 Autochanger "loaded? drive 0", result: nothing loaded. 3304 Issuing autochanger "load slot 1, drive 0" command. 3992 Bad autochanger "load slot 1, drive 0": ERR=Unknown error during program execvp. Results=magazine bay containing slot 1 has no magazine mounted No VolName for Slot=1 InChanger set to zero. [snip similar for slots 2 to 5] [/CODE] bacula-sd, running in the foreground with debugging: [CODE] r...@ps1:~# bacula-sd -u bacula -g bacula -d 200 -dt -f -c /etc/bacula/bacula-sd.conf [snip] 28-Feb-2010 20:54:23 ps1-sd: dircmd.c:232-0 Do command: readlabel 28-Feb-2010 20:54:23 ps1-sd: dircmd.c:603-0 Try changer device usb-changer-drive-0 28-Feb-2010 20:54:23 ps1-sd: dircmd.c:619-0 Found changer device usb-changer-drive-0 28-Feb-2010 20:54:23 ps1-sd: dircmd.c:632-0 Found device usb-changer-drive-0 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:132-0 autoload: slot=1 InChgr=1 Vol= 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:302-0 Locking changer usb-changer 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:272-0 Run program=/usr/bin/vchanger /etc/bacula/changer1.conf loaded 1 /var/bacula/changer1/0/drive0 0 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:274-0 run_prog: /usr/bin/vchanger /etc/bacula/changer1.conf loaded 1 /var/bacula/changer1/0/drive0 0 stat=0 result=0 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:311-0 Unlocking changer usb-changer 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:302-0 Locking changer usb-changer 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:189-0 Doing changer load slot 1 "usb-changer-drive-0" (/var/bacula/changer1/0/drive0) 28-Feb-2010 20:54:23 ps1-sd: dev.c:1924-0 close_dev "usb-changer-drive-0" (/var/bacula/changer1/0/drive0) 28-Feb-2010 20:54:23 ps1-sd: dev.c:1931-0 device "usb-changer-drive-0" (/var/bacula/changer1/0/drive0) already closed vol= 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:196-0 Run program=/usr/bin/vchanger /etc/bacula/changer1.conf load 1 /var/bacula/changer1/0/drive0 0 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:207-0 load slot 1, drive 0, bad stats=Unknown error during program execvp. 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:214-0 load slot 1 status=268435711 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:311-0 Unlocking changer usb-changer 28-Feb-2010 20:54:23 ps1-sd: autochanger.c:220-0 After changer, status=268435711 [snip] [/CODE] As far as I can tell, vchanger is working OK; perhaps the problem is in bacula-sd. Any ideas? Best Charles ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users