Obsolete MBA7 cluster testing instructions (English)

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '=== 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 addr…')
 
(One intermediate revision not shown)
Line 2: Line 2:
IP address of the first node (host):
IP address of the first node (host):
-
 10.48.1.29
+
10.48.1.29
IP address of the second node:
IP address of the second node:
-
 10.48.1.25
+
10.48.1.25
Virtualized kernel IP address:
Virtualized kernel IP address:
-
 10.48.1.47
+
10.48.1.47
graphical virtual machine manager:
graphical virtual machine manager:
-
 virt-manager
+
virt-manager
Status of virtual machines:
Status of virtual machines:
-
 virsh list --all
+
virsh list --all
To start the virtual kernel:
To start the virtual kernel:
-
 virsh start plcmba7krnl
+
virsh start plcmba7krnl
Shutdown (correct):
Shutdown (correct):
-
 virsh shutdown plcmba7krnl
+
virsh shutdown plcmba7krnl
Switching off (pulling the cord):
Switching off (pulling the cord):
-
 virsh destroy plcmba7krnl
+
virsh destroy plcmba7krnl
Pause (remains in RAM):
Pause (remains in RAM):
-
 virsh suspend plcmba7krnl
+
virsh suspend plcmba7krnl:
Resumption of activity:
Resumption of activity:
-
 virsh resume plcmba7krnl
+
virsh resume plcmba7krnl
Hibernation:
Hibernation:
-
 virsh managedsave plcmba7krnl
+
virsh managedsave plcmba7krnl
Awakening from hibernation:
Awakening from hibernation:
-
 virsh start plcmba7krnl
+
virsh start plcmba7krnl
DRBD storage status:
DRBD storage status:
-
 drbd-overview
+
drbd-overview
Storage connection:
Storage connection:
-
 mount / opt
+
mount /opt
Disconnect storage:
Disconnect storage:
-
  umount / opt
+
  umount /opt
To turn off storage on this node:
To turn off storage on this node:
-
 drbdadm down all
+
drbdadm down all
To turn on storage on this node:
To turn on storage on this node:
-
 drbdadm up all
+
drbdadm up all
Change the storage role on this node to secondary ("slave", cannot be mounted)
Change the storage role on this node to secondary ("slave", cannot be mounted)
-
 drbdadm secondary all
+
drbdadm secondary all
Change the storage role on this node to primary ("master" can be mounted)
Change the storage role on this node to primary ("master" can be mounted)
-
 drbdadm primary all
+
drbdadm primary all
-
== Typical test ==
+
==Typical test==
At 10.48.1.29:
At 10.48.1.29:
-
 virsh -c qemu: /// system destroy plcmba7krnl
+
virsh -c qemu:///system destroy plcmba7krnl
-
 umount / opt
+
umount /opt
At 10.48.1.25:
At 10.48.1.25:
-
 drbdadm primary all
+
drbdadm primary all
-
 mount / opt
+
mount /opt
-
 virsh -c qemu: /// system start plcmba7krnl
+
virsh -c qemu:///system start plcmba7krnl

Current revision as of 11:40, 29 April 2020

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