Problem with scst module

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with scst module

Johan
Hi people,

I'm trying to have mhvtl working but without success till know.


Possible problems:
_________________
When installing scst module (make) the following message is displayed

[The SCST sysfs interface is not supported on RHEL 5. Please run "make enable_proc"]

This message is not mentioned in any procedure I have read.

After run "make enable_proc", the make and make install goes well.


_________________

After install scsi,  scstadm and mhvtl, I run

/etc/init.d/mhvtl start

Then I run

 /etc/init.d/scst start  

and it displays a [FAILED] message.

[root@centos54x64 scst]# /etc/init.d/mhvtl start
vtltape: version 0.18.7
vtltape: version 0.18.7
vtltape: version 0.18.7
vtltape: version 0.18.7
vtltape: version 0.18.7
vtltape: version 0.18.7
vtltape: version 0.18.7
vtltape: version 0.18.7
vtllibrary: version 0.18.7
vtllibrary process PID is 6460
vtllibrary: version 0.18.7
vtllibrary process PID is 6519
[root@centos54x64 scst]# /etc/init.d/scst start
Loading and configuring the mid-level SCSI target SCST     [FAILED]
[root@centos54x64 scst]# /etc/init.d/iscsi-scst start
Failed to obtain SCST version information. Are the SCST modules loaded?
__________________

__________________
Some installation data:

Using VirtualBox 3.2.10 on Windows Vista host, Centos 5.4x64 guest.

(Using Centos 5.4 x64 , kernel compiled with scst patches)
[root@centos54x64 scst]# uname -a
Linux centos54x64 2.6.18-prep #1 SMP Tue Jan 4 15:29:15 ART 2011 x86_64 x86_64 x86_64 GNU/Linux

[root@centos54x64 scst]# lsscsi -g
[0:0:0:0]    disk    ATA      VBOX HARDDISK    1.0   /dev/sda  /dev/sg0
[1:0:0:0]    mediumx SPECTRA  PYTHON           550V  -         /dev/sg9
[1:0:1:0]    tape    IBM      ULT3580-TD4      550V  /dev/st0  /dev/sg1
[1:0:2:0]    tape    IBM      ULT3580-TD4      550V  /dev/st1  /dev/sg2
[1:0:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st2  /dev/sg3
[1:0:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st3  /dev/sg4
[1:1:0:0]    mediumx SPECTRA  PYTHON           550V  -         /dev/sg10
[1:1:1:0]    tape    IBM      ULT3580-TD4      550V  /dev/st4  /dev/sg5
[1:1:2:0]    tape    IBM      ULT3580-TD4      550V  /dev/st5  /dev/sg6
[1:1:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st6  /dev/sg7
[1:1:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st7  /dev/sg8

[root@centos54x64 scst]# cat /proc/scsi_tgt/scsi_tgt
Device (host:ch:id:lun or name)                             Device handler
0:0:0:0                                                     none
1:0:1:0                                                     dev_tape
1:0:2:0                                                     dev_tape
1:0:3:0                                                     dev_tape
1:0:4:0                                                     dev_tape
1:1:1:0                                                     dev_tape
1:1:2:0                                                     dev_tape
1:1:3:0                                                     dev_tape
1:1:4:0                                                     dev_tape
1:0:0:0                                                     dev_changer
1:1:0:0                                                     dev_changer
_________________


I would appreciate a lot any help.

Regards,
Johan.




Reply | Threaded
Open this post in threaded view
|

Re: Problem with scst module

Johan
Reading further the scst documentation (/root/scst/scst/README) I found that with kernel version 2.6.18 should be used scst version 1.0.1.1. (From scst 2.0.1: "... Default sysfs interface supports only kernels 2.6.26 and higher... But with the obsolete procfs interface kernels 2.6.16+ are supported...   )

If this statement is run,
# svn co https://scst.svn.sourceforge.net/svnroot/scst/trunk scst
last version of scst will be downloaded.

From 21-12-2010 onwards, scst 2.0.0 will be downloaded. Before 21-12-2010, scst 1.0.1.1 was downloaded.

For download scst 1.0.1.1 could be used
# svn co r- 1011 https://scst.svn.sourceforge.net/svnroot/scst/trunk scst

I am currently testing if this could be my problem.

Regards,
Johan.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with scst module

Johan
Johan wrote
Reading further the scst documentation (/root/scst/scst/README) I found that with kernel version 2.6.18 should be used scst version 1.0.1.1. (From scst 2.0.1: "... Default sysfs interface supports only kernels 2.6.26 and higher... But with the obsolete procfs interface kernels 2.6.16+ are supported...   )
Successfully tested.

It should be interesting to have a procedure for mhvtl with scst 2.0.1.

Regards,
Johan.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with scst module

Mark Harvey
Administrator
Many thanks for the information & verification.

What transport are you using ?
iSCSI, FC etc ?

Cheers
Mark
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: Problem with scst module

Johan
Using iSCSI.

Thank You Mark for sharing your knowledge !!! This software is amazing.

Regards,
Johan.