Manually configure the public key on the glusterfs Cluster File System

Source: Internet
Author: User
Tags glusterfs gluster

On multiple nodes after glusterfs is successfully installed, you can manage each node through the gluster Management Console. After successful addition, the public key can be automatically installed, however, if manual installation is required, you can configure the public key on each node according to the following steps.

 

1. First modify the/etc/hosts file to include the names and IP addresses of all nodes in the cluster;

For example, 192.168.1.100 server01

192.168.1.102 server02

 

2. Distribute the public key of the Management node (for example, server01, that is, the node where the management software is installed) to each node (for example, server02). The public key is located :~ /. Ssh/gluster. Pub. log on to the management node and run the Copy command:

SCP ~ /. Ssh/gluster. Pub root @ server02 :~ /. Ssh/

 

3. After successfully copying to the node server02, log on to the server 02 node and enter ~ /. Ssh/directory to append all content of gluster. Pub ~ The command in the/. Ssh/authorized_keys file is as follows:

Cat ~ /. Ssh/gluster. Pub> ~ /. Ssh/authorized_keys

 

4. You can use the management software to successfully add nodes to a cluster.

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.