PDA

View Full Version : misleading errors at amcheck and amdump



daguerre
October 18th, 2010, 08:49 AM
Started getting a perl error on amcheck and amdump:

Can't locate auto/Amanda/Device/Device/swig_volume.al in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/5.8.8/Amanda/Device.pm line 34

amcheck-device log shows errors that look like SCSI errors at first:


Mon Oct 18 11:22:22 2010: amcheck-device: invoking /usr/sbin/mtx -f /dev/sg1 load 11 0
Mon Oct 18 11:22:41 2010: amcheck-device: robot: polling 'tape:/dev/nst0' to see if it's ready
Mon Oct 18 11:22:41 2010: amcheck-device: tape_is_tape_device: ioctl(MTIOCTOP/MTNOP) failed: Input/output error
Mon Oct 18 11:22:41 2010: amcheck-device: Device tape:/dev/nst0 error = 'File /dev/nst0 is not a tape device'
Mon Oct 18 11:22:41 2010: amcheck-device: Device tape:/dev/nst0 setting status flag(s): DEVICE_STATUS_DEVICE_ERROR, and DEVICE_STATUS_DEVICE_BUSY

But turns out the problem is just a corrupt or mislabeled tape, and relabeling with amlabel solves the problem (if only by making that tape no longer the next in the rotation).

Thanks to djmitche at the amanda IRC channel for figuring this out!