Re: [ewg] Re: cannot install SCST with SRP support
Vu Pham wrote: In order to run with *scst_disk* you need to patch and rebuild the kernel. Please follow SCST readme to do this task If you don't want to patch and rebuild the kernel, you can run with *scst_vdisk* and get the same performance. I attach here an example to setup *scst_vdisk* -vu Can you please explain me what is the differences between scst_disk and scst_vdisk? Is there any way to config SCST to work with RAM device (instead of working with a real scsi device)? Thanks, Doron ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
Vu, We were able to build and run SCST on SLES 10. Now, when I try to build it for 2.6.24, I get errors: onion:/home/erezz/work/tmp/scst-srpt/scst # patch -p0 ../srpt_inc/scst_r245.patch patching file include/scsi_tgt.h patching file src/scst_targ.c onion:/home/erezz/work/tmp/scst-srpt/scst # make cd src make all make[1]: Entering directory `/home/erezz/work/tmp/scst-srpt/scst/src' make -C /lib/modules/2.6.24-smp/build SUBDIRS=/home/erezz/work/tmp/scst-srpt/scst/src BUILD_DEV=m make[2]: Entering directory `/usr/src/linux-2.6.24' LD /home/erezz/work/tmp/scst-srpt/scst/src/built-in.o CC [M] /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.o /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:50:2: warning: #warning Patch scst_exec_req_fifo-kernel-version.patch was not applied on your kernel and STRICT_SERIALIZING isn't defined. Pass-through dev handlers will not be supported. /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c: In function ‘exit_scst’: /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: implicit declaration of function ‘DECLARE_MUTEX_LOCKED’ /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: ‘shm’ undeclared (first use in this function) /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: (Each undeclared identifier is reported only once /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: for each function it appears in.) make[3]: *** [/home/erezz/work/tmp/scst-srpt/scst/src/scst_main.o] Error 1 make[2]: *** [_module_/home/erezz/work/tmp/scst-srpt/scst/src] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.24' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/erezz/work/tmp/scst-srpt/scst/src' make: *** [all] Error 2 What is the problem here? Thanks, Erez ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
Doron Shoham wrote: Vu Pham wrote: In order to run with *scst_disk* you need to patch and rebuild the kernel. Please follow SCST readme to do this task If you don't want to patch and rebuild the kernel, you can run with *scst_vdisk* and get the same performance. I attach here an example to setup *scst_vdisk* -vu Can you please explain me what is the differences between scst_disk and scst_vdisk? scst_disk: scsi pass through module driver, using scsi mid-level interfaces to send commands scst_vdisk: simulating file and block devices as scsi luns. Using file system interfaces (fileIO) and block interfaces (blockio) to send commands Is there any way to config SCST to work with RAM device (instead of working with a real scsi device)? Yes. There are two ways 1. NULLIO or memory IO a. dd if=/dev/zero of=/tmp/tempfile bs=64k count=100 b. echo open vdisk0 /tmp/tempfile NULLIO /proc/scsi_tgt/vdisk/vdisk c. echo add vdisk0 0 /proc/scsi_tgt/groups/Default/devices 2. Using ramdisk a. echo open vdisk1 /dev/ram0 BLOCKIO /proc/scsi_tgt/vdisk/vdisk b. echo add vdisk1 1 proc/scsi_tgt/groups/Default/devices Lun 0 with NULLIO will perform better ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
Vu Pham wrote: This is the error in the SRPT_README.txt - it should say *modprobe scst* instead scsi_tgt I updated the document with this change Tziporet ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
I got: a. modprobe scst b. modprobe scst_disk In order to run with *scst_disk* you need to patch and rebuild the kernel. Please follow SCST readme to do this task If you don't want to patch and rebuild the kernel, you can run with *scst_vdisk* and get the same performance. I attach here an example to setup *scst_vdisk* -vu FATAL: Error inserting scst_disk (/lib/modules/2.6.16.21-0.8-smp/extra/dev_handlers/scst_disk.ko): No such device c. cat /proc/scsi_tgt/scsi_tgt Device (host:ch:id:lun or name) Device handler 0:0:0:0 none 1:0:0:0 none 2:0:1:0 none 4:0:1:0 none 2:0:1:1 none 4:0:1:1 none 2:0:1:2 none 4:0:1:2 none 2:0:1:3 none 4:0:1:3 none 2:0:1:4 none 4:0:1:4 none 2:0:1:5 none 4:0:1:5 none 2:0:1:6 none 4:0:1:6 none 4:0:1:7 none 2:0:1:7 none 4:0:1:8 none 2:0:1:8 none Doesn't the Device handler need to be dev_disk? -vu ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg Thanks, Doron #!/bin/sh modprobe scst modprobe scst_vdisk echo open vdisk0 /dev/sdb BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk1 /dev/sdc BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk2 /dev/sdd BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk3 /dev/sde BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk4 /dev/sdf BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk5 /dev/sdg BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk6 /dev/sdh BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk7 /dev/sdi BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk8 /dev/sdj BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk9 /dev/sdk BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk10 /dev/sdl BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk11 /dev/sdm BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk12 /dev/sdn BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk13 /dev/sdo BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo open vdisk14 /dev/sdp BLOCKIO /proc/scsi_tgt/vdisk/vdisk echo add vdisk0 0 /proc/scsi_tgt/groups/Default/devices echo add vdisk1 1 /proc/scsi_tgt/groups/Default/devices echo add vdisk2 2 /proc/scsi_tgt/groups/Default/devices echo add vdisk3 3 /proc/scsi_tgt/groups/Default/devices echo add vdisk4 4 /proc/scsi_tgt/groups/Default/devices echo add vdisk5 5 /proc/scsi_tgt/groups/Default/devices echo add vdisk6 6 /proc/scsi_tgt/groups/Default/devices echo add vdisk7 7 /proc/scsi_tgt/groups/Default/devices echo add vdisk8 8 /proc/scsi_tgt/groups/Default/devices echo add vdisk9 9 /proc/scsi_tgt/groups/Default/devices echo add vdisk10 10 /proc/scsi_tgt/groups/Default/devices echo add vdisk11 11 /proc/scsi_tgt/groups/Default/devices echo add vdisk12 12 /proc/scsi_tgt/groups/Default/devices echo add vdisk13 13 /proc/scsi_tgt/groups/Default/devices echo add vdisk14 14 /proc/scsi_tgt/groups/Default/devices modprobe ib_srpt echo add mgmt /proc/scsi_tgt/trace_level echo add mgmt_dbg /proc/scsi_tgt/trace_level echo add out_of_mem /proc/scsi_tgt/trace_level ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
Vu Pham wrote: 2. I have also installed OFED1.3 with srpt. but I cannot load the following modules: modprobe scsi_tgt FATAL: Module scsi_tgt not found. This is the error in the SRPT_README.txt - it should say *modprobe scst* instead scsi_tgt Thanks for the answer but when trying to follow example 1: Example 1: working with real back-end scsi disks a. modprobe scsi_tgt (I changed it to modprobe scst) b. modprobe scst_disk c. cat /proc/scsi_tgt/scsi_tgt I got: a. modprobe scst b. modprobe scst_disk FATAL: Error inserting scst_disk (/lib/modules/2.6.16.21-0.8-smp/extra/dev_handlers/scst_disk.ko): No such device c. cat /proc/scsi_tgt/scsi_tgt Device (host:ch:id:lun or name) Device handler 0:0:0:0 none 1:0:0:0 none 2:0:1:0 none 4:0:1:0 none 2:0:1:1 none 4:0:1:1 none 2:0:1:2 none 4:0:1:2 none 2:0:1:3 none 4:0:1:3 none 2:0:1:4 none 4:0:1:4 none 2:0:1:5 none 4:0:1:5 none 2:0:1:6 none 4:0:1:6 none 4:0:1:7 none 2:0:1:7 none 4:0:1:8 none 2:0:1:8 none Doesn't the Device handler need to be dev_disk? -vu ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg Thanks, Doron ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg