[Ocfs2-tools-users] mkfs.ocfs2 error

Sunil Mushran Sunil.Mushran at oracle.com
Thu Oct 25 09:17:33 PDT 2007


strace it.

# strace -ff -o /tmp/mkfsout mkfs.ocfs2 -F -b 4K -C 32K -L OCFS2 /dev/sdb1
and make the traces available.

Tom Cameron wrote:
> Thanks for the quick reply.  The cluster is up:
>
> cm1:~ # service o2cb status
> Module "configfs": Loaded
> Filesystem "configfs": Mounted
> Module "ocfs2_nodemanager": Loaded
> Module "ocfs2_dlm": Loaded
> Module "ocfs2_dlmfs": Loaded
> Filesystem "ocfs2_dlmfs": Mounted
> Checking O2CB cluster ocfs2: Online
> Checking O2CB heartbeat: Not active
>
> Does the heartbeat need to be active?  Also, -F option does not make a 
> difference here:
>
> cm1:~ # mkfs.ocfs2 -F -b 4K -C 32K -L OCFS2 /dev/sdb1
> mkfs.ocfs2 1.2.3
> mkfs.ocfs2: Could not write: Input/output error
> cm1:~ #
>
> Have you any other thoughts?
>
> TIA,
>
> -Tom
>
> Sunil Mushran wrote:
>> Even before it writes to the disk, it attempts to join the cluster.
>> The EIO is probably because of that. Is the cluster up?
>> What does "service o2cb status" say?
>>
>> Try force disabling cluster check with -F option.
>>
>> tcameron at cox.net wrote:
>>> Hi All,
>>>
>>> I'm trying to set up a cluster for the first time, but getting an 
>>> error when attempting to create the filesystem.  I'm running 
>>> SLES10.  /dev/sdb is an iscsi disk; that layer seems to be working 
>>> fine as parted and cfdisk can work with it.
>>>
>>> cm1:~ # mkfs.ocfs2 --verbose -b 4K -C 32K -L OCFS2 /dev/sdb1
>>> mkfs.ocfs2 1.2.3
>>> mkfs.ocfs2: Could not write: Input/output error
>>>
>>> As I mentioned, the virtual disk and partition seem to be fine, as 
>>> this works:
>>>
>>> cm1:~ # mkfs.ext3  /dev/sdb1
>>> mke2fs 1.38 (30-Jun-2005)
>>> Filesystem label=
>>> OS type: Linux
>>> Block size=4096 (log=2)
>>> Fragment size=4096 (log=2)
>>> 9781248 inodes, 19531015 blocks
>>> 976550 blocks (5.00%) reserved for the super user
>>> First data block=0
>>> 597 block groups
>>> 32768 blocks per group, 32768 fragments per group
>>> 16384 inodes per group
>>> Superblock backups stored on blocks:
>>>         32768, 98304, 163840, 229376, 294912, 819200, 884736, 
>>> 1605632, 2654208,
>>>         4096000, 7962624, 11239424
>>>
>>> Writing inode tables: done
>>> Creating journal (32768 blocks): done
>>> Writing superblocks and filesystem accounting information: done
>>>
>>> This filesystem will be automatically checked every 35 mounts or
>>> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
>>> cm1:~ #
>>>
>>> Any ideas what this could be, or what techniques I can use to help 
>>> troubleshoto this?
>>>
>>> TIA,
>>>
>>> Tom
>>>
>>> _______________________________________________
>>> Ocfs2-tools-users mailing list
>>> Ocfs2-tools-users at oss.oracle.com
>>> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-users
>>>   
>>
>>
>>
>
>
> _______________________________________________
> Ocfs2-tools-users mailing list
> Ocfs2-tools-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-users




More information about the Ocfs2-tools-users mailing list