Why isn't RBD synced between two machines?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ceph users,

I'm a new user of ceph, just POC-ing for a shred file system. I'm struggling that a file on top of a same image of RBD is not synced between two machines.

I've just setup a ceph cluster (giant on ubuntu14.04), one mon on machine1 and one osd on machine2, created a image(foo) and mapped/mounted the image on two machines like below.

machine1$ mount
/dev/rbd1 on /mnt/foo type ext4 (rw,sync,_netdev)
machine2$ mount
/dev/rbd1 on /mnt/foo type ext4 (rw,sync,_netdev)

Then, I've just touched a file(/mnt/foo/bar) on machine1, but it didn't appear on machine2 even I waited for a few minutes.

machine1$ sudo touch /mnt/foo/bar
machine1$ ls -l /mnt/foo
-rw-r--r-- 1 root root     0 Dec 15 01:35 bar
drwx------ 2 root root 16384 Dec 12 16:05 lost+found
machine2$ ls -l /mnt/foo
drwx------ 2 root root 16384 Dec 12 16:05 lost+found

Though, it appeared after flushing block device buffers.

machine1$ sudo blockdev --flushbufs /dev/rbd1
machine2$ sudo blockdev --flushbufs /dev/rbd1
machine2$ ls -l /mnt/foo
-rw-r--r-- 1 root root     0 Dec 15 01:35 bar
drwx------ 2 root root 16384 Dec 12 16:05 lost+found

Am I wrong something? Are there something to be configured? Is it impossible to use RBD as a shared network block device?

Thanks,
Ryosuke
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux