[SOLVED] Exabyte vxa 3 tape drive - mt -f /dev/nst0 no such address or device
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@**** log]# dmesg |grep EXA
Vendor: EXABYTE Model: VXA-3 Rev: 3233
[root@***** log]# dmesg |grep tape
Attached scsi tape st0 at scsi0, channel 1, id 3, lun 0
st0: Write not multiple of tape block size.
st0: Write not multiple of tape block size.
The first three lines certainly indicate that the tape drive is mapped to /dev/st0, and we know that /dev/nst0 is included as the non-rewinding mode.
The last two lines interest me. I wonder if they indicate that the tape drive is not working properly. Can you physically access the tape drive? Maybe if you remove the SCSI cable, clean the contacts, and reattach the cable we would learn something helpful in dmesg or in the /var/log/messages after the device is reattached. If possible clean the contacts on both ends of the cable.
Another thought. Is there a tape already loaded in the drive? If so then remove it. The tape may be bad. The error message may pertain to a bad tape cartridge. Try using a different tape cartridge.
Last edited by stress_junkie; 01-04-2011 at 12:04 PM.
Well will re attaching the SCSI cable require a reboot? (I have replaced the cable with a brand new one straight out of the bag) I was under the impression the OS will only find the SCSI devices upon boot. I cannot re-boot at the time being. Hopefully tomorrow, because good 'ole reboot, in my opinion is one of the best troubleshooting options.
Well will re attaching the SCSI cable require a reboot? (I have replaced the cable with a brand new one straight out of the bag) I was under the impression the OS will only find the SCSI devices upon boot. I cannot re-boot at the time being.
I don't know about RHEL 4 but I believe that RHEL 5 and anything more modern will automatically detect devices when they are attached. If you have already changed the cable then don't bother with this.
Quote:
Originally Posted by davide123
Hopefully tomorrow, because good 'ole reboot, in my opinion is one of the best troubleshooting options.
You and me both.
Quote:
Originally Posted by davide123
And no, there is no tape in the drive
Okay, good, and bad. If only it were that simple.
That error message that I mentioned above may indicate that the tape drive is not working. Can you attach the tape drive to another machine to test it?
Replace the “#” with the number of the SCSI bus to be rescanned.
I show host0 & host1 on my machine. I have a RAID controller/card on my machine and I am worried about rescanning the wrong host#.... Do you know how I would figure out which host# I should issue this command with?
as per above I am guessing
Quote:
scsi: Device offlined - not ready after error recovery: host 0 channel 1 id 3 lun 0
UPDATE!!
Well scratch that I guess...
i tried:
Code:
[root@stpweb2 ~]# echo "- - -" > /sys/class/scsi_host/host0/scan
[root@**** ~]# mt -f /dev/nst0 status
/dev/nst0: No such device or address
[root@***** ~]# mt -f /dev/st0 status
/dev/st0: No such device or address
[root@***** ~]# echo "- - -" > /sys/class/scsi_host/host0/scan
[root@***** ~]# mt -f /dev/st0 status
/dev/st0: No such device or address
[root@***** ~]# echo "1" > /sys/class/scsi_host/host0/scan
[root@***** ~]# mt -f /dev/st0 status
/dev/st0: No such device or address
[root@**** ~]# echo "0" > /sys/class/scsi_host/host0/scan
[root@**** ~]# mt -f /dev/st0 status
/dev/st0: No such device or address
[root@***** ~]# echo "2" > /sys/class/scsi_host/host0/scan
[root@***** ~]# mt -f /dev/st0 status
/dev/st0: No such device or address
[root@**** ~]# echo "1 2 0" > /sys/class/scsi_host/host0/scan
[root@**** ~]# mt -f /dev/st0 status
/dev/st0: No such device or address
no joy.... I am just waiting for an ok to reboot the machine. I am thinking switching the "bad" tape drive while the "good" machine is on wont do any good, I am thinking I will have to reboot that as well. (Also RHEL 4)
So Once I get the ok to reboot the "bad" machine I will and hopefully it will pick up the tape drive.
UPDATE #2!!
So I was able to re-boot the server. It picked up the Tape Drive.
Code:
[root@**** Linux]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN
However, It will not take a tape. I put a tape in it blinks a green center light, then blinks the 2 outside amber lights and spits the tape back out.
Not Sure How To Get Around This?
I did put in a support ticket email to Tandberg, on their site the 2 amber lights indicate "unrecoverable error" I have tried power cycling the tape drive, different tapes, and reboot of the server all no joy....
Thank you for submitting your Technical Support email request. We have opened a new case for, Case ID 261693.
If this is SCSI connect please power off the drive and your Linux server and disconnect the VXA-3 from the bus and power up the drive. Insert a tape while the drive is disconnected, If the drive continues to eject the tape. The drive needs service. Please call Technical support at 303 417-7792 and reference the case # 261693 for assistance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.