/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Server/Storage/clusterfs/ocfs2.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
- Cluster configuration (on all nodes) in /etc/ocfs2/cluster.conf
 
2
node:
 
3
        ip_port = 7777
 
4
        ip_address = 192.168.11.5
 
5
        number = 0
 
6
        name = ipepdvcompute2
 
7
        cluster = ocfs2
 
8
 
 
9
node:
 
10
        ip_port = 7777
 
11
        ip_address = 192.168.11.6
 
12
        number = 1
 
13
        name = ipepdvkepler
 
14
        cluster = ocfs2
 
15
 
 
16
cluster:
 
17
        node_count = 2
 
18
        name = ocfs2.
 
19
 
 
20
 
 
21
- Configure Oracle cluster (may cause problems if configfs compiled in,
 
22
not loaded as a module:
 
23
    /etc/init.d/o2cb load
 
24
    /etc/init.d/o2cb configure
 
25
 
 
26
- Start (on each reboot)
 
27
    /etc/init.d/o2cb online
 
28
 
 
29
- Check
 
30
    o2cb list-nodes ocfs2
 
31
    
 
32
- Create partition on network block device (from any of the nodes)
 
33
    mkfs.ocfs2 -b 4k -C 256k -L ssd3500  /dev/sdc
 
34
    mount /dev/sdc /mnt/ssd
 
35
 
 
36
- Remounting in single-user mode
 
37
    tunefs.ocfs2 --fs-features=local /dev/sdg
 
38
 reverting:
 
39
    tunefs.ocfs2 --fs-features=nolocal /dev/sfg
 
40