General :: Detect The Scsi Device Without Restarting?
Mar 25, 2010
I am attaching a LTO-3 tape drivce into my RHEL5 linux machine. Every time i used to restart my machine to detect the tape drive is there any way to rescan the buses to detect the newly attached scsi devices. In solaris "devfsadm" and "iostat" is there. I need the same kind of thing in linux.
View 2 Replies
ADVERTISEMENT
Apr 11, 2011
In my understanding, the way /proc/scsi/scsi gets populated, /proc/paritions also gets populated in the same fashion. i.e. the description for first entry of /proc/scsi/scsi can be seen in the first entry of /proc/partitions and same for rest.
So, With this assumption, in my project, I used to relate first entry of /proc/scsi/scsi with first entry of /proc/partitions to get its total size and same for all entries.
But, I observed some differences in following scenario, where
1) The first 4 entries in /proc/scsi/scsi are SAN luns attached to my system and for which the actual device names in /dev/ are sda,sdb,sdc and sdd.
2) The last 4 entries are the internal HDDs on same system. In /dev/, their respective device names are sde,sdf,sdg & sdh.
(Output attached at end of the thread)
But in /proc/partitions, the device order is different.
You can see their respective sizes in /proc/partition output as well.
So, my question is, in this particular scenario, I can't relate the first entry of /proc/scsi/scsi with first entry of /proc/partition. i.e. scsi0:00:00:00 is not /dev/sde, because it is actually /dev/sda.
It seems that my assumption is wrong in this scenario.
Is there any way or mechanism to figure out actual device name for an entry in /proc/scsi/scsi in /dev/ directory?
How can my application should relate /proc/scsi/scsi entries with their respective device names and sizes?
View 2 Replies
View Related
Sep 17, 2009
Since May 12,2009. Our system lifekeeper has the error log "lifekeeper error: DEVICE FAILURE on SCSI device '/dev/add'", but it ran normally. Until last week, it failover to the standby server. The disk still running, the error still come out.
View 3 Replies
View Related
Oct 22, 2010
I have a Dell PE 600 box with 2 Adaptec 2110s U160 Single Channel RAID controller supported 6 HDDs.I am trying to install Ubuntu from a mini ISO - tried server / desktop / alternate as well. And also different Ubuntu versions.The mini installer runs upto setting the time zone (after configuring for DHCP et.al.) and then on the screen 'Detecting Disks and Other Hardware' hangs up.Now I am assuming its because of the fact that I have 2 of the above controllers - as I have another similar box with only 1 of the controllers and it installs/boots fine with no problems.Look forward to you suggestions/help and if there is any other info I can provide. I plan to set up Ubuntu 10.10 server on it. Btw I don't think its a Linux problem as SUSE 11.3 installs fine on the box.
View 1 Replies
View Related
Dec 4, 2010
just bought an adaptec 39160 PCI scsi controller and 34Gb drive and installed it on my computer.When i Booted it up a utility thing ran which said 'detecting array' and it found the drive and its size etc. it didn't go any further to allow my system to boot, so I rebooted and pressed CTRL + A to enter the adaptec scsi config. I changed something in there to make the disk non bootable (i Think) and rebooted the system.
It now hangs at :
'Detecting Array .....'
and does not show the drive details or the CTRL + A option to enter the utilities. So the only option I have had is to remove the adaptec controller ( and the system boots fine) the mother board is an Abit an8 ultra - probably about 4 years old and cpu is amd 64 I guess i have broken it and my remedy would be to reset the default options on the adaptec controller, but you can probably guess I have v. limited knowledge and have not used scsi before.
View 1 Replies
View Related
Jun 23, 2011
Some of our workstations have LTO's attached and they seem to drop off every now and again, the only thing which picks them up again (besides a reboot) is the famous rescan-scsi-bus script from here
The thing is that I'd like non-root users to be able to run this script, which in turn needs root to /proc/scsi/scsi
View 2 Replies
View Related
Jan 15, 2010
One of my servers contains two scsi enclosures. After hot removing a disk and hot adding another the new disk gets assigned a device file but the enclosure (in sysfs) doesn't want to see it.
How can I force the enclosure to recognise the hot added disk.
Situation in sysfs:
The link device is dead after hot removing the device and keeps vanished after hot adding the new device. The hot added device gets assigned a device file and it is reachable. Even
Doesn't change anything.
How can I force the link to be updated towards.
View 1 Replies
View Related
Feb 3, 2010
I'm using debian lenny, I bought a new Hp officejet j4500 scanner but the xsane is unable to detect the scanner. It says device not found. If I run xsane as root it detects and works properly it is obvious.I have added the user to scanner,saned and also to root user group.
View 2 Replies
View Related
Jul 15, 2011
How can i do to mount a scsi device ? it is a lg android phone ...
My dmesg shows :
View 12 Replies
View Related
Mar 11, 2010
I have a HP Proliant DL380 G3 server with Ubuntu Server 9.10
I have a HP Storageworks Ultrium 215 tape device
For some reason the Ubuntu server does not find the tape device
View 5 Replies
View Related
Jul 27, 2011
I created a new disk on our scsi san. I then ran the following command: echo "- - -" > /sys/class/scsi_host/host1/scan. did that command for each host. and in dmesg, it shows it found a device /dev/sdg. but when i do a fdisk -l. It never lists /dev/sdg. I just did this other day on another server and it worked fine like that. This is RH 4.8.
View 7 Replies
View Related
Dec 11, 2009
I added two scsi disk, but it is not listed in /dev. But the controller information is available from lspci code...
View 4 Replies
View Related
Sep 19, 2009
I am currently using fedora 11 kernel 2.6.29 version, i wanted to write device driver for usb to detect my own device. My project is radio with computer. My fm radio get connected to usb port so i need to write h/w interfacing program.
View 1 Replies
View Related
Sep 6, 2011
I have a FireWire camera LifeSize connected to my PC in the FireWire interface. My PC has miniPCI slot and with external converter its having a FireWire interface. Now its Ubuntu who is not showing me anything at all when i try:
$ uname -a
Linux desktop 2.6.38-11-generic-pae #48-Ubuntu SMP Fri Jul 29 20:51:21 UTC 2011 i686 i686 i386 GNU/Linux
[code]....
View 1 Replies
View Related
Mar 26, 2010
I am developing for a Linux based device for which the HOT PLUG option is deactivated. As part of optimizing the code, we also don't want to create device files for unused devices. We understand that both USB attached and fixec SCSI hard disks would create device files like /dev/sda,/dev/sda1 /dev/sdb, /dev/sdb1 etc. Is this understanding correct?
In the case of USB attached SCSI devices, would driver create this device file entry? How is it created? Can somebody please tell me how it is being created automatically. In case I attach a fixed SCSI hard disk before boot up(and create device file /dev/sda1), would USB SCSI device driver create device files starting from /dev/sdb, automatically.
View 4 Replies
View Related
Jan 25, 2010
After connecting, dmesg shows:
Code:
After that, there are no /dev/sd* entries. the hard drive works as expected on my windows box. how can i mount this drive?
View 7 Replies
View Related
Feb 15, 2010
i m facing same error in most of the HCL servers. the problem is that it throws error while booting and sometimes not throws error. the error is :-
Feb 13 13:17:25 fe13s kernel: Adapter 0: Bus A: The SCSI controller was reset due to SCSI BUS noise or an invalid signal. Check cables, termination, termpower, LVDS operation, etc.
Feb 13 13:17:30 fe13s kernel: Adapter 0: Bus B: The SCSI controller successfully recovered from a SCSI BUS issue. The issue may still be present on the BUS. Check cables, termination, termpower, LVDS operation, etc
Feb 13 13:29:15 fe13s kernel: Adapter 0: Bus B: The SCSI controller successfully recovered from a SCSI BUS issue. The issue may still be present on the BUS. Check cables, termination, termpower, LVDS operation, etc
code....
View 2 Replies
View Related
May 4, 2010
When I enter "cat /proc/scsi/scsi" I'm returned with "cat: /proc/scsi/scsi: No such file or directory". I've tried this on two different installs on two different machines.
View 6 Replies
View Related
Oct 31, 2010
How I do detect the usb device when I'm on cli mode? This is possible or not?
View 2 Replies
View Related
May 27, 2011
I use libpcap to write a program to detect network device in Ubuntu but not sucess. The result is no suitable device found. How many reasons are there for that? The code i used is the main user page.
[code]
#define HAVE_REMOTE
#define WPCAP
#include <pcap.h>
#include <stdlib.h>
#include <sys/socket.h>
[Code]....
View 4 Replies
View Related
Jun 24, 2011
My computer is Dell Inspiron N4020.And after I installed the Ubuntu 10.04 successfully,a problem occured:No wireless device appear nor the wireless signal
View 1 Replies
View Related
Jan 8, 2010
how to detect and install a mic device driver? i only plug and play the mic in xp.
View 1 Replies
View Related
Apr 22, 2011
So I bought an eMachine e250 from a friend of mine, and installed Backtrack on it. That worked fine, until I realised that I didn't like KDE, and decided to get the gnome-based Gnacktrack (based on Ubuntu 10.10, so I'm fairly sure they work the same). I also have a harddrive from an old laptop that I've scrapped with Ubuntu 10.4 that I run in the laptop, and fpr some bizzare reason, neither operating system is able to detect the wireless card. It worked fine with Backtrack (based on Noppix I believe), and I'm curious as to why the wireless card hates Ubuntu so much. I know that it's unable to detect the wireless card because on start-up it says "Unable to detect WMID device". I even added the wireless card from my scrapped laptop to the laptop, and that NIC was detected just fine. (though I can't use it because the antenna won't reach the slot for the secondary NIC)
View 6 Replies
View Related
May 8, 2010
im using acer ao532h and just install lucid dual boot with w7. I have problem this mesej coming out when booting after grub then blank screen direct to login screen.
View 1 Replies
View Related
May 30, 2011
I have a pair of special radio-devices which support SNMP, but the problem is, that if I snmpwalk those devices, I only see few generic values(sysContact, sysDescr, sysServices etc) and nothing else. Most likely I need MIB files so NMS could know what values can be asked from the radio devices? If yes, is there a possibility to get all the OID's device supports without MIB files as those devices have been out or production for years?
View 2 Replies
View Related
Sep 22, 2010
How one could determine (for use in a Bash or Python script) which device (eg /dev/sda1, /dev/hda1... etc) a ramfs was loaded from when booting from a USB drive.
I have a RIPLinux/Tinycore live USB disk that automatically needs to run a script that is stored on the same USB drive but not part of the RIPLinux/Tinycore image. (Please note that I do not want to put this script into the RIPLinux image.) I therefore would like to remix the RIPLinux/Tinycore ISO to automatically run this script once it has started up. After RIP linux has booted I would like to automatically mount the USB drive that RIPLinux/Tinycore was booted from. I need help detecting which device this is.
View 3 Replies
View Related
Oct 20, 2010
I have a Linux system running on an older Sun V20z. The drives are mirrored in a software RAID1. The motherboard has interfaces for only IDE and SCSI. The system is old and is no longer able to handle the load we're putting on it. I also have a much newer Sun X4100. This system is presently unused and has a pair of SAS drives in it. The new server only has SAS and SATA connections on the motherboard, though. I'm trying to think of the best way to clone the V20z over the X4100. I don't mind breaking the mirror knowing I can re-establish it later. I prefer not to do a fresh OS install followed by a tape restore. I would much rather break the mirror and clone one of the SCSI drives the SAS drive. I do have a USB to SATA adaptor for migrating external drives. Anyone know if this will work with a SAS drive? Any pointers on the best way to migrate this? I'm thinking even if the cloning is successful, I'm going to have to much with GRUB to get it to boot from the SAS drive?
View 1 Replies
View Related
Jun 14, 2010
i know it's a very simple command to restart apache via ssh.
View 13 Replies
View Related
Jan 29, 2010
I have installed an old HP Scanner on my Fedora 11 system, and it works great. The scanner is connected through a SCSI, and it gets recognized at boot time if the scanner is ON. However, if the scanner is OFF, I need to turn ON the scanner and reboot the workstation for the SCSI devise to be recognized. Is there a way that I can rescan the SCSI devise without rebooting?
View 1 Replies
View Related
Oct 4, 2010
I have a machine with several IP addresses with eth devices like eth0, eth0:1, eth0:2, eth0:3. Can I restart only eth0 without bringing down eth0:1? It would be really convenient to be able to log in via SSH on eth0:1 and restart eth0 without locking myself out or not being able to bring the network back up.
If I stop eth0, will that automatically stop all the others?
View 2 Replies
View Related