AOE, Bacula in a Clustered Container

billmc

New Member
Mar 15, 2009
4
0
1
Could someone test my thinking and see if I'm way off base with this?

I'm trying to run Bacula inside a container; but I can not get the bacula-director program to run. I have Ubuntu 8.04 installed. When I issue /etc/init.d/bacula-director ( start or restart ) everthing responds normally and a bacula-dir.9101.pid is created in /var/run/bacula. ps -ef does not show this process. bacula-sd and bacula-fd run fine.

Here is what I created. I have a stand-alone box running Debian 5, which I've created a raid 5 array. I use vbladed to export /dev/md0. I have 2 Proxmox boxes set up as a cluster. Within each Proxmox box I've issued the vzctl set command so that the container can access /dev/etherd/e0.0.

Within the container I mount /dev/etherd/e0.0 to /srv/backups. I'm able to migrate the container from server to server and maintain the mount.

Eventually what I'd like to do, is to setup a couple of physical servers using raid 10, but none of this can work if I can't get bacula-director to run.

Thanks for the help,
Bill
 
Could someone test my thinking and see if I'm way off base with this?

I'm trying to run Bacula inside a container; but I can not get the bacula-director program to run. I have Ubuntu 8.04 installed. When I issue /etc/init.d/bacula-director ( start or restart ) everthing responds normally and a bacula-dir.9101.pid is created in /var/run/bacula. ps -ef does not show this process. bacula-sd and bacula-fd run fine.

Here is what I created. I have a stand-alone box running Debian 5, which I've created a raid 5 array. I use vbladed to export /dev/md0. I have 2 Proxmox boxes set up as a cluster. Within each Proxmox box I've issued the vzctl set command so that the container can access /dev/etherd/e0.0.

Within the container I mount /dev/etherd/e0.0 to /srv/backups. I'm able to migrate the container from server to server and maintain the mount.

Eventually what I'd like to do, is to setup a couple of physical servers using raid 10, but none of this can work if I can't get bacula-director to run.

Thanks for the help,
Bill

any fail counts (see cat /proc/user_beancounters)?
 
Tom,

here is the result of cat /proc/user_beancounters

Version: 2.5
uid resource held maxheld barrier limit failcnt
102: kmemsize 1756548 3203953 9223372036854775807 9223372036854775807 0
lockedpages 0 0 65536 65536 0
privvmpages 8922 12396 131072 143572 0
shmpages 653 668 9223372036854775807 9223372036854775807 0
dummy 0 0 0 0 0
numproc 18 82 1024 1024 0
physpages 2572 5921 0 9223372036854775807 0
vmguarpages 0 0 131072 9223372036854775807 0
oomguarpages 2572 5921 131072 9223372036854775807 0
numtcpsock 5 5 9223372036854775807 9223372036854775807 0
numflock 3 4 9223372036854775807 9223372036854775807 0
numpty 2 2 255 255 0
numsiginfo 0 4 1024 1024 0
tcpsndbuf 89344 89344 9223372036854775807 9223372036854775807 0
tcprcvbuf 81920 0 9223372036854775807 9223372036854775807 0
othersockbuf 154368 169472 9223372036854775807 9223372036854775807 0
dgramrcvbuf 0 8448 9223372036854775807 9223372036854775807 0
numothersock 101 105 9223372036854775807 9223372036854775807 0
dcachesize 279063 289062 9223372036854775807 9223372036854775807 0
numfile 591 1618 9223372036854775807 9223372036854775807 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 10 10 9223372036854775807 9223372036854775807 0

I'm not sure what I'm looking at, but it doesn't seem to have any fails.
cat /var/run/bacula/bacula-dir.9101.pid returns
859
yet this is the result of ps -ef

UID PID PPID C STIME TTY TIME CMD
root 1 0 0 19:51 ? 00:00:00 init
root 19 1 0 19:51 ? 00:00:00 [init-logger]
dhcp 368 1 0 19:51 ? 00:00:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/l
syslog 528 1 0 19:51 ? 00:00:00 /sbin/syslogd -u syslog
107 551 1 0 19:51 ? 00:00:00 /usr/bin/dbus-daemon --system
root 571 1 0 19:51 ? 00:00:00 /usr/sbin/sshd
root 639 1 0 19:51 ? 00:00:00 /usr/lib/postfix/master
postfix 645 639 0 19:51 ? 00:00:00 qmgr -l -t fifo -u
daemon 663 1 0 19:51 ? 00:00:00 /usr/sbin/atd
root 674 1 0 19:51 ? 00:00:00 /usr/sbin/cron
bacula 697 1 0 19:51 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape
root 718 1 0 19:51 ? 00:00:00 /usr/sbin/bacula-fd -c /etc/bacula/bacula-fd.conf
postfix 762 639 0 21:31 ? 00:00:00 pickup -l -t fifo -u -c
root 766 571 0 23:01 ? 00:00:00 sshd: root@pts/0
root 768 766 0 23:01 pts/0 00:00:00 -bash
root 771 1 0 23:01 ? 00:00:00 /usr/sbin/console-kit-daemon
root 863 768 0 23:03 pts/0 00:00:00 ps -ef
 
any feedback from the bacula project, did you posted it there?
 
Hi billmc,
what happens when you check your config (e.g.):
Code:
bacula-dir -t -c /etc/bacula/bacula-dir.conf

When no error occurs, then start the bacula-dir in foreground:

Code:
bacula-dir -f -d 5 -c /etc/bacula/bacula-dir.conf

(Debug level 5, foreground).
In the most cases the error-messages show the error (no permission to wirte pid-file or so).

Udo