This might be madness and technically impossible, but I am thinking about how best to replicate my machines for disaster recovery.
I know about DRDB but I have been thinking about openfiler as well. The problem is that I don't want to have two dedicated boxes (redundancy) so I was wondering if the following would work, or would it just be plain madness.
I want to have N nodes, at least 2 of those nodes would run synchronised openfilers in a VM. All good so far. What I want to do though is also use the hosts running openfiler to have their own VMs running stored on the openfiler managed disk space.
The way it would work is that there would be two storage areas on the physical disk, one for the VM running openfiler and another for the disk space openfiler will expose for other VMs. The host would then connect to the openfiler managed LUNs (or whatever) and use this to store the disk for every other virtual machine.
A concrete example:
/dev/sda1 2GB
/dev/sda2 500GB
host1 has openfilerVM backed by /dev/sda1. openfilerVM uses /dev/sda2 to expose storage via iSCSi. host1 connects to this iSCSi storage and uses it to server vm2 and vm3.
Obviously there are timing issues - openfilerVM must be running before vm2 and vm3 can start.
host2 would have a similar disk partition but its openfilerVM would be a mirror of the openfilerVM in host1. host2 might also have vm3 and vm4.
host3 may or may not have its own (replicated) openfiler or it might just use the openfiler disk space from host1 or host2.
The main benefit is that it makes the most use of the hardware, i.e. I don't two extra dedicated openfiler machines.
All the VMs are very low traffic so a single 1Gbs NIC in each machine would be sufficient I think.
If any one node dies I can restore the config file (from a backup on openfiler) as the VM disk image will be on the SAN (openfiler). If one of the nodes with openfiler dies then openfiler is replicated on at least one other node, so no worries there.
I realise this is all madness for grown up organisations, but I am trying to do all this on the cheap
Thoughts and comments welcome!
I know about DRDB but I have been thinking about openfiler as well. The problem is that I don't want to have two dedicated boxes (redundancy) so I was wondering if the following would work, or would it just be plain madness.
I want to have N nodes, at least 2 of those nodes would run synchronised openfilers in a VM. All good so far. What I want to do though is also use the hosts running openfiler to have their own VMs running stored on the openfiler managed disk space.
The way it would work is that there would be two storage areas on the physical disk, one for the VM running openfiler and another for the disk space openfiler will expose for other VMs. The host would then connect to the openfiler managed LUNs (or whatever) and use this to store the disk for every other virtual machine.
A concrete example:
/dev/sda1 2GB
/dev/sda2 500GB
host1 has openfilerVM backed by /dev/sda1. openfilerVM uses /dev/sda2 to expose storage via iSCSi. host1 connects to this iSCSi storage and uses it to server vm2 and vm3.
Obviously there are timing issues - openfilerVM must be running before vm2 and vm3 can start.
host2 would have a similar disk partition but its openfilerVM would be a mirror of the openfilerVM in host1. host2 might also have vm3 and vm4.
host3 may or may not have its own (replicated) openfiler or it might just use the openfiler disk space from host1 or host2.
The main benefit is that it makes the most use of the hardware, i.e. I don't two extra dedicated openfiler machines.
All the VMs are very low traffic so a single 1Gbs NIC in each machine would be sufficient I think.
If any one node dies I can restore the config file (from a backup on openfiler) as the VM disk image will be on the SAN (openfiler). If one of the nodes with openfiler dies then openfiler is replicated on at least one other node, so no worries there.
I realise this is all madness for grown up organisations, but I am trying to do all this on the cheap
Thoughts and comments welcome!