[Ocfs2-users] OCFS2 with Loop device

living liquid | Christian Meisinger c.meisinger at livingliquid.com
Fri Oct 3 06:22:37 PDT 2008


hi there

i try to setup OCFS2 with loop device /dev/loop0

i've 4 servers running SLES10 SP2.
internal ip's: 192.168.55.1, .2, .3 and .6

my cluster.conf:
--------------------------------------------
node:
        ip_port = 7777
        ip_address = 192.168.55.1
        number = 0
        name = www
        cluster = cawww

node:
        ip_port = 7777
        ip_address = 192.168.55.2
        number = 1
        name = www2
        cluster = cawww

node:
        ip_port = 7777
        ip_address = 192.168.55.3
        number = 2
        name = www3
        cluster = cawww

node:
        ip_port = 7777
        ip_address = 192.168.55.6
        number = 3
        name = www4
        cluster = cawww

cluster:
        node_count = 4
        name = cawww
--------------------------------------------

what i did so far is:
 - create a file for the loop device on each server with: dd if=/dev/zero of=/var/lib/ocfs2/cawww bs=1G count=1
 - setup loop device on each server: losetup /dev/loop0 /var/lib/ocfs2/cawww
 - formated the device on www1 : mkfs.ocfs2 -b 4K -C 32K -N 4 -L ocfscawww /dev/loop0
    i read here "http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi_2.html#16"
    that i need to format only on one server. is this correct?
 - mount with: mount -t ocfs2 /dev/loop0 /cawww
    mount works on www1, but not on the other servers
    (mount.ocfs2: Bad magic number in superblock while opening device /dev/loop0)
    i tried to format on each server and then mount again with works but it then i don't see
    changes i make in /cawww on the other servers.
it seems that each server isn't aware of the other servers.
firewall is disabled on each server.
maybe ocfs2 doesn't work with a loop device?

any ideas what the problem could be?


thanks, christian




More information about the Ocfs2-users mailing list