MHVTL install on RHEL5

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

MHVTL install on RHEL5

jadams
I must be doing something really wrong. I seem to be getting a lot of different things than everyone else.
I am trying to follow the steps that I am reading in the forums, but nothing I have seems to match what other have.
If I could get some pointers/help, I would really appreciate it..

1) I performed a default installation of RHEL 5
2) I registered system to RHN (RedHat Network)
3) I installed additional packages as follows: up2date --install kernel-devel kernel-headers gcc
   # The following packages you requested are already updated:
       kernel-devel
       kernel-headers
       gcc

4) uname -a shows  uname -a
Linux lintest1.tetratech.com 2.6.18-194.17.1.0.2.el5PAE #1 SMP Fri Oct 22 15:40:38 EDT 2010 i686 i686 i386 GNU/Linux
[root@lintest1 mhvtl-0.16]#
5) installed the kernel source:
 rpm -ivh kernel-2.6.18-194.el5.src.rpm
warning: kernel-2.6.18-194.el5.src.rpm: Header V3 DSA signature: NOKEY, key ID 192a7d7d
   1:kernel                 ########################################### [100%]
[root@lintest1 ~]# rpm -ivh | grep kernel
rpm: no packages given for install
[root@lintest1 ~]# rpm -qa | grep kernel
kernel-debug-2.6.18-194.17.1.0.2.el5
kernel-PAE-2.6.18-194.17.1.0.2.el5
kernel-PAE-2.6.18-164.el5
kernel-devel-2.6.18-194.17.1.0.2.el5
kernel-2.6.18-194.17.1.0.2.el5
kernel-headers-2.6.18-194.17.1.0.2.el5
[root@lintest1 ~]#
  Don't see the source install, but...
6) Downloaded the lastest source I could find for RH5, and extracted it appropriately.
# pwd
  /usr/src/redhat/BUILD
# tar -zxvf /root/mhvtl-2010-09-23.tgz
# cd /usr/src/redhat/BUILD/mhvtl-0.18
# make && make install   -- All OK..

# cd kernel   <- Per directions
[root@lintest1 kernel]# make
make -C /lib/modules/2.6.18-194.17.1.0.2.el5PAE/build SUBDIRS=/usr/src/redhat/BUILD/mhvtl-0.18/kernel modules
make: *** /lib/modules/2.6.18-194.17.1.0.2.el5PAE/build: No such file or directory.  Stop.
make: *** [default] Error 2
[root@lintest1 kernel]# /etc/init.d/mhvtl start
FATAL: Module mhvtl not found.
No kernel module loaded to feed these daemons.

Need mhvtl kernel module version at least 0.18.11

Please see http://sites.google.com/site/linuxvtl2/

I am lost here..
# pwd
/usr/src/kernels
# ls
2.6.18-194.17.1.0.2.el5-i686
#
Renamed the source dir..  mv 2.6.18-194.17.1.0.2.el5-i686 2.6.18-194.17.1.0.2.el5-PAE-i686 per the link in the /lib/modules/kernel-ver/build pointer.

[root@lintest1 mhvtl-0.18]# cd kernel/    <- Went back to try to build again.
[root@lintest1 kernel]# make
make -C /lib/modules/2.6.18-194.17.1.0.2.el5PAE/build SUBDIRS=/usr/src/redhat/BUILD/mhvtl-0.18/kernel modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.17.1.0.2.el5-PAE-i686'
  CC [M]  /usr/src/redhat/BUILD/mhvtl-0.18/kernel/mhvtl.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/src/redhat/BUILD/mhvtl-0.18/kernel/mhvtl.mod.o
  LD [M]  /usr/src/redhat/BUILD/mhvtl-0.18/kernel/mhvtl.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.17.1.0.2.el5-PAE-i686'
[root@lintest1 kernel]# make install
install -o root -g root -m 644 mhvtl.ko /lib/modules/`uname -r`/kernel/drivers/scsi/; \
        depmod -ae; \
        if [ -f "/etc/modprobe.d/unsupported-modules" ]; then \
                sed -e 's/^allow_unsupported_modules 0/allow_unsupported_modules 1/' /etc/modprobe.d/unsupported-modules > /etc/new; \
                /bin/mv /etc/new /etc/modprobe.d/unsupported-modules; \
        fi

  Looks like it worked.!!
 
[root@lintest1 kernel]# /etc/init.d/mhvtl start

FATAL: Error inserting mhvtl (/lib/modules/2.6.18-194.17.1.0.2.el5PAE/kernel/drivers/scsi/mhvtl.ko): Invalid module format
No kernel module loaded to feed these daemons.

Way confused...

I am not sure why my install shows the PAE version, and the source dir does not show it.
Is is a simple manner of renaming the dir?

John
nia
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL install on RHEL5

nia
Administrator
I wonder if "PAE" Kernels are supported  ? Not sure ..
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL install on RHEL5

Mark Harvey
Administrator
In reply to this post by jadams
What does 'uname -r' return ?
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: MHVTL install on RHEL5

Mark Harvey
Administrator
Please ignore the request for 'uname -a'.. I see the information already supplied.

How about the output of 'ls -l /lib/modules/`uname -r`/kernel/drivers/scsi/'
Also (just for completeness sake)
'ls -l /lib/modules/2.6.18-194.17.1.0.2.el5PAE/kernel/drivers/scsi'

What does an "modprobe mhvtl" produce (it should error - based on the information supplied to date).
You may need to check /var/log/messages for more details..

Is there a reason you are running
a) 32bit OS with more than 2G RAM ? - 64bit OS is much better with large amounts of RAM..
b) If you don't have more than 2G RAM, why you are running the PAE kernel ? - Try booting from the standard (non PAE) kernel and re-test the kernel module compile/install

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

Re: MHVTL install on RHEL5

jadams
It defiantly had to do with the -PAE kernel.
I didn't "up2date" the kernel, just downloaded the kernel-devel, gcc and a few others.
Then built mhvtl, and fired it up.
using lsscsi -g I can see all the default vtl controllers and drives.
I used mtx and mt to ensure I could load a tape, backup, unload, reload a tape, and restore data.
Now I am using tgt to export the devices via iscsi.
I have been having some problems, but it looks like I have got it working using the latest version of tgt,
making all the devices "passthrough".
I originally had problems getting the devices to work with -device-type=tape or =controller, but
with the new version of tgt, I am using the passthrough option with tgt.

  I will do a quick document of the steps I took to get things going..

John