On Mon, 26 Feb 2007, Rex Wheeler wrote: >> Do you have the expertise to write something which can parse this >> information or would it need to go on the Bacula wishlist? > > I do have the expertise, but not sure about the time. It would be a > reasonable undertaking. It would involve: > > 1) Updating the storage daemon to send the appropriate SCSI commands to > inquire about error counts at mount and unmount times (or possibly with > each block read / write.) This shouldn't be too bad as the sg_logs > utility is out there and can access these statistics. The code could > either be pulled from that tool, or the storage daemon could just call > that tool and parse the results.
Loading/unloadng is handled by external scripts, so could be quite modular. > 2) Updating the configuration syntax and parser for the storage daemon > so the soft error recording logic could be enabled from the > configuration file. This is likely more complex > 3) Changing the protocol between the storage daemon and the director to > include the new soft error count information. > > 4) Changing the protocol between the director and the catalog service to > include the new soft error count information. > > 5) Changing the schema in the configuration store to hold this new > information. > > 6) Other stuff I haven't though of because I have only about an hour of > looking at the bacula source code. If this is done in an external program then things are somewhat easier. There is already some scripting logic in place to flag to the operator when cleaning is needed or other errors have been encountered and it would be terrific if more detailed stats were kept on individual tapes ------------------------------------------------------------------------- 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