On Fri, Dec 14, 2007 at 01:39:40PM -0300, Daniel Bareiro wrote: > Hi Michael. I've performed the btape test according to Bacula's manual > but I got a message saying Bacula doen't found the medium. > > sparky:~# btape -c /etc/bacula/bacula-sd.conf /dev/nst0 > Tape block granularity is 1024 bytes. > btape: butil.c:272 Using device: "/dev/nst0" for writing. > 14-Dec 13:11 btape: 3301 Issuing autochanger "loaded drive 0" command. > 14-Dec 13:11 btape: 3302 Autochanger "loaded drive 0", result: nothing > loaded. > 14-Dec 13:11 btape: 3301 Issuing autochanger "loaded drive 0" command. > 14-Dec 13:11 btape: 3302 Autochanger "loaded drive 0", result: nothing > loaded. > btape: btape.c:338 open device "Drive-1" (/dev/nst0): OK > *test > > === Write, rewind, and re-read test === > > I'm going to write 1000 records and an EOF > then write 1000 records and an EOF, then rewind, > and re-read the data to verify that it is correct. > > This is an *essential* feature ... > > 14-Dec 13:12 btape: 3301 Issuing autochanger "loaded drive 0" command. > 14-Dec 13:12 btape: 3302 Autochanger "loaded drive 0", result: nothing > loaded. > btape: btape.c:775 Bad status from rewind. ERR=dev.c:678 Rewind error on > "Drive-1" (/dev/nst0). ERR=No medium found. > >
looks like either the changer script or mtx cannot get a tape from the library into the drive. i'd back up a step or two and make sure mtx works as you would expect (i.e., can mtx -f /dev/sg2 next load the next tape, etc). if that work as you expect it should, load a tape into the drive with mtx, then run btape test without using the autochanger part and make sure that it runs without error. then we can work on putting the autochanger part back in. -- michael ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users