[arch-general] Unable to use tape drive
Good morning. I have been trying to my Dell LTO-120 SCSI Tape Drive on Arch without success. I have tried to run $ modprobe st, but still, I have no /dev/st0 and neither /dev/nst0. dmesg | grep -i tape shows nothing too. Is there anything I'm missing here? Dell's user manual says that the drive should work out of the box on linux. Best regards, Vitor
On Wed, Aug 24, 2011 at 8:49 AM, Vitor Garcia <vitorlopesgarcia@gmail.com> wrote:
I have been trying to my Dell LTO-120 SCSI Tape Drive on Arch without success.
I have tried to run $ modprobe st, but still, I have no /dev/st0 and neither /dev/nst0. dmesg | grep -i tape shows nothing too.
Is there anything I'm missing here? Dell's user manual says that the drive should work out of the box on linux.
I have never used a tape-drive, so don't know exactly what should be going on. However, the usual behavior is that the kernel tells udev that a new device has appeared. Udev then modprobes the correct driver for you based on the modalias of the device. There should be no need to manually modprobe the st module (in some cases this is necessary, but I'm pretty sure st is not one of them). To get a better idea of what is happening, check `dmesg` for any messages regarding your tape-drive. You could also do `rmmod st && modprobe -v st` and check the output to the console and dmesg for any errors. Finally, I'd find the path to your device in /sys and look in the modalias file. This needs to match one of the modalias expressions you see in `modinfo st`. A simple way to check this is to `modprobe -R <your modalias>`. It should tell you the name of the modules it matches with. Cheers, Tom
On Wed, 24 Aug 2011 15:53:47 +0200 Tom Gundersen <teg@jklm.no> wrote: Thanks very much for the tips, but I haven't found my device on /sys
To get a better idea of what is happening, check `dmesg` for any messages regarding your tape-drive. You could also do `rmmod st && modprobe -v st` and check the output to the console and dmesg for any errors.
modprobe -v st shows: insmod /lib/modules/2.6.33-ARCH/kernel/drivers/scsi/st.ko
Finally, I'd find the path to your device in /sys and look in the modalias file. This needs to match one of the modalias expressions you see in `modinfo st`. A simple way to check this is to `modprobe -R <your modalias>`. It should tell you the name of the modules it matches with.
/sys/class/scsi_tape is empty.
On Wed, Aug 24, 2011 at 2:37 PM, Vitor Garcia <vitorlopesgarcia@gmail.com> wrote:
On Wed, 24 Aug 2011 15:53:47 +0200 Tom Gundersen <teg@jklm.no> wrote:
Thanks very much for the tips, but I haven't found my device on /sys
Can you see your device in lspci? That's usually a good startingpoint. Then I'd use the "tree /sys | less" to find the device there based on the first number in your lspci output. There is probably a better way, but usually I start from the device node, which obviously can't be done in this case. -t
On Wed, Aug 24, 2011 at 12:19 PM, Vitor Garcia <vitorlopesgarcia@gmail.com> wrote:
Good morning.
I have been trying to my Dell LTO-120 SCSI Tape Drive on Arch without success.
I have tried to run $ modprobe st, but still, I have no /dev/st0 and neither /dev/nst0. dmesg | grep -i tape shows nothing too.
Is there anything I'm missing here? Dell's user manual says that the drive should work out of the box on linux.
Best regards, Vitor
Offtopic: How much does one tape store? How many MBs?
On Wed, 2011-08-24 at 20:11 +0530, Madhurya Kakati wrote:
On Wed, Aug 24, 2011 at 12:19 PM, Vitor Garcia <vitorlopesgarcia@gmail.com> wrote:
Good morning.
I have been trying to my Dell LTO-120 SCSI Tape Drive on Arch without success.
I have tried to run $ modprobe st, but still, I have no /dev/st0 and neither /dev/nst0. dmesg | grep -i tape shows nothing too.
Is there anything I'm missing here? Dell's user manual says that the drive should work out of the box on linux.
Best regards, Vitor
Offtopic: How much does one tape store? How many MBs?
http://en.wikipedia.org/wiki/Linear_Tape-Open The LTO-120 is an LTO4 drive, storing 800GB native, sold as 1.6TB compressed.
On Wed, 2011-08-24 at 08:49 +0200, Vitor Garcia wrote:
Good morning.
I have been trying to my Dell LTO-120 SCSI Tape Drive on Arch without success.
I have tried to run $ modprobe st, but still, I have no /dev/st0 and neither /dev/nst0. dmesg | grep -i tape shows nothing too.
Is there anything I'm missing here? Dell's user manual says that the drive should work out of the box on linux.
Please paste your dmesg output somewhere. The SCSI controller that connects the drive is probably not even recognized.
On Wed, 24 Aug 2011 16:51:16 +0200 Jan de Groot <jan@jgc.homeip.net> wrote:
Please paste your dmesg output somewhere. The SCSI controller that connects the drive is probably not even recognized.
dmesg | grep -i tape shows nothing dmesg | grep -i scsi shows nothing too. As the device is conected to a sata port, I have tried: dmesg | grep -i sata ata1: SATA link down (SStatus 1 SControl 310) ata1: limiting SATA link speed to 1.5 Gbps (The 2 above lines repeats hundreds of times) But I'm not sure it has any connection to the tape drive. Any ideas? Thanks for the help!
Am 24.08.2011 14:42, schrieb Vitor Garcia:
As the device is conected to a sata port, I have tried:
dmesg | grep -i sata
ata1: SATA link down (SStatus 1 SControl 310) ata1: limiting SATA link speed to 1.5 Gbps (The 2 above lines repeats hundreds of times)
But I'm not sure it has any connection to the tape drive.
Any ideas?
I haven't seen SATA tapes so far, but I guess it should behave the same as SCSI (as in: detect the drive, autoload the 'st' module). Can you show a bigger excerpt from dmesg from the area around the ata1 stuff above? Does anything change if you actually insert a tape?
On Wed, 2011-08-24 at 14:42 +0200, Vitor Garcia wrote:
Any ideas?
Yes, provide us with the full outputs of dmesg and lspci. We can't do much with some random greps.
On 11-08-24 08:49, Vitor Garcia wrote:
Good morning.
I have been trying to my Dell LTO-120 SCSI Tape Drive on Arch without success.
I have tried to run $ modprobe st, but still, I have no /dev/st0 and neither /dev/nst0. dmesg | grep -i tape shows nothing too.
Is there anything I'm missing here? Dell's user manual says that the drive should work out of the box on linux.
Best regards, Vitor
Though I'm past arch user, two common things that comes to mind: 1) is your scsi (sas) controller recognized at all ? (I assume you don't actually try to connect that to a sata port) Maybe you forgot about proper driver in your kernel ? 2) have you rescanned scsi bus after powering on the drive ? (shouldn't be necessary with modern sas controller and pretty new lto drive, but still ... won't hurt) ad.1 You should have some entry in /proc/scsi For dmesg entries, check your boot time dmesg (if I remember correctly, arch used to save that to /var/log/dmesg.log). Any boot time info might be long gone when just checked by dmesg. ad.2 echo "- - -" >/sys/class/scsi_host/hostNNN/scan Where NNN is the number of controller where your tape drive is attached. For example, in my case (I have lto2 driver and old u160 controller): ls -al /proc/scsi/sym53c8xx/ -rw-r--r-- 1 root root 0 2011-08-24 20:20 6 -rw-r--r-- 1 root root 0 2011-08-24 20:20 7 then echo "- - -" >/sys/class/scsi_host/host6/scan then echo "- - -" >/sys/class/scsi_host/host7/scan Then you should have devices in /dev after that. In dmesg you should have something like (after rescan): scsi 6:0:6:0: Sequential-Access HP Ultrium 2-SCSI F63D PQ: 0 ANSI: 3 scsi target6:0:6: Beginning Domain Validation scsi target6:0:6: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 62) scsi target6:0:6: Domain Validation skipping write tests scsi target6:0:6: Ending Domain Validation scsi 6:0:6:0: Attached scsi generic sg2 type 1 st: Version 20100829, fixed bufsize 262144, s/g segs 256 st 6:0:6:0: Attached scsi tape st0 st 6:0:6:0: st0: try direct i/o: yes (alignment 4 B)
participants (6)
-
Jan de Groot
-
Madhurya Kakati
-
Michal Soltys
-
Thomas Bächler
-
Tom Gundersen
-
Vitor Garcia