RESCAN-SCSI-BUS.SH(8) System Manager's Manual RESCAN-SCSI-BUS.SH(8)NAME
rescan-scsi-bus.sh - rescan the SCSI bus.
SYNOPSIS
rescan-scsi-bus.sh [ -l ] [ -w ] [ -c ] [ -r ] [ host... ]
DESCRIPTION
rescan-scsi-bus.sh is a program that is used to rescan the SCSI bus using the SCSI add-single-device feature of the Linux SCSI layer.
OPTIONS -l Activates scanning for LUNs 0 .. 7 (default: 0).
-L NUM Activates scanning for LUNs 0 .. LUN (default: 0).
--luns=LIST
Scan only LUNs in LIST.
-w Enables scanning for device IDs 0 .. 15 (default: 0 .. 7).
--ids=LIST
Scan only device IDs in LIST.
-i, --issue-lip
Issue a FibreChannel LIP reset (default: disabled).
-r, --remove
Enables removing of devices (default: disabled).
--forceremove
Remove and readd every device (dangerous).
-c Enables scanning of channels 0 1 (default: 0).
--channels=LIST
Scan only channels in LIST.
host, --hosts=LIST
If host adapters are given, only these are scanned (default: all).
--nooptscan
Don't stop looking for LUNs if 0 is not found.
--color
Use coloured prefixes OLD/NEW/DEL.
LIST is a comma separated list of single values and ranges (no spaces allowed), e.g. 0,2-3,8,10-15.
AUTHOR
rescan-scsi-bus.sh was written by Kurt Garloff <garloff@suse.de>.
COPYRIGHT
This program is free software. You can use it under the terms of the GNU GPL (General Public License) Version 2 (or any later version, at
your option). Note, that the GNU GPL implies, that there is NO WARRANTY at all. Full text of the GPL can be found in /usr/share/common-
licenses/GPL file.
AVAILABILITY
rescan-scsi-bus.sh is available from
http://www.garloff.de/kurt/linux/scsidev/
March 1998 RESCAN-SCSI-BUS.SH(8)
Check Out this Related Man Page
tran_bus_reset(9E) Driver Entry Points tran_bus_reset(9E)NAME
tran_bus_reset - reset a SCSI bus
SYNOPSIS
#include <sys/scsi/scsi.h> int prefix
tran_bus_reset(dev_info_t *hba_dip, int level);
INTERFACE LEVEL
Solaris DDI
PARAMETERS
hba_dip The dev_info_t pointer associated with the SCSI HBA.
level The level of reset required.
DESCRIPTION
The tran_bus_reset() vector in the scsi_hba_tran(9S) structure should be initialized during the HBA driver's attach(9E). It is an HBA
entry point to be called when a user initiates a bus reset through device control interfaces.
tran_bus_reset() must reset the SCSI bus without resetting targets.
level will be one of the following:
RESET_BUS Reset the SCSI bus only, not the targets.
Implementation is hardware specific. If it is not possible to reset the SCSI bus without changing the state and operating mode of the tar-
gets, the HBA driver should not initialize this vector or return failure.
RETURN VALUES
tran_bus_reset() should return:
1 on success.
0 on failure.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5), tran_quiesce(9E), scsi_hba_tran(9S)SunOS 5.11 17 Mar 1999 tran_bus_reset(9E)
Hi All,
I have a question.
/pci@1f,4000/scsi@3/disk is one of my device name.
The scsi@3 stands for SCSI id - 3. ( Is that Correct ?) . But the
disk alias points to /pci@1f,4000/scsi@3/disk@0,0 ( that is target 0 )
What is the significane of SCSI@3, when all devices are having... (6 Replies)
i read the reply at this link
https://www.unix.com/unix-dummies-que...d-backups.html
and i really surprised and i want to know if it must the mirrored HDD be on the secondary SCSI port and the operated HDD on Primary SCSI port?
thanks (3 Replies)
Linux / Kernel experts,
Please help. I'm getting errors with various return codes, similar to:
kernel: SCSI error : <0 0 5 165> return code = 0x8000002
I would like to know how / where to lookup the definition of the numbers between the angle brackets, and the return code itself.
I... (3 Replies)
Hi folks,
I have AIX servers (AIX 5.3) with HP SANs. The SANs are an XP1024, XP12000 and EVA (HSV450).
I have 'xpinfo' for seeing the LUNs on the XP SANs.
Is there an 'evainfo' for seeing the LUNs on the EVA?
Thanks (3 Replies)
Dear all,
I set up a external Gforce GPU using the PE4H (Pcie passive adapter) from HWTOOLS.NET.
I'm able to add and remove the device doing
and
The point is the kernel does not initialized the device correctly.
Here is what dmesg gives after the scan:
lspci -t gives
and lspci... (2 Replies)
Hi,
I have presented a LUN to a VM (RHEL 5.8) and need to scan the scsi bus in order for the OS to pick it up.
On FC attached hosts I can:
echo "1" > /sys/class/fc_host/host0/issue_lip
echo "- - -" > /sys/class/scsi_host/host0/scan
....but this does not work on my vm.
... (3 Replies)
Hi,
Could anyone help me to understand the use of below two statements.
I found similar statements in rescan-scsi-bus.sh
fun1()
{
: fun2 # what is the use of this statement?
command1
command2
....
}
fun2 ()
{
VAR1=1
VAR2="some string" (3 Replies)
Hi All,
is there a way of rescanning for newly attached SCSI without rebooting the server?
any help greatly appreciated
thanks in advance
Kb (4 Replies)
Hello,
I decommissioned a server recently but made mistake copying the LUN IDs (when I used the command "lscfg -vl hdisk#" on the VIO Servers) to give to the storage team to reclaim the LUNs. Now I have deleted the backing device, vhost on the VIO and have deleted the LPAR from HMC.
Before... (4 Replies)
Hi
Please I dont have a lot of redhat skills, but I need some help on creating a file system.
I need to rescan for this new LUN, so I try to check existing LUNs:
fdisk -l
Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of... (8 Replies)
Hi,
I'm facing BUS (invalid address alignment) issue.
Application works correctly with binaries compiled without optimization.
When "-O3" (or -O2, O1) is in use, application abort with - BUS (invalid address alignment).
The problem appears in following situation:
struct _a
{
int... (15 Replies)
Hi all
we have two Rac cluster in our environment. we have asked our storage team to provide luns for adding space to our rac. Right now in one our server luns are visible but not in another. But if i see dmesg in servers i can see disk attached but not able to see them. even iostat showing... (6 Replies)
Hi
I have a system running uname -a
Linux cmoveldb02 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux and I was told by the NetApp Admin that he has provided 5 LUNs of 1Tb, 200Gb and remaining 3 of 300Gb, but I am not able to see the new LUNs.
I have... (4 Replies)