Saturday, September 5, 2009

LUSTRE筆記--1

  • 系統環境
    OS: Debian 5.02a(lenny-2.6.26-2)
    預先安裝套件:gcc-4.1、kernel-package、debhelper、lyx、automake1.7、libsnmp-dev、libreadline5-dev、quilt、fakeroot
    Source Code: KernelSource2.6.22LUSTRE-1.8.0
  • LUSTRE安裝
    • cd /usr/bin
    • ls -al gcc* (確認gcc版本在4.1、指向4.3則rm gcc -> ln -s gcc-4.1 gcc)
    • cd /usr/src
    • tar jxvf linux-2.6.22.tar.bz2
    • ln -s linux-2.6.22 linux
    • tar zxvf lustre-1.6.7.2.tar.gz(此版本的kernel patch是完整的)
    • tar zxvf lustre-1.8.0.tar.gz
    • cd linux
    • ln -s /usr/src/lustre-1.6.7.2/lustre/kernel-patches/patches/ .
    • ln -s /usr/src/lustre-1.6.7.2/lustre/kernel-patches/series/2.6.22-vanzilla.series series
    • quilt -av push
    • rm patches
    • rm series
    • ln -s /usr/src/lustre-1.8.0/lustre/kernel-patches/patches/ .
    • ln -s /usr/src/lustre-1.8.0/lustre/kernel-patches/series/2.6.22-vanzilla.series series
    • cp /usr/src/lustre-1.8.0/lustre/kernel-patches/kernel-configs/kernel-2.6.22-vanzilla-i686.config .config
    • make menuconfig (確認General setup->local version有設定、File System->jbd有選取)
    • make;make modules
    • make install;make modules_install
    • reboot to patched kernel 2.6.22
    • cd /usr/src/lustre-1.8.0
    • ./configure --with-linux=/usr/src/linux/
    • make
    • make install
    • depmod -a
    • reboot to patched kernel
    • modconf (確認lustre、lustre-ldiskfs、jbd的module有被安裝)
    • vi /etc/modules (確認ldiskfs、lnet networks=tcp有加入檔案中)
    • reboot to enable modules
  • LUSTRE設定
    • mkdir -p /lustre-mdt-mgs
    • mkdir -p /lustre-ost0~n
    • mkdir -p /12321
    • mkfs.lustre --fsname=123fs --reformat --mdt --mgs /dev/hdax
    • mount -t lustre /dev/hdax /lustre-mdt-mgs
    • mkfs.lustre --fsname=123fs --reformat --ost --mgsnode=host@tcp0 /dev/hday
    • mount -t lustre /dev/hday /ustre-ost0
    • mount -t lustre host@tcp:/123fs /12321