I didn't want to paste ~600 lines if the answer was a simple "no, you can't do that in Bacula yet".
http://pastebin.com/y3Ti0xFi - bacula-dir.conf on libback
http://pastebin.com/0kc23QLR - bacula-sd.conf on libback
http://pastebin.com/xbCa9mNM - bacula-fd.conf on libback
http://pastebin.com/jChHgVzn - bacula-fd.conf on berkeley
http://pastebin.com/M462KgMu - network config for both hosts
I'm not actually using the tape drives yet. This configuration (with clients having static routes to private IP bound to SD's loopback) allows me to back up hosts from either VLAN.
I tried exactly what you describe below, by declaring two Storage{..} stanzas in bacula-dir.conf, each with a different Address= line, referencing them both from the Pool{..} stanza (which gets pulled in from the JobDef), and then overriding using Storage=<whichever-one-was-appropriate> in each Job{..} stanza.
I left the SD on libback bound to 0.0.0.0, I didn't use the SDAddresses= directive. Netstat confirmed it was listening on *:9103.
What happened when I tried that was the berkeley FD kept attempting to connect to the SD on the other VLAN, which doesn't work in my environment.
I'm not happy about using static routes to solve my problem (badly violates the Principle of Least Surprise for the next sysadmin who has to look at this stuff), so I'll go back to what I was trying earlier and see if I can get it to fail in the same way again.
At least now I know it should be possible to make this work.
-Adam
>>>
From:
|
Radosław Korzeniewski<radoslaw AT korzeniewski DOT net>
|
To:
|
Adam Thompson <ad.thompson AT uwinnipeg DOT ca>
|
CC:
|
bacula-users <bacula-users AT lists.sourceforge DOT net>
|
Date:
|
2013-50-03 09:50
|
Subject:
|
Re: [Bacula-users] multi-homed SD & single-homed FDs
|
|
|