NAME
srp_daemon - Discovers SRP targets in an InfiniBand
Fabric
SYNOPSIS
srp_daemon [-vVcaeon] [-d
umad-device | -i infiniband-device [-p
port-num]] [-t timoeout(ms)] [-r retries] [-R
Rescan-time]
DESCRIPTION
Discovers and connects to InfiniBand SCSI RDMA Protocol (SRP)
targets in an IB fabric.
Each srp_daemon instance operates on one local port. Upon boot
it performs a full rescan of the fabric then waits for an
srp_daemon event. An srp_daemon event can be a join of a new
machine to the fabric, a change in the capabilities of a machine,
an SA change, or an expiration of a predefined timeout.
When a new machine joins the fabric, srp_daemon checks if it is
a target. When there is a change of capabilities, srp_daemon checks
if the machine has turned into a target. When there is an SA change
or a timeout expiration, srp_daemon performs a full rescan of the
fabric.
For each target srp_daemon finds, it checks if it is already
connected to the local port. If it is not connected, srp_daemon can
either print the target details or connect to it.
OPTIONS
- -v
- Print more verbose output
- -V
- Print even more verbose output (debug mode)
- -i infiniband-device
- Work on infiniband-device. This option should not be
used with -d.
- -p port-num
- Work on port port-num (default 1). This option must be
used with -i and should not be used with -d.
- -d umad-device
- Use device file umad-device (default
/dev/infiniband/umad0) This option should not be used with -i or
-p.
- -c
- Generate output suitable for piping directly to a
/sys/class/infiniband_srp/srp-<device>-<port>/add_target
file.
- -a
- Prints all the targets in the fabric, not only targets that are
not connected through the local port. (The same as ibsrpdm.)
- -e
- Execute the connection command, i.e., make the connection to
the target.
- -o
- Perform only one rescan and exit. (The same as ibsrpdm.)
- -R Rescan-time
- Force a complete rescan every Rescan-time seconds. If -R
is not specified, no timeout rescans will be performed.
- -t timoeout
- Use timeout of timoeout msec for MAD responses (default:
5 sec).
- -r retries
- Perform retries retries on each send to MAD (default: 3
retries).
- -n
- New format - use also initiator_ext in the connection
command.
EXAMPLES
srp_daemon -e -i mthca0 -p 1 -R 60 (Connects to
the targets accessible through port 1 of mthca0. Performs a
complete rescan every minute) srp_daemon -o -c
-a
(Prints the connection commands for the targets in the fabric and
exits - similar to ibsrpdm)
AUTHORS
- Roland Dreier
- <>
- Ishai Rabinovitz
- <