Help setup/configure mhvtl-0.18-17

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Help setup/configure mhvtl-0.18-17

Mark Harvey
wen wrote
你能把你的邮箱留个给我吗?我把我操作的步骤和我用的文档都发给你。我的邮箱chenwenbin35@gmail.com QQ:553132322 。我真的非常需要你的帮助,我以经好几个晚上都很迟睡了,嘿嘿 谢谢你回我信息。对了邮箱就是我的名字
I've created a new posting for Wen and the install/configure problem.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

Mark Harvey
On Thu, Jun 30, 2011 at 3:40 PM, Mark Harvey [via MHVTL - Linux
Virtual Tape Library - Community Forums]
<[hidden email]> wrote:
> wen wrote:
> 你能把你的邮箱留个给我吗?我把我操作的步骤和我用的文档都发给你。我的邮箱chenwenbin35@gmail.com QQ:553132322
> 。我真的非常需要你的帮助,我以经好几个晚上都很迟睡了,嘿嘿 谢谢你回我信息。对了邮箱就是我的名字
>
> I've created a new posting for Wen and the install/configure problem.

If possible, can you please use this posting to keep your problem
separate from the 'Announcement' posting.

Please supply information regarding your problems.


> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/Help-setup-configure-mhvtl-0-18-17-tp3124617p3124617.html
> To start a new topic under MHVTL - Linux Virtual Tape Library - Community
> Forums, email [hidden email]
> To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums,
> click here.
wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

wen
thanks mark
now I used centos 5.6 2.6.33.7 32bit  SCST is 2.0.0 version MHVTL is 0.18-17 .

After several days of the installation, I solved the issues raised before (mainly kernel too) .

Now I use 2.6.33.7 and the emergence of new problems

when I Installed scst-2.0.0 iscst-2.0.0 scstadm-2.0.0 . I can not find scst.conf, iscsi-scstd.conf
then "scst,iscsi" Service failed to start
centos 5.6 2.6.33.7 support scst2.0.0 do?

mhvtl working properly


wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

crippa.andrea
wen wrote
centos 5.6 2.6.33.7 support scst2.0.0 do?

mhvtl working properly


wen
I wen ...
I'm using a config similar to your (centos 5.6 with vanilla kernel 2.6.33.7, mhvtl and scst up2date) , and have no problem.

My scst is trunk version obtained via svn (svn co https://scst.svn.sourceforge.net/svnroot/scst/trunk)

Here you are my scst.conf so you can modify it with your spec
HANDLER dev_changer {
DEVICE 1:0:0:0
}
HANDLER dev_tape {
DEVICE 1:0:1:0
DEVICE 1:0:2:0
DEVICE 1:0:3:0
DEVICE 1:0:4:0
}
TARGET_DRIVER iscsi {
enabled 1
TARGET iqn.2011-07.mhvtl.mk:tgt0 {
InitialR2T No
ImmediateData Yes
FirstBurstLength 131072
MaxRecvDataSegmentLength 131072
enabled 1
LUN 0 1:0:0:0
}
TARGET iqn.2011-07.mhvtl.mk:tgt1 {
InitialR2T No
ImmediateData Yes
FirstBurstLength 131072
MaxRecvDataSegmentLength 131072
enabled 1
LUN 0 1:0:1:0
}
TARGET iqn.2011-07.mhvtl.mk:tgt2 {
InitialR2T No
ImmediateData Yes
FirstBurstLength 131072
MaxRecvDataSegmentLength 131072
enabled 1
LUN 0 1:0:2:0
}
TARGET iqn.2011-07.mhvtl.mk:tgt3 {
InitialR2T No
ImmediateData Yes
FirstBurstLength 131072
MaxRecvDataSegmentLength 131072
enabled 1
LUN 0 1:0:3:0
}
TARGET iqn.2011-07.mhvtl.mk:tgt4 {
InitialR2T No
ImmediateData Yes
FirstBurstLength 131072
MaxRecvDataSegmentLength 131072
enabled 1
LUN 0 1:0:4:0
}
}

Bye
wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

wen
thanks andrea


I use you "scst.conf" but scst service faile start .

this is my install


# uname -a
Linux linuxvtl.domain.com 2.6.33.7 #1 SMP Thu Jul 7 02:51:41 CST 2011 i686 i686 i386 GNU/Linux

[root@linuxvtl ~]# cd scst
[root@linuxvtl scst]# make scst scst_install
cd scst && make all
make[1]: Entering directory `/root/scst/scst'
cd src && make all
make[2]: Entering directory `/root/scst/scst/src'
make -C /lib/modules/2.6.33.7/build SUBDIRS=/root/scst/scst/src BUILD_DEV=m
make[3]: Entering directory `/usr/src/kernels/linux-2.6.33.7'
  Building modules, stage 2.
  MODPOST 10 modules
make[3]: Leaving directory `/usr/src/kernels/linux-2.6.33.7'
make[2]: Leaving directory `/root/scst/scst/src'
make[1]: Leaving directory `/root/scst/scst'
cd scst && make install
make[1]: Entering directory `/root/scst/scst'
cd src && make install
make[2]: Entering directory `/root/scst/scst/src'
make -C /lib/modules/2.6.33.7/build SUBDIRS=/root/scst/scst/src BUILD_DEV=m
make[3]: Entering directory `/usr/src/kernels/linux-2.6.33.7'
  Building modules, stage 2.
  MODPOST 10 modules
make[3]: Leaving directory `/usr/src/kernels/linux-2.6.33.7'
rm -f /lib/modules/2.6.33.7/extra/scsi_tgt.ko
install -d /lib/modules/2.6.33.7/extra
install -d /lib/modules/2.6.33.7/extra/dev_handlers
install -m 644 dev_handlers/*.ko /lib/modules/2.6.33.7/extra/dev_handlers
install -m 644 scst.ko /lib/modules/2.6.33.7/extra
install -d /usr/local/include/scst
install -m 644 ../include/scst.h /usr/local/include/scst
install -m 644 ../include/scst_sgv.h /usr/local/include/scst
install -m 644 ../include/scst_debug.h /usr/local/include/scst
install -m 644 ../include/scst_user.h /usr/local/include/scst
install -m 644 ../include/scst_const.h /usr/local/include/scst
rm -f /usr/local/include/scst/Modules.symvers
install -m 644 Module.symvers /usr/local/include/scst
/sbin/depmod -a 2.6.33.7
mkdir -p /var/lib/scst/pr
****************************************************************
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*!!                                                          !!*
*!!  Now don't forget to rebuild and reinstall all your      !!*
*!!  target drivers, custom dev handlers and necessary user  !!*
*!!  space applications. Otherwise, because of the versions  !!*
*!!  mismatch, you could have many problems and crashes.     !!*
*!!  See IMPORTANT note in the "Installation" section of     !!*
*!!  SCST's README file for more info.                       !!*
*!!                                                          !!*
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
****************************************************************
make[2]: Leaving directory `/root/scst/scst/src'
make[1]: Leaving directory `/root/scst/scst'
[root@linuxvtl scst]#

[root@linuxvtl scst]# make iscsi iscsi_install
cd iscsi-scst && make all
make[1]: Entering directory `/root/scst/iscsi-scst'
make -C usr
make[2]: Entering directory `/root/scst/iscsi-scst/usr'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/scst/iscsi-scst/usr'
cp /root/scst/iscsi-scst/../scst/src/Module.symvers kernel/
make -C /lib/modules/2.6.33.7/build SCST_INC_DIR=/root/scst/iscsi-scst/../scst/include SUBDIRS=/root/scst/iscsi-scst/kernel modules
make[2]: Entering directory `/usr/src/kernels/linux-2.6.33.7'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/kernels/linux-2.6.33.7'
make[1]: Leaving directory `/root/scst/iscsi-scst'
cd iscsi-scst && make DESTDIR= install
make[1]: Entering directory `/root/scst/iscsi-scst'
make -C usr
make[2]: Entering directory `/root/scst/iscsi-scst/usr'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/scst/iscsi-scst/usr'
cp /root/scst/iscsi-scst/../scst/src/Module.symvers kernel/
make -C /lib/modules/2.6.33.7/build SCST_INC_DIR=/root/scst/iscsi-scst/../scst/include SUBDIRS=/root/scst/iscsi-scst/kernel modules
make[2]: Entering directory `/usr/src/kernels/linux-2.6.33.7'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/kernels/linux-2.6.33.7'
“usr/iscsi-scstd” -> “/usr/local/sbin/iscsi-scstd”
“usr/iscsi-scst-adm” -> “/usr/local/sbin/iscsi-scst-adm”
“kernel/iscsi-scst.ko” -> “/lib/modules/2.6.33.7/extra/iscsi-scst.ko”
/sbin/depmod -aq 2.6.33.7
make[1]: Leaving directory `/root/scst/iscsi-scst'


[root@linuxvtl scst]# cd scstadmin/
[root@linuxvtl scstadmin]# make
cd scstadmin && make all
make[1]: Entering directory `/root/scst/scstadmin/scstadmin.sysfs'
Writing Makefile for SCST-SCST
make -C scst-0.9.00
make[2]: Entering directory `/root/scst/scstadmin/scstadmin.sysfs/scst-0.9.00'
Manifying blib/man3/SCST::SCST.3pm
make[2]: Leaving directory `/root/scst/scstadmin/scstadmin.sysfs/scst-0.9.00'
make[1]: Leaving directory `/root/scst/scstadmin/scstadmin.sysfs'
[root@linuxvtl scstadmin]# make install
cd scstadmin && make install
make[1]: Entering directory `/root/scst/scstadmin/scstadmin.sysfs'
Writing Makefile for SCST-SCST
make -C scst-0.9.00
make[2]: Entering directory `/root/scst/scstadmin/scstadmin.sysfs/scst-0.9.00'
Manifying blib/man3/SCST::SCST.3pm
make[2]: Leaving directory `/root/scst/scstadmin/scstadmin.sysfs/scst-0.9.00'
make -C scst-0.9.00 install
make[2]: Entering directory `/root/scst/scstadmin/scstadmin.sysfs/scst-0.9.00'
Manifying blib/man3/SCST::SCST.3pm
Writing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/SCST-SCST/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
make[2]: Leaving directory `/root/scst/scstadmin/scstadmin.sysfs/scst-0.9.00'
install -d /usr/local/sbin
install -m 755 scstadmin /usr/local/sbin
make[1]: Leaving directory `/root/scst/scstadmin/scstadmin.sysfs'
install -d /etc/init.d
install -m 755 init.d/scst /etc/init.d
if [ ! -e  /etc/default/scst ]; then            \
          install -m 755 default/scst /etc/default;     \
        fi

If you want SCST to start automatically at boot time, run the following command:
/usr/lib/lsb/install_initd scst

[root@linuxvtl scstadmin]# cd
[root@linuxvtl ~]#
[root@linuxvtl ~]# /etc/init.d/scst start
Loading and configuring SCST                               [失败]
Already started
[root@linuxvtl ~]# /etc/init.d/mhvtl start
mhvtl already running...
[root@linuxvtl ~]# /etc/init.d/scst stop
Stopping SCSTERROR: Module scst is in use by iscsi_scst,scst_changer,scst_tape
                                                           [失败]
[root@linuxvtl ~]#
wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

wen
In reply to this post by crippa.andrea
modprobe -r scst_changer scst_tape iscsi_scst
FATAL: Module iscsi_scst is in use.
[root@linuxvtl ~]# /etc/init.d/iscsi-scst stop
Stopping iSCSI target service:                             [确定]
[root@linuxvtl ~]# modprobe -r iscsi_scst
[root@linuxvtl ~]# modprobe -r scst_changer scst_tape
[root@linuxvtl ~]#
[root@linuxvtl ~]#
[root@linuxvtl ~]#
[root@linuxvtl ~]# /etc/init.d/scst start
Loading and configuring SCST                               [失败]

Collecting current configuration: done.

-> Checking configuration file '/etc/scst.conf' for errors.
        -> WARNING: Target driver 'iscsi' is not loaded or available.

        -> WARNING: No such handler 'dev_changer' available, ignoring.
        -> WARNING: No such handler 'dev_tape' available, ignoring.
        -> WARNING: Device '1:0:4:0' associated with driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt4' at LUN 0 is not defined within configuration, removing it.

        -> WARNING: No LUN 0 defined for driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt4'. Many initiators require a LUN 0 to be defined.

        -> WARNING: Device '1:0:0:0' associated with driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt0' at LUN 0 is not defined within configuration, removing it.

        -> WARNING: No LUN 0 defined for driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt0'. Many initiators require a LUN 0 to be defined.

        -> WARNING: Device '1:0:1:0' associated with driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt1' at LUN 0 is not defined within configuration, removing it.

        -> WARNING: No LUN 0 defined for driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt1'. Many initiators require a LUN 0 to be defined.

        -> WARNING: Device '1:0:3:0' associated with driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt3' at LUN 0 is not defined within configuration, removing it.

        -> WARNING: No LUN 0 defined for driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt3'. Many initiators require a LUN 0 to be defined.

        -> WARNING: Device '1:0:2:0' associated with driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt2' at LUN 0 is not defined within configuration, removing it.

        -> WARNING: No LUN 0 defined for driver/target 'iscsi/iqn.2011-07.mhvtl.mk:tgt2'. Many initiators require a LUN 0 to be defined.

        -> Done, 13 warnings found.

-> Applying configuration.


FATAL: Received the following error:

        Target driver 'iscsi' is not loaded or available.

[root@linuxvtl ~]# modprobe scst
[root@linuxvtl ~]# modprobe scst_changer
[root@linuxvtl ~]# modprobe scst_tape
[root@linuxvtl ~]#
[root@linuxvtl ~]#
[root@linuxvtl ~]# /etc/init.d/scst start
Loading and configuring SCST                               [失败]
Already started
[root@linuxvtl ~]# /etc/init.d/scst stop
Stopping SCSTERROR: Module scst is in use by scst_tape,scst_changer
                                                           [失败]
[root@linuxvtl ~]# /etc/init.d/scst start
Loading and configuring SCST                               [失败]
Already started
[root@linuxvtl ~]# /etc/init.d/iscsi
iscsi       iscsid      iscsi-scst  
[root@linuxvtl ~]# /etc/init.d/iscsi
iscsi       iscsid      iscsi-scst  
[root@linuxvtl ~]# /etc/init.d/iscsi start
iscsid (pid  3763) 正在运行...
设置 iSCSI 目标:iscsiadm: No records found!
                                                           [确定]
wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

wen
In reply to this post by crippa.andrea
I using nia shell configrue  scst.conf ,iscsi-scstd .conf

#!/bin/ksh
# Customize your own
IQN=iqn.2010-01.us.nimsa
# Build /etc/iscsi-scstd.conf
lsscsi -g | grep -e tape -e mediumx| awk '{print $1}'| cut -d "[" -f2| cut -d "]" -f1| while read each; do
echo "Target $IQNeach" >>/tmp/iscsi-scstd.tmp
done
if [ -f /etc/iscsi-scstd.conf ]; then
cp -f /etc/iscsi-scstd.conf /etc/iscsi-scstd.conf_`date +%m%d%y%H%M%S`
echo Created backup of existing /etc/iscsi-scstd.conf as /etc/iscsi-scstd.conf_`date +%m%d%y%H%M%S`
fi
cat /tmp/iscsi-scstd.tmp >/etc/iscsi-scstd.conf
echo Created new /etc/iscsi-scstd.conf
rm -f /tmp/iscsi-scstd.tmp
echo -------
# Build /etc/scst.conf
echo "[HANDLER changer]" >/tmp/scst.tmp
lsscsi -g| grep mediumx | awk '{print $1}'| cut -d "[" -f2| cut -d "]" -f1| while read each1; do
echo DEVICE $each1 >>/tmp/scst.tmp
done
echo "[HANDLER tape]" >>/tmp/scst.tmp
lsscsi -g| grep tape | awk '{print $1}'| cut -d "[" -f2| cut -d "]" -f1 | while read each2; do
echo DEVICE $each2 >>/tmp/scst.tmp
done
lsscsi -g | grep -e tape -e mediumx|awk '{print $1}'| cut -d "[" -f2| cut -d "]" -f1| while read each3; do
echo "[GROUP Default_$IQNeach3]" >>/tmp/scst.tmp
done
lsscsi -g | grep -e tape -e mediumx| awk '{print $1}'| cut -d "[" -f2| cut -d "]" -f1| while read each4; do
echo "[ASSIGNMENT Default_$IQNeach4]" >>/tmp/scst.tmp
echo "DEVICE $each4,0" >>/tmp/scst.tmp
done
if [ -f /etc/scst.conf ]; then
cp -f /etc/scst.conf /etc/scst.conf_`date +%m%d%y%H%M%S`
echo Created backup of existing /etc/scst.conf as /etc/scst.conf_`date +%m%d%y%H%M%S`
fi
cat /tmp/scst.tmp >/etc/scst.conf
echo Created new /etc/scst.conf
rm -f /tmp/scst.tmp
echo --- Done ---



the problem remain .
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

crippa.andrea
This evening i'll try to make a new system as your and write down all the steps to configure scst.

Also check stgt (another iscsi target) that is more simple to configure and use.

wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

wen
I try ,but my system is not oracle linux .a lot of command i don't know You can send a copy of your document to a successful operation on scst me ? My mail chenwenbin35@gmail.com
wen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

wen
In reply to this post by crippa.andrea
You know, see the information above you, I am very excited, thank you very much. I have installed mhvtl nearly two weeks, although learning a lot about linux knowledge, but did not complete the iscsi for MHVTL I feel very sorry. I hope you do not mind my English is not very good, I use google translation
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Help setup/configure mhvtl-0.18-17

crippa.andrea
wen wrote
You know,  see the information above you, I am very excited, thank you very much.
 I have installed mhvtl nearly two weeks, although learning a lot about linux knowledge, but did not complete the iscsi for MHVTL I feel very sorry.
I hope you do not mind my English is not very good, I use google translation
Hi Wen,
i've tried an install from scratch and it work perfectly.  Use with windows initiators with no probem.

See this message.

Bye
Loading...