Lustre FS 2.8 설치하기
### lustre 2.8 설치 하기
작성자 : 김덕환 (kdh2804@clunix.com)
centos repo 등록
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/6/os/$basearch/
gpgcheck=1
#released updates
[update]
name=CentOS-$releasever – Updates
baseurl=http://mirror.centos.org/centos/6/updates/$basearch/
gpgcheck=1
rpm gpg key 등록
# rpm –import http://mirror.centos.org/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
lustre 관련 의존성 패키지 설치
# yum -y install automake xmlto asciidoc elfutils-libelf-devel zlib-devel binutils-devel newt-devel python-devel \
hmaccalc perl-ExtUtils-Embed rpm-build make gcc redhat-rpm-config patchutils git
epel 등록
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
lustre 관련 의존성 패키지 설치
# yum install -y quilt libselinux-devel
######################################################################################################
lustre 패키지 다운로드
git clone git://git.hpdd.intel.com/fs/lustre-release.git
커널 소스 다운로드 & 설치
# rpm -ivh kernel*.rpm
# cd ~/kernel/rpmbuild
# rpmbuild -bp –target=`uname -m` ./SPECS/kernel.spec
# cd BUILD/kernel-2.6.32-431.el6/linux-2.6.32-431.el6.x86_64/
# cp ~/lustre-release/lustre/kernel_patches/kernel_configs/kernel-2.6.32-2.6-rhel6-x86_64.config ./BUILD/kernel-2.6.32-431.el6/linux-2.6.32-431.el6.x86_64/.config
# ln -s ~/lustre-release/lustre/kernel_patches/series/2.6-rhel6.series series
# ln -s ~/lustre-release/lustre/kernel_patches/patches patches
# quilt push -av
# make oldconfig || make menuconfig
# make include/asm
# make include/linux/version.h
# make SUBDIRS=scripts
# make include/linux/utsrelease.h
# make rpm
# ls ~/kernel/rpmbuild/RPMS/x86_64/kernel-2.6.32.431.5.1.el6_clunix_lustre_v1-1.x86_64.rpm
—————————————————————————————————–
# yum install python-utils
# ./configure –with-linux=/root/kernel/rpmbuild/BUILD/kernel-2.6.32.431.5.1.el6_clunix_lustre_v1/
# make
# make rpms
————————————————-
# rpm -ivh ~/kernel/rpmbuild/RPMS/x86_64/kernel-2.6.32.431.5.1.el6_clunix_lustre_v1-1.x86_64.rpm
# /sbin/new-kernel-pkg –package kernel –mkinitrd –dracut –depmod –install 2.6.32.431.5.1.el6_clunix_lustre_v1
109 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/e2fsprogs-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
110 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/e2fsprogs-debuginfo-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
111 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/e2fsprogs-devel-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
112 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/e2fsprogs-libs-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
113 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/e2fsprogs-static-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
114 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/libcom_err-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
115 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/libcom_err-devel-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
116 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/libss-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
117 wget https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el6/RPMS/x86_64/libss-devel-1.42.13.wc4-7.el6.x86_64.rpm –no-check-certificate
# rpm -Uvh e2fsprogs-1.42.13.wc4-7.el6.x86_64.rpm e2fsprogs-libs-1.42.13.wc4-7.el6.x86_64.rpm \
libcom_err-1.42.13.wc4-7.el6.x86_64.rpm libcom_err-devel-1.42.13.wc4-7.el6.x86_64.rpm \
libss-1.42.13.wc4-7.el6.x86_64.rpm libss-devel-1.42.13.wc4-7.el6.x86_64.rpm
# yum install sg3_utils
# rpm -ivh lustre-osd-ldiskfs-2.8.50-2.6.32.431.5.1.el6_clunix_lustre_v1_ga3e6b14.x86_64.rpm \
lustre-modules-2.8.50-2.6.32.431.5.1.el6_clunix_lustre_v1_ga3e6b14.x86_64.rpm \
lustre-2.8.50-2.6.32.431.5.1.el6_clunix_lustre_v1_ga3e6b14.x86_64.rpm \
lustre-tests-2.8.50-2.6.32.431.5.1.el6_clunix_lustre_v1_ga3e6b14.x86_64.rpm \
lustre-iokit-2.8.50-2.6.32.431.5.1.el6_clunix_lustre_v1_ga3e6b14.x86_64.rpm \
lustre-osd-ldiskfs-mount-2.8.50-2.6.32.431.5.1.el6_clunix_lustre_v1_ga3e6b14.x86_64.rpm
1 mgs/mdt settings
mkfs.lustre –fsname=clunix –mgs –mdt –reformat –index=0 /dev/xvdb
2 ost settings
mkfs.lustre –ost –fsname=clunix –reformat –index=0 –mgsnode=192.168.206.20@tcp /dev/xvdb