Lustre 에 ZFS 연동 하기
### ZFS 파일 시스템 적용하기
작성자 : 서진우 (alang@clunix.com)
1. 설치
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -ivh http://archive.zfsonlinux.org/epel/zfs-release.el6.noarch.rpm
yum install kernel-devel zfs
– 모률 확인
lsmod | grep zfs
– 모듈 로딩
modprobe zfs
2. pool 구성
– pool 생성
mypool 이란 이름으로 sdb, sdc, sdd, sde, sdf 적용
# zpool create -f mypool raidz sdb sdc sdd sde sdf
– pool 상태 확인
# zpool status
# zpool export mypool
# zpool import mypool
– View I/O stats of the ZFS Pool
# zpool iostat -v mypool
– Deleting a ZFS pool
# zpool destroy mypool
– Replacing Corrupted disk in ZFS pool
# zpool replace mypool sde sdf
– Expanding ZFS Pool with new Disk
# zpool add -f mypool sde
– Adding a Spare Disk to ZFS Pool
# zpool add -f mypool spare sde
3. Lustre 적용
–backfstype=zfs
./configure –with-linux=/lib/modules/2.6.32_431.el6.lustre_2.8.50.clx/source –with-linux-obj=/lib/modules/2.6.32_431.el6.lustre_2.8.50.clx/build –with-o2ib=/usr/src/ofa_kernel/default –enable-modules –with-zfs –with-spl
http://zfsonlinux.org/
# tar xzvf spl-0.6.5.7.tar.gz
# cd spl-0.6.5.7
# ./configure
# make rpm
rpm -ivh spl-0.6.5.7-1.el6.x86_64.rpm \
kmod-spl-2.6.32_431.el6.lustre_2.8.50.clx-0.6.5.7-1.el6.x86_64.rpm \
kmod-spl-devel-2.6.32_431.el6.lustre_2.8.50.clx-0.6.5.7-1.el6.x86_64.rpm \
kmod-spl-devel-0.6.5.7-1.el6.x86_64.rpm
# tar xzvf zfs-0.6.5.tar.gz
# cd zfs-0.6.5
# ./configure –with-spl=/usr/src/spl-0.6.5.7
# make rpm
# rpm -Uvh zfs-0.6.5.7-1.el6.x86_64.rpm \
zfs-dracut-0.6.5.7-1.el6.x86_64.rpm \
kmod-zfs-2.6.32_431.el6.lustre_2.8.50.clx-0.6.5.7-1.el6.x86_64.rpm \
kmod-zfs-devel-0.6.5.7-1.el6.x86_64.rpm \
kmod-zfs-devel-2.6.32_431.el6.lustre_2.8.50.clx-0.6.5.7-1.el6.x86_64.rpm \
libnvpair1-0.6.5.7-1.el6.x86_64.rpm \
libuutil1-0.6.5.7-1.el6.x86_64.rpm \
libzfs2-0.6.5.7-1.el6.x86_64.rpm \
libzfs2-devel-0.6.5.7-1.el6.x86_64.rpm \
libzpool2-0.6.5.7-1.el6.x86_64.rpm
# cd <lustre-source>
# ./configure –with-linux=/lib/modules/2.6.32_431.el6.lustre_2.8.50.clx/source –with-linux-obj=/lib/modules/2.6.32_431.el6.lustre_2.8.50.clx/build –with-o2ib=/usr/src/ofa_kernel/default –enable-modules –with-zfs=/usr/src/zfs-0.6.5.7 –with-spl=/usr/src/spl-0.6.5.7