PROBLEM

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

PROBLEM

Norad
HI
I just wanted to install MHVTL for some tests on my SUSE or Oracle Linux. In both cases i had the same problem:
#rpm -ivh mhvtl-0.18-12.src.rpm ---> 100%
#rpm -ivh mhvtl-0.18-12.i586.rpm ---> 100%
#cd /usr/src/redhat/BUILD
#tar xfvz ../SOURCES/mhvtl-2010-11-17.tgz
#ls:
doc
etc
include
INSTALL
kernel
log
Makefile
man
mhvtl-0.18.ebuild
mhvtl.spec
README
scripts
usr


#make
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/usr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/usr'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/etc'
make[1]: `mhvtl' is up to date.
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/etc'
make -C scripts MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/scripts'
make[1]: `update_device.conf' is up to date.
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/scripts'


#make install
make usr
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18'
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/usr'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/usr'
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18'
make -C usr install /usr
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/usr'
install -d -m 755 /usr/lib
install -o root -g bin -m 755 libvtlscsi.so /usr/lib/
install -d -m 755 /usr/bin
install -o root -g vtl -m 4750 vtltape /usr/bin/
install -o root -g vtl -m 4750 vtllibrary /usr/bin/
install -o vtl -g vtl -m 750 vtlcmd /usr/bin/
install -o vtl -g vtl -m 750 mktape /usr/bin/
install -o vtl -g vtl -m 750 dump_tape /usr/bin/
install -o vtl -g vtl -m 755 tapeexerciser /usr/bin/
install -m 700 build_library_config /usr/bin/
install -m 700 make_vtl_media /usr/bin/
make[1]: Nothing to be done for `/usr'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/usr'
make scripts
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18'
make -C scripts MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/scripts'
make[2]: `update_device.conf' is up to date.
make[2]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/scripts'
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18'
make -C scripts install
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/scripts'
install -m 700 update_device.conf /usr/bin/
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/scripts'
make etc
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/etc'
make[2]: `mhvtl' is up to date.
make[2]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/etc'
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18'
make -C etc install USR=vtl
make[1]: Entering directory `/usr/src/redhat/BUILD/mhvtl-0.18/etc'
install -d -m 755 /etc
install -d -m 755 /etc/init.d
install -m 700 mhvtl /etc/init.d/
test ! -x /sbin/insserv || /sbin/insserv mhvtl
make[1]: Leaving directory `/usr/src/redhat/BUILD/mhvtl-0.18/etc'


#/etc/init.d/mhvtl
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/

FATAL: Module mhvtl not found
THE SAME PROBLEM ON SUSE AND ORACLE LINUX

Could anybody help me with that problem? Maybe someone knows how to fix it?

nia
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

nia
Administrator
Build kernel module from source you just installed:
  cd /usr/src/packages/BUILD
  tar xvfz ../SOURCES/mhvtl-2009-12-16.tgz
  cd mhvtl-0.16/kernel
  make
  make install
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

Mark Harvey
Administrator
As 'nia' pointed out, you successfully compiled the user-space daemons (also available as an RPM) but did not compile the kernel module. Reviewing the output supplied, you do NOT need to build the user binaries as you already installed the mhvtl-xxxx.i586.rpm

One directory deeper than where you ran your 'make/make install', is the kernel module source.
i.e. mhvtl-0.18/kernel

To build, 'make'
To install, 'make install'

Once you have the kernel module installed and "modprobe -ae" run so the module dependencies list is rebuilt, you will be able to successfully start the mhvtl package.

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

Re: PROBLEM

Norad
Thank you N.I.A and Mark!!!
Running #make;#make install in kernel dir solves the problem ;]. Now i'm trying to export default robots and drives via iSCSI with TGT [Oracle Linux] or ISCSI-Target [SUSE].
I read this:
http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/MHVTL-0-18-10-tgt-iSCSI-target-td1684577.html

but when i'm trying to do that:
#tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2010-01.us.nimsa:tgt:4:16:0:0:T ->succes 100%
i have a problem here:
#tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --bstype=sg --device-type=pt -b /dev/sg1
INVALID USAGE... the same problem on SUSE and ORACLE Linux :(

Maybe someone has some hint for me???

My GOAL is to build some MHVTL box and share it with others on SuseStudio.com. This is the portal where i can build for free customized distribution of OpenSuse with MHVTL and iSCSI support.
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

Mark Harvey
Administrator
What version of stgt are you using ? It's only the later release that
Support the passthru.

I would recommend downloading latest from sourceforge
Regards from Australia
Mark Harvey
nia
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

nia
Administrator
Can you post your # lsscsi -g and # uname -a

As Mark, mentioned, be sure to get the latest tgt i.e. http://stgt.sourceforge.net/releases/tgt-1.0.10.tar.gz
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

Norad
Ehhhhh
On both systems (SUSE and ORACLE Linux) i had prev. version of TGT. Now when i uninstall old TGT everything works fine :) now i will test the appliance with NetBackup on Windows 2003 (64 & 32 bit version) and NetBackup for Solaris 10 SPARC.
Thank You VERY MUCH!!!
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

Mark Harvey
Administrator
Re: NetBackup, Solaris & iSCSI

This will NOT work. It is known to not work.

The 'SCSA sg' driver required by NetBackup does not support iSCSI devices.

In practice, this is not a problem as no enterprise grade tape or library devices are iSCSI.

The only time it is an inconvenience is for testing and we have something like the mhvtl available.

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

Re: PROBLEM

Norad
thats bad...
i thought that will work becouse falconstore VLT iSCSI targets are supported (but by Falconstore docs -> not Symantec) :(
so maybe i will check it with RH or SUSE linux ;]

that will be very helpfull for me with my teaching activities
Reply | Threaded
Open this post in threaded view
|

Re: PROBLEM

Mark Harvey
Administrator
Falconstore will work via fibrechannel

Sent from my iPhone

On 23/11/2010, at 20:14, "Norad [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

thats bad...
i thought that will work becouse falconstore VLT iSCSI targets are supported (but by Falconstore docs -> not Symantec) :(
so maybe i will check it with RH or SUSE linux ;]

that will be very helpfull for me with my teaching activities



Regards from Australia
Mark Harvey