°Ô½Ã¹° 1,369°Ç
   
[GlusterFS] INSTALL ( 2 X 2 X 2 )
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-07-25 (±Ý) 10:26 Á¶È¸ : 5738
±ÛÁÖ¼Ò :
                                
OS : Fedora18 X86_64
INSTALL
# yum -y install glusterfs glusterfs-server glusterfs-fuse
# yum -y install openssh-server wget fuse fuse-libs openib libibverbs
# glusterd
# systemctl enable  glusterd.service
# gluster peer status

OS : Centos6.X X86_64
# wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo
# yum -y install glusterfs glusterfs-fuse glusterfs-server

peer Ãß°¡ 
(192.168.200.202/203/204/206/207/208/209/211)
# gluster peer probe 192.168.200.203
peer probe: success


peer »óÅÂÈ®ÀÎ
# gluster peer status

Number of Peers: 7

Hostname: 192.168.200.202
Port: 24007
Uuid: 8a27f188-4ead-4a4f-af74-df04e570c038
State: Peer in Cluster (Connected)

Hostname: 192.168.200.208
Uuid: d142173f-aef8-46ea-8ef5-e8d2b93bc3c3
State: Peer in Cluster (Connected)

Hostname: 192.168.200.203
Uuid: 1ee30468-91bc-4fb9-af44-ecf5fe765c58
State: Peer in Cluster (Connected)

Hostname: 192.168.200.207
Uuid: 7288691f-d546-4075-a512-e132d54fae73
State: Peer in Cluster (Connected)

Hostname: 192.168.200.209
Uuid: 2c564e62-de95-4753-a1a8-60e6eb44db5f
State: Peer in Cluster (Connected)

Hostname: 192.168.200.206
Uuid: 63e863f2-3b75-4fec-a599-097fe59b04a6
State: Peer in Cluster (Connected)

Hostname: 192.168.200.204
Uuid: f82c3073-a95a-4c5f-8702-d8b1d6ec24e1
State: Peer in Cluster (Connected)


GFS ±¸¼º ( 2 X 2 X 2 ) Distributed-Striped-Replicate
# gluster volume create VM_DISK_IMG stripe 2 replica 2 transport tcp 192.168.200.202:/VM_DISK_IMG/HDs 192.168.200.203:/VM_DISK_IMG/HDs 192.168.200.204:/VM_DISK_IMG/HDs 192.168.200.206:/VM_DISK_IMG/HDs 192.168.200.207:/VM_DISK_IMG/HDs 192.168.200.208:/VM_DISK_IMG/HDs 192.168.200.209:/VM_DISK_IMG/HDs 192.168.200.211:/VM_DISK_IMG/HDs


# gluster volume info

Volume Name: VM_DISK_IMG
Type: Distributed-Striped-Replicate
Volume ID: f9b84367-bf0d-4adf-80d6-555ab7ae43ed
Status: Created
Number of Bricks: 2 x 2 x 2 = 8
Transport-type: tcp
Bricks:
Brick1: 192.168.200.202:/VM_DISK_IMG/HDs
Brick2: 192.168.200.203:/VM_DISK_IMG/HDs
Brick3: 192.168.200.204:/VM_DISK_IMG/HDs
Brick4: 192.168.200.206:/VM_DISK_IMG/HDs
Brick5: 192.168.200.207:/VM_DISK_IMG/HDs
Brick6: 192.168.200.208:/VM_DISK_IMG/HDs
Brick7: 192.168.200.209:/VM_DISK_IMG/HDs
Brick8: 192.168.200.211:/VM_DISK_IMG/HDs


# gluster volume start VM_DISK_IMG
volume start: VM_DISK_IMG: success


# gluster volume info all

Volume Name: VM_DISK_IMG
Type: Distributed-Striped-Replicate
Volume ID: f9b84367-bf0d-4adf-80d6-555ab7ae43ed
Status: Started
Number of Bricks: 2 x 2 x 2 = 8
Transport-type: tcp
Bricks:
Brick1: 192.168.200.202:/VM_DISK_IMG/HDs
Brick2: 192.168.200.203:/VM_DISK_IMG/HDs
Brick3: 192.168.200.204:/VM_DISK_IMG/HDs
Brick4: 192.168.200.206:/VM_DISK_IMG/HDs
Brick5: 192.168.200.207:/VM_DISK_IMG/HDs
Brick6: 192.168.200.208:/VM_DISK_IMG/HDs
Brick7: 192.168.200.209:/VM_DISK_IMG/HDs
Brick8: 192.168.200.211:/VM_DISK_IMG/HDs


# gluster volume stop VM_DISK_IMG
Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y
volume stop: VM_DISK_IMG: success


# gluster volume info all

Volume Name: VM_DISK_IMG
Type: Distributed-Striped-Replicate
Volume ID: f9b84367-bf0d-4adf-80d6-555ab7ae43ed
Status: Stopped
Number of Bricks: 2 x 2 x 2 = 8
Transport-type: tcp
Bricks:
Brick1: 192.168.200.202:/VM_DISK_IMG/HDs
Brick2: 192.168.200.203:/VM_DISK_IMG/HDs
Brick3: 192.168.200.204:/VM_DISK_IMG/HDs
Brick4: 192.168.200.206:/VM_DISK_IMG/HDs
Brick5: 192.168.200.207:/VM_DISK_IMG/HDs
Brick6: 192.168.200.208:/VM_DISK_IMG/HDs
Brick7: 192.168.200.209:/VM_DISK_IMG/HDs
Brick8: 192.168.200.211:/VM_DISK_IMG/HDs


Ŭ¶óÀ̾ðÆ®¿¡¼­ ½ºÅ丮Áö ¸¶¿îÆ® (Native Client)
# mount -t glusterfs 192.168.200.202:VM_DISK_IMG /VM_DISK_IMG/HDs/

# df
Filesystem                    1K-blocks      Used   Available Use% Mounted on
192.168.200.202:VM_DISK_IMG 57472447104 144983040 57327464064   1% /VM_DISK_IMG/HDs

# mount
192.168.200.202:VM_DISK_IMG on /VM_DISK_IMG/HDs type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)

# /etc/fstab ¼öÁ¤ (Ãß°¡)
192.168.200.201:VM_IMG_BACKUP /VM_IMG_BACKUP glusterfs defaults,_netdev 0 0    



À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.