can't use ocfs2 with cman clustering

Bug #802770 reported by charles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocfs2-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

operating system: linux ubuntu server 11.04 64-bit kernetl 2.6.38-8-server

relevant installed packages:
1. ocfs2-tools 1.6.3-1ubuntu2
2. ocfs2-tools-cman 1.6.3-1ubuntu2
3. cman 3.0.12-2ubuntu3

i've configure ocfs2 cluster and cman cluster service in a 2 node setup

cman runs and both nodes communicate
if o2cd service is not running ocfs2 service will not start.

Starting Oracle Cluster File System (OCFS2) mount.ocfs2: Unable to access
cluster service while trying initialize cluster
Failed

i need to use cman for fcntl locks that oc2b does not provide

config file: /etc/ocfs2/cluster.conf
cluster:
        node_count = 2
        name = smbhaclus

node:
        ip_port = 7901
        ip_address = 10.0.0.23
        number = 7
        name = sambaha.n1
        cluster = smbhaclus

node:
        ip_port = 7901
        ip_address = 10.0.0.24
        number = 87
        name = sambaha.n2
        cluster = smbhaclus

the config file shouldn't be a problem as the cluster will function if o2cb is started.

have tried to update stack using tunefs.ocfs2 --update-cluster-stack DEVICE
no success

creating a new ocfs2 file system is also unsuccessful

further information:

mkfs.ocfs2 approach yields a formatted fs still using o2cb stack:
sudo mkfs.ocfs2 -F -b 4KB -N 3 -T mail --fs-feature-level=max-features
/dev/drbd1
mkfs.ocfs2 1.6.3
Cluster stack: classic o2cb
Filesystem Type of mail
Label: ocfs2smbha

sudo service o2cb status

Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Driver for "ocfs2_dlmfs": Not loaded
Checking O2CB cluster ocfs2: Offline

---

sudo cman_tool status
Version: 6.2.0
Config Version: 2
Cluster Name: smbhaclus
Cluster Id: 56117
Cluster Member: Yes
Cluster Generation: 48
Membership state: Cluster-Member
Nodes: 2
Expected votes: 1
Total votes: 2
Node votes: 1
Quorum: 1
Active subsystems: 7
Flags: 2node
Ports Bound: 0
Node name: sambaha.n1
Node ID: 1
Multicast addresses: 239.192.219.17
Node addresses: 10.0.0.23

Revision history for this message
Ante Karamatić (ivoks) wrote : Re: [Ubuntu-ha] [Bug 802770] [NEW] can't use ocfs2 with cman clustering

U Pon, 27. 06. 2011., u 23:11 +0000, charles je napisao/la:

> sudo service o2cb status
>
> Driver for "configfs": Loaded
> Filesystem "configfs": Mounted
> Driver for "ocfs2_dlmfs": Not loaded
> Checking O2CB cluster ocfs2: Offline

Have you enabled o2cb in /etc/default/o2cb?

--
Ante Karamatic
OEM Server Engineer, Canonical Ltd
<email address hidden>

Revision history for this message
charles (charlesaburrell) wrote :

no o2cb service is not enabled, start o2cb is set to false, i do not want ocfs2 to utilize the o2cb stack as it does not provide fcntl locks

ocfs2 should detect and utilize the running stack, which in my case would be cman
however, ocfs2 only works with o2cb stack, this is not the expected behaviour.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

No having used cman with OCFS2 before, and assuming that the o2cb init script initializes the cluster o2cb instead of cman, shouldn't you be disabling disabling it? (Please correct me if I'm wrong)

Cheers,

Marking this bug report as incomplete!

Changed in ocfs2-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
charles (charlesaburrell) wrote :

i have disabled o2cb as i said above.

the cofiguration for o2cb is: /etc/default/o2cb
the directive is set:
                   O2CB_ENABLED=false

hence it is disabled. no?

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Should be, but you could also make sure by:

update-rc.d -f o2cb remove
update-rc.d o2cb disable

The only thing that I can imagine atm is that for some reason when creating the cluster it caught the o2cb one instead of the cman one. You should make sure ocfs_controld.cman is running as well as the dlm, and reformat the drives to try to get the new stack on the filesystem, since the update is not working.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ocfs2-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in ocfs2-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.