GlusterFS 10 : ノードを追加する2022/04/14 |
既存のクラスターにノードを追加する場合の設定です。
例として、リンク先の通り構築した分散構成のクラスターに [node03] を新規に追加します。
| +----------------------+ | +----------------------+ | [GlusterFS Server#1] |10.0.0.51 | 10.0.0.52| [GlusterFS Server#2] | | node01.srv.world +----------+----------+ node02.srv.world | | | | | | +----------------------+ | +----------------------+ ⇑ | ⇑ file1, file3 ... | file2, file4 ... | +----------------------+ | | [GlusterFS Server#3] |10.0.0.53 | | node03.srv.world +----------+ | | +----------------------+ |
[1] |
こちらを参考に、新規ノードに GlusterFS サーバーをインストールして起動し、
既存ノードと同様のパスに GlusterFS ボリューム用のディレクトリを作成しておきます。
|
[2] | 既存ノードのいずれかのノードで、新規ノード追加の設定をします。 |
# 新規ノードを探す [root@node01 ~]# gluster peer probe node03 peer probe: success. # 状態を表示 [root@node01 ~]# gluster peer status Number of Peers: 2 Hostname: node02 Uuid: 1d800595-6436-40be-8724-0cb7976afa6e State: Peer in Cluster (Connected) Hostname: node03 Uuid: f41f6ea1-26d5-4114-813a-4ef1b3345425 State: Peer in Cluster (Connected) # 既存のボリューム情報確認 [root@node01 ~]# gluster volume info Volume Name: vol_distributed Type: Distribute Volume ID: 1b17509e-d0b4-4fe1-a438-588d719eb509 Status: Started Snapshot Count: 0 Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: node01:/glusterfs/distributed Brick2: node02:/glusterfs/distributed Options Reconfigured: features.inode-quota: off features.quota: off storage.fips-mode-rchecksum: on transport.address-family: inet nfs.disable: on # 既存ボリュームに新規ノードを追加 [root@node01 ~]# gluster volume add-brick vol_distributed node03:/glusterfs/distributed volume add-brick: success # ボリューム情報確認 [root@node01 ~]# gluster volume info Volume Name: vol_distributed Type: Distribute Volume ID: 1b17509e-d0b4-4fe1-a438-588d719eb509 Status: Started Snapshot Count: 0 Number of Bricks: 3 Transport-type: tcp Bricks: Brick1: node01:/glusterfs/distributed Brick2: node02:/glusterfs/distributed Brick3: node03:/glusterfs/distributed Options Reconfigured: features.inode-quota: off features.quota: off storage.fips-mode-rchecksum: on transport.address-family: inet nfs.disable: on # 新規ノード追加後はボリュームのリバランスを実施 [root@node01 ~]# gluster volume rebalance vol_distributed fix-layout start volume rebalance: vol_distributed: success: Rebalance on vol_distributed has been started successfully. Use rebalance status command to check status of the rebalance process. ID: b5140825-6096-4c43-82c9-679a4cfcdf51 # [Status] が [completed] になればリバランス完了 [root@node01 ~]# gluster volume status Status of volume: vol_distributed Gluster process TCP Port RDMA Port Online Pid ------------------------------------------------------------------------------ Brick node01:/glusterfs/distributed 49235 0 Y 16678 Brick node02:/glusterfs/distributed 50940 0 Y 3133 Brick node03:/glusterfs/distributed 59224 0 Y 2658 Task Status of Volume vol_distributed ------------------------------------------------------------------------------ Task : Rebalance ID : b5140825-6096-4c43-82c9-679a4cfcdf51 Status : completed |
Sponsored Link |