On 11 Jan 2007 at 22:05, Thomas Glatthor wrote: > Dan Langille schrieb: > > I'm setting up a NEO 2000, and I'm seeing this: > > > > $ sudo /usr/local/sbin/btape -c /usr/local/etc/bacula-sd.conf > > /dev/nsa0 > > Tape block granularity is 1024 bytes. > > btape: butil.c:286 Using device: "/dev/nsa0" for writing. > > 11-Jan 15:37 btape: 3301 Issuing autochanger "loaded? drive 0" > > command. > > 11-Jan 15:37 btape: 3302 Autochanger "loaded? drive 0", result is > > Slot 1. > > 11-Jan 15:37 btape: 3301 Issuing autochanger "loaded? drive 0" > > command. > > 11-Jan 15:37 btape: 3302 Autochanger "loaded? drive 0", result is > > Slot 1. > > btape: btape.c:368 open device "NEO 2000" (/dev/nsa0): OK > > * > > > > Should I be concerned about that "loaded?" string? I've never seen > > that question mark before. > > > > $ bconsole -c /usr/local/etc/bconsole.conf > > Connecting to Director system100.example.com:9101 > > 1000 OK: system100-dir Version: 2.0.0 (04 January 2007) > > Enter a period to cancel a command. > > *update slots > > Automatically selected Catalog: MyCatalog > > Using Catalog "MyCatalog" > > The defined Storage resources are: > > 1: File > > 2: NEO > > Select Storage resource (1-2): 2 > > Connecting to Storage daemon NEO at system100.example.com:9103 ... > > 3306 Issuing autochanger "slots" command. > > Device "NEO 2000" has 0 slots. > > No slots in changer to scan. > > * > > > > What? no slots? but.... > > > > $ sudo /usr/local/sbin/rc-chio-changer /dev/ch0 slots > > 29 > > > > $ grep Changer /usr/local/etc/bacula-sd.conf > > Changer Command = "/usr/local/sbin/rc-chio-changer %c %o %S %a %d" > > Changer Device = /dev/ch0 > > > > Clues? Ideas? Thanks.
> i never noticed the ? in 1.38, but with 2.0.0 and ? it is still working.... According to the changelog, it came in with version 2.0.0 > > /dev/nsa0 == freebsd? Yes. > for solaris i have to change one line in the mtx-changer-script to have slots > in my neo. > > from > > cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$3 > > \$4}" | sed "s/Full *\(:VolumeTag=\)*// > to > > cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$3 > > \$4}" | sed "s/Full:VolumeTag=//" It was very hard to see the changes there. It looks like you removed the (...) at the end. > after that i have a lot of slots in my changer :) > > it looks like sed is not working identically on linux and solaris My issue has been fixed. It was a permissions issue. We did this: chmod g+rw /dev/ch0 <= the changer There are several places that need permission checked when setting up Bacula: /dev/nsa0 <= tape drive /dev/ch0 <= the changer /usr/local/sbin/rc-chio-changer (or whatever one uses for autochanging) /bin/chio (if you are using that) Really, the best thing to do is this test AS the bacula user via something like su or sudo... -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- 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