1. Compile RHEL5.4 kernel 1.1 and install the software package using the yum or rpm command to install the following software package gcc-4. * gcc-c ++-4. * rpm-4. * rpm-build-4. * redhat-rpm-confi
1. Compile RHEL5.4 kernel 1.1 and install the software package using the yum or rpm command to install the following software package gcc-4. * gcc-c ++-4. * rpm-4. * rpm-build-4. * redhat-rpm-confi
1. Compile the RHEL5.4 Kernel
1.1 install software packages
Use the yum or rpm command to install the following software package:
Gcc-4 .*
Gcc-c ++-4 .*
Rpm-4 .*
Rpm-build-4 .*
RedHat-rpm-config-8 .*
Unifdef-1 .*
Subversion-1 .*
1.2 install the kernel source code,
Copy the kernel source code kernel-2.6.18-194.8.1.el5.src.rpm to/usr/src/redhat/SPECS/
Install with rpm-I kernel-2.6.18-194.8.1.el5.src.rpm command
Prepare the source file:
# Cd/usr/src/redhat/SPECS
# Rpmbuild-bp -- target = x86_64 kernel-2.6.spec
The generated source file tree is located under/usr/src/redhat/BUILD.
Copy all source files under the linux-2.6.18.x86_64 directory to/usr/src/kernels/
# Cp-Rf/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/usr/src/kernels/
1.3 Install patches for kernel source code
Copy iscsi-scst-1.0.1.1.tarw.scst-1.0.1.1.tarw.scstadmin-1.0.6.tar to/root/and decompress
Use the chown-R root: root/XXXX and chmod-R 775/root/XXXX commands to assign users and grant permissions.
Install patches
# Cd/usr/src/kernels/linux-2.6.18.x86_64/
# Patch-p1 </root/iscsi-scst-1.0.1.1/kernel/patches/put_page_callback-2.6.18.1.patch
# Patch-p1 </root/scst-1.0.1.1/kernel/scst_exec_req_fifo-2.6.18.patch
1.4 compile and install the kernel
# Cd/usr/src/kernels/linux-2.6.18.x86_64/
# Make
# Make modules
# Make modules_install
# Make install
Check/boot/grub/menu. lst and check whether 2.6.18-prep exists.
Restart the system and select the newly compiled kernel. To start the new kernel by default, modify "default = 1.
Ii. Install SCST (iSCSI Target)
2.1 install the required software package for SCST
Start from kernel 2.6.18-prep
Use the yum or rpm command to install the following software package:
Openssl-0 .*
Openssl-devel-0 .*
2.2 install SCST
# Cd/root/scst-1.0.1.1/src
# Make all
# Make install
# Scstadmin-1.0.6/cd/root
# Make all
# Make install
# Iscsi-scst-1.0.1.1/cd/root
# Make all
# Make install
# Cp etc/initiators. */etc/
# Cp etc/iscsi-scstd.conf/etc/
3. Install MHVTL3.1 and the software packages required for MHVTL
Start from the new kernel 2.6.18-prep and install the following software package using the yum or rpm command.
Zlib-1 .*
Zlib-devel-1 .*
Sg3_utils-libs-1 .*
Sg3_utils-1 .*
Lsscsi-0 .*
Mt-st-0 .*
Mtx-1 .*
3.2 install MHVTL
Use chown-R root: root/storage/mhvtl-0.18 and chmod-R 775/storage/mhvtl-0.18 commands to assign users and grant permissions
There must be vtl users and vlt groups (installation can be performed without vtl users or vlt groups, with root users)
# Mkdir-p/opt/mhvtl
# Mkdir-p/etc/mhvtl
# Chown-Rf vtl: vtl/opt/mhvtl
# Chown-Rf vtl: vtl/etc/mhvtl
# Chmod-R 775/storage/mhvtl-0.18
# Cd/storage/mhvtl-0.18/kernel/
# Make
# Make install
# Mhvtl-0.18/cd/storage/
# Make
# Make install
#/Etc/init. d/mhvtl start