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: > > I'm running Debian stable on a custom 2.6.27.3 kernel. So far, whenever I > > try to start the cluster service, it throws a "o2cb_ctl: Unable to access > > cluster service Cannot initialize cluster" error. I have compiled > > ocfs2-tools 1.4.1 from source, and have tried ocfs2 both as modules, and > > compiled into the kernel. As of now, I have been unable to get the > > cluster service started. > > > > Currently, ocfs2 is compiled into the kernel, and the o2cb init script > > does not run on startup: > > > > [EMAIL PROTECTED]:~# /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: debian1:~# mount /dev/mapper/debian1-root on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw) > 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") + case "$1" in + start '' + '[' true '!=' true ']' + load ++ seq 0 0 + for i in '$(seq 0 $((${#LOAD_ACTIONS[*]} - 1)) )' + eval mount_fs ocfs2_dlmfs /dlm ++ mount_fs ocfs2_dlmfs /dlm ++ TYPE=ocfs2_dlmfs ++ FULL_MOUNT=/dlm +++ echo /dlm +++ sed -e 's/\//\\\//g' ++ FULL_MOUNTSEARCH='\/dlm' +++ awk '$2 ~ /^\/dlm$/{print $2; exit}' ++ MOUNTOUT=/dlm ++ '[' -n /dlm ']' ++ return 2 + if_fail 2 + RC=2 + REASON= + '[' 2 = 0 ']' + '[' 2 = 2 ']' + return + online '' + CLUSTER=ocfs2 + '[' -z ocfs2 ']' + check_online ocfs2 + '[' 1 -lt 1 -o -z ocfs2 ']' + CLUSTER=ocfs2 + RC=0 ++ configfs_path ++ '[' -d /sys/kernel/config ']' ++ echo /sys/kernel/config + '[' -d /sys/kernel/config/cluster/ocfs2/node/ ']' + return 0 + '[' 0 = 2 ']' + '[' -f /etc/ocfs2/cluster.conf ']' + echo -n 'Starting Oracle cluster ocfs2: ' Starting Oracle cluster ocfs2: ++ o2cb_ctl -H -n ocfs2 -t cluster -a online=yes + OUTPUT='o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' + '[' 234 = 0 ']' + echo Failed Failed + echo 'o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' o2cb_ctl: Unable to access cluster service Cannot initialize cluster + echo -n 'Stopping Oracle cluster ocfs2: ' Stopping Oracle cluster ocfs2: ++ o2cb_ctl -H -n ocfs2 -t cluster -a online=no + OUTPUT='o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' + if_fail 234 'o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' + RC=234 + REASON='o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' + '[' 234 = 0 ']' + '[' 234 = 2 ']' + echo Failed Failed + '[' -n 'o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' ']' + echo 'o2cb_ctl: Unable to access cluster service Cannot initialize cluster ' o2cb_ctl: Unable to access cluster service Cannot initialize cluster + exit 1 > > > [EMAIL PROTECTED]:~# sudo cat /etc/ocfs2/cluster.conf > > Why do you need sudo to cat this file? Are you not running with > root privileges? Habit. :) I generally run as non-root, and sudo everything I need to do as root. > > Joel Paul _______________________________________________ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users