°Ô½Ã¹° 1,369°Ç
   
Gluster replace-brick
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-12-02 (È­) 09:44 Á¶È¸ : 5683
±ÛÁÖ¼Ò :
                                
CASE1)
115.68.200.210 ½ºÅ丮Áö¸¦ 115.68.200.209 ½ºÅ丮Áö·Î ´ëü 
# gluster volume status VM_IMG_BACKUP
Status of volume: VM_IMG_BACKUP
Gluster process Port Online Pid
------------------------------------------------------------------------------
Brick 192.168.200.201:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.202:/VM_DISK_IMG/BACKUP 49154 Y 1204
Brick 192.168.200.203:/VM_DISK_IMG/BACKUP 49154 Y 1235
Brick 192.168.200.204:/VM_DISK_IMG/BACKUP 49154 Y 2223
Brick 192.168.200.205:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.206:/VM_DISK_IMG/BACKUP 49154 Y 1174
Brick 192.168.200.208:/VM_DISK_IMG/BACKUP 49154 Y 1317
Brick 192.168.200.210:/VM_DISK_IMG/BACKUP 49155 Y 25346
Brick 192.168.200.211:/VM_DISK_IMG/BACKUP 49153 Y 1082
NFS Server on localhost 2049 Y 1268
Self-heal Daemon on localhost N/A Y 1264
NFS Server on 192.168.200.204 2049 Y 2235
Self-heal Daemon on 192.168.200.204 N/A Y 2239
NFS Server on 192.168.200.210 2049 Y 25350
Self-heal Daemon on 192.168.200.210 N/A Y 4141
NFS Server on 192.168.200.212 2049 Y 1099
Self-heal Daemon on 192.168.200.212 N/A Y 1104
NFS Server on 192.168.200.209 2049 Y 1197
Self-heal Daemon on 192.168.200.209 N/A Y 1198
NFS Server on 192.168.200.202 2049 Y 1220
Self-heal Daemon on 192.168.200.202 N/A Y 1225
NFS Server on 192.168.200.206 2049 Y 1190
Self-heal Daemon on 192.168.200.206 N/A Y 1194
NFS Server on 192.168.200.211 2049 Y 1097
Self-heal Daemon on 192.168.200.211 N/A Y 1102
NFS Server on 192.168.200.203 2049 Y 1252
Self-heal Daemon on 192.168.200.203 N/A Y 1251
NFS Server on 192.168.200.205 2049 Y 2087
Self-heal Daemon on 192.168.200.205 N/A Y 2091
NFS Server on 192.168.200.208 2049 Y 1400
Self-heal Daemon on 192.168.200.208 N/A Y 1401


¢º 200.210 Brick À» 200.209·Î ±³Ã¼
- Gluster pool µî·Ï
# gluster peer probe 192.168.200.209

- 210 µ¥ÀÌŸ¸¦ 209 °ø°£À¸·Î ÀÌÀü
# gluster volume replace-brick VM_IMG_BACKUP 192.168.200.210:/VM_DISK_IMG/BACKUP 192.168.200.209:/VM_DISK_IMG/BACKUP start

¡Ø Usage: volume replace-brick <VOLNAME> <BRICK> <NEW-BRICK> {start [force]|pause|abort|status|commit [force]}


¸¶À̱׷¹À̼ÇÀÌ ¿Ï·áµÇ¸é ±³Ã¼
# gluster volume replace-brick VM_IMG_BACKUP 192.168.200.210:/VM_DISK_IMG/BACKUP 192.168.200.209:/VM_DISK_IMG/BACKUP commit force
volume replace-brick: success: replace-brick commit successful


#  gluster volume status VM_IMG_BACKUP
Status of volume: VM_IMG_BACKUP
Gluster process Port Online Pid
------------------------------------------------------------------------------
Brick 192.168.200.201:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.202:/VM_DISK_IMG/BACKUP 49154 Y 1204
Brick 192.168.200.203:/VM_DISK_IMG/BACKUP 49154 Y 1235
Brick 192.168.200.204:/VM_DISK_IMG/BACKUP 49154 Y 2223
Brick 192.168.200.205:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.206:/VM_DISK_IMG/BACKUP 49154 Y 1174
Brick 192.168.200.208:/VM_DISK_IMG/BACKUP 49154 Y 1317
Brick 192.168.200.209:/VM_DISK_IMG/BACKUP 49156 Y 2541
Brick 192.168.200.211:/VM_DISK_IMG/BACKUP 49153 Y 1082
NFS Server on localhost 2049 Y 16893
Self-heal Daemon on localhost N/A Y 16897
NFS Server on 192.168.200.209 2049 Y 2547
Self-heal Daemon on 192.168.200.209 N/A Y 2551
NFS Server on 192.168.200.202 2049 Y 18065
Self-heal Daemon on 192.168.200.202 N/A Y 18069
NFS Server on 192.168.200.204 2049 Y 17795
Self-heal Daemon on 192.168.200.204 N/A Y 17799
NFS Server on 192.168.200.205 2049 Y 9641
Self-heal Daemon on 192.168.200.205 N/A Y 9645
NFS Server on 192.168.200.201 2049 Y 1474
Self-heal Daemon on 192.168.200.201 N/A Y 1478
NFS Server on 192.168.200.212 2049 Y 6550
Self-heal Daemon on 192.168.200.212 N/A Y 6554
NFS Server on 192.168.200.208 2049 Y 1989
Self-heal Daemon on 192.168.200.208 N/A Y 1993
NFS Server on 192.168.200.210 2049 Y 17209
Self-heal Daemon on 192.168.200.210 N/A Y 17213
NFS Server on 192.168.200.206 2049 Y 17237
Self-heal Daemon on 192.168.200.206 N/A Y 17241
NFS Server on 192.168.200.203 2049 Y 8181
Self-heal Daemon on 192.168.200.203 N/A Y 8185
 
There are no active volume tasks

Gluster Node Traffic


CASE2)
115.68.200.201 ½ºÅ丮Áö¸¦ 115.68.200.212 ½ºÅ丮Áö·Î ´ëü 
115.68.200.201 ½ºÅ丮Áö´Â Àå¾Ö·Î ÀÎÇØ º¼·ý¿¡¼­ ¿ÀÇÁ¶óÀÎ »óÅÂ

#   gluster volume status VM_IMG_BACKUP
Status of volume: VM_IMG_BACKUP
Gluster process Port Online Pid
------------------------------------------------------------------------------
Brick 192.168.200.201:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.202:/VM_DISK_IMG/BACKUP 49154 Y 1204
Brick 192.168.200.203:/VM_DISK_IMG/BACKUP 49154 Y 1235
Brick 192.168.200.204:/VM_DISK_IMG/BACKUP 49154 Y 2223
Brick 192.168.200.205:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.206:/VM_DISK_IMG/BACKUP 49154 Y 1177
Brick 192.168.200.208:/VM_DISK_IMG/BACKUP 49154 Y 1317
Brick 192.168.200.209:/VM_DISK_IMG/BACKUP 49156 Y 2541
Brick 192.168.200.211:/VM_DISK_IMG/BACKUP 49153 Y 1082
NFS Server on localhost 2049 Y 18065
Self-heal Daemon on localhost N/A Y 18069
NFS Server on 192.168.200.206 2049 Y 1193
Self-heal Daemon on 192.168.200.206 N/A Y 1197
NFS Server on 192.168.200.210 2049 Y 17209
Self-heal Daemon on 192.168.200.210 N/A Y 17213
NFS Server on 192.168.200.212 2049 Y 6550
Self-heal Daemon on 192.168.200.212 N/A Y 6554
NFS Server on 192.168.200.203 2049 Y 8181
Self-heal Daemon on 192.168.200.203 N/A Y 8185
NFS Server on 192.168.200.201 2049 Y 6052
Self-heal Daemon on 192.168.200.201 N/A Y 6060
NFS Server on 192.168.200.209 2049 Y 2547
Self-heal Daemon on 192.168.200.209 N/A Y 2551
NFS Server on 192.168.200.204 2049 Y 17795
Self-heal Daemon on 192.168.200.204 N/A Y 17799
NFS Server on 192.168.200.211 2049 Y 16893
Self-heal Daemon on 192.168.200.211 N/A Y 16897
NFS Server on 192.168.200.208 2049 Y 1989
Self-heal Daemon on 192.168.200.208 N/A Y 1993
NFS Server on 192.168.200.205 2049 Y 2350
Self-heal Daemon on 192.168.200.205 N/A Y 2354


- Gluster pool µî·Ï
# gluster peer probe 192.168.200.212

#  gluster volume replace-brick VM_IMG_BACKUP 192.168.200.201:/VM_DISK_IMG/BACKUP 192.168.200.212:/VM_DISK_IMG/BACKUP start
All replace-brick commands except commit force are deprecated. Do you want to continue? (y/n) y
volume replace-brick: failed: Source brick 192.168.200.201:/VM_DISK_IMG/BACKUP is not online.


#  gluster volume replace-brick VM_IMG_BACKUP 192.168.200.201:/VM_DISK_IMG/BACKUP 192.168.200.212:/VM_DISK_IMG/BACKUP commit force
volume replace-brick: failed: /VM_DISK_IMG/BACKUP or a prefix of it is already part of a volume
==> ¢º 115.68.200.212 ºê¸¯¼Ó¼ºº¯°æ 


#  gluster volume replace-brick VM_IMG_BACKUP 192.168.200.201:/VM_DISK_IMG/BACKUP 192.168.200.212:/VM_DISK_IMG/BACKUP commit force
volume replace-brick: success: replace-brick commit successful


115.68.200.212 ½ºÅ丮Áö·Î ±³Ã¼ ¿Ï·á!!!
#   gluster volume status VM_IMG_BACKUP
Status of volume: VM_IMG_BACKUP
Gluster process Port Online Pid
------------------------------------------------------------------------------
Brick 192.168.200.212:/VM_DISK_IMG/BACKUP 49156 Y 9403
Brick 192.168.200.202:/VM_DISK_IMG/BACKUP 49154 Y 1204
Brick 192.168.200.203:/VM_DISK_IMG/BACKUP 49154 Y 1235
Brick 192.168.200.204:/VM_DISK_IMG/BACKUP 49154 Y 2223
Brick 192.168.200.205:/VM_DISK_IMG/BACKUP N/A N N/A
Brick 192.168.200.206:/VM_DISK_IMG/BACKUP 49154 Y 1177
Brick 192.168.200.208:/VM_DISK_IMG/BACKUP 49154 Y 1317
Brick 192.168.200.209:/VM_DISK_IMG/BACKUP 49156 Y 2541
Brick 192.168.200.211:/VM_DISK_IMG/BACKUP 49153 Y 1082
NFS Server on localhost 2049 Y 6450
Self-heal Daemon on localhost N/A Y 6454
NFS Server on 192.168.200.206 2049 Y 3010
Self-heal Daemon on 192.168.200.206 N/A Y 3014
NFS Server on 192.168.200.201 2049 Y 6252
Self-heal Daemon on 192.168.200.201 N/A Y 6251
NFS Server on 192.168.200.205 2049 Y 4070
Self-heal Daemon on 192.168.200.205 N/A Y 4074
NFS Server on 192.168.200.209 2049 Y 6473
Self-heal Daemon on 192.168.200.209 N/A Y 6477
NFS Server on 192.168.200.210 2049 Y 20049
Self-heal Daemon on 192.168.200.210 N/A Y 20053
NFS Server on 192.168.200.211 2049 Y 19345
Self-heal Daemon on 192.168.200.211 N/A Y 19349
NFS Server on 192.168.200.203 2049 Y 18964
Self-heal Daemon on 192.168.200.203 N/A Y 18968
NFS Server on 192.168.200.208 2049 Y 4752
Self-heal Daemon on 192.168.200.208 N/A Y 4756
NFS Server on 192.168.200.204 2049 Y 7329
Self-heal Daemon on 192.168.200.204 N/A Y 7333
NFS Server on 192.168.200.212 2049 Y 9409
Self-heal Daemon on 192.168.200.212 N/A Y 9414

Gluster Node Traffic


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

 



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