반응형

안녕하세요.


이번 포스팅에서는 tcmu-runner의 user:glfs 백스토어를 사용 할 경우 설정을 간편하게 할 수 있는 유틸리티인 tcmu-runner에 대해 알아보도록 하겠습니다.



* CentOS 7 기준으로 작성하였습니다. Fedora 설치는 공식 github를 참조해 주세요.



출처 - https://github.com/gluster/gluster-block



0. 사전 작업


(1) LIO (targetcli) 설치 - http://harryp.tistory.com/648 참고


(2) tcmu-runner 설치 - http://harryp.tistory.com/649 참고



1. gluster-block 설치


(1) 사전 패키지 설치


# yum install autoconf automake libtool libuuid-devel json-c-devel glusterfs-api-devel


(2) git clone 및 디렉토리 이동


# git clone https://github.com/gluster/gluster-block.git

# cd gluster-block/


(3) 컴파일 및 설치


# ./autogen.sh

# ./configure

# make

# make install


(4) 데몬 리로드 및 시작


# systemctl daemon-reload

# systemctl restart gluster-blockd 



2. Usage


# gluster-block --help

gluster-block (0.3)

usage:

  gluster-block <command> <volname[/blockname]> [<args>] [--json*]


commands:

  create  <volname/blockname> [ha <count>]

                              [auth <enable|disable>]

                              [prealloc <full|no>]

                              [storage <filename>]

                              [ring-buffer <size-in-MB-units>]

                              <host1[,host2,...]> <size>

        create block device [defaults: ha 1, auth disable, prealloc no, size in bytes,

                             ring-buffer default size dependends on kernel]


  list    <volname>

        list available block devices.


  info    <volname/blockname>

        details about block device.


  delete  <volname/blockname> [unlink-storage <yes|no>] [force]

        delete block device.


  modify  <volname/blockname> [auth <enable|disable>] [size <size>] [force]

        modify block device.


  replace <volname/blockname> <old-node> <new-node> [force]

        replace operations.


  help

        show this message and exit.


  version

        show version info and exit.


supported JSON formats:

  --json|--json-plain|--json-spaced|--json-pretty



(1) 생성


# gluster-block create 볼륨명/객체명 [복제 구성 정보] [브릭 IP 리스트] 용량 


(2) 보안 설정


# gluster-block modify 볼륨명/객체명 auth enable 


(3) 볼륨 별 객체 리스트 확인


# gluster-block list 볼륨명 


(4) 객체 정보 확인


# gluster-block info 볼륨명/객체명 




gluster-block 사용 시 보안을 위한 인증 정보는 자동으로 생성됩니다.


gluster-block info 명령어를 이용하여 인증 정보를 확인한 후 initiator에서 해당 정보를 사용하여 로그인 해주면 됩니다.

반응형
Posted by 해리팍
BLOG main image

Chanhyun Park (해리팍)
Software Engineer @ SK hynix

Contact Info.
parkch0708@hanmail.net
chanhyun0708@gmail.com
chanhyun.park@sk.com

카테고리

All (1502)
Profile (2)
Park's Life (600)
Computer System (165)
Computer Programming (39)
Computer Study (54)
Computer Etc. (189)
Scuba Diving (137)
Golf (8)
Traveling (245)
생활 정보 (12)
Pokemon GO (50)