>I am using amanda-2.4.2p2 on a dell powervault 120 DLT7000. When I try
>to label a tape in slot 2-6 , the folowing message appears:
>...
>rewinding, reading label, reading label: Input/output error
That could be normal when a brand new, never been written on, tape is
first loaded.
>rewinding, writing label wiss-staff_daily02, checking label
>amlabel: reading label: Input/output error
But not being able to read back what it just wrote is bad.
>On the other hand, if I try to label the tape in slot 1:
>...
>rewinding, reading label, not an amanda tape
Which probably means this tape has been written before.
>rewinding, writing label wiss-staff_daily01, checking label
>amlabel: no label found, are you sure /dev/nst0 is non-rewinding?
And that matches the first problem -- it cannot read back what it wrote.
My first guess would be a hardware problem. Or maybe a OS/drive
configuration problem.
Try this (but note that it will destroy any data on the tape). First,
pick any file larger than 32 KBytes. Then:
amtape wiss-staff_daily slot 1 # or use one of the other slots
f=the_test_file_you_picked # see above
mt -f /dev/nst0 rewind # make sure it's ready/rewound
dd if=$f of=/dev/nst0 bs=32k # write to tape
mt -f /dev/nst0 rewind # go back to BOT
dd if=/dev/nst0 of=/tmp/amanda.label bs=32k # read it back
cmp $f /tmp/amanda.label # make sure it's the same
rm /tmp/amanda.label # cleanup
amtape wiss-staff_daily eject # unload the tape
None of this should generate any errors, and the cmp should match.
The mt's and dd's emulate what Amanda does when it labels a tape (the
amtape calls just get the tape loaded and unloaded -- feel free to
use some other program if you want to take Amanda completely out of
the test). If mt/dd/cmp doesn't work, neither will Amanda, and the
problem is somewhere in the hardware or OS.
>Bram.
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]