在Linux下配置虛擬磁帶庫 讓Oracle備份更近生產

來源:互聯網
上載者:User

一、編譯RHEL5.4核心
1.1、安裝軟體包

使用yum或者rpm命令安裝如下軟體包

gcc-4.*
gcc-c++-4.*
rpm-4.*
rpm-build-4.*
RedHat-rpm-config-8.*
unifdef-1.*
subversion-1.*

1.2、安裝核心原始碼,

將核心原始碼kernel-2.6.18-194.8.1.el5.src.rpm拷貝到/usr/src/redhat/SPECS/

用rpm -i kernel-2.6.18-194.8.1.el5.src.rpm命令安裝

準備源檔案:

# cd /usr/src/redhat/SPECS

# rpmbuild -bp --target=x86_64 kernel-2.6.spec

產生的源檔案樹位於/usr/src/redhat/BUILD下

拷貝linux-2.6.18.x86_64目錄下所有源檔案到/usr/src/kernels/

# cp -Rf /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64 /usr/src/kernels/

1.3、為核心原始碼安裝補丁

將iscsi-scst-1.0.1.1.tar、scst-1.0.1.1.tar、scstadmin-1.0.6.tar拷貝到/root/下並解壓縮

用chown -R root:root /root/XXXX和chmod -R 775 /root/XXXX命令分配使用者和給予許可權

安裝補丁

# 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、編譯核心並安裝

# cd /usr/src/kernels/linux-2.6.18.x86_64/

# make

# make modules

# make modules_install

# make install

檢查/boot/grub/menu.lst,確認裡面有2.6.18-prep這一條。

重新啟動系統,選擇新編譯的核心。要預設從新核心啟動,將“default=1”修改。

二、安裝SCST(iSCSI Target)
2.1、安裝SCST所需軟體包

從新核心2.6.18-prep啟動

使用yum或者rpm命令安裝如下軟體包

openssl-0.*

openssl-devel-0.*

2.2、安裝SCST
# cd /root/scst-1.0.1.1/src

# make all

# make install

# cd /root/scstadmin-1.0.6

# make all

# make install

# cd /root/iscsi-scst-1.0.1.1

# make all

# make install

# cp etc/initiators.* /etc/

# cp etc/iscsi-scstd.conf /etc/

三、安裝MHVTL3.1、安裝MHVTL所需軟體包

從新核心2.6.18-prep啟動,使用yum或者rpm命令安裝如下軟體包

zlib-1.*

zlib-devel-1.*

sg3_utils-libs-1.*

sg3_utils-1.*

lsscsi-0.*

mt-st-0.*

mtx-1.*

3.2、安裝MHVTL
用chown -R root:root /storage/mhvtl-0.18和chmod -R 775 /storage/mhvtl-0.18命令分配使用者和給予許可權

必須有vtl使用者和vlt組(安裝可以不使用vtl使用者和vlt組,使用root使用者)

# 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

# cd /storage/mhvtl-0.18/

# make

# make install

# /etc/init.d/mhvtl start

  • 1
  • 2
  • 3
  • 下一頁

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.