Obsolete MBA7 cluster testing instructions (English)

From PlcWiki

Jump to: navigation, search

Testing a virtualized kernel in a DRBD cluster

IP address of the first node (host):

10.48.1.29

IP address of the second node:

10.48.1.25

Virtualized kernel IP address:

10.48.1.47

graphical virtual machine manager:

virt-manager

Status of virtual machines:

virsh list --all

To start the virtual kernel:

virsh start plcmba7krnl

Shutdown (correct):

virsh shutdown plcmba7krnl

Switching off (pulling the cord):

virsh destroy plcmba7krnl

Pause (remains in RAM):

virsh suspend plcmba7krnl:

Resumption of activity:

virsh resume plcmba7krnl

Hibernation:

virsh managedsave plcmba7krnl

Awakening from hibernation:

virsh start plcmba7krnl


DRBD storage status:

drbd-overview

Storage connection:

mount /opt

Disconnect storage:

 umount /opt

To turn off storage on this node:

drbdadm down all

To turn on storage on this node:

drbdadm up all

Change the storage role on this node to secondary ("slave", cannot be mounted)

drbdadm secondary all

Change the storage role on this node to primary ("master" can be mounted)

drbdadm primary all


Typical test

At 10.48.1.29:

virsh -c qemu:///system destroy plcmba7krnl
umount /opt

At 10.48.1.25:

drbdadm primary all
mount /opt
virsh -c qemu:///system start plcmba7krnl
Personal tools