From ad4cde8bfe6436bdd40c302e8996377cac34d10d Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 28 Dec 2009 19:58:39 +0000 Subject: [PATCH] The patch below fixes the following two issues in the iscsi-scst-howto.txt document: * For some Linux distro's the command iscsi-iname is installed in /usr/sbin and for others in /sbin. * The scst and scst_vdisk modules must be loaded before the sample scstadmin commands work. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1421 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/doc/iscsi-scst-howto.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/doc/iscsi-scst-howto.txt b/iscsi-scst/doc/iscsi-scst-howto.txt index 88a8aa20d..4bd731bb5 100644 --- a/iscsi-scst/doc/iscsi-scst-howto.txt +++ b/iscsi-scst/doc/iscsi-scst-howto.txt @@ -59,7 +59,8 @@ package provided by your Linux distro first and then to run the shell commands shown below. Verify the contents of the generated file. /etc/init.d/open-iscsi stop - { echo "InitiatorName=$(/usr/sbin/iscsi-iname)"; echo "InitiatorAlias=$(hostname)"; } >/etc/iscsi/initiatorname.iscsi + { echo "InitiatorName=$(if [ -e /usr/sbin/iscsi-iname ]; then /usr/sbin/iscsi-iname; else /sbin/iscsi-iname; fi)"; + echo "InitiatorAlias=$(hostname)"; } >/etc/iscsi/initiatorname.iscsi /etc/init.d/open-iscsi start cat /etc/iscsi/initiatorname.iscsi @@ -77,6 +78,8 @@ script /etc/init.d/scst. All devices known by SCST are defined in this file. The shell statements shown below set up a configuration file for two vdisks. Replace the device names by names that apply to your system: + modprobe scst + modprobe scst_vdisk scstadmin -ClearConfig /etc/scst.conf scstadmin -adddev disk01 -path /dev/ram0 -handler vdisk -options NV_CACHE scstadmin -adddev disk02 -path /dev/ram1 -handler vdisk -options NV_CACHE