[Ocfs2-users] Replication not works

Marcos E. Matsunaga Marcos.Matsunaga at oracle.com
Tue Aug 14 06:51:11 PDT 2007


Yohan,

Your /dev/sda3 is not the same disk. The UUID on both nodes should be
the same. Looks like you're just using your internal disk and
partitioning them exactly the same way. The fact that it has the same
name, doesn't mean it is shared.

Note that for OCFS2 to work, you have to have some type of external
shared storage that all nodes can connect to and share disks. Those
external storage are usually connected via Fiber or GigaE (iSCSI).



Yohan wrote:
> Marcos E. Matsunaga a écrit :
>> Yohan,
>>
>> Can you run the commands below on the device you're trying to mount
>> on both nodes? If possible, format the partition before running them.
>>
>> # debugfs.ocfs2 -R "stats" /dev/sdXX |grep UUID:
>> # debugfs.ocfs2 -R "stats" /dev/sdXX |grep Slots:
>> # debugfs.ocfs2 -R "slotmap" /dev/sdXX
> just after a load & a format of the device..
>
> root at t1:~# debugfs.ocfs2 -R "stats" /dev/sda3 |grep UUID: ;
> debugfs.ocfs2 -R "stats" /dev/sda3 |grep Slots:; debugfs.ocfs2 -R
> "slotmap" /dev/sda3
>        UUID: 1541D4418947492C82ECD302441B3176
>        Max Node Slots: 2
>        Slot#   Node#
>
> root at t2:~# debugfs.ocfs2 -R "stats" /dev/sda3 |grep UUID: ;
> debugfs.ocfs2 -R "stats" /dev/sda3 |grep Slots:; debugfs.ocfs2 -R
> "slotmap" /dev/sda3
>        UUID: EA923BDF152F481C8DEAB39077CF69F8
>        Max Node Slots: 2
>        Slot#   Node#
>
>>
>> Also, make sure you have the same /etc/ocfs2/cluster.conf and
>> /etc/sysconfig/o2cb on both nodes (copy from t1 to t2 to make sure
>> they are exactly the same).
>>
> root at t1:~# md5sum /etc/ocfs2/cluster.conf /etc/default/o2cb
> 1663a4d9967202771726d8ffcc7a9158  /etc/ocfs2/cluster.conf
> e70df5b5660d9357d52e4d0d9ef04458  /etc/default/o2cb
>
> md5sum /etc/ocfs2/cluster.conf /etc/default/o2cb
> 1663a4d9967202771726d8ffcc7a9158  /etc/ocfs2/cluster.conf
> e70df5b5660d9357d52e4d0d9ef04458  /etc/default/o2cb
>
>> Can you try the following:
>>
>> # /etc/init.d/o2cb online
> on both it does:
> Starting O2CB cluster ocfs2: OK
>
>> # mount /dev/sdXX <mountpoint>
> root at t1:~# mounted.ocfs2 -f
> Device                FS     Nodes
> /dev/sda3             ocfs2  t1
>
> root at t2:~# mounted.ocfs2 -f
> Device                FS     Nodes
> /dev/sda3             ocfs2  t2
>
>> If it fail, please, copy about 10 lines before first ocfs2 message
>> from /var/log/messages from both nodes and send it to me.
> Ok
> Thanks
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users

-- 

Regards,

Marcos Eduardo Matsunaga

Oracle USA
Linux Engineering



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20070814/7bca9021/attachment-0001.html


More information about the Ocfs2-users mailing list