OCFS2_is_the Best


on ubuntu LTS while doing a test for cluster enviroment I get some errors when I use ls -l /mymount/local/  . Sometimes I get 'Segmentation Fault'
or 'uninterruptible sleep' as show from ps

 '2361 pts/1    D+     0:00      \_ ls -l /opt/local/'

D uninterruptible sleep (usually IO)






here my answer to "Zhen Ren" <zren@suse.com>

I follow your hint and use suse ;D
for new test environment 
linux-B64 and linux-B64:~

# cat /proc/version
Linux version 3.18.3-1-default (geeko@buildhost) (gcc version 4.8.3 20141208 [gcc-4_8-branch revision 218481] (SUSE Linux) ) #1 SMP Mon Jan 19 12:38:51 UTC 2015 (c3e148f)

there are 2 disk in syncro


linux-A64:/mnt # df -T .
Filesystem     Type  1K-blocks  Used Available Use% Mounted on
/dev/drbd1     ocfs2   1048508 78956    969552   8% /mnt

linux-B64:/mnt # df -T .
Filesystem     Type  1K-blocks  Used Available Use% Mounted on
/dev/drbd1     ocfs2   1048508 78956    969552   8% /mnt


linux-A64:/mnt # drbd-overview
1:wwwdata/0  Connected Primary/Primary UpToDate/UpToDate /mnt ocfs2 1.0G 78M 947M 8%

linux-B64:/mnt # drbd-overview
1:wwwdata/0  Connected Primary/Primary UpToDate/UpToDate /mnt ocfs2 1.0G 78M 947M 8%


it isn't reply any error until now

linux-B64:/mnt # mkdir -p {local/{test1,test2},document,data/{test1,test2},webapp/{html,img}}

linux-A64:/mnt # ls *
data:
        test1  test2
document:
local:
       test1  test2
lost+found:
webapp:
       html  img

here just simples test where the filesystem ocfs2 work well :P

linux-A64:/mnt # jobs -l
[1]+  2273 Running                 while true; do
    echo "$$ $HOSTNAME  " && date && uptime; sleep 3;
done >> document/test1.txt &

linux-B64:/mnt # jobs -l
[1]+  2314 Running                 while true; do
    echo "$$ $HOSTNAME  " && date && uptime; sleep 2;
done >> document/test1.txt &

Wed Apr 15 16:42:05 CEST 2015
16:42pm  up   1:45,  1 user,  load average: 0.04, 0.03, 0.05
 

1547 linux-B64
Wed Apr 15 16:42:07 CEST 2015
16:42pm  up   1:45,  1 user,  load average: 0.04, 0.03, 0.05

1515 linux-A64 
Wed Apr 15 16:42:07 CEST 2015
16:42pm  up   1:45,  1 user,  load average: 0.07, 0.05, 0.05


1547 linux-B64 
Wed Apr 15 16:42:09 CEST 2015
16:42pm  up   1:45,  1 user,  load average: 0.04, 0.03, 0.05
1515 linux-A64 
Wed Apr 15 16:42:10 CEST 2015
16:42pm  up   1:45,  1 user,  load average: 0.23, 0.09, 0.06