File: corosync

package info (click to toggle)
dlm 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 960 kB
  • sloc: ansic: 15,665; makefile: 376; python: 274; sh: 150
file content (48 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

set -e

cleanup () {
  service dlm stop
  service corosync stop
}

trap "cleanup" 0 2 3 15

# configure cluster
printf "\n=== corosync ===\n"
corosync-quorumtool -e 1
corosync-quorumtool || true

printf "\n=== dlm.ko ===\n"
lsmod | grep dlm || true
ls -l /dev/dlm* || true
ls -l /dev/misc/dlm* || true
dmesg | tail

printf "\n=== dlm_controld ===\n"
if ! service dlm status; then
  # service log might be incomplete
  if [ -x /bin/journalctl ]; then
    journalctl -b > $AUTOPKGTEST_ARTIFACTS/journal.log
  fi
  exit 1
fi

printf "\n=== dlm_tool status ===\n"
dlm_tool status

printf "\n=== dlm_tool dump ===\n"
dlm_tool dump

printf "\n=== dlm_tool dump_config ===\n"
dlm_tool dump_config

printf "\n=== dlm_tool join test ===\n"
dlm_tool join test

printf "\n=== dlm_tool ls ===\n"
dlm_tool ls

printf "\n=== dlm_tool leave test ===\n"
dlm_tool leave test