blob: 29b4b1a433eb0db36a0e6206d232d2ff4931a9be (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
|
@ocfs2
Feature: OCFS2 configuration/verify using bootstrap
@clean
Scenario: Configure ocfs2 along with init process
Given Has disk "/dev/sda1" on "hanode1"
And Has disk "/dev/sda2" on "hanode1"
When Run "crm cluster init -s /dev/sda1 -o /dev/sda2 -y" on "hanode1"
Then Cluster service is "started" on "hanode1"
And Service "sbd" is "started" on "hanode1"
And Resource "stonith-sbd" type "external/sbd" is "Started"
And Resource "ocfs2-dlm" type "pacemaker:controld" is "Started"
And Resource "ocfs2-clusterfs" type "heartbeat:Filesystem" is "Started"
@clean
Scenario: Configure cluster lvm2 + ocfs2 with init process
Given Has disk "/dev/sda1" on "hanode1"
And Has disk "/dev/sda2" on "hanode1"
And Has disk "/dev/sda3" on "hanode1"
When Run "crm cluster init -s /dev/sda1 -o /dev/sda2 -o /dev/sda3 -C -y" on "hanode1"
Then Cluster service is "started" on "hanode1"
And Service "sbd" is "started" on "hanode1"
And Resource "stonith-sbd" type "external/sbd" is "Started"
And Resource "ocfs2-dlm" type "pacemaker:controld" is "Started"
And Resource "ocfs2-lvmlockd" type "heartbeat:lvmlockd" is "Started"
And Resource "ocfs2-lvmactivate" type "heartbeat:LVM-activate" is "Started"
And Resource "ocfs2-clusterfs" type "heartbeat:Filesystem" is "Started"
@clean
Scenario: Add ocfs2 alone on a running cluster
Given Has disk "/dev/sda1" on "hanode1"
And Has disk "/dev/sda2" on "hanode1"
And Has disk "/dev/sda1" on "hanode2"
And Has disk "/dev/sda2" on "hanode2"
When Run "crm cluster init -s /dev/sda1 -y" on "hanode1"
And Run "crm cluster join -c hanode1 -y" on "hanode2"
Then Online nodes are "hanode1 hanode2"
And Service "sbd" is "started" on "hanode1"
And Service "sbd" is "started" on "hanode2"
And Resource "stonith-sbd" type "external/sbd" is "Started"
When Run "crm cluster init ocfs2 -o /dev/sda2 -y" on "hanode1"
Then Resource "ocfs2-dlm" type "pacemaker:controld" is "Started"
And Resource "ocfs2-clusterfs" type "heartbeat:Filesystem" is "Started"
@clean
Scenario: Add cluster lvm2 + ocfs2 on a running cluster
Given Has disk "/dev/sda1" on "hanode1"
And Has disk "/dev/sda2" on "hanode1"
And Has disk "/dev/sda1" on "hanode2"
And Has disk "/dev/sda2" on "hanode2"
When Run "crm cluster init -s /dev/sda1 -y" on "hanode1"
And Run "crm cluster join -c hanode1 -y" on "hanode2"
Then Online nodes are "hanode1 hanode2"
And Service "sbd" is "started" on "hanode1"
And Service "sbd" is "started" on "hanode2"
And Resource "stonith-sbd" type "external/sbd" is "Started"
When Run "crm cluster init ocfs2 -o /dev/sda2 -C -y" on "hanode1"
Then Resource "ocfs2-dlm" type "pacemaker:controld" is "Started"
And Resource "ocfs2-lvmlockd" type "heartbeat:lvmlockd" is "Started"
And Resource "ocfs2-lvmactivate" type "heartbeat:LVM-activate" is "Started"
And Resource "ocfs2-clusterfs" type "heartbeat:Filesystem" is "Started"
|