[Ocfs2-users] Replication not works

Yohan ytordjman at proxad.net
Tue Aug 14 02:37:00 PDT 2007


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



More information about the Ocfs2-users mailing list