[Ocfs2-users] Unable to access cluster service
Joel Becker
Joel.Becker at oracle.com
Tue Oct 28 13:32:00 PDT 2008
On Tue, Oct 28, 2008 at 02:15:07PM -0600, Paul Mathews wrote:
> On Tuesday 28 October 2008 1:44:53 pm Joel Becker wrote:
> > On Tue, Oct 28, 2008 at 01:10:46PM -0600, Paul Mathews wrote:
> > > Currently, ocfs2 is compiled into the kernel, and the o2cb init script
> > > does not run on startup:
> > >
> > > root at debian1:~# /etc/init.d/o2cb start
> > > Mounting ocfs2_dlmfs filesystem at /dlm: OK
> > > Starting Oracle cluster ocfs2: Failed
> > > o2cb_ctl: Unable to access cluster service Cannot initialize cluster
> >
> > Hmm, it doesn't say 'mounting configfs'. Is configfs mounted
> > (at /sys/kernel/config)? Is sysfs mounted?
>
> it doesn't appear that configfs, but sysfs is:
>
> > If configfs is *not* mounted, can you run 'sh -x
> > /etc/init.d/o2cb start' and send us the output? That way we know why it
> > isn't mounted. OTOH, if it is mounted, we want the strace(1) of
> > o2cb_ctl.
>
> debian1:~# sh -x /etc/init.d/o2cb start
> + export LC_ALL=C
> + LC_ALL=C
> + CLUSTERCONF=/etc/ocfs2/cluster.conf
> + '[' -f /etc/sysconfig/o2cb ']'
> + '[' -f /etc/default/o2cb ']'
> + CONFIGURATION=/etc/default/o2cb
> + '[' -f /etc/default/o2cb ']'
> + . /etc/default/o2cb
> ++ O2CB_ENABLED=true
> ++ O2CB_BOOTCLUSTER=ocfs2
> ++ O2CB_HEARTBEAT_THRESHOLD=7
> ++ O2CB_IDLE_TIMEOUT_MS=10000
> ++ O2CB_KEEPALIVE_DELAY_MS=5000
> ++ O2CB_RECONNECT_DELAY_MS=2000
> + LOAD_ACTIONS=("mount_fs ocfs2_dlmfs /dlm")
LOAD_ACTIONS is not part of ocfs2-tools 1.4. Can you verify you
have ocfs2-tools 1.4 installed and that your /etc/init.d/o2cb comes from
it? I wonder if it was marked as a 'configuration' file and as such not
overwritten by a newer version.
That being said, if you are using ocfs2-tools 1.2, LOAD_ACTIONS
should contain a number of other actions. Did you hand-edit
/etc/init.d/o2cb to remove some actions when you compiled the modules
in?
Joel
--
Life's Little Instruction Book #43
"Never give up on somebody. Miracles happen every day."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-users
mailing list