On Thu, 14 Sep 2006, Jack wrote:

I didnt see the tape verification stuff, I'll try that now. Also I'd like to report that i got the tape to unmount successfully by putting in the mt -f $4 offline in the mtx-changer :)

For what it's worth, the attached patch is one that I must apply to mtx-changer each time I install bacula, this for a Breece Hill Q47. Perhaps it will be of use to others as well for other changers, at least as a reference. Standard disclaimers apply; if you bork your script you can undo the patch. :)

   -- Michael
--- mtx-changer 2006-09-05 12:02:54.000000000 -0500
+++ mtx-changer.good    2006-08-11 14:37:56.000000000 -0500
@@ -132,8 +132,8 @@
       debug "Doing mtx -f $ctl unload $slot $drive"
 #
 # enable the following line if you need to eject the cartridge
-#     mt -f $device offline
-#     sleep 10
+      mt -f $device offline
+      sleep 10
       ${MTX} -f $ctl unload $slot $drive
       ;;
 
@@ -144,8 +144,8 @@
 #
 # Increase the sleep time if you have a slow device
 # or remove the sleep and add the following:
-#     wait_for_drive $device
-      sleep 15
+      wait_for_drive $device
+#      sleep 60
       exit $rtn
       ;;
 
@@ -153,7 +153,7 @@
       debug "Doing mtx -f $ctl -- to list volumes"
       make_temp_file
 # Enable the following if you are using barcodes and need an inventory
-#     ${MTX} -f $ctl inventory
+      ${MTX} -f $ctl inventory
       ${MTX} -f $ctl status >${TMPFILE}
       rtn=$?
       cat ${TMPFILE} | grep " *Storage Element [0-9]*:.*Full" | awk "{print 
\$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to