On 5/20/2011 12:47 AM, Alex Sobrino wrote:> Hi,
>
> I have a two-node (virtual machines) OCFS2 cluster with a shared disk of
> 560GB. They are running as web servers, with Moodle as software and
> OCFS2 sharing the data.
>
> Right now I'm having an extrange behavior. A directory
> (/ocfs2mountpoint/estudisdata1011/2712) is empty, as shown in a ls -lha.
> When I try to move files into that directory, I get the following error:
>
> mv: cannot create regular file
> '/ocfs2mountpoint/estudisdata1011/2712/file': No such file or
directory
>
> If I try to 'touch' a file into that directory, I get the following
error:
>
> touch: cannot touch 'file': No such file or directory
>
> If I try to remove that directory, I get the following error:
>
> rm: cannot remove directory '2712': Directory not empty
>
> And if I try to move that directory to change it's name:
>
> mv: cannot move '2712/' to 'lala': Input/output error
>
>
> If I check the logs, when tryint to touch a file, I see this:
>
> May 20 09:44:06 swmdl2 kernel: (7805,0):ocfs2_check_dir_entry:155 ERROR:
> bad entry in directory #58127027: rec_len % 4 != 0 - offset=0,
> inode=309847412618444968, rec_len=9694, name_len=43
> May 20 09:44:06 swmdl2 kernel:
> (7805,0):ocfs2_prepare_dir_for_insert:1793 ERROR: status = -2
> May 20 09:44:06 swmdl2 kernel: (7805,0):ocfs2_mknod:279 ERROR: status = -2
That inode number looks suspicious. Appears fs might have got corrupted,
can you umount the filesystem and run fsck.ocfs2 -f to check for any
corruptions.>
> Any ideas on how to solve this problem?
>
> We have OCFS 1.4.1 over a 2.6.27 SMP kernel. I can give you any
> information needed.
>
> Thanks :)
>