yes, you only need to format from one node. Your first step created a file on each node which is/are not shared between all nodes. OCFS2 needs a shared device if you want to mount the filesystem on multiple nodes. Configure iscsi instead of loopback device.
living liquid | Christian Meisinger wrote: > 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 > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users > _______________________________________________ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-users