Quantcast

Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

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

Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

crippa.andrea
Hello to all,
this is a little guide, step by step to obtain a fully functional Centos 5.6 system with mhvtl scst and webgui for mhvtl


Centos 5.6 - MHVTL + SCST + WEBGUI

Install Guide Step by Step

crippa.andrea wrote
Install Centos 5.6
        - Create Custom Layout
                - /boot 500Mb (so u can try all the kernel you want)
                - Swap as you need
                - Remaing LVM
        - Setup network
        - Chose Password
        - DESELECT "Gnome Desktop"
        - Select "Customize Now"
                - Develpment
                        - Develpment Library
                        - Development Tool
                        - Legacy Software Develpment
                - Base System
                        - Legacy Software Support

Get the software
        - wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.7.tar.gz
        - svn co https://scst.svn.sourceforge.net/svnroot/scst/trunk scst
        - wget http://kernel.org/pub/software/scm/git/git-1.7.6.tar.gz

Install and patch the kernel
        - tar -zxf linux-2.6.33.7.tar.gz
        - mv linux-2.6.33.7 /usr/src/kernels
        - cd /usr/src/kernels/linux-2.6.33.7/
        - patch -p1 < /root/scst/iscsi-scst/kernel/patches/put_page_callback-2.6.33.patch
        - patch -p1 < /root/scst/scst/kernel/scst_exec_req_fifo-2.6.33.patch
        - make clean && make mrproper
        - cp /boot/config-2.6.18-238.el5 .config
        - make menuconfig
                - Load config file .config
                - General Setup
                        - Local version - append to kernel
                                - .scst
                        - Automatically append version information to the version string
                        - enable deprecated sysfs features to support old userspace tools
                - Exit and Save config file
        - make rpm
        - rpm -i /usr/src/redhat/SRPMS/kernel-2.6.33.7.scst-1.src.rpm
        - rpm -i /usr/src/redhat/RPMS/i386/kernel-2.6.33.7.scst-1.i386.rpm
        - cd /boot
        - mkinitrd initrd-2.6.33.7.scst.img 2.6.33.7.scst
        - cd grub
        - edit grub.conf and add before title
                - title CentOS (2.6.33.7.scst)
                - root (hd0,0)
                - kernel /vmlinuz-2.6.33.7.scst ro root=/dev/VolGroup00/LogVol00
                - initrd /initrd-2.6.33.7.scst.img
        - Rebbot your system
        - After rebbot check uname -a



Install GIT
        - tar -zxf git-1.7.6.tar.gz
        - cd git-1.7.6
        - ./configure
        - make
        - make install
        - cd /usr/bin
        - ln -s /usr/local/bin/git git

Install Mhvtl
        - cd
        - mkdir mkvtl
        - cd mhvtl
        - git init
        - git pull http://github.com/markh794/mhvtl.git
        - 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
        - make distclean
        - cd kernel
        - make && make install
        - cd ..
        - make && make install
        - cd /etc/mhvtl
        - vi device.conf --> Edit your device : see the file attached
        - vi library_contents.XX --> Edit your library : see the file attached
        - service mhvtl start

Install scst
        - cd
        - cd scst
        - make scst scst_install scstadm scstadm_install iscsi iscsi_install
        - cd /etc
        - vi scst.conf --> Make your config : see the file attached
        - service scst start


Install some stuff
        - yum install lsscsi
        - yum install httpd
        - yum install php
        - edit httpd.conf and add at the ned of the file
                Alias /mhvtl "/var/www/html/mhvtl"
                <Directory "/var/www/html/mhvtl">
                   Options None
                   AllowOverride None
                   Order allow,deny
                   Allow from all
                </Directory>
        - yum install mtx
        - yum install mt-st
        - yum install sysstat

Check SeLinux
        - cd /etc/selinux
        - vi config (Set selinux to permissive or disabled for correct mhvtl-gui working)


Install Mhvtl-WebGUI
        - cd
        - mkdir mhvtl-gui
        - cd mhvtl-gui
        - git init  
        - git pull http://github.com/niadev67/mhvtl-gui.git
        - mkdir /var/www/html/mhvtl
        - mv * /var/www/html/mhvtl/
        - echo "apache ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
        - vi /etc/sudoers (comment out the line "Defaults requiretty"
        - service httpd start
Hope this help

Crippa Andrea

device.conf.txt
library_contents.10.txt
scst.conf.txt
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

nia
Administrator
Thank you, nice write up Crippa Andrea

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

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

Stoyan
In reply to this post by crippa.andrea
Dear Crippa Andrea,

Thank you for the great manual - it worked for me so far perfectly.
However, I tried to re-make it for a colleague of mine's workstation - he is running SUSE SLES11
 mhvtl installs and works perfectly, but scst has some problems - modprobe scst_changer refuses to load.
 I'm attaching a putty log of my attempt - I can't figure out what I'm doing wrong
Do you know for any differences or oddities in SLES11?
I'm a Fedora/CentOS user.
Can you scroll through the log, if you have time, of course, and point me what i did wrong?
I'll try again, when I go home on the weekend.
Thank you in advance.
        Stoyan

putty24155156.log
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

sunyue142433
In reply to this post by crippa.andrea
HI:
I can install all step with above successfully!but when I start SCST service,it has a mistake.
scst.conf file is the same to crippa's.The massage is below:
[root@mhvtl ~]# service 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 '2: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 '2: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 '2: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 '2: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 '2: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.      [FAILED]


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

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

crippa.andrea
Hi ....
i have 2 different solution for you ....

1) - If the use of SCST is not a must , you can try to use tgtd (aka yum install scsi-target-utils) and then try to use the NIA web-gui to configure it out.
2) - Otherwisem, if you prefer to use SCST and Centos 5 is not a must, you can try to switch to Centos 6 and take a look to this guide :  http://www.crippaandrea.it/?p=862 . I've successfully tested it with symantec netbackup with no problem.

Bye


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

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

sunyue142433
Hi crippa.andrea
Thank you for your solution,I will have a try later.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

monkinsane
Hi there,

I wrote a usefull guide on installing scst, iscsi-scst & scstadmin. You can find it @ http://monklinux.blogspot.com/

This covers compilation of the kernel - the whole nine yards.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Centos 5.6 + Mhvtl + Scst + WebGUI GUIDE STEP BY STEP

MyName
In reply to this post by sunyue142433
Hai andrea, i`ve some error when i run command
make rpm

output error is :

/root/rpmbuild/BUILD/kernel-2.6.33.7.scst/usr/include/linux/net.h:23: included file 'linux/mm.h' is not exported
make[5]: *** [/root/rpmbuild/BUILD/kernel-2.6.33.7.scst/usr/include/linux/.check] Error 123
make[4]: *** [linux] Error 2
make[3]: *** [headers_check] Error 2
make[2]: *** [vmlinux] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ZRukTM (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.ZRukTM (%build)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2

please for help..

Terima Kasih / Thx
Loading...