FREEDOM. FRIENDS. FEATURES. FIRST. 페도라 한국 사용자 모임

CacheFS(FS-Cache) 파일시스템

게시판 Tech/Tip CacheFS(FS-Cache) 파일시스템

  • This topic has 0개 답변, 1명 참여, and was last updated 16 years, 6 months 전에 by 인베인. This post has been viewed 2025 times
  • #12114
    인베인
    참가자
      게시글147 댓글411 총합558
    @leemgs
     

    David Howells RedHat UK Ltd,(dhowells@redhat.com)

    http://www.mizi.co.kr/~louis/papers/cachefs/
    http://people.redhat.com/~dhowells/cachefs/cachefs-patches.tar.bz2
    http://people.redhat.com/~dhowells/cachefs/cachefilesd-0.8.tar.bz2
    http://people.redhat.com/~dhowells/cachefs/cachefilesd-0.8-16.fc7.src.rpm
    http://people.redhat.com/~dhowells/cachefs/patches/nfs+fscache-19.tar.bz2
    http://people.redhat.com/~dhowells/cachefs/FS-Cache.pdf

    CacheFS file system을 사용하게 되면 AFS, NFS(Network Filesystem),CIFS,CD-ROM(ISO9660)
    드라이브 사용시 한 번 읽은 데이터 로컬 하드 디스크에 캐싱 하므로 시스템의 성능향상을
    도모할 수 있다. 본래 NFS에서 사용할 목적으로 설계되었었다.

    NFS --------                 --------> CacheFS
              |                 |
    AFS ------------> FS-Cache ----
              |                 |
    ISO9660-----                 ---------> CacheFiles

             

    1. CacheFS 파일시스템 관련 명령어
    Cache file system을 생성한다.
    #cfsadmin -c /export/home_cache

    마운트 포인트가 없으면 생성한다.
    #mkdir /export/home

    리모트 파일 시스템과 CacheFS 파일 시스템을 마운트한다.
    # mount -F cachefs -o backfstype=nfs, cachedir=/export/home_cache,
    cache_id=export_home_0823  edu001:/export/home /export/home

    mount 명령어를 사용하여 제대로 마운트 되었는지 확인한다.
    #mount

    2. Cache 디렉토리 만들기

    # cfsadmin -c /cache/doc
    ※주의할 사항은 /cache 디렉토리는 반드시 생성되어 있어야 하며, root로 로그인해서 들어가야 한다.

    Mount하기
    #mount -F cachefs -o backfstype=fstype,cachedir=cache-directory, [options] back-filesystem mount-point
    #mount -F cachefs -o backfstype=nfs,cachedir=/cache/doc A:/export/home  /export/home

    ※ backfstype은 서버의 파일시스템 종류
       -o뒤에 있는 옵션들(여기에서는 backfstype과 cachedir)사이에는 ","로 구분하고 공백이 있으면 안 된다.

    3. CacheFS의 통계치 보기

    #cachefsstat mount-point
    #cachefsstat /export/home

    /export/home
    cache hit rate:    50% (2 hits, 2 misses)
    consistency checks:      8 (8 pass, 0 fail)
    modifies:      0
    garbage collection:      0

    4. CacheFS Consistency 체크
    #cfsadmin -s

    5. CacheFS Logging

    -cachefswssize를 사용하여 현재 cache에 저장된 데이터의 사이즈를 알기 해
    서는 먼저 cachefslog를 사용하여 logging을 하여야 한다.

    #cachefslog -f  /var/cachelogs/home_cache.log /export/home

    -로그파일 확인하기
    #cachefslog /export/home

    -cache 사이즈 체크
    #cachefswssize /var/cachelogs/home_cache.log

    6. CacheFS file system 제거하기
    # cfsadmin -d  cache 디렉토리 경로
    # cfsadmin -d all /cache/doc

    end of line.

    * 오픈소스는 Open Innovationa & 윈윈전략을 도모할 지언정 절대 공짜(무료)임을 뜻하지 않는다.치

  • 답변은 로그인 후 가능합니다.

지금 이 순간


스냅샷 활용하기
바쁜 생활중인 태랑입니다~~
rpmfusion 설치
[버그리포트] 자료실의 파일첨부 기능이 안됩니다.
안녕하세요 새로운 한주의 시작 입니다.
그래픽 드라이버 설치에 문제가 생겼네요. 도와주세요.
태랑님! Mod Security 이용시 참고 바랍니다.
새로운 RHEL Clone 배포판 출시가 될 것 같습니다.
동영상 캡쳐 프로그램 xvidcap
무서운 인베인님;;