[DRBD-user] OCFS2 do not sync

Damian Sidor sid at nvt.pl
Fri Jul 6 13:02:55 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.


Lars Marowsky-Bree wrote:
> On 2007-07-06T12:15:08, Damian Sidor <sid at nvt.pl> wrote:
>
>   
>> oki, i'm just do new config with hb_gui. the ocfs2 filesystem is now 
>> mounted with heartbeat without errors, but:
>> when I copy something to mounted partition on NODE1, in NODE2 (also 
>> ocfs2 mounted) I can't see this file until I unmount and mount again 
>> this ocfs2 partition:/
>> what's wrong ?
>> Is there any mechanism to synchronize automaticly this stuff ?
>>     
>
> It should automatically synchronize.
>
>   
automatically not synchronize :( for examle:

nvt-mta-01:~# mount
/dev/mapper/nvt--mta--01-root on / type reiserfs (rw)
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/sda1 on /boot type ext3 (rw)
/dev/mapper/nvt--mta--01-home on /home type reiserfs (rw)
/dev/mapper/nvt--mta--01-tmp on /tmp type reiserfs (rw)
/dev/mapper/nvt--mta--01-usr on /usr type reiserfs (rw)
/dev/mapper/nvt--mta--01-var on /var type reiserfs (rw)
configfs on /sys/kernel/config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/drbd0 on /rep1 type ocfs2 (rw,_netdev,heartbeat=local)
*nvt-mta-01:~# ls /rep1
initrd.img  lost+found

*on second:
nvt-mta-02:~# mount
/dev/mapper/nvt--mta--02-root on / type reiserfs (rw)
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/sda1 on /boot type ext3 (rw)
/dev/mapper/nvt--mta--02-home on /home type reiserfs (rw)
/dev/mapper/nvt--mta--02-tmp on /tmp type reiserfs (rw)
/dev/mapper/nvt--mta--02-usr on /usr type reiserfs (rw)
/dev/mapper/nvt--mta--02-var on /var type reiserfs (rw)
configfs on /sys/kernel/config type configfs (rw)
ocfs2_dlmfs on /dlm type ocfs2_dlmfs (rw)
/dev/drbd0 on /rep1 type ocfs2 (rw,_netdev,heartbeat=local)
*nvt-mta-02:~# ls /rep1
drbd.conf  lost+found  vmlinuz

*my drbd.conf :
cat /etc/drbd.conf
global {
minor-count 2;
dialog-refresh 1;
}
resource r0 {
  protocol      C;

startup { wfc-timeout   0; degr-wfc-timeout     120; }
disk { on-io-error detach; }
syncer {
rate 600M;
}
net {
  allow-two-primaries;
  cram-hmac-alg sha1;
  shared-secret "hallabanaha";
  }
on nvt-mta-01 {
device  /dev/drbd0;
disk    /dev/nvt-mta-01/rep1;
address 192.168.10.31:7791;
meta-disk       internal;
}
on nvt-mta-02 {
device  /dev/drbd0;
disk    /dev/nvt-mta-02/rep1;
address 192.168.10.32:7791;
meta-disk       internal;
}
}

and my OCFS2 config:

cat /etc/ocfs2/cluster.conf
node:
        ip_port = 7777
        ip_address = 192.168.10.31
        number = 1
        name = nvt-mta-01
        cluster = ocfs2

node:
        ip_port = 7777
        ip_address = 192.168.10.32
        number = 2
        name = nvt-mta-02
        cluster = ocfs2

cluster:
        node_count = 2
        name = ocfs2

>> <clone id="fre">
>> <instance_attributes id="fre_instance_attrs">
>> <attributes>
>> <nvpair name="clone_max" id="fre_clone_max" value="2"/>
>> <nvpair id="fre_clone_node_max" name="clone_node_max" value="1"/>
>> <nvpair id="fre_target_role" name="target_role" value="started"/>
>>     
>
> You're at least missing configuration details here:
>
> <nvpair id="fre_notify" name="notify" value="true"/>
> <nvpair id="fre_globally_unique" name="globally_unique" value="false"/>
>   
added :
<clone globally_unique="false" id="vip1" notify="true">
<clone id="fre" globally_unique="false" notify="true">

that is correct ?

> Regards,
>     Lars
>
>   



More information about the drbd-user mailing list