hello, I'm running Ubuntu Breezy with the OCFS2 modules in the standard kernel. I installed ocfs2console and ocfs2-tools I've formatted a partition with ocfs2. But I can't add any node or mount the device(with the ocfs2console). because I get a "Unable to access cluster service" I can't find the cause nor the solution to this. root@lenaeja:~# /etc/init.d/o2cb status Module "sctp": Loaded Module "configfs": Loaded Filesystem "configfs": Mounted Module "ocfs2_nodemanager": Loaded Module "ocfs2_dlm": Loaded Module "ocfs2_dlmfs": Loaded Filesystem "ocfs2_dlmfs": Mounted Checking cluster ocfs2: Offline root@lenaeja:~# /etc/init.d/o2cb online ocfs2 Starting cluster ocfs2: Failed Cluster ocfs2 created o2cb_ctl: Configuration error discovered while populating cluster ocfs2. None of its nodes were considered local. A node is considered local when its node name in the configuration maches this machine's host name. Stopping cluster ocfs2: OK root@lenaeja:~# lsmod | grep ocfs ocfs2_dlmfs 19592 0 ocfs2 306848 0 ocfs2_dlm 134540 2 ocfs2_dlmfs,ocfs2 ocfs2_nodemanager 133624 3 ocfs2_dlmfs,ocfs2,ocfs2_dlm configfs 22028 2 ocfs2_nodemanager jbd 48536 2 ocfs2,ext3 root@lenaeja:~# /etc/init.d/o2cb start Mounting configfs filesystem at /config: OK Mounting ocfs2_dlmfs filesystem at /dlm: OK Starting cluster ocfs2: Failed Cluster ocfs2 created o2cb_ctl: Configuration error discovered while populating cluster ocfs2. None of its nodes were considered local. A node is considered local when its node name in the configuration maches this machine's host name. Stopping cluster ocfs2: OK when I try to mount the device with the console: ocfs2_hb_ctl: Unable to access cluster service while starting heartbeat mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted" : Could not mount /dev/hda3 when I try to add a node: o2cb_ctl: Unable to access cluster service while creating node Could not add node lenaeja root@lenaeja:~# cat /etc/ocfs2/cluster.conf cluster: node_count = 0 name = ocfs2 in the messages: Oct 12 11:00:23 localhost kernel: [4365348.899000] OCFS2 Node Manager 1.1.2 Oct 12 11:00:23 localhost kernel: [4365349.032000] OCFS2 DLM 1.1.1 Oct 12 11:00:23 localhost kernel: [4365349.084000] OCFS2 DLMFS 1.1.1 Oct 12 11:00:23 localhost kernel: [4365349.085000] OCFS2 User DLM kernel interface loaded Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20051012/95ca9887/attachment-0001.html
root@lenaeja:~# cat /etc/ocfs2/cluster.conf cluster: node_count = 0 name = ocfs2 You have no nodes defined in cluster.conf. Refer to the sample cluster.conf in the user's guide. Jan Lenaerts wrote:> hello, > > I'm running Ubuntu Breezy with the OCFS2 modules in the standard > kernel. I installed ocfs2console and ocfs2-tools > I've formatted a partition with ocfs2. But I can't add any node or > mount the device(with the ocfs2console). because I get a "Unable to > access cluster service" > I can't find the cause nor the solution to this. > > root@lenaeja:~# /etc/init.d/o2cb status > Module "sctp": Loaded > Module "configfs": Loaded > Filesystem "configfs": Mounted > Module "ocfs2_nodemanager": Loaded > Module "ocfs2_dlm": Loaded > Module "ocfs2_dlmfs": Loaded > Filesystem "ocfs2_dlmfs": Mounted > Checking cluster ocfs2: Offline > root@lenaeja:~# /etc/init.d/o2cb online ocfs2 > Starting cluster ocfs2: Failed > Cluster ocfs2 created > o2cb_ctl: Configuration error discovered while populating cluster > ocfs2. None of its nodes were considered local. A node is considered > local when its node name in the configuration maches this machine's > host name. > Stopping cluster ocfs2: OK > > root@lenaeja:~# lsmod | grep ocfs > ocfs2_dlmfs 19592 0 > ocfs2 306848 0 > ocfs2_dlm 134540 2 ocfs2_dlmfs,ocfs2 > ocfs2_nodemanager 133624 3 ocfs2_dlmfs,ocfs2,ocfs2_dlm > configfs 22028 2 ocfs2_nodemanager > jbd 48536 2 ocfs2,ext3 > root@lenaeja:~# /etc/init.d/o2cb start > Mounting configfs filesystem at /config: OK > Mounting ocfs2_dlmfs filesystem at /dlm: OK > Starting cluster ocfs2: Failed > Cluster ocfs2 created > o2cb_ctl: Configuration error discovered while populating cluster > ocfs2. None of its nodes were considered local. A node is considered > local when its node name in the configuration maches this machine's > host name. > Stopping cluster ocfs2: OK > > when I try to mount the device with the console: > ocfs2_hb_ctl: Unable to access cluster service while starting heartbeat > mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: > "Operation not permitted" > : Could not mount /dev/hda3 > > when I try to add a node: > o2cb_ctl: Unable to access cluster service while creating node > > Could not add node lenaeja > > root@lenaeja:~# cat /etc/ocfs2/cluster.conf > cluster: > node_count = 0 > name = ocfs2 > > in the messages: > Oct 12 11:00:23 localhost kernel: [4365348.899000] OCFS2 Node Manager > 1.1.2 > Oct 12 11:00:23 localhost kernel: [4365349.032000] OCFS2 DLM 1.1.1 > Oct 12 11:00:23 localhost kernel: [4365349.084000] OCFS2 DLMFS 1.1.1 > Oct 12 11:00:23 localhost kernel: [4365349.085000] OCFS2 User DLM > kernel interface loaded > > Thanks in advance! > >------------------------------------------------------------------------ > >_______________________________________________ >Ocfs2-users mailing list >Ocfs2-users@oss.oracle.com >http://oss.oracle.com/mailman/listinfo/ocfs2-users > >
I tryed that, but this is what happens then: root@lenaeja:~# /etc/init.d/o2cb stop ocfs2 Unmounting ocfs2_dlmfs filesystem: OK Unloading module "ocfs2_dlmfs": OK Unmounting configfs filesystem: OK root@lenaeja:~# /etc/init.d/o2cb start ocfs2 Mounting configfs filesystem at /config: OK Loading module "ocfs2_dlmfs": OK Mounting ocfs2_dlmfs filesystem at /dlm: OK Starting cluster ocfs2: Failed o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf" Stopping cluster ocfs2: Failed o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf" root@lenaeja:~# /etc/init.d/o2cb status Module "sctp": Loaded Module "configfs": Loaded Filesystem "configfs": Mounted Module "ocfs2_nodemanager": Loaded Module "ocfs2_dlm": Loaded Module "ocfs2_dlmfs": Loaded Filesystem "ocfs2_dlmfs": Mounted Checking cluster ocfs2: Offline I made sure the cluster.conf file had all the permissions what the file now looks like: root@lenaeja:~# cat /etc/ocfs2/cluster.conf cluster: node_count = 2 name = ocfs2 node: ip_port = 7777 ip_address = 10.0.0.218 <http://10.0.0.218> number = 7 name = laxtop cluster = ocfs2 node: ip_port = 7777 ip_address = 10.0.20.10 <http://10.0.20.10> number = 6 name = lenaeja cluster = ocfs2 lenaeja is the host where the ocfs2 FS is on laxtop is a client node tx Jan Lenaerts On 10/13/05, Sunil Mushran <Sunil.Mushran@oracle.com> wrote:> > root@lenaeja:~# cat /etc/ocfs2/cluster.conf > cluster: > node_count = 0 > name = ocfs2 > > > You have no nodes defined in cluster.conf. Refer to the > sample cluster.conf in the user's guide. > > Jan Lenaerts wrote: > > > hello, > > > > I'm running Ubuntu Breezy with the OCFS2 modules in the standard > > kernel. I installed ocfs2console and ocfs2-tools > > I've formatted a partition with ocfs2. But I can't add any node or > > mount the device(with the ocfs2console). because I get a "Unable to > > access cluster service" > > I can't find the cause nor the solution to this. > > > > root@lenaeja:~# /etc/init.d/o2cb status > > Module "sctp": Loaded > > Module "configfs": Loaded > > Filesystem "configfs": Mounted > > Module "ocfs2_nodemanager": Loaded > > Module "ocfs2_dlm": Loaded > > Module "ocfs2_dlmfs": Loaded > > Filesystem "ocfs2_dlmfs": Mounted > > Checking cluster ocfs2: Offline > > root@lenaeja:~# /etc/init.d/o2cb online ocfs2 > > Starting cluster ocfs2: Failed > > Cluster ocfs2 created > > o2cb_ctl: Configuration error discovered while populating cluster > > ocfs2. None of its nodes were considered local. A node is considered > > local when its node name in the configuration maches this machine's > > host name. > > Stopping cluster ocfs2: OK > > > > root@lenaeja:~# lsmod | grep ocfs > > ocfs2_dlmfs 19592 0 > > ocfs2 306848 0 > > ocfs2_dlm 134540 2 ocfs2_dlmfs,ocfs2 > > ocfs2_nodemanager 133624 3 ocfs2_dlmfs,ocfs2,ocfs2_dlm > > configfs 22028 2 ocfs2_nodemanager > > jbd 48536 2 ocfs2,ext3 > > root@lenaeja:~# /etc/init.d/o2cb start > > Mounting configfs filesystem at /config: OK > > Mounting ocfs2_dlmfs filesystem at /dlm: OK > > Starting cluster ocfs2: Failed > > Cluster ocfs2 created > > o2cb_ctl: Configuration error discovered while populating cluster > > ocfs2. None of its nodes were considered local. A node is considered > > local when its node name in the configuration maches this machine's > > host name. > > Stopping cluster ocfs2: OK > > > > when I try to mount the device with the console: > > ocfs2_hb_ctl: Unable to access cluster service while starting heartbeat > > mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: > > "Operation not permitted" > > : Could not mount /dev/hda3 > > > > when I try to add a node: > > o2cb_ctl: Unable to access cluster service while creating node > > > > Could not add node lenaeja > > > > root@lenaeja:~# cat /etc/ocfs2/cluster.conf > > cluster: > > node_count = 0 > > name = ocfs2 > > > > in the messages: > > Oct 12 11:00:23 localhost kernel: [4365348.899000 ] OCFS2 Node Manager > > 1.1.2 > > Oct 12 11:00:23 localhost kernel: [4365349.032000] OCFS2 DLM 1.1.1 > > Oct 12 11:00:23 localhost kernel: [4365349.084000] OCFS2 DLMFS 1.1.1 > > Oct 12 11:00:23 localhost kernel: [ 4365349.085000] OCFS2 User DLM > > kernel interface loaded > > > > Thanks in advance! > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >Ocfs2-users mailing list > >Ocfs2-users@oss.oracle.com > >http://oss.oracle.com/mailman/listinfo/ocfs2-users > > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20051013/183ae9a6/attachment-0001.html