NAME − script for adding and removing SCSI devices without rebooting

SYNOPSIS [options] [host [host ...]]


−a, −−alltargets

scan all targets, not just currently existing [default: disabled]


enable debug [default: 0]


activates scanning for LUNs 0−−7 [default: 0]


activates scanning for LUNs 0−−NUM [default: 0]

−w, −−wide

scan for target device IDs 0−−15 [default: 0−−7]


enables scanning of channels 0 1 [default: 0 / all detected ones]

−r, −−remove

enables removing of devices [default: disabled]

−f, −−flush

flush failed multipath devices [default: disabled]

−i, −−issue−lip

issue a FibreChannel LIP reset [default: disabled]

−u, −−update

look for existing disks that have been remapped

−s, −−resize

look for resized disks and reload associated multipath devices, if applicable


rescan existing devices


remove and readd every device (DANGEROUS)


don’t stop looking for LUNs is 0 is not found


use coloured prefixes OLD/NEW/DEL


scan only host(s) in LIST


scan only channel(s) in LIST


scan only target ID(s) in LIST


scan only lun(s) in LIST

−−sync, −−nosync

issue a sync / no sync [default: sync if remove]


tell kernel to attach sg to LUN 0 that reports PQ=3


tell kernel to try REPORT_LUN even on SCSI2 devices


tell kernel to support LUNs > 7 even on SCSI2 devs


tell kernel to support sparse LUN numbering

Host numbers may thus be specified either directly on cmd line (deprecated) or or with the −−hosts=LIST parameter (recommended).

LIST: A[−B][,C[−D]]... is a comma separated list of single values and ranges (No spaces allowed.)

SEE ALSO Homepage:

sg3_utils Homepage:

More Linux Commands

auparse_get_field_int(3) - get current field's value as an i
auparse_get_field_int allows access to the value as an int of the current field of the current record in the current event. RETURN VALUE Returns -1 if there is

gnutls_x509_crt_verify_data(3) - API function (Man Page)....
This function will verify the given signed data, using the parameters from the certificate. Deprecated. Please use gnutls_pubkey_verify_data(). RETURNS In case

clnttcp_create(3) - library routines for remote procedure ca
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

gcjh-4.6(1) - - generate header files from Java class files
The gcjh program is used to generate header files from class files. It can generate both CNI and JNI header files, as well as stub implementation files which ca

asn1_delete_structure2(3) API function - Linux manual page
asn1_delete_structure2.3 - Deletes the structure * structure . At the end, * structure is set to NULL. RETURNS ASN1_SUCCESS if successful, ASN1_ELEMENT_NOT_FOUN

XDrawArcs(3) - draw arcs and arc structure - Linux man page
XDrawArc draws a single circular or elliptical arc, and XDrawArcs draws multiple circular or elliptical arcs. Each arc is specified by a rectangle and two angle

SDL_GetEventFilter(3) - Retrieves a pointer to he event filt
This function retrieces a pointer to the event filter that was previously set using SDL_SetEventFilter. An SDL_EventFilter function is defined as: typedef int (

grolj4(1) - groff driver for HP Laserjet 4 family (ManPage)
grolj4 is a driver for groff that produces output in PCL5 format suitable for an HP Laserjet 4 printer. There is an additional drawing command available: \DR dh

split(1) - split a file into pieces - Linux manual page.....
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is x. With no INPUT, or when INPUT is -, read stand

box(3ncurses) - create curses borders, horizontal and vertic
The border, wborder and box routines draw a box around the edges of a window. Other than the window, each argument is a character with attributes: ls - left sid

Tcl_FSFileAttrsGet(3) - procedures to interact with any file
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

FcDirSave(3) - DEPRECATED: formerly used to save a directory
This function now does nothing aside from returning FcFalse. It used to creates the per-directory cache file for dir and populates it with the fonts in set and

We can't live, work or learn in freedom unless the software we use is free.