Startup and shutdown of open source network backup software Bacula

Source: Internet
Author: User
Tags mysql mysql database bacula backup

First, start the Bacula Director daemon and Storage daemon

When the above configuration is complete, you can start or close the Bacula. Start or turn off all the services on the Baculaserver, as in the next two ways.

The first approach is as follows:

[Root@baculaserver  etc]#/opt/bacula/sbin/bacula 
 {Start|stop|restart|status} 
You can also start or close each service in turn by managing each configuration end separately Bacula: 
[root@baculaserver  etc]#/opt/bacula/etc/bacula-ctl-dir  { Start|stop|restart|status} 
[Root@baculaserver  etc]#/opt/bacula/etc/bacula-ctl-sd  {start|stop| Restart|status} 
[Root@baculaserver  etc]#/opt/bacula/etc/bacula-ctl-fd  {start|stop|restart| Status

Because client FD is configured on another host baculaclient, the file daemon service does not need to be started on baculaserver.

After you start all services for Bacula, observe the boot port condition by using the netstat command:

[Root@localhost etc]# netstat-antl |grep-  
tcp  0      0 0.0.0.0:9101 0.0.0.0:* LISTEN       
TCP  0      0 0.0.0.0:9102                0.0.0.0:*                   LISTEN       
tcp  0      0 0.0.0.0:9103                0.0.0.0:*                   LISTEN

Of these, 9101 represent director daemon;9102 on behalf of file daemon;9103 storage daemon.

Note that you must start the MySQL database before starting all services for Bacula, and if the MySQL database is not started, you will be able to make an error when connecting to the Bacula's control side:

[Root@baculaserver opt]#/opt/bacula/sbin/bconsole 
connecting to Director 192.168.12.188:9101 
1 September-April 09:45 Bconsole Jobid 0:fatal error:bsock.c:135 Unable to connect to Director on daemon. Err= Deny connection

At this point, the Execute netstat command reveals that port 9101 is not booting at all.

Second, at the client fd start file daemon

Finally, the file Daemon service is started on the client FD (that is, baculaclient), as follows:

[Root@baculaclient etc]#/opt/bacula/sbin/bacula start 
starting the Bacula File daemon

Services that manage client FD can also be completed in the following ways:

[Root@baculaclient etc]#/opt/bacula/sbin/bacula {start|stop|restart|status} 
[root@ baculaclient  etc]# /BACULA/ETC/BACULA-CTL-FD  {Start|stop|restart|status}

This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/828996

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/

Related Article

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.