mounting ocfs2 disk fails in intrepid beta
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocfs2-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
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_
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_
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,
configfs 33688 2 ocfs2_nodemanager
# modinfo ocfs2_nodemanager
filename: /lib/modules/
license: GPL
author: Oracle
version: 1.5.0
description: OCFS2 Node Manager 1.5.0
srcversion: 8642EC0E415E2CD
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
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.