[DRBD-user] Drbd ocfs2

Pierguido pierg75 at yahoo.it
Wed Jul 18 10:27:42 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi.
I'm pretty new in the world of cluster (so in the drbd and ocfs2).
I'm trying to setup a little cluster (2 hosts) with drbd 8
primary/primary and on the top ocfs2 fs.

I got this situation:

host 1:


cluster-1:/mnt# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.4 (api:86/proto:86)
SVN Revision: 2947 build by root at cluster-1, 2007-07-17 12:10:53
 0: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r---
    ns:0 nr:0 dw:1054475 dr:3646 al:378 bm:121 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/257 hits:33883 misses:378 starving:0 dirty:0
changed:378

cluster-1:/mnt# /etc/init.d/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 cluster mail: Online
Checking heartbeat: Active


cluster-1:/mnt# mount
/dev/mapper/internal_raid-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
configfs on /sys/kernel/config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/drbd0 on /mnt type ocfs2 (rw,_netdev,heartbeat=local)


host 2:

cluster-2:/# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 8.0.4 (api:86/proto:86)
SVN Revision: 2947 build by root at cluster-2, 2007-07-17 20:13:16
 0: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r---
    ns:0 nr:0 dw:1054388 dr:3662 al:377 bm:120 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/257 hits:33746 misses:377 starving:0 dirty:0
changed:377

cluster-2:/# /etc/init.d/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 cluster mail: Online
Checking heartbeat: Active


cluster-2:/# mount
/dev/mapper/internal_raid-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hdb1 on /boot type ext3 (rw)
configfs on /sys/kernel/config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/drbd0 on /mnt type ocfs2 (rw,_netdev,heartbeat=local)


but when i write something in host 1 host 2 is not syncronized.
Till now i didn't install heartbeat and i saw the ocfs is using
something about heartbeat...can i use a ocfs2 fs without heartbeat?
In the syslog i see no errors.
Probably i still didn't understand well how this setup works.

Can anybody help me?
Thanks

Pier



More information about the drbd-user mailing list