<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><FONT face=Arial size=2><FONT size=2>
<DIV>Hi.</DIV>
<DIV>I need help on fixing this issue, Im sorry&nbsp;about sending this long 
email, but I'll try to give as much information as possible.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Im trying to stabilish a OCFS2 cluster with the Slackware 12 and and kernel 
2.6.21.5-smp.</DIV>
<DIV>My goal is to run OCFS2 over the DRBD layer.</DIV>
<DIV>&nbsp;</DIV>
<DIV>DRBD is configured and tested, im able to mount the device&nbsp;with the 
role&nbsp;Primary/Primary with no trouble.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The OCFS2 tools were compiled and the modules loaded, the modules came 
already compiled with the kernel.</DIV>
<DIV><FONT size=2>&nbsp;</DIV>
<DIV><A href="mailto:clusteroot@apolo1">clusteroot@apolo1</A>:~# cat 
/etc/ocfs2/cluster.conf</DIV>
<DIV>node_count = 2</DIV>
<DIV>name = cldisk</DIV>
<DIV>node:</DIV>
<DIV>ip_port = 7777</DIV>
<DIV>ip_address = 10.10.1.1</DIV>
<DIV>number = 1</DIV>
<DIV>name = apolo1</DIV>
<DIV>cluster = cldisk</DIV>
<DIV>node:</DIV>
<DIV>ip_port = 7777</DIV>
<DIV>ip_address = 10.10.1.2</DIV>
<DIV>number = 2</DIV>
<DIV>name = apolo2 </DIV>
<DIV>cluster = cldisk</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="mailto:root@apolo1">root@apolo1</A>:~# cat /etc/default/o2cb 
</DIV>
<DIV>#</DIV>
<DIV># This is a configuration file for automatic startup of the O2CB</DIV>
<DIV># driver. It is generated by running /etc/init.d/o2cb configure.</DIV>
<DIV># Please use that method to modify this file</DIV>
<DIV>#</DIV>
<DIV># O2CB_ENABELED: 'true' means to load the driver on boot.</DIV>
<DIV>O2CB_ENABLED=true</DIV>
<DIV># O2CB_BOOTCLUSTER: If not empty, the name of a cluster to start.</DIV>
<DIV>O2CB_BOOTCLUSTER=cldisk</DIV>
<DIV># O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered 
dead.</DIV>
<DIV>O2CB_HEARTBEAT_THRESHOLD=</DIV>
<DIV># O2CB_IDLE_TIMEOUT_MS: Time in ms before a network connection is 
considered dead.</DIV>
<DIV>O2CB_IDLE_TIMEOUT_MS=</DIV>
<DIV># O2CB_KEEPALIVE_DELAY_MS: Max time in ms before a keepalive packet is 
sent</DIV>
<DIV>O2CB_KEEPALIVE_DELAY_MS=</DIV>
<DIV># O2CB_RECONNECT_DELAY_MS: Min time in ms between connection attempts</DIV>
<DIV>O2CB_RECONNECT_DELAY_MS=</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="mailto:root@apolo1">root@apolo1</A>:~# /etc/init.d/o2cb 
status<BR>Module "configfs": Loaded<BR>Filesystem "configfs": Mounted<BR>Module 
"ocfs2_nodemanager": Loaded<BR>Module "ocfs2_dlm": Loaded<BR>Module 
"ocfs2_dlmfs": Loaded<BR>Filesystem "ocfs2_dlmfs": Mounted<BR>Checking O2CB 
cluster cldisk: Online<BR>Heartbeat dead threshold = 7<BR>&nbsp; Network idle 
timeout: 10000<BR>&nbsp; Network keepalive delay: 5000<BR>&nbsp; Network 
reconnect delay: 2000<BR>Checking O2CB heartbeat: Not active</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm able to create the filesystem but when&nbsp;I try to mount it, the 
operation ends with an error message.</DIV>
<DIV>&nbsp;</DIV><FONT size=2>
<DIV>root@apolo1:~# drbdadm state r0</DIV>
<DIV>Primary/Primary</DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# mkfs.ocfs2 -b 4k -C 32k -N 4 -L oracle /dev/drbd0</DIV>
<DIV>mkfs.ocfs2 1.3.9</DIV>
<DIV>Filesystem label=oracle</DIV>
<DIV>Block size=4096 (bits=12)</DIV>
<DIV>Cluster size=32768 (bits=15)</DIV>
<DIV>Volume size=239701950464 (7315123 clusters) (58520984 blocks)</DIV>
<DIV>227 cluster groups (tail covers 25267 clusters, rest cover 32256 
clusters)</DIV>
<DIV>Journal size=268435456</DIV>
<DIV>Initial number of node slots: 4</DIV>
<DIV>Creating bitmaps: done</DIV>
<DIV>Initializing superblock: done</DIV>
<DIV>Writing system files: done</DIV>
<DIV>Writing superblock: done</DIV>
<DIV>Writing backup superblock: 4 block(s)</DIV>
<DIV>Formatting Journals: done</DIV>
<DIV>Writing lost+found: done</DIV>
<DIV>mkfs.ocfs2 successful</DIV>
<DIV>root@apolo1:~# mount -t ocfs2 /dev/drbd0 /clusterdisk</DIV>
<DIV>mount.ocfs2: Invalid argument while mounting /dev/drbd0 on /clusterdisk. 
Check 'dmesg' for more information on this error.</DIV>
<DIV>&nbsp;</DIV>
<DIV>root@apolo1:~# dmesg | tail</DIV>
<DIV>ocfs2_dlm: Nodes in domain ("B6DE7123640A47FFA77A6C5F33A9302A"): 1 </DIV>
<DIV>(25796,3):ocfs2_initialize_super:1367 ERROR: couldn't mount because of 
unsupported optional features (10).</DIV>
<DIV>(25796,3):ocfs2_fill_super:568 ERROR: status = -22</DIV>
<DIV>ocfs2: Unmounting device (147,0) on (node local)</DIV>
<DIV>(25802,3):ocfs2_initialize_super:1367 ERROR: couldn't mount because of 
unsupported optional features (10).</DIV>
<DIV>(25802,3):ocfs2_fill_super:568 ERROR: status = -22</DIV>
<DIV>ocfs2: Unmounting device (147,0) on (node local)</DIV>
<DIV>(26462,3):ocfs2_initialize_super:1367 ERROR: couldn't mount because of 
unsupported optional features (10).</DIV>
<DIV>(26462,3):ocfs2_fill_super:568 ERROR: status = -22</DIV>
<DIV>ocfs2: Unmounting device (147,0) on (node 255)</DIV>
<DIV>&nbsp;</DIV><FONT size=2>
<DIV>root@apolo1:~# debugfs.ocfs2 -R stats /dev/drbd0</DIV>
<DIV>Revision: 0.90</DIV>
<DIV>Mount Count: 0 Max Mount Count: 20</DIV>
<DIV>State: 0 Errors: 0</DIV>
<DIV>Check Interval: 0 Last Check: Tue Dec 11 13:13:42 2007</DIV>
<DIV>Creator OS: 0</DIV>
<DIV>Feature Compat: 1 BackupSuper </DIV>
<DIV>Feature Incompat: 16 Sparse </DIV>
<DIV>Tunefs Incomplete: 0 None</DIV>
<DIV>Feature RO compat: 0 None</DIV>
<DIV>Root Blknum: 17 System Dir Blknum: 18</DIV>
<DIV>First Cluster Group Blknum: 8</DIV>
<DIV>Block Size Bits: 12 Cluster Size Bits: 15</DIV>
<DIV>Max Node Slots: 4</DIV>
<DIV>Label: oracle</DIV>
<DIV>UUID: E288BE802E7A4DCB816B080C376C74D6</DIV>
<DIV>Inode: 2 Mode: 00 Generation: 1074052683 (0x4004be4b)</DIV>
<DIV>FS Generation: 1074052683 (0x4004be4b)</DIV>
<DIV>Type: Unknown Attr: 0x0 Flags: Valid System Superblock </DIV>
<DIV>User: 0 (root) Group: 0 (root) Size: 0</DIV>
<DIV>Links: 0 Clusters: 7315123</DIV>
<DIV>ctime: 0x475ea926 -- Tue Dec 11 13:13:42 2007</DIV>
<DIV>atime: 0x0 -- Wed Dec 31 21:00:00 1969</DIV>
<DIV>mtime: 0x475ea926 -- Tue Dec 11 13:13:42 2007</DIV>
<DIV>dtime: 0x0 -- Wed Dec 31 21:00:00 1969</DIV>
<DIV>ctime_nsec: 0x00000000 -- 0</DIV>
<DIV>atime_nsec: 0x00000000 -- 0</DIV>
<DIV>mtime_nsec: 0x00000000 -- 0</DIV>
<DIV>Last Extblk: 0</DIV>
<DIV>Sub Alloc Slot: Global Sub Alloc Bit: 65535</DIV>
<DIV>
<P>&nbsp;</P></DIV>
<DIV>As I read at the OCFS2 man pages the filesystem can be mounted as local, I 
changed the DRBD role to be primary/secondary and reformated the device.</DIV>
<DIV>&nbsp;</DIV>
<DIV>root@apolo1:~# drbdadm state r0</DIV>
<DIV>Primary/Secondary</DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# mkfs.ocfs2 -b 4k -C 32k -N 4 -L oracle -M local 
/dev/drbd0</DIV>
<DIV>mkfs.ocfs2 1.3.9</DIV>
<DIV>Overwriting existing ocfs2 partition.</DIV>
<DIV>Proceed (y/N): y</DIV>
<DIV>Filesystem label=oracle</DIV>
<DIV>Block size=4096 (bits=12)</DIV>
<DIV>Cluster size=32768 (bits=15)</DIV>
<DIV>Volume size=239701950464 (7315123 clusters) (58520984 blocks)</DIV>
<DIV>227 cluster groups (tail covers 25267 clusters, rest cover 32256 
clusters)</DIV>
<DIV>Journal size=268435456</DIV>
<DIV>Initial number of node slots: 4</DIV>
<DIV>Creating bitmaps: done</DIV>
<DIV>Initializing superblock: done</DIV>
<DIV>Writing system files: done</DIV>
<DIV>Writing superblock: done</DIV>
<DIV>Writing backup superblock: 4 block(s)</DIV>
<DIV>Formatting Journals: done</DIV>
<DIV>Writing lost+found: done</DIV>
<DIV>mkfs.ocfs2 successful</DIV>
<DIV>root@apolo1:~# mount -t ocfs2 /dev/drbd0 /clusterdisk</DIV>
<DIV>mount.ocfs2: Invalid argument while mounting /dev/drbd0 on /clusterdisk. 
Check 'dmesg' for more information on this error.</DIV>
<DIV>&nbsp;</DIV>
<DIV>root@apolo1:~# dmesg | tail</DIV>
<DIV>drbd0: Handshake successful: Agreed network protocol version 87</DIV>
<DIV>drbd0: data-integrity-alg: &lt;not-used&gt;</DIV>
<DIV>drbd0: peer( Unknown -&gt; Secondary ) conn( WFReportParams -&gt; Connected 
) pdsk( DUnknown -&gt; UpToDate ) </DIV>
<DIV>drbd0: Writing meta data super block now.</DIV>
<DIV>drbd0: role( Secondary -&gt; Primary ) </DIV>
<DIV>drbd0: Writing meta data super block now.</DIV>
<DIV>ocfs2_dlm: Nodes in domain ("E288BE802E7A4DCB816B080C376C74D6"): 1 </DIV>
<DIV>(26496,3):ocfs2_initialize_super:1367 ERROR: couldn't mount because of 
unsupported optional features (10).</DIV>
<DIV>(26496,3):ocfs2_fill_super:568 ERROR: status = -22</DIV>
<DIV>ocfs2: Unmounting device (147,0) on (node local)</DIV>
<DIV>&nbsp;</DIV>
<DIV>root@apolo1:~# debugfs.ocfs2 -R stats /dev/drbd0</DIV>
<DIV>Revision: 0.90</DIV>
<DIV>Mount Count: 0 Max Mount Count: 20</DIV>
<DIV>State: 0 Errors: 0</DIV>
<DIV>Check Interval: 0 Last Check: Wed Dec 12 12:32:43 2007</DIV>
<DIV>Creator OS: 0</DIV>
<DIV>Feature Compat: 1 BackupSuper </DIV>
<DIV>Feature Incompat: 24 Local Sparse </DIV>
<DIV>Tunefs Incomplete: 0 None</DIV>
<DIV>Feature RO compat: 0 None</DIV>
<DIV>Root Blknum: 17 System Dir Blknum: 18</DIV>
<DIV>First Cluster Group Blknum: 8</DIV>
<DIV>Block Size Bits: 12 Cluster Size Bits: 15</DIV>
<DIV>Max Node Slots: 4</DIV>
<DIV>Label: oracle</DIV>
<DIV>UUID: EA7E2A9C9D9A41ECB314CBD3F73B6460</DIV>
<DIV>Inode: 2 Mode: 00 Generation: 3568206262 (0xd4ae81b6)</DIV>
<DIV>FS Generation: 3568206262 (0xd4ae81b6)</DIV>
<DIV>Type: Unknown Attr: 0x0 Flags: Valid System Superblock </DIV>
<DIV>User: 0 (root) Group: 0 (root) Size: 0</DIV>
<DIV>Links: 0 Clusters: 7315123</DIV>
<DIV>ctime: 0x475ff10b -- Wed Dec 12 12:32:43 2007</DIV>
<DIV>atime: 0x0 -- Wed Dec 31 21:00:00 1969</DIV>
<DIV>mtime: 0x475ff10b -- Wed Dec 12 12:32:43 2007</DIV>
<DIV>dtime: 0x0 -- Wed Dec 31 21:00:00 1969</DIV>
<DIV>ctime_nsec: 0x00000000 -- 0</DIV>
<DIV>atime_nsec: 0x00000000 -- 0</DIV>
<DIV>mtime_nsec: 0x00000000 -- 0</DIV>
<DIV>Last Extblk: 0</DIV>
<DIV>Sub Alloc Slot: Global Sub Alloc Bit: 65535</DIV></FONT>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><FONT size=2>
<DIV>Since i still have got the same error i decided to shutdown the DRBD module 
and create the filesystem directily on the device /dev/sda6</DIV>
<DIV>root@apolo1:~# drbdadm secondary r0</DIV>
<DIV>root@apolo1:~# drbdadm down r0</DIV>
<DIV>root@apolo1:~# drbdadm state r0</DIV>
<DIV>Unconfigured</DIV>
<DIV>root@apolo1:~#</DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# mkfs.ocfs2 -b 4k -C 32k -N 4 -L oracle -M local /dev/sda6 
</DIV>
<DIV>mkfs.ocfs2 1.3.9</DIV>
<DIV>Overwriting existing ocfs2 partition.</DIV>
<DIV>Proceed (y/N): y</DIV>
<DIV>Filesystem label=oracle</DIV>
<DIV>Block size=4096 (bits=12)</DIV>
<DIV>Cluster size=32768 (bits=15)</DIV>
<DIV>Volume size=239709290496 (7315347 clusters) (58522776 blocks)</DIV>
<DIV>227 cluster groups (tail covers 25491 clusters, rest cover 32256 
clusters)</DIV>
<DIV>Journal size=268435456</DIV>
<DIV>Initial number of node slots: 4</DIV>
<DIV>Creating bitmaps: done</DIV>
<DIV>Initializing superblock: done</DIV>
<DIV>Writing system files: done</DIV>
<DIV>Writing superblock: done</DIV>
<DIV>Writing backup superblock: 4 block(s)</DIV>
<DIV>Formatting Journals: done</DIV>
<DIV>Writing lost+found: done</DIV>
<DIV>mkfs.ocfs2 successful</DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# mount -t ocfs2 /dev/sda6 /clusterdisk</DIV>
<DIV>mount.ocfs2: Invalid argument while mounting /dev/sda6 on /clusterdisk. 
Check 'dmesg' for more information on this error.</DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# dmesg | tail</DIV>
<DIV>drbd0: Connection closed</DIV>
<DIV>drbd0: Writing meta data super block now.</DIV>
<DIV>drbd0: conn( Disconnecting -&gt; StandAlone ) </DIV>
<DIV>drbd0: receiver terminated</DIV>
<DIV>drbd0: disk( UpToDate -&gt; Diskless ) </DIV>
<DIV>drbd0: drbd_bm_resize called with capacity == 0</DIV>
<DIV>drbd0: worker terminated</DIV>
<DIV>(26534,3):ocfs2_initialize_super:1367 ERROR: couldn't mount because of 
unsupported optional features (10).</DIV>
<DIV>(26534,3):ocfs2_fill_super:568 ERROR: status = -22</DIV>
<DIV>ocfs2: Unmounting device (8,6) on (node local)</DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# </DIV>
<DIV>root@apolo1:~# debugfs.ocfs2 -R stats /dev/sda6 </DIV>
<DIV>Revision: 0.90</DIV>
<DIV>Mount Count: 0 Max Mount Count: 20</DIV>
<DIV>State: 0 Errors: 0</DIV>
<DIV>Check Interval: 0 Last Check: Wed Dec 12 12:51:16 2007</DIV>
<DIV>Creator OS: 0</DIV>
<DIV>Feature Compat: 1 BackupSuper </DIV>
<DIV>Feature Incompat: 24 Local Sparse </DIV>
<DIV>Tunefs Incomplete: 0 None</DIV>
<DIV>Feature RO compat: 0 None</DIV>
<DIV>Root Blknum: 17 System Dir Blknum: 18</DIV>
<DIV>First Cluster Group Blknum: 8</DIV>
<DIV>Block Size Bits: 12 Cluster Size Bits: 15</DIV>
<DIV>Max Node Slots: 4</DIV>
<DIV>Label: oracle</DIV>
<DIV>UUID: D409B8E2BD764F3295961ABCCE126C56</DIV>
<DIV>Inode: 2 Mode: 00 Generation: 1965226685 (0x7522fabd)</DIV>
<DIV>FS Generation: 1965226685 (0x7522fabd)</DIV>
<DIV>Type: Unknown Attr: 0x0 Flags: Valid System Superblock </DIV>
<DIV>User: 0 (root) Group: 0 (root) Size: 0</DIV>
<DIV>Links: 0 Clusters: 7315347</DIV>
<DIV>ctime: 0x475ff564 -- Wed Dec 12 12:51:16 2007</DIV>
<DIV>atime: 0x0 -- Wed Dec 31 21:00:00 1969</DIV>
<DIV>mtime: 0x475ff564 -- Wed Dec 12 12:51:16 2007</DIV>
<DIV>dtime: 0x0 -- Wed Dec 31 21:00:00 1969</DIV>
<DIV>ctime_nsec: 0x00000000 -- 0</DIV>
<DIV>atime_nsec: 0x00000000 -- 0</DIV>
<DIV>mtime_nsec: 0x00000000 -- 0</DIV>
<DIV>Last Extblk: 0</DIV>
<DIV>Sub Alloc Slot: Global Sub Alloc Bit: 65535</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also i have the output of the strace to the mount command that one may want 
to take a look.</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://www2.connection.com.br/cbastos/Linux/report/strace-Mount_drbd0.txt">strace 
-ff mount -t ocfs2 /dev/drbd0 /clusterdisk</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://www2.connection.com.br/cbastos/Linux/report/strace-Mount_sda6.txt">strace 
-ff mount -t ocfs2 /dev/sda6 /clusterdisk</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>All the tests I did point to be a issue related to OCFS2 and not to DRBD, 
but i wasnt able to find out what is wrong.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please, could you take a look at this and point me the actions&nbsp;I have 
to take&nbsp;to solve this trouble?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Carlos.</DIV>
<DIV>&nbsp;</DIV></FONT></FONT></FONT></FONT></FONT></BODY></HTML>