Obsolete MBA7 cluster testing instructions (English)
From PlcWiki
(Difference between revisions)
(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 | |
IP address of the second node: | IP address of the second node: | ||
- | + | 10.48.1.25 | |
Virtualized kernel IP address: | Virtualized kernel IP address: | ||
- | + | 10.48.1.47 | |
graphical virtual machine manager: | graphical virtual machine manager: | ||
- | + | virt-manager | |
Status of virtual machines: | Status of virtual machines: | ||
- | + | virsh list --all | |
To start the virtual kernel: | To start the virtual kernel: | ||
- | + | virsh start plcmba7krnl | |
Shutdown (correct): | Shutdown (correct): | ||
- | + | virsh shutdown plcmba7krnl | |
Switching off (pulling the cord): | Switching off (pulling the cord): | ||
- | + | virsh destroy plcmba7krnl | |
Pause (remains in RAM): | Pause (remains in RAM): | ||
- | + | virsh suspend plcmba7krnl: | |
Resumption of activity: | Resumption of activity: | ||
- | + | virsh resume plcmba7krnl | |
Hibernation: | Hibernation: | ||
- | + | virsh managedsave plcmba7krnl | |
Awakening from hibernation: | Awakening from hibernation: | ||
- | + | virsh start plcmba7krnl | |
DRBD storage status: | DRBD storage status: | ||
- | + | drbd-overview | |
Storage connection: | Storage connection: | ||
- | + | mount /opt | |
Disconnect storage: | Disconnect storage: | ||
- | + | umount /opt | |
To turn off storage on this node: | To turn off storage on this node: | ||
- | + | drbdadm down all | |
To turn on storage on this node: | To turn on storage on this node: | ||
- | + | 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 | |
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 | |
- | == Typical test == | + | ==Typical test== |
At 10.48.1.29: | At 10.48.1.29: | ||
- | + | virsh -c qemu:///system destroy plcmba7krnl | |
- | + | umount /opt | |
At 10.48.1.25: | At 10.48.1.25: | ||
- | + | drbdadm primary all | |
- | + | mount /opt | |
- | + | 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