Fedora 38
Sponsored Link

GlusterFS 11 : नोड्स जोड़ें (Bricks)2023/10/03

 
मौजूदा क्लस्टर में नोड्स (ईंटें) जोड़ें।
                                  |
+----------------------+          |          +----------------------+
| [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: 55589f98-287b-4d90-9173-485866c8aab5
State: Peer in Cluster (Connected)

Hostname: node03
Uuid: 2366dfcd-0bcf-4525-8904-7d20567d060b
State: Peer in Cluster (Connected)

# मौजूदा वॉल्यूम की पुष्टि करें

[root@node01 ~]#
gluster volume info


Volume Name: vol_distributed
Type: Distribute
Volume ID: 25939778-6669-4a60-9c58-809bf87f462c
Status: Started
Snapshot Count: 0
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: node01:/glusterfs/distributed
Brick2: node02:/glusterfs/distributed
Options Reconfigured:
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: 25939778-6669-4a60-9c58-809bf87f462c
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:
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: 5b12ca31-4e36-4534-ae38-eadbefecf0e7
मिलान सामग्री