RegularJoe
Patron
- Joined
- Aug 19, 2013
- Messages
- 330
Hi All,
Backup of FreeNAS data: All of us Bacula admins need bacula-fd installed in the base FreeNAS OS so we do not waste another IP address, have a second VMware port group with promiscuous mode enabled and have to muck with a jail/plugin to just backup the bloody NAS. This today should have taken 30 seconds(pkg install bacula9-client-9.4.3)!
If you use some other backup software you will need the option to install that in the base FreeNAS OS, in this example I am using Bacula9
Thanks,
Joe
=========================================================================================
FYI this is what I went thru today!
First of all the plugin appears to install ALL of Bacula(2.2GB), the dir, fd, sd and postgres database. I think all I need is to install a jail and bacula-fd and I think in the past that was all the Bacula plugin was.
I do not have DHCP on the VLAN I am trying to use so I got these errors:
DHCP addressed error:
[EFAULT] Exception: RuntimeError: + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped bacula-server due to DHCP failure occured, destroyed bacula-server.
Static address error:
[EFAULT] Exception: RuntimeError: Stopped bacula-server due to VNET failure occured, destroyed bacula-server.
I had to do the following to get the Bacula plugin working:
A) goof around with jails to get a bridge0 interface in the stack
B) change a bunch of the default plugin/jail options to use a Bridge network interface, install the plugin
C) stop the plugin
D) edit the Bacula-Server jail to use VNET, Berkley Packet Filter and DFGW
Step B:
0 DHCP ( disabled )
0 VNET ( disabled )
0 Berkeley Packet Filter ( disabled )
Bridge0
static IP
/23
X auto start
X allow_raw_sockets
0 ip4_saddrsel
0 ip6_saddrsel
SAVE
Step D:
X VNET
X Berkeley Packet Filter
vnet0
DFGW add
========================================================================================
The jail is much more simple, just add a jail:
0 DHCP ( disabled )
X VNET
X Berkeley Packet Filter
vnet0
static IP
/23
DFGW
0 auto start
X allow_raw_sockets
0 ip4_saddrsel
0 ip6_saddrsel
SAVE
start jail and mkdir /mnt/data
stop jail
add storage /mnt/vol/dataset/shared/share to /mnt/data
start jail
iocage console bacula
pkg update
pkg install bacula9-client-9.4.3
cd /usr/local/etc/bacula/
vi bacula-fd.conf
echo bacula_fd_enable="YES" >> /etc/rc.conf
service bacula-fd start
service bacula-fd status
Backup of FreeNAS data: All of us Bacula admins need bacula-fd installed in the base FreeNAS OS so we do not waste another IP address, have a second VMware port group with promiscuous mode enabled and have to muck with a jail/plugin to just backup the bloody NAS. This today should have taken 30 seconds(pkg install bacula9-client-9.4.3)!
If you use some other backup software you will need the option to install that in the base FreeNAS OS, in this example I am using Bacula9
Thanks,
Joe
=========================================================================================
FYI this is what I went thru today!
First of all the plugin appears to install ALL of Bacula(2.2GB), the dir, fd, sd and postgres database. I think all I need is to install a jail and bacula-fd and I think in the past that was all the Bacula plugin was.
I do not have DHCP on the VLAN I am trying to use so I got these errors:
DHCP addressed error:
[EFAULT] Exception: RuntimeError: + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped bacula-server due to DHCP failure occured, destroyed bacula-server.
Static address error:
[EFAULT] Exception: RuntimeError: Stopped bacula-server due to VNET failure occured, destroyed bacula-server.
I had to do the following to get the Bacula plugin working:
A) goof around with jails to get a bridge0 interface in the stack
B) change a bunch of the default plugin/jail options to use a Bridge network interface, install the plugin
C) stop the plugin
D) edit the Bacula-Server jail to use VNET, Berkley Packet Filter and DFGW
Step B:
0 DHCP ( disabled )
0 VNET ( disabled )
0 Berkeley Packet Filter ( disabled )
Bridge0
static IP
/23
X auto start
X allow_raw_sockets
0 ip4_saddrsel
0 ip6_saddrsel
SAVE
Step D:
X VNET
X Berkeley Packet Filter
vnet0
DFGW add
========================================================================================
The jail is much more simple, just add a jail:
0 DHCP ( disabled )
X VNET
X Berkeley Packet Filter
vnet0
static IP
/23
DFGW
0 auto start
X allow_raw_sockets
0 ip4_saddrsel
0 ip6_saddrsel
SAVE
start jail and mkdir /mnt/data
stop jail
add storage /mnt/vol/dataset/shared/share to /mnt/data
start jail
iocage console bacula
pkg update
pkg install bacula9-client-9.4.3
cd /usr/local/etc/bacula/
vi bacula-fd.conf
echo bacula_fd_enable="YES" >> /etc/rc.conf
service bacula-fd start
service bacula-fd status