skip to primary navigationskip to content
 

xen

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
  1. make the LVs on both machines
    1. lvcreate -L <size> -n xxx-swap <vg>
    2. lvcreate -L <size> -n xxx-disk <vg>
    3. lvcreate -L <size> -n xxx-extra <vg>
  2. make the drbd devs on both machines for each resource
    1. Find last drbd device with drbd-overview
    2. Copy resource file, update: sync after, device number ports and disk lines
    3. Duplicate all .res files
    4. On both: drbdadm create-md <resource>
    5. On both: drbdadm up <resource>
    6. On one: drbdadm -- --overwrite-data-of-peer primary <resource>
    7. Wait for sync.
  3. 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
  4. Make note of root password.
  5. On primary: drbdadm secondary <resource>
  6. Rename config to somethiing shorter
  7. Change devices in config to use drbd:resource syntax
  8. Copy config to peer.
  9. Try starting it!