LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2008, 03:38 AM   #1
prashanth_g83
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
how to re-scan SCSI BUS without restart


Hi all,

i newly joined to this community, with a new problem ,,

last week i installed SUSE-11. when i tried to hot swap the tape drive and re-scan the SCSI BUS by using the command rmmod aic7xxx and modprobe aic7xxx , its giving error message : MODULE AIC7XXX DOSNOT EXIST IN /PROC/MODULES.

if i restart the PC it works properly,

guys earlier i had gigabyte mother board with redhat , where in that i was able to do this.

can anybody help me to solve this plzz..
 
Old 08-29-2008, 04:25 AM   #2
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
there is a script called "rescan-scsi-bus.sh", perhaps you have it on your system without to know it.
 
Old 09-01-2008, 10:20 PM   #3
prashanth_g83
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Fantasio,

thanks a lot, its worked. i was not aware of this. its there in /bin. i tried from /bin, and its scanned.

thanks again
 
Old 09-23-2011, 12:03 PM   #4
boy_named_suse
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
How are hardware changes automatically detected by the kernel?

Hi,

I realise that this thread has not been updated since 2008 so I'm not sure if anyone will see the question I have below, but if so, any helpful information would be very much appreciated please...

Apart from manually calling or running the rescan-scsi-bus.sh script mentioned in this thread, do most Linux distros automatically scan the PCI and SCSI buses at periodic intervals? I'm trying to get an understanding of exactly what happens when device disappears and reappears on the system.

I have my node attached by fiber to an EMC SAN (via a QLogic HBA with qla2xxx driver). If I pull the fiber cables out, I can see udev entries in /var/log/messages, telling me that the devices (sdb, sdc...) have been removed. Similarly, if I put the fiber cables back in, I can see udev entries in /var/log/messages, telling me that some devices have been added. The problem I'm actually having is that they are appearing with new (different) device names, so I'm trying to figure out how this detection is working at a relatively low level in the kernel.
Could you please help me to understand exactly what initiates the process that informs the kernel that the devices have been removed/added?
Is the PCI or SCSI subsystem periodically scanning for changes on the bus? My understanding (which may be quite incorrect) is that the PCI subsystem scans for devices on the bus. When it finds one it will register the new device with the device core and a kobject will be created in the kernel. Then the list of drivers for the PCI (or SCSI) subsystem will be queried until a matching driver for the new device is found. Then the driver will initialize the new device and the reference counter in the device's associated kobject will be incremented, at which time a uevent will be sent to udev.
Or, is it the driver that is responsible for detecting these changes and informing the device core in the kernel?

I'd eventually like to understand why different names are assigned to the devices when the cables are re-attached, but considering the topic of this thread, I'd very much like to know what informs the kernel of device status changes if the rescan-scsi-bus.sh script is not explicitly being run by me.

Thanks and regards,
boy_named_suse

Last edited by boy_named_suse; 09-23-2011 at 01:50 PM. Reason: Update Title
 
Old 09-24-2011, 12:16 AM   #5
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu
Posts: 189

Rep: Reputation: 21
Am NON-technical user of Suse Linux Enterprise 11 sp1


SLE11sp1 notices new hardware soon after plugged in.


Some time since advised to update software soon after plugged in external hardware, however it did and the update achieved.




UUID are new identifiers which do not change, they are persistent, based on metadata written on the device by certain applications.


UUID may also be used to access the device using the symlinks maintained by the operating system.


My sle11sp1 uses UUID to identify hardware, so as these do NOT change am not having problems with device names.




My sle11sp1 still uses

file: rescan-scsi-bus.sh


#!/bin/bash
# Skript to rescan SCSI bus, using the
# scsi add-single-device mechanism
# (c) 1998--2010 Kurt Garloff <kurt@garloff.de>, GNU GPL v2 or v3
# (c) 2006--2008 Hannes Reinecke, GNU GPL v2 or later
# $Id: rescan-scsi-bus.sh,v 1.52 2010/08/20 13:59:39 garloff Exp $

---deleted---

Last edited by polpak; 09-24-2011 at 12:56 AM. Reason: left out UUID for hardware identification
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-Scan the bus for new devices nitrohuffer2001 Linux - General 1 12-12-2006 01:00 PM
How do I re-scan the SCSI bus in Red Hat AS 3.0 davema1 Linux - Enterprise 1 06-29-2006 05:40 AM
How do I scan my pci bus? Thaidog Linux - Newbie 4 08-31-2004 12:11 PM
Re-Scanning a SCSI BUS Crazy Joe Davol Linux - Hardware 6 08-15-2004 12:18 PM
Scsi bus re-scan tmoorman Linux - Hardware 2 01-07-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration