From: Sam Lang <sam.lang@inktank.com>
To: Geoffrey Hartz <hartz.geoffrey@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: OSDs don't actually delete files when two CephFS (or more) are in use
Date: Mon, 10 Dec 2012 10:23:57 -1000 [thread overview]
Message-ID: <50C644DD.8060707@inktank.com> (raw)
In-Reply-To: <CAPU8t+pEuX2sP-gRqmCxGw-etrviOt1N7_18gv4=rDj+K6pkTA@mail.gmail.com>
On 12/10/2012 08:29 AM, Geoffrey Hartz wrote:
> Hi!
>
> I'm new to Ceph and I have a strange behavior with CephFS
>
> Config is :
>
> Ubuntu 12.04
> Kernel 3.6.9
> Ceph V0.55
>
> 2 OSD, 1 mon, 1 MDS, all on same host
> 2 clients, separate Hosts
>
> Ceph.conf:
>
> http://paste.ubuntu.com/1423712/
>
> To mount the share I use : sudo ceph-fuse -m 192.168.80.139:6789 /mnt
>
> When I create a file on one client, the other see the file, can be
> downloaded etc.
>
> But when I delete the file, both clients don't see the file anymore
> BUT the file is still there on OSD (using space disk).
Removing a file removes the directory entry (as you've seen), but the
inode itself doesn't get removed until all references to it are dropped.
The clients may cache the capability for those inodes for a period of
time, so you're not seeing the references drop until they get evicted
from the cache. Unmounting ensures that they get evicted from the
client caches, so all references go to zero.
Also, removal of the underlying objects is done lazily, so you may not
see the space get freed up right away.
-sam
>
> When I umount from BOTH clients, OSD are update and file is actually
> delete (same behavior with mount -t ceph)
>
> I'm missing something?
>
> Thanks!
>
> --
> Geoffrey HARTZ
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2012-12-10 20:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 18:29 OSDs don't actually delete files when two CephFS (or more) are in use Geoffrey Hartz
2012-12-10 20:23 ` Sam Lang [this message]
2012-12-10 20:34 ` Geoffrey Hartz
2012-12-10 21:25 ` Sam Lang
2012-12-10 22:08 ` Geoffrey Hartz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50C644DD.8060707@inktank.com \
--to=sam.lang@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=hartz.geoffrey@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.