GlusterFS 11 : नोड्स हटाएँ (Bricks)2023/11/13 |
मौजूदा क्लस्टर से नोड्स (ईंटें) हटाएं।
| +----------------------+ | +----------------------+ | [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] | किसी नोड पर मौजूदा क्लस्टर से एक नया नोड निकालें। (लक्ष्य को हटाने के अलावा किसी भी मौजूदा नोड पर ठीक है) |
# वॉल्यूम जानकारी की पुष्टि करें [root@node01 ~]# gluster volume info Volume Name: vol_distributed Type: Distribute Volume ID: b194bdab-76cc-45e3-90ed-007809c4e8fb 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 remove-brick vol_distributed node03:/glusterfs/distributed start
It is recommended that remove-brick be run with cluster.force-migration option disabled to prevent possible data corruption. Doing so will ensure that files that receive writes during migration will not be migrated and will need to be manually copied after the remove-brick commit operation. Please check the value of the option and update accordingly.
Do you want to continue with your current cluster.force-migration settings? (y/n) y
volume remove-brick start: success
ID: 9f17da5b-90ee-46d1-a4a1-9ece10b28fe4
# स्थिति की पुष्टि करें [root@node01 ~]# gluster volume remove-brick vol_distributed node03:/glusterfs/distributed status Node Rebalanced-files size scanned failures skipped status run time in h:m:s --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- node03 0 0Bytes 0 0 0 completed 0:00:00 # [status] के बाद [completed] की ओर मुड़ने के बाद, हटाने का वचन दें [root@node01 ~]# gluster volume remove-brick vol_distributed node03:/glusterfs/distributed commit volume remove-brick commit: success Check the removed bricks to ensure all files are migrated. If files with data are found on the brick path, copy them via a gluster mount point before re-purposing the removed brick. # वॉल्यूम जानकारी की पुष्टि करें [root@node01 ~]# gluster volume info Volume Name: vol_distributed Type: Distribute Volume ID: b194bdab-76cc-45e3-90ed-007809c4e8fb Status: Started Snapshot Count: 0 Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: node01:/glusterfs/distributed Brick2: node02:/glusterfs/distributed Options Reconfigured: performance.client-io-threads: on storage.fips-mode-rchecksum: on transport.address-family: inet nfs.disable: on |
Sponsored Link |
|