2011年4月20日 星期三

Lustre 安裝與設定

安裝
rpm -ivh lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh kernel-2.6.18-194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -Uvh --nodeps --force e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm
shutdown -r now





on MDS
rpm -ivh lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh kernel-2.6.18-194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -Uvh --nodeps --force e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm
shutdown -r now
mkfs.lustre --fsname=lustrefs --reformat --mdt --mgs --backfstype=ext4 /dev/sda6
mkdir /opt/mds
mount.lustre /dev/sda6 /mnt/mds

on OST
rpm -ivh lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh kernel-2.6.18-194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -ivh lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5-ext4.x86_64.rpm
rpm -Uvh --nodeps --force e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm
shutdown -r now
mkfs.lustre --fsname=lustrefs --ost --reformat --backfstype=ext4 --mgsnode=server@tcp0 /dev/sda4
mkdir /mnt/ost
mount.lustre /dev/sda4 /mnt/ost

on Client
rpm -ivh lustre-client-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5.x86_64.rpm lustre-client-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5.x86_64.rpm
mount.lustre server@tcp0:/lustrefs /home
lfs setstripe -c -1 /home

dd if=/dev/zero of=/home/test1 bs=10M count=100


stop 1. on MDS
mkfs.lustre --fsname=lustrefs --reformat --mdt --mgs --backfstype=ext4 /dev/sda4
mount.lustre /dev/sda4 /lustre/mdt

stop 2. on OSS
mkfs.lustre --fsname=lustrefs --reformat --ost --backfstype=ext4 --mgsnode=storage1_ib@o2ib0 /dev/sdb1
mount.lustre /dev/sdb1 /lustre/ost1

stop 3. on MDS
mount.lustre storage1_ib@o2ib:/lustrefs /vm_image_lustre
lfs setstripe -c 4 -i -1 -s 0 /vm_image_lustre
dd if=/dev/zero of=/vm_image_lustre/test bs=1024000 count=50000

沒有留言: