xen0 and xen1 are virtual machine hosts
Intel Xeon E3-1240 based server. Double mirrored using DRBD
Each may be hosting some of:
- admin-linux1: Web services (obsolete)
- ash: ActiveDirectory DC
- birch: ActiveDirectory DC
- dmgweb: DMG group development web server
- keyserver: keyserver and obsolete Oracle XE cell-line database
- mail: mailing lists and local mail accounts (obsolete)
- print: windows printer server
- websvc: Web services (new)
Run xentop as root to find out what VMs are running. Run drbd-overview to check drbd status.
To make a new VM
- make the LVs on both machines
- lvcreate -L <size> -n xxx-swap <vg>
- lvcreate -L <size> -n xxx-disk <vg>
- lvcreate -L <size> -n xxx-extra <vg>
- make the drbd devs on both machines for each resource
- Find last drbd device with drbd-overview
- Copy resource file, update: sync after, device number ports and disk lines
- Duplicate all .res files
- On both: drbdadm create-md <resource>
- On both: drbdadm up <resource>
- On one: drbdadm -- --overwrite-data-of-peer primary <resource>
- Wait for sync.
- On Primary:
xen-create-image --swap-dev=/dev/drbd/by-res/xxx-swap --image-dev=/dev/drbd/by-res/xxx-disk --dist=wheezy --hostname='xxx.gen.private.cam.ac.uk' --memory=128M --ip=yyy.yyy.yyy.yyy - Make note of root password.
- On primary: drbdadm secondary <resource>
- Rename config to somethiing shorter
- Change devices in config to use drbd:resource syntax
- Copy config to peer.
- Try starting it!