Linux XFS 셋업
1. 다운로드 (커널버젼과 맞출것)
http://mirror.secuidc.com/centos/4.4/centosplus/i386/RPMS/kernel-module-xfs-2.6.9-42.0.10.ELsmp-0.2-1.i686.rpm
2. 설치
rpm -Uvh kernel-module-xfs-2.6.9-42.0.10.ELsmp-0.2-1.i686.rpm
3. 모듈로딩 (생략해도될듯)
modprobe xfs
lsmod | grep xfs
관련싸이트
http://www.ibm.com/developerworks/kr/library/l-fs10.html
4. 받을소스파일리스트
wget ftp://oss.sgi.com/projects/xfs/cmd_tars/
– attr
– acl
– xfsprogs
– dmapi
– xfsdump
%% 만약 dmapi 가 gzip + tar 파일형식이 아니면
ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/ 여기에서 낮은 버젼을 받는다~
5. 각각의 소스파일을 푼후 각 디렉토리에서 아래와 같이 실행
cd attr-xxx (xxx는 버젼번호)
autoconf
/configure –prefix=/usr
make
make install
cd ..
cd acl-xxx
autoconf
/configure –prefix=/usr
make
make install
cd ..
cd xfsprogs-xxx
autoconf
/configure –prefix=/usr
make
make install
make install-dev
cd ..
cd dmapi-xxx
autoconf
/configure –prefix=/usr
make
make install
cd ..
cd xfsdump-xxx
autoconf
/configure –prefix=/usr
make
make install
cd ..
cd attr-xxx
make install-dev
cd ..
cd dmapi-xxx
make install-dev
cd ..
6. 포멧하기
ex1)
mkfs.xfs /dev/hdc9
ex2)
mkfs.xfs -d agcount=4 -l size=32m /dev/hdc9
mount /dev/hdc9 /mnt -o noatime,nodiratime,osyncisdsync
mount -t xfs /dev/hdc9 /Data
/dev/hdxx / xfs defaults 1 1
%% xfs_growfs 명령은 lvm 상에서 lv를 증가시켰을경우 커맨드라인에서
xfs_growfs “/해당마운트포인트” 명령을 내리면 lv 증가량만큼 자동증가한다
%% xfs 파일시스템 write Lock 걸기
– xfs_freeze -f /Data01 (락걸기)
– xfs_freeze -u /Data01 (락풀기)
[Linux] LVM snapshotting with XFS (06.04.20 23:06)
Freeze the file system
xfs_freeze -f /APP
Take the snapshot
lvcreate -l 64 -s -n snap /dev/rootvg/rootlv12
Mount the snapshot
mount -o nouuid,ro /dev/mapper/cgpro-snap /SNAP
Unfreeze the real filesystem
xfs_freeze -u /APP
Take a backup of the snapshot
Unmount and destroy the snapshot
unmount /SNAP
lvremove -f /dev/cgpro/snap
yum 을이용 RPM 패키지로 설치할시 아래리스트 참조하여 설치할것
acl-2.2.34-1.i386.rpm
attr-2.4.28-0.i386.rpm
dmapi-2.2.3-1.i386.rpm
dmapi-devel-2.2.3-1.i386.rpm
libacl-2.2.34-1.i386.rpm
libacl-devel-2.2.34-1.i386.rpm
libattr-2.4.28-0.i386.rpm
libattr-devel-2.4.28-0.i386.rpm
xfsdump-2.2.33-1.i386.rpm
xfsprogs-2.7.11-1.i386.rpm
xfsprogs-devel-2.7.11-1.i386.rpm
japanese trap