Gluster source code read 2--Start Analysis Service glusterd start

Source: Internet
Author: User
Tags glusterfs gluster

Modify the log level in/usr/lib/systemd/system/glusterd.service to trace

Environment= "Log_level=trace"

can see more log

After installing the Gluster, there will be 4 files associated with the/usr/sbin.

These 4 files, in fact you will find that 3 of them are pointing to the same file glusterfsd,

There is also a gluster, which is responsible for parsing the configuration from bash, querying commands such as Glustervolume Info,start, etc.

And so on, it is a client of RPC

Figure 1-1

When you call service Glusterd start, the following script will start the following process

If you configure the volume will start the following process, also when the call Gluster volume stop this process will be kill


If you configure multiple volume, you will start multiple processes, for example, we have configured 2 volume and will start 2 processes


In addition, with the launch of the volume, 2 processes will also start, but no matter how many volume you configure, it is always the 2 in charge

One responsible for NFS (Networking File System)


Another responsible for self-healing


And when we mount a volume, we start the following process

/usr/sbin/glusterfs--volfile-server=192.168.0.2--volfile-id=export-gv1/mnt-gluster-1

Please refer to/usr/sbin/mount.glusterfs script for how to start

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.