Dear Josh,

Thanks for releasing the vchanger script and HOWTO!

However, I found a problem around line 94:

  # Create nextmag file to hold max magazine index used
  if [ ! -f "${statedir}/nextmag" ]; then
     echo 0 >"${statedir}/nextmag"

It created the nextmag file with content "0". That makes the following section allways gives error "nextmag has invalid value".

  # Check nextmag value
  nextmag=`cat "${statedir}/nextmag"`
if [ $? -ne 0 -o "${nextmag}" == "" -o $nextmag -lt 1 -o $nextmag -gt 99 ]; then
     echo "${statedir}/nextmag has invalid value"
     return 1
  fi


Also, before and after changed the script to not gives error, I still got the error after issue the "label barcodes" command:
   Connecting to Storage daemon USBChanger1 at 192.168.1.1:9103 ...
   3306 Issuing autochanger "slots" command.
   Device "usb-changer-1" has 0 slots.
   No slots in changer to scan.

I run the script by hand to test output:
[EMAIL PROTECTED] bacula]# ./vchanger /etc/bacula/vchanger1.conf slots
7

It reports 7 slots correctly. Could you give me some hints? I am using Bacula 1.38.11 on RHEL 4 clone.


Many thanks!
Michael


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to