shared storage within a KVM

RobFantini

Famous Member
May 24, 2012
2,043
111
133
Boston,Mass
Hello

I'm looking to set up 2 KVM's to run a high availability dhcp server and later other services like dns for our lan.


Could someone suggest a reliable shared storage system or to to use within 2 or more kvm's? We won't need more the 50MB shared.

We generally use Debian but that is not a requirement.

Or would it be more reliable to just rsync changes as needed?
 
Hello

I'm looking to set up 2 KVM's to run a high availability dhcp server and later other services like dns for our lan.


Could someone suggest a reliable shared storage system or to to use within 2 or more kvm's? We won't need more the 50MB shared.

We generally use Debian but that is not a requirement.

Or would it be more reliable to just rsync changes as needed?
Hi,
DRBD is a good choice for that.
Do you serve dhcp-addresse to all clients (synced leases-file), or only from which you know the mac-address?
I don't use free leases and simply use ONA (open network admin) to maintain the hosts and networks and push the dhcp/dns-config to two different systems (in this case one OpenVZ debian and one kvm devil-linux) on different nodes. There must be an big impact to get both servers down...

Udo
 
We use isc-dhcp-server which has dhcp failover built in. isc-dhcp failover handles the leased file. Almost all our devices have a fixed lease .

I just read part of https://opennetadmin.com/about and that looks like a much better set up for other admins to use.

What operating system do you use with that?

DRBD in primary/primary mode should work and I'm familiar with it.

I've another question. We'd need to have one main admin address for the 2 KVM's . We've used heartbeat in the past. Can you suggest alternatives to heartbeat?
 
We use isc-dhcp-server which has dhcp failover built in. isc-dhcp failover handles the leased file. Almost all our devices have a fixed lease .
Hi Rob,
I also use the isc-dhcp-server but don't care about the lease-file because of allways fixed leases.
I just read part of https://opennetadmin.com/about and that looks like a much better set up for other admins to use.

What operating system do you use with that?
ONA run on the admin-box (also the icinga monitoring) on a debian squeeze (in this case not virtualized). The dns+dhcp-server run also on squeeze (openvz) and devil-linux (kvm). I had to slightly modify the import scripts (build_dhcpd + build_dns).
If you have more than one network for dhcp, it's better to use for dns an seperate server.
DRBD in primary/primary mode should work and I'm familiar with it.

I've another question. We'd need to have one main admin address for the 2 KVM's . We've used heartbeat in the past. Can you suggest alternatives to heartbeat?
Sorry,
don't have experiences with that.

Udo
 
yes on both dhcpd and dns-server I use the ona-script build_dhcpd and build_bind to transfer the dhcpd-config and dns-config from the ona-server.

Udo

Hello Udo,
Is there a way to import an existing dhcpd.conf to ona ?

thank you for all the help.

Rob
 
In case someone else wants to export dhcpd.conf in to a format to import into ona check this:

https://gist.github.com/4039747

Code:
# Author: Matt Pascoe - matt@opennetadmin.com
#
# This awk script is used to extract relavant information from a dhcpd.conf
# config file and build a csv with appropriate fields for passing into
# a dcm.pl module. This can be used to bootstrap a new database from existing
# site data. As usual, inspect the output for accuracy.

to use it
Code:
cat dhcpd.conf | ./dhcpparse.awk > fo

and result is:
Code:
subnet,10.100.0.0,255.255.0.0,DHCPLOAD-10.100.0.0
pool,10.100.202.100,10.100.202.254,
host,10.100.100.44,00:1F:33:F2:99:BB,dhcpload-10.100.100.44,fbc44
host,10.100.100.45,00:1e:2a:cc:a9:ed,dhcpload-10.100.100.45,fbc45
host,10.100.100.47,00:22:3f:95:25:e7,dhcpload-10.100.100.47,fbc47
host,10.100.100.76,00:1e:2a:cc:a9:e5,dhcpload-10.100.100.76,fbc76
host,10.100.100.57,C4:3D:C7:A2:84:31,dhcpload-10.100.100.57,fbc57
host,10.100.100.77,00:1e:2a:cc:a9:9d,dhcpload-10.100.100.77,fbc77
host,10.100.100.64,00:14:d1:73:7b:19,dhcpload-10.100.100.64,fbc64
host,10.100.100.88,00:C0:B7:70:65:FB,dhcpload-10.100.100.88,fbc88

.....
# we had 200+ more lines

man this is certainly off the subject. :cool:
 
Last edited: