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