-
Notifications
You must be signed in to change notification settings - Fork 0
/
minimalrhcs.txt
90 lines (55 loc) · 1.67 KB
/
minimalrhcs.txt
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
cluster3 minimal setup and usage
cluster configuration
---------------------
Create /etc/cluster/cluster.conf and copy it to all nodes.
Below is a minimal cluster.conf file using manual fencing. The node names
should resolve to the address on the network interface you want to use for
cluster communication.
<?xml version="1.0"?>
<cluster name="alpha" config_version="1">
<clusternodes>
<clusternode name="node-01" nodeid="1"/>
<clusternode name="node-02" nodeid="2"/>
<clusternode name="node-03" nodeid="3"/>
</clusternodes>
</cluster>
cluster start
-------------
Use the init script on all nodes:
> service cman start
Or, minimal manual steps:
> modprobe configfs
> modprobe dlm
> modprobe gfs2 (if using gfs2)
> mount -t configfs none /sys/kernel/config
> cman_tool join
> fenced
> dlm_controld
> gfs_controld (if using gfs2)
> fence_tool join
using clvm
----------
Use the init script on all nodes:
> service clvmd start
Or, manually:
> clvmd
> vgscan
> vgchange -aly
using rgmanager
---------------
Use the init script on all nodes:
> service rgmanager start
Or, manually:
> rgmanager
Create services/resources to be managed in cluster.conf.
using gfs2
----------
Create new file systems, using the cluster name from cluster.conf. Pick a
unique name for each fs and select a number of journals greater than or equal
to the number of nodes that will mount the fs.
> mkfs.gfs2 -p lock_dlm -t <clustername>:<fsname> -j <#journals> <blockdev>
Use the gfs2 init script to automate mounting gfs2 fs's listed in /etc/fstab:
> service gfs2 start
Or, manually:
> mount -t gfs2 <blockdev> <mountpoint>
(Replace "gfs2" with "gfs" everywhere above to use gfs instead of gfs2.)