- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Connect the tape drive
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 02:00 PM
10-25-2004 02:00 PM
could suggest how can I connect it back except reboot it ? thx.
/tmp> tar -cvf /dev/st0 /tmp/*
tar: /dev/st0: Cannot open: No such device or address
tar: Error is not recoverable: exiting now
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 03:23 PM
10-25-2004 03:23 PM
Re: Connect the tape drive
/dev> mt status
/dev/tape: No such device or address
edp//dev> mt unlock
/dev/tape: No such device or address
edp//dev> mt offl
/dev/tape: No such device or address
edp//dev> mt -f /dev/st0 rewind
/dev/st0: No such device or address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 06:18 PM
10-25-2004 06:18 PM
SolutionDo a cat /proc/scsi/scsi to see if the device is present. If it is not, you can try to add it using the link I posted to you in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=725762
PS
If this is an option for you, you can try to reboot the system.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 08:20 PM
10-25-2004 08:20 PM
Re: Connect the tape drive
I use cat /proc/scsi/scsi to check , it is present , but I can't use it now , could suggest how to make it work ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 10:16 PM
10-25-2004 10:16 PM
Re: Connect the tape drive
echo add-single-device x x x x > /proc/scsi/scsi
Of course you have to replace the x with the lun configuration found in the current /proc/scsi/scsi or you can search the dmesg of the original discovery of the tape drive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 01:09 AM
10-26-2004 01:09 AM
Re: Connect the tape drive
Did you see if the st module is loaded ?
You can see it with lsmod.
If it's not loaded try
depmod
modprobe st
and verify if everything is ok.
If the module is loaded verify if it's in use
lsmod (count field not = zero).
If it is in use try to determine who is using it.
lsof /dev/st0
and, if possible, kill the process.
Unload (modprobe -r st) and reload (modprobe st), and verify if /dev/st0 is ok now.
If st is not loaded, load it (modprobe st).
Hope it helps.
Xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 08:01 PM
11-23-2004 08:01 PM
Re: Connect the tape drive
I try to use "modprobe -r st" and reload it ,
then run lsmod ,the result as below , I found that the "st" is unused status , is it the problem why I can't use it ? could suggest how can I make it work ? thx
Module Size Used by Not tainted
st 31396 0 (unused)
nfsd 85168 8 (autoclean)
lockd 58992 1 (autoclean) [nfsd]
sunrpc 88444 1 (autoclean) [nfsd lockd]
lp 9124 0 (autoclean)
parport 38816 0 (autoclean) [lp]
autofs 13620 0 (autoclean) (unused)
e1000 75808 1
floppy 57520 0 (autoclean)
sg 37228 0 (autoclean)
microcode 6848 0 (autoclean)
keybdev 2976 0 (unused)
mousedev 5624 0 (unused)
hid 22276 0 (unused)
input 6144 0 [keybdev mousedev hid]
usb-ohci 23176 0 (unused)
usbcore 80928 1 [hid usb-ohci]
ext3 89960 7
jbd 55060 7 [ext3]
ips 43484 8
sd_mod 13360 16
scsi_mod 112680 4 [st sg ips sd_mod]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 08:05 PM
11-23-2004 08:05 PM
Re: Connect the tape drive
# tar -cvf /dev/st0 /tmp/*
tar: /dev/st0: Cannot open: No such device
tar: Error is not recoverable: exiting now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 09:52 PM
11-23-2004 09:52 PM
Re: Connect the tape drive
try
dmesg | grep tape
and see if you receive an answer like that
Attached scsi tape xxx at scsi0, channel 0, id 2, lun 0
where xxx is your tape device.
Verify if you have a /dev/xxx or /dev/some-subdirectory/xxx.
then try
mt -f /dev/xxx status.
If nothing like that is appearing for you then your system in not reconigsing you tape.
Hope this helps.
regards.
Xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 12:12 AM
11-24-2004 12:12 AM
Re: Connect the tape drive
the "/bin/dmesg |grep tape" can't find anything,
as my previous , the problem may be due to the st is "unused" , how to enable it ? thx in advance .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 12:27 AM
11-24-2004 12:27 AM
Re: Connect the tape drive
if dmesg | grep tape does not present any information, it's because your system cannot see your tape drive.
The fact that st module has a usecount of zero is because this module was never used since last boot, and it was never used because there are no tape drives usable in your system.
How your tape drive is connected to the system ? Using a pci card ? What are the pci card and tape drive manufactors and models ?
Please send us the output of
dmesg
cat /proc/pci
cat /proc/scsi/scsi
lspci -vv
regards,
xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:38 AM
11-24-2004 01:38 AM
Re: Connect the tape drive
it is by scsi connection ,
please find the attached files
dmesg --> dmesg.txt
cat /proc/pci --> pci.txt
cat /proc/scsi/scsi --> scsi.txt
lspci -vv --> lspcivv.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:45 AM
11-24-2004 01:45 AM
Re: Connect the tape drive
pci.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:55 AM
11-24-2004 01:55 AM
Re: Connect the tape drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 01:56 AM
11-24-2004 01:56 AM
Re: Connect the tape drive
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 03:55 AM
11-24-2004 03:55 AM
Re: Connect the tape drive
as I can see your tape is attached to an Adaptec scsi controller and you are not loading the aic7xxx module.
Try
depmod -a
modprobe aic7xxx
and see the messages that appears in the log.
After that try to access the tape (/dev/st0).
I'll wait for your feedback about that.
xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 12:03 PM
11-24-2004 12:03 PM
Re: Connect the tape drive
it is OK now, I can use /dev/st0 , I will give you 100 marks ,
may I ask one more question , what is the mean "aic7xxx" , is it stardand tape driver ? I also found it in my other server . thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 10:01 PM
11-24-2004 10:01 PM
Re: Connect the tape drive
aic7xxx is the standard driver (module) for the Adaptec scsi controller.
I guess that you have installed that controller after the installation of the RH operating system because when you install red hat on a server that has this controller it is automaticaly detected.
Don't forget to put a reference in the /etc/modules.conf for aic7xxx to have the module dinamicaly loaded.
Some thing like that
alias scsi_hostadapter aic7xxx
Verify if you have the module aic79xx and if it works for you. I thing that module is newer and better for your controller.
Best regards,
Xyko