On 01/08/2016 09:25 AM, Christoph Hellwig wrote:
On the initiator the setup is much easier:
First check that we can see a "SRP" node:
# ibsrpdm -c -d /dev/infiniband/umad0
it should list output similar to:
id_ext=0002c903009f83a0,ioc_guid=0002c903009f83a0,dgid=fe800000000000000002c903009f83a1,pkey=ffff,service_id=0002c903009f83a0
The pipe this information into systfs and we should see the nvmeof
device:
# for i in $(ibsrpdm -c -d /dev/infiniband/umad0); do
echo $i > /sys/class/infiniband_nvmeof/nvmeof-mlx4_0-1/add_target;
done
(replace the nvmeof-mlx4_0-1 with the name of the ACTIVE port if different)
Hello Christoph,
For SRP the following command is equivalent to the above ibsrpdm + write
into add_target loop:
srp_daemon -o -a -e -c -d /dev/infiniband/umad$n.
Bart.