Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rescan-scsi-bus(8) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Full Device Name

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)
Discussion started by: shibz
6 Replies

2. UNIX for Advanced & Expert Users

query about scsi

can any one tell me what's the difference between scsi and differential scsi? (2 Replies)
Discussion started by: i2admin
2 Replies

3. UNIX for Dummies Questions & Answers

Scsi Hdd

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)
Discussion started by: hatemeid
3 Replies

4. Filesystems, Disks and Memory

What do these SCSI errors mean?

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)
Discussion started by: bumblebee
3 Replies

5. AIX

Looking for HP 'evainfo'

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)
Discussion started by: purdym
3 Replies

6. Hardware

External GPU issue

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)
Discussion started by: aihake
2 Replies

7. Solaris

Amount of LUNs used for zpool

Hi folks, is there any rule or best practise for amount of LUNs user for zpool construction (from view of performance etc.)?? THX (4 Replies)
Discussion started by: brusell
4 Replies

8. Red Hat

Scsi bus scan

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)
Discussion started by: Duffs22
3 Replies

9. Shell Programming and Scripting

Shell script NOP

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)
Discussion started by: praveen_tds98
3 Replies

10. Red Hat

Rescan for scsi

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)
Discussion started by: kilobyter
4 Replies

11. AIX

Retrieve LUN IDs

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)
Discussion started by: paakofi
4 Replies

12. Red Hat

Scan for new LUN and create a new file system

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)
Discussion started by: fretagi
8 Replies

13. Programming

Solaris - BUS error with optimize mode

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)
Discussion started by: revolta25
15 Replies

14. Red Hat

FC Luns rescan issue

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)
Discussion started by: sumit6in
6 Replies

15. Ubuntu

Scan and create file systems in new LUNs

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)
Discussion started by: fretagi
4 Replies