Install on centos

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

Install on centos

nationals
I have installed mhvtl-2011-06-25.tgz on centos 5.6 with :

yum install -y gcc gcc-c++ glibc glibc-devel glibc-headers kernel kernel-devel kernel-headers make
yum install -y zlib-devel sg3_utils lsscsi mt-st mtx
groupadd vtl
useradd -c "Vitrual Tape Library" -d /opt/vtl -g vtl -m vtl
mkdir -p /opt/mhvtl
mkdir -p /etc/mhvtl
chown -Rf vtl:vtl /opt/mhvtl
chown -Rf vtl:vtl /etc/mhvtl
wget http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/file/n3107172/mhvtl-2011-06-25.tgz
tar zxvf mhvtl-2011-06-25.tgz
cd mhvtl-0.18
make distclean
cd kernel/
make && make install
cd ..
make && make install
chkconfig mhvtl on
/etc/init.d/mhvtl start
yum install -y scsi-target-utils
chkconfig tgtd on
service tgtd start
/etc/init.d/tgtd status
# pls add this to /etc/rc.local to start it when booting.
tgtadm --lld iscsi --op new --mode target --tid 1 --targetname iqn.2011.07.local.domain:vtl
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --bstype=sg --device-type=pt -b /dev/sg2
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 2 --bstype=sg --device-type=pt -b /dev/sg3
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
tgtadm --lld iscsi --op show --mode target
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

nia
Administrator
Thanks for the instructions ...

watch out for the old version being installed using "yum install -y scsi-target-utils" I think it is 1.0.8.

They are up-to "1.0.18" now and some patches were included specifically for the VTL support, I think in version 1.0.16.

Let us know if you have any issues with the current version you are running.

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

Re: Install on centos

nationals
This post was updated on .
testing new script code:


#!/bin/bash

###  Install script for auto install mhvtl on Centos
###  made by patrick ru
###  mail: patrick.ru@hotmail.com
###  Date: 2011.Jul.07

# install supported Rpms
yum groupinstall -y "Development Tools"
yum install -y autoconf zlib zlib-devel curl curl-devel openssl-devel rsync bzip2 perl perl-devel cpio expat-devel gettext-devel
mkdir -p /usr/src/git
cd /usr/src/git
wget http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2
bzip2 -d git-1.7.6.tar.bz2
tar xvf git-1.7.6.tar
cd git-1.7.6
autoconf
./configure
make && make install
ln -s /usr/local/bin/git /usr/bin/git
sleep 5

# install mhvtl
yum install -y zlib-devel sg3_utils lsscsi mt-st mtx
groupadd vtl
useradd -c "Vitrual Tape Library" -d /opt/vtl -g vtl -m vtl
mkdir -p /opt/mhvtl
mkdir -p /etc/mhvtl
chown -Rf vtl:vtl /opt/mhvtl
chown -Rf vtl:vtl /etc/mhvtl
mkdir -p /usr/src/mhvtl
cd /usr/src/mhvtl
git init
git pull http://github.com/markh794/mhvtl.git 
make distclean
cd kernel/
make && make install
cd ..
make && make install
chkconfig mhvtl on
/etc/init.d/mhvtl start

# install mhvtl gui
yum install -y httpd php sysstat sudo
cp /etc/sudoers /etc/sudoers.old
chmod 740 /etc/sudoers
echo "apache ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sed '/Defaults    requiretty/s/^/#/' /etc/sudoers > /etc/sudoers.new
mv -f /etc/sudoers.new /etc/sudoers
chmod 440 /etc/sudoers
chkconfig httpd on
service httpd start
cd /var/www/html
git init
git pull http://github.com/niadev67/mhvtl-gui.git 
chown -R apache:apache ./

# install STGT
yum install -y scsi-target-utils
mkdir -p /usr/src/tgt
cd /usr/src/tgt
wget http://stgt.sourceforge.net/releases/tgt-1.0.18.tar.gz
tar zxvf tgt-1.0.18.tar.gz
cd tgt-1.0.18
make clean
make
make install
chkconfig tgtd on
service tgtd start


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

Re: Install on centos

praeTorian
This post was updated on .
In reply to this post by nationals
I tried your new script for mhvtl, but it doesn't work completely. See log as attachment.
scriptinstall_mhvtl.txt

I did a network installation from centos 5.6 with the server und desktop gnome package.

---
There is the error:

make[1]: Entering directory `/usr/src/mhvtl/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/mhvtl/etc'

Could not locate library config file: /etc/mhvtl/library_contents.10
Creating a default one
Please stop mhvtl & edit /etc/mhvtl/library_contents.10 to suit your requirements

Could not locate library config file: /etc/mhvtl/library_contents.30
Creating a default one
Please stop mhvtl & edit /etc/mhvtl/library_contents.30 to suit your requirements
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/

---

Do you know what failure ?

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

Re: Install on centos

nationals
test run the following before you run the install script:

yum install -y gcc gcc-c++ glibc glibc-devel glibc-headers kernel kernel-devel kernel-headers make

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

Re: Install on centos

nia
Administrator
In reply to this post by nationals

nationals wrote
# install STGT
mkdir -p /usr/src/tgt
cd /usr/src/tgt
wget http://stgt.sourceforge.net/releases/tgt-1.0.18.tar.gz

You can also do "git pull http://git.kernel.org/pub/scm/linux/kernel/git/tomo/tgt.git" to get the latetest and greatest code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

nationals
Thanks!

update as:

# install STGT
yum install -y scsi-target-utils
mkdir -p /usr/src/tgt
cd /usr/src/tgt
git init
git pull http://git.kernel.org/pub/scm/linux/kernel/git/tomo/tgt.git
make clean
make
make install
chkconfig tgtd on
service tgtd start

but, Could I install the stgt through the gui?

and what's different between install standalone and install regular?

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

Re: Install on centos

nia
Administrator
nationals wrote
but, Could I install the stgt through the gui?
Yes

nationals wrote
and what's different between install standalone and install regular?
Just an option, if you just want to test stgt and not install it in your system, you can do the standalone

Install Regular, adds the "make install" which installs it on your system ..

Both run the same.

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

Re: Install on centos

praeTorian
In reply to this post by nationals
I tried to install your recommended packages and manually mhvtl, but the failure shows again.
Did you test your new script on a fresh installed centos 5.6 ?

---
LOG
---
[root@localhost ~]# yum install -y gcc gcc-c++ glibc glibc-devel glibc-headers k                    ernel kernel-devel kernel-headers make
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.intergenia.de
 * extras: centos.intergenia.de
 * updates: centos.intergenia.de
base                                                     | 2.1 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
Setting up Install Process
Package gcc-4.1.2-50.el5.x86_64 already installed and latest version
Package gcc-c++-4.1.2-50.el5.x86_64 already installed and latest version
Package glibc-2.5-58.el5_6.4.x86_64 already installed and latest version
Package glibc-2.5-58.el5_6.4.i686 already installed and latest version
Package glibc-devel-2.5-58.el5_6.4.x86_64 already installed and latest version
Package glibc-headers-2.5-58.el5_6.4.x86_64 already installed and latest version
Package kernel-devel-2.6.18-238.12.1.el5.x86_64 already installed and latest ver                    sion
Package kernel-headers-2.6.18-238.12.1.el5.x86_64 already installed and latest v                    ersion
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-58.el5_6.4 set to be updated
---> Package kernel.x86_64 0:2.6.18-238.12.1.el5 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch         Version                     Repository     Size
================================================================================
Installing:
 glibc-devel       i386         2.5-58.el5_6.4              updates       2.0 M
 kernel            x86_64       2.6.18-238.12.1.el5         updates        19 M

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 21 M
Downloading Packages:
(1/2): glibc-devel-2.5-58.el5_6.4.i386.rpm               | 2.0 MB     00:01
(2/2): kernel-2.6.18-238.12.1.el5.x86_64.rpm             |  19 MB     00:04
--------------------------------------------------------------------------------
Total                                           3.8 MB/s |  21 MB     00:05
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : glibc-devel                                              1/2
  Installing     : kernel                                                   2/2

Installed:
  glibc-devel.i386 0:2.5-58.el5_6.4               kernel.x86_64 0:2.6.18-238.12.1.el5

Complete!
[root@localhost ~]# useradd -c "Vitrual Tape Library" -d /opt/vtl -g vtl -m vtl
mkdir -p /opt/mhvtl
mkdir -p /etc/mhvtl
chown -Rf vtl:vtl /opt/mhvtl
chown -Rf vtl:vtl /etc/mhvtl
mkdir -p /usr/src/mhvtl
cd /usr/src/mhvtl
git init
git pull http://github.com/markh794/mhvtl.git
make distclean
cd kernel/
make && make install
cd ..
make && make install
chkconfig mhvtl on
/etc/init.d/mhvtl start
useradd: user vtl exists
[root@localhost ~]# mkdir -p /opt/mhvtl
[root@localhost ~]# mkdir -p /etc/mhvtl
[root@localhost ~]# chown -Rf vtl:vtl /opt/mhvtl
[root@localhost ~]# chown -Rf vtl:vtl /etc/mhvtl
[root@localhost ~]# mkdir -p /usr/src/mhvtl
[root@localhost ~]# cd /usr/src/mhvtl
[root@localhost mhvtl]# git init
Reinitialized existing Git repository in /usr/src/mhvtl/.git/
[root@localhost mhvtl]# git pull http://github.com/markh794/mhvtl.git
From http://github.com/markh794/mhvtl
 * branch            HEAD       -> FETCH_HEAD
Already up-to-date.
[root@localhost mhvtl]# make distclean
make -C usr distclean
make[1]: Entering directory `/usr/src/mhvtl/usr'
rm -f vtltape.o vtltape \
        dump_tape.o dump_tape \
        q.o q \
        vtlcmd.o vtlcmd \
        dump_messageQ.o dump_messageQ \
        core mktape mktape.o \
        vtllib.o libvtlscsi.so \
        vtlcart.o spc.o \
        smc.o ssc.o \
        default_ssc_pm.o \
        ult3580_pm.o \
        hp_ultrium_pm.o \
        ait_pm.o t10000_pm.o ibm_03592_pm.o \
        z.o z \
        TAGS \
        make_vtl_media \
        make_vtl_media.1 \
        tapeexerciser tapeexerciser.o \
        vtllibrary vtllibrary.o
make[1]: Leaving directory `/usr/src/mhvtl/usr'
make -C etc distclean
make[1]: Entering directory `/usr/src/mhvtl/etc'
rm -f mhvtl
make[1]: Leaving directory `/usr/src/mhvtl/etc'
make -C scripts distclean
make[1]: Entering directory `/usr/src/mhvtl/scripts'
rm -f update_device.conf
make[1]: Leaving directory `/usr/src/mhvtl/scripts'
make -C kernel distclean
make[1]: Entering directory `/usr/src/mhvtl/kernel'
rm -f mhvtl.o mhvtl.ko \
        *.o \
        *.o.d \
        mhvtl.mod.c \
        Modules.symvers \
        Module.symvers \
        .mhvtl.ko.cmd \
        .mhvtl.o.cmd \
        .mhvtl.mod.o.cmd \
        .event.o.cmd \
        .event.o.d \
        Module.markers \
        modules.order \
        TAGS
rm -rf .tmp_versions
make[1]: Leaving directory `/usr/src/mhvtl/kernel'
[root@localhost mhvtl]# cd kernel/
[root@localhost kernel]# make && make install
make -C /lib/modules/2.6.18-238.el5/build SUBDIRS=/usr/src/mhvtl/kernel modules
make: *** /lib/modules/2.6.18-238.el5/build: No such file or directory.  Stop.
make: *** [default] Error 2
[root@localhost kernel]# cd ..
[root@localhost mhvtl]# make && make install
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/mhvtl/usr'
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic vtllib.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic spc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic smc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -c -fpic q.c
cc -shared  -o libvtlscsi.so vtllib.o spc.o smc.o q.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtltape.o vtltape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtlcart.o vtlcart.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ssc.o ssc.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o default_ssc_pm.o default_ssc_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ult3580_pm.o ult3580_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o hp_ultrium_pm.o hp_ultrium_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ait_pm.o ait_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o t10000_pm.o t10000_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o ibm_03592_pm.o ibm_03592_pm.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtltape vtltape.o vtlcart.o ssc.o \
                default_ssc_pm.o \
                ult3580_pm.o \
                hp_ultrium_pm.o \
                ait_pm.o t10000_pm.o ibm_03592_pm.o \
                -lz -L. -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o dump_tape.o dump_tape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o dump_tape dump_tape.o vtlcart.o -L. -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtlcmd.o vtlcmd.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtlcmd vtlcmd.o
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o dump_messageQ.o dump_messageQ.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o dump_messageQ dump_messageQ.o -L. -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o mktape.o mktape.c
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o mktape mktape.o vtlcart.o -L. -lvtlscsi
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\"   -c -o vtllibrary.o vtllibrary.c
vtllibrary.c:747: warning: âlookup_slotâ defined but not used
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o vtllibrary vtllibrary.o -L. -lvtlscsi
sed -e s'/@HOME_PATH@/\/opt\/mhvtl/' make_vtl_media.in > make_vtl_media.1
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' make_vtl_media.1 > make_vtl_media
rm -f make_vtl_media.1
cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE  -I../kernel -DMHVTL_VERSION=\"0.18.17-git-d52d1de\" -DMHVTL_DEBUG -DUSR=\"vtl\" -DMHVTL_HOME_PATH=\"/opt/mhvtl\" -DMHVTL_CONFIG_PATH=\"/etc/mhvtl\" -o tapeexerciser tapeexerciser.c
make[1]: Leaving directory `/usr/src/mhvtl/usr'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/mhvtl/etc'
sed -e s'/@USR@/vtl/' mhvtl.in > mhvtl.1
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' mhvtl.1 > mhvtl
rm -f mhvtl.1
make[1]: Leaving directory `/usr/src/mhvtl/etc'
make -C scripts MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[1]: Entering directory `/usr/src/mhvtl/scripts'
sed -e s'/@CONF_PATH@/\/etc\/mhvtl/' update_device.conf.in > update_device.conf
make[1]: Leaving directory `/usr/src/mhvtl/scripts'
make usr
make[1]: Entering directory `/usr/src/mhvtl'
make -C usr USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/mhvtl/usr'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/mhvtl/usr'
make[1]: Leaving directory `/usr/src/mhvtl'
make -C usr install /usr
make[1]: Entering directory `/usr/src/mhvtl/usr'
install -d -m 755 /usr/lib64
install -o root -g bin -m 755 libvtlscsi.so /usr/lib64/
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/mhvtl/usr'
make scripts
make[1]: Entering directory `/usr/src/mhvtl'
make -C scripts MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/mhvtl/scripts'
make[2]: `update_device.conf' is up to date.
make[2]: Leaving directory `/usr/src/mhvtl/scripts'
make[1]: Leaving directory `/usr/src/mhvtl'
make -C scripts install /usr
make[1]: Entering directory `/usr/src/mhvtl/scripts'
install -m 700 update_device.conf /usr/bin/
make[1]: Nothing to be done for `/usr'.
make[1]: Leaving directory `/usr/src/mhvtl/scripts'
make etc
make[1]: Entering directory `/usr/src/mhvtl'
make -C etc USR=vtl GROUP=vtl MHVTL_HOME_PATH=/opt/mhvtl MHVTL_CONFIG_PATH=/etc/mhvtl
make[2]: Entering directory `/usr/src/mhvtl/etc'
make[2]: `mhvtl' is up to date.
make[2]: Leaving directory `/usr/src/mhvtl/etc'
make[1]: Leaving directory `/usr/src/mhvtl'
make -C etc install USR=vtl
make[1]: Entering directory `/usr/src/mhvtl/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/mhvtl/etc'
[root@localhost mhvtl]# chkconfig mhvtl on
[root@localhost mhvtl]# /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/
[root@localhost mhvtl]# yum install -y gcc gcc-c++ glibc glibc-devel glibc-headers kernel kernel-devel kernel-headers make
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.intergenia.de
 * extras: centos.intergenia.de
 * updates: centos.intergenia.de
Setting up Install Process
Package gcc-4.1.2-50.el5.x86_64 already installed and latest version
Package gcc-c++-4.1.2-50.el5.x86_64 already installed and latest version
Package glibc-2.5-58.el5_6.4.x86_64 already installed and latest version
Package glibc-2.5-58.el5_6.4.i686 already installed and latest version
Package glibc-devel-2.5-58.el5_6.4.x86_64 already installed and latest version
Package glibc-devel-2.5-58.el5_6.4.i386 already installed and latest version
Package glibc-headers-2.5-58.el5_6.4.x86_64 already installed and latest version
Package kernel-2.6.18-238.12.1.el5.x86_64 already installed and latest version
Package kernel-devel-2.6.18-238.12.1.el5.x86_64 already installed and latest version
Package kernel-headers-2.6.18-238.12.1.el5.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Nothing to do
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

Mark Harvey
OK,

The error is:
[root@localhost kernel]# make && make install 
make -C /lib/modules/2.6.18-238.el5/build SUBDIRS=/usr/src/mhvtl/kernel modules 
make: *** /lib/modules/2.6.18-238.el5/build: No such file or directory.  Stop. 
make: *** [default] Error 2

kernel-devel is aparently not good enough to build external kernel modules. Off the top of my head, I'm not sure what else is needed


Sent from my iPad

On Jul 8, 2011, at 16:40, "praeTorian [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

[root@localhost kernel]# make && make install
make -C /lib/modules/2.6.18-238.el5/build SUBDIRS=/usr/src/mhvtl/kernel modules
make: *** /lib/modules/2.6.18-238.el5/build: No such file or directory.  Stop.
make: *** [default] Error 2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

nationals
 yum install -y kernel
 yum install -y kernel-devel
 yum install -y kernel-headers

make sure this is installed successful!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

nationals
This post was updated on .
install centos 5.6











other is using the default settings.



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

Re: Install on centos

crippa.andrea
In reply to this post by Mark Harvey
praeTorian wrote
[root@localhost kernel]# make && make install
make -C /lib/modules/2.6.18-238.el5/build SUBDIRS=/usr/src/mhvtl/kernel modules
make: *** /lib/modules/2.6.18-238.el5/build: No such file or directory.  Stop.
make: *** [default] Error 2
Mark Harvey wrote
kernel-devel is aparently not good enough to build external kernel modules. Off the top of my head, I'm not sure what else is needed
Have you ever tried to download, install and compile the source kernel for Cenots ?

http://mirror.centos.org/centos/5.6/os/SRPMS/kernel-2.6.18-238.el5.src.rpm

Some times ago, I've done this little guide for Centos 5.4, but i think is the same in Centos 5.6.

crippa.andrea wrote
1) – Download the kernel source from here
2) – Create the directory tree for the kernel source (where you prefer) :
mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
3) – Edit the file /root/.rpmmacros : it should contain the inscrution for the rpmbuild path :
%_topdir /your_full_path_to_rpmbuild/rpmbuild
4) – Extract the kernel source
rpm -i kernel-2.6.18-164.el5.src.rpm (See new kernel version)
5) – Go to the SPECS directory and do the rpmbuild :
rpmbuild -bp --target i686 kernel-2.6.spec --without fips
6) – Go to /BUILD/kernel-2.6.18/linux-2.6.18.i686 and compile the kernel
make menuconfig
make rpm

Install the rpm and the .src.rpm, makeinitrd and you are done
Let me know if you have the problem after doing this step , later I can try it on a fresh install.

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

Re: Install on centos

praeTorian
In reply to this post by nationals
Now, mhvtl and gui installation works with your script.
I changed following line in your script and booted from the installed (not updated) kernel:

->  yum install -y autoconf zlib zlib-devel curl curl-devel openssl-devel rsync bzip2 perl perl-devel cpio expat-devel gettext-devel gcc gcc-c++ glibc glibc-devel glibc-headers kernel-devel kernel-headers kernel make

But, i think "kernel" have to be removed, because after a reboot there will be a new kernel version used.
(change in menu.lst is a choice to avoid that)

Two problems: the connection to the gui from outside is not possible and I can't connect via iSCSI from a Win2k8x64 client.

1. Checked SELinux
[root@mhvtl html]# setenforce 0
setenforce: SELinux is disabled

2. ALL can connect ?!
[root@mhvtl html]# tgtadm --lld iscsi --mode target --op show
Target 1: iqn.1994-05.com.redhat:6d7e3053b45:mhvtl:stgt:1
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00010000
            SCSI SN: beaf10
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags:
        LUN: 1
            Type: passthrough
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg9
            Backing store flags:
        LUN: 2
            Type: passthrough
            SCSI ID: IET     00010002
            SCSI SN: beaf12
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg1
            Backing store flags:
        LUN: 3
            Type: passthrough
            SCSI ID: IET     00010003
            SCSI SN: beaf13
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg2
            Backing store flags:
        LUN: 4
            Type: passthrough
            SCSI ID: IET     00010004
            SCSI SN: beaf14
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg3
            Backing store flags:
        LUN: 5
            Type: passthrough
            SCSI ID: IET     00010005
            SCSI SN: beaf15
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg4
            Backing store flags:
    Account information:
    ACL information:
        ALL
        10.20.1.143/16
Target 2: iqn.1994-05.com.redhat:6d7e3053b45:mhvtl:stgt:2
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00020000
            SCSI SN: beaf20
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags:
        LUN: 1
            Type: passthrough
            SCSI ID: IET     00020001
            SCSI SN: beaf21
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg10
            Backing store flags:
        LUN: 2
            Type: passthrough
            SCSI ID: IET     00020002
            SCSI SN: beaf22
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg5
            Backing store flags:
        LUN: 3
            Type: passthrough
            SCSI ID: IET     00020003
            SCSI SN: beaf23
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg6
            Backing store flags:
        LUN: 4
            Type: passthrough
            SCSI ID: IET     00020004
            SCSI SN: beaf24
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg7
            Backing store flags:
        LUN: 5
            Type: passthrough
            SCSI ID: IET     00020005
            SCSI SN: beaf25
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg8
            Backing store flags:
    Account information:
    ACL information:
        ALL
-----------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

crippa.andrea
Have you checked that iptable is not active or is configured correctly for iscsi tcp port ? 

2011/7/8 praeTorian [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>
Now, mhvtl and gui installation works with your script.
I changed following line in your script and booted from the installed (not updated) kernel:

->  yum install -y autoconf zlib zlib-devel curl curl-devel openssl-devel rsync bzip2 perl perl-devel cpio expat-devel gettext-devel gcc gcc-c++ glibc glibc-devel glibc-headers kernel-devel kernel-headers kernel make

But, i think "kernel" have to be removed, because after a reboot there will be a new kernel version used.
(change in menu.lst is a choice to avoid that)

Two problems: the connection to the gui from outside is not possible and I can't connect via iSCSI from a Win2k8x64 client.

1. Checked SELinux
[root@mhvtl html]# setenforce 0
setenforce: SELinux is disabled

2. ALL can connect ?!
[root@mhvtl html]# tgtadm --lld iscsi --mode target --op show
Target 1: iqn.1994-05.com.redhat:6d7e3053b45:mhvtl:stgt:1
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00010000
            SCSI SN: beaf10
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags:
        LUN: 1
            Type: passthrough
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg9
            Backing store flags:
        LUN: 2
            Type: passthrough
            SCSI ID: IET     00010002
            SCSI SN: beaf12
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg1
            Backing store flags:
        LUN: 3
            Type: passthrough
            SCSI ID: IET     00010003
            SCSI SN: beaf13
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg2
            Backing store flags:
        LUN: 4
            Type: passthrough
            SCSI ID: IET     00010004
            SCSI SN: beaf14
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg3
            Backing store flags:
        LUN: 5
            Type: passthrough
            SCSI ID: IET     00010005
            SCSI SN: beaf15
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg4
            Backing store flags:
    Account information:
    ACL information:
        ALL
        10.20.1.143/16
Target 2: iqn.1994-05.com.redhat:6d7e3053b45:mhvtl:stgt:2
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00020000
            SCSI SN: beaf20
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags:
        LUN: 1
            Type: passthrough
            SCSI ID: IET     00020001
            SCSI SN: beaf21
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg10
            Backing store flags:
        LUN: 2
            Type: passthrough
            SCSI ID: IET     00020002
            SCSI SN: beaf22
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg5
            Backing store flags:
        LUN: 3
            Type: passthrough
            SCSI ID: IET     00020003
            SCSI SN: beaf23
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg6
            Backing store flags:
        LUN: 4
            Type: passthrough
            SCSI ID: IET     00020004
            SCSI SN: beaf24
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg7
            Backing store flags:
        LUN: 5
            Type: passthrough
            SCSI ID: IET     00020005
            SCSI SN: beaf25
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: sg
            Backing store path: /dev/sg8
            Backing store flags:
    Account information:
    ACL information:
        ALL
-----------



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/Install-on-centos-tp3140038p3151484.html
To unsubscribe from Install on centos, click here.



--
Crippa Andrea


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

Re: Install on centos

praeTorian
Right, that was enabled.

To disable:
/etc/init.d/iptables stop

Now, all is fine.
Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Install on centos

crippa.andrea
Consider to leave it enabled , configuring it correctly for tcp port 3260.

Bye

2011/7/8 praeTorian [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]>
Right, that was enabled.

To disable:
/etc/init.d/iptables stop

Now, all is fine.
Thanks


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/Install-on-centos-tp3140038p3151670.html
To unsubscribe from Install on centos, click here.



--
Crippa Andrea


Loading...