BLOG main image
분류 전체보기 (111)
주절주절 (16)
Tabex (4)
클라우드 관련 (12)
Linux (23)
CruiseControl (3)
XP (1)
C (4)
C++ (1)
C# (2)
Boost (3)
Java (0)
DataBase (4)
Algorithm (17)
Network (1)
OS (1)
UML (1)
상식 (3)
좋은 글 (3)
회사에서... (0)
Node.js (1)
EKS (1)
Mac (2)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
2012. 4. 6. 15:58


GlusterFS의 Native Client(FUSE) 로 스토리지를 구성하여 VM을 생성하려 했으나,

아래처럼 Libvirt에서 실패...

Libvirt 로그

qemu: could not open disk image /mnt/gluster/test-vol2: Invalid argument


이유는, FUSE 모듈이 마운트된 FUSE기반 파일시스템상의 디스크 이미지를 열기 위한 O_DIRECT system call을 지원하지 않기 때문이다.

Gluster에서 fuse 모듈을 다운받고 compile / install을 하면 된다.

http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS/

qemu-kvm은 raw 디스크 이미지를 열기 위해 O_SYNC (cache=writethough)을 사용할 것이다.  qcow2 이미지는 O_DIRECT (cache=none)을 사용한다.

http://thr3ads.net/gluster-users/2010/09/477455-Failed-on-booting-qcow2-image-files-on-glusterfs



libvirt disk option "cache=none" prevents VM from booting on GlusterFS/FUSE

"cache=none" 을 제거하라.

https://bugs.launchpad.net/nova/+bug/959637