As I mentioned in my previous message I'm still having problems with the glue scripts and making Amanda work on FreeBSD with my HP SureStore 24x6 autoloader.
chg-chio - Works perfectly except for the fact that it doesn't know that there is a cleaning tape in slot 6 and thus this causes problems. I did have to modify the script to fix a typo and a missing brace, though. chg-zd-mtx - Won't work because some times it wants to access /dev/ch0 and /dev/sa0 and other times /dev/pass0 and /dev/pass1. I've actually hacked the chg-zd-mtx script so that it hardcodes all of the calls as appropriate but there seems to be issues with amserver not being able to access the devices and I haven't had luck hacking the source. There has got to be some way to make it work but I'll be damned if I know what it is. Here's what it shows when I try amcheck: Amanda Tape Server Host Check ----------------------------- Holding disk /var/backup/holding: 105446850 KB disk space available, that's plenty amcheck-server: slot mt:: tape_rdlabel: tape open: /dev/pass0: Operation not permitted: No such file or directory amcheck-server: slot mt:: tape_rdlabel: tape open: /dev/pass0: Operation not permitted: No such file or directory amcheck-server: slot mt:: tape_rdlabel: tape open: /dev/pass0: Operation not permitted: No such file or directory I'm assuming the problem is that it is trying to make a call to mt in some fashion, and since my device is defined as /dev/pass0 in my amanda.conf (Which won't work for mt, which needs to access it by the real device name) it's not going to go. If I change it so that it is /dev/ch0: Amanda Tape Server Host Check ----------------------------- Holding disk /var/backup/holding: 105446850 KB disk space available, that's plenty amcheck-server: could not get changer info: badly formed result from changer: "cannot open SCSI device '/dev/ch0' - Input/output error" So clearly the conflict is that sometimes it wants to use one device name and sometimes another.... chg-scsi - After fixing some permissions problems (both /dev/pass* and /dev/xpt* need to be rw by owner and group) amcheck actually seems to start running now, but it seems to die trying to load one of the tapes. Amanda Tape Server Host Check ----------------------------- Holding disk /var/backup/holding: 105446850 KB disk space available, that's plenty amcheck-server: slot 4: tape_rdlabel: tape open: /dev/pass0: Operation not permitted Very similar to what I saw with chg-zd-mtx, but not identical. Anybody have any suggestions as to where to start looking? Nicholas Paufler Systems Administrator The Internet Centre
