mounting ocfs2 disk fails in intrepid beta

Bug #283262 reported by Holger Mauermann
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocfs2-tools (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Intrepid by Christian Schlittchen
Nominated for Jaunty by Ante Karamatić

Bug Description

Binary package hint: ocfs2-tools

Mounting a ocfs2-formatted disk fails with "mount.ocfs2: Node manager kernel module is not loaded probably because o2cb service not started". But the o2cb service is started and the nodemanager module seems to be loaded.

# /etc/init.d/o2cb start
Loading module "configfs": OK
Mounting configfs filesystem at /sys/kernel/config: OK
Loading module "ocfs2_nodemanager": OK
Loading module "ocfs2_dlm": OK
Loading module "ocfs2_dlmfs": OK
Mounting ocfs2_dlmfs filesystem at /dlm: OK
Starting O2CB cluster ocfs2: OK

# mkfs.ocfs2 /dev/drbd0
mkfs.ocfs2 1.3.9
Filesystem label=
Block size=4096 (bits=12)
Cluster size=4096 (bits=12)
Volume size=5000777728 (1220893 clusters) (1220893 blocks)
38 cluster groups (tail covers 27421 clusters, rest cover 32256 clusters)
Journal size=67108864
Initial number of node slots: 4
Creating bitmaps: done
Initializing superblock: done
Writing system files: done
Writing superblock: done
Writing backup superblock: 2 block(s)
Formatting Journals: done
Writing lost+found: done
mkfs.ocfs2 successful

# mount /dev/drbd0 /mnt
mount.ocfs2: Node manager kernel module is not loaded probably because o2cb service not started

# /etc/init.d/o2cb status
Module "configfs": Loaded
Filesystem "configfs": Mounted
Module "ocfs2_nodemanager": Loaded
Module "ocfs2_dlm": Loaded
Module "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold = 31
  Network idle timeout: 30000
  Network keepalive delay: 2000
  Network reconnect delay: 2000
Checking O2CB heartbeat: Not active

# lsmod | grep ocfs
ocfs2_dlmfs 27016 1
ocfs2_dlm 211108 1 ocfs2_dlmfs
ocfs2_nodemanager 158504 8 ocfs2_dlmfs,ocfs2_dlm
configfs 33688 2 ocfs2_nodemanager

# modinfo ocfs2_nodemanager
filename: /lib/modules/2.6.27-7-server/kernel/fs/ocfs2/cluster/ocfs2_nodemanager.ko
license: GPL
author: Oracle
version: 1.5.0
description: OCFS2 Node Manager 1.5.0
srcversion: 8642EC0E415E2CD5609007B
depends: configfs
vermagic: 2.6.27-7-server SMP mod_unload modversions 686

# uname -r
2.6.27-7-server

# lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10

Related branches

Revision history for this message
Christian Schlittchen (schlittchen) wrote :

strace -f shows that /proc/sys/fs/ocfs2/nm/hb_path_ctl is not found and therefore the mount fails. This functionality has been moved into a new module ocfs2_stackglue, which is not loaded in /etc/init.d/o2cb.

To fix this problem simply add "load_module ocfs2_stackglue" to the LOAD_ACTIONS in /etc/init.d/o2cb.

Revision history for this message
Christian Roessner (christian-roessner-net) wrote :

Hi,

I can confirm this bug on intrepid (stable). Fix is working. Thx @C. Schlittchen

Revision history for this message
laberko (e-admin-vauhaus-ru) wrote :

This worked for me too. But now I have this:
mount.ocfs2: Device or resource busy while mounting /dev/sda3 on /ocfs2. Check 'dmesg'..... etc.

Dmesg gives nothing. When I stop drbd service partition mounts ok. But now service doesn't start.
So, looks like partition is occupied by drbd service and can't be mounted.

How to solve this?

Thanks.

Revision history for this message
laberko (e-admin-vauhaus-ru) wrote :

Now everything's fine, mounted /dev/drbd0 on /ocfs2

Revision history for this message
Ante Karamatić (ivoks) wrote :

This patch fixes the issue.

Changed in ocfs2-tools (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ocfs2-tools - 1.3.9-0ubuntu3

---------------
ocfs2-tools (1.3.9-0ubuntu3) jaunty; urgency=low

  * modprobe ocfs2_stackglue module on o2cb start (LP: #283262)

 -- Ante Karamatic <email address hidden> Wed, 01 Apr 2009 13:54:12 +0200

Changed in ocfs2-tools (Ubuntu):
status: Confirmed → Fix Released
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.