Re: [ceph-users] two mount points, two diffrent data

2015-01-18 Thread Rafał Michalak

 Because you are not using a cluster aware filesystem - the respective
 mounts
 don't know when changes are made to the underlying block device (rbd) by
 the
 other mount. What you are doing *will* lead to file corruption.

 Your need to use a distributed filesystem such as GFS2 or cephfs.

 CephFS would be probably be the easiest to setup.


Thanks for help
I use cephfs and it's working great !
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] two mount points, two diffrent data

2015-01-14 Thread Rafał Michalak
Hello I have trouble with this situation

#node1
mount /dev/rbd/rbd/test /mnt
cd /mnt
touch test1
ls (i see test1, OK)

#node2
mount /dev/rbd/rbd/test /mnt
cd /mnt
(i see test1, OK)
touch test2
ls (i see test2, OK)

#node1
ls (i see test1, BAD)
touch test3
ls (i see test1, test3 BAD)

#node2
ls (i see test1, test2 BAD)

Why data not replicating on mounting fs ?
I try with filesystems ext4 and xfs
The data is visible only when unmounted and mounted again

I check health in ceph status and is HEALTH_OK

What I doing wrong ?
Thanks for any help.


My system
Ubuntu 14.04.01 LTS

#ceph --version
ceph version 0.80.7 (6c0127fcb58008793d3c8b62d925bc91963672a3)

#modinfo libceph
filename:   /lib/modules/3.13.0-44-generic/kernel/net/ceph/libceph.ko
license: GPL
description:Ceph filesystem for Linux
author:   Patience Warnick patie...@newdream.net
author:   Yehuda Sadeh yeh...@hq.newdream.net
author:   Sage Weil s...@newdream.net
srcversion: B8E83D4DFC53B113603CF52
depends:libcrc32c
intree:Y
vermagic:   3.13.0-44-generic SMP mod_unload modversions
signer:   Magrathea: Glacier signing key
sig_key:
 50:8C:3B:4B:F1:08:ED:36:B6:06:2F:81:27:82:F7:7C:37:B9:85:37
sig_hashalgo:   sha512
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com