Disk allocation
A message that is not in the archive (sent off-list or not yet received): [email protected]
I have a small ceph cluster with 4 osd ( 2 disks on 2 hosts).
I have been adding and removing files from the file system, mounted as ceph on an other host.
Now I have removed most of the data on the file system, so I only have 300 MB left plus two snapshots.
The problem is that looking at the disks the are allocating 88G of data on the ceph filesystem.
osd1 1.1 G
osd2 1.2 G
osd3 33 G
osd4 53 G
Any reson for this ?
Quoted 8 lines · Martin Wilderoth
I have a small ceph cluster with 4 osd ( 2 disks on 2 hosts).
I have been adding and removing files from the file system, mounted as ceph on an other host.
Now I have removed most of the data on the file system, so I only have 300 MB left plus two snapshots.
The problem is that looking at the disks the are allocating 88G of data on the ceph filesystem.
There are a few possibilities:
1) You've hosted your OSDs on a partition that's shared with the rest of the computer. In that case the reported used space will include whatever else is on the partition, not just the Ceph files. (This can include Ceph debug logs, so even if nothing used to be there but you were logging on that partition that can build up pretty quickly.)
2) You deleted the files quickly and just haven't given enough time for the file deletion to propagate to the OSDs. Because the POSIX filesystem is layered over an object store, this can take some time.
3) Your snapshots contain a lot of files, so nothing (or very little) actually got deleted. Snapshots are pretty cool but they aren't miraculous disk space!
Given the uneven distribution of disk space I suspect option #2, but I could be mistaken. :) Let us know!
-Greg
Sorry to jump into the converstation, how slow can the deletion of files actually be?
One of the tests I ran a few weeks ago had me generating files, deleting them and then writing them again from a number of clients. I noticed that the space would never freed up again. I have my OSD's and their journals on dedicated partions.
I had planned on asking more on this once I had a stable system again.
Quoted 21 lines · Gregory Farnum
Quoted 8 lines · Martin Wilderoth
I have a small ceph cluster with 4 osd ( 2 disks on 2 hosts).
I have been adding and removing files from the file system, mounted as ceph on an other host.
Now I have removed most of the data on the file system, so I only have 300 MB left plus two snapshots.
The problem is that looking at the disks the are allocating 88G of data on the ceph filesystem.
There are a few possibilities:
1) You've hosted your OSDs on a partition that's shared with the rest of the computer. In that case the reported used space will include whatever else is on the partition, not just the Ceph files. (This can include Ceph debug logs, so even if nothing used to be there but you were logging on that partition that can build up pretty quickly.)
2) You deleted the files quickly and just haven't given enough time for the file deletion to propagate to the OSDs. Because the POSIX filesystem is layered over an object store, this can take some time.
3) Your snapshots contain a lot of files, so nothing (or very little) actually got deleted. Snapshots are pretty cool but they aren't
Quoted 9 lines
miraculous disk space!
Given the uneven distribution of disk space I suspect option #2, but I could be mistaken. :) Let us know!
-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
File Deletion (Was: Disk allocation)
On Monday, March 21, 2011 at 10:32 AM, Ben De Luca wrote:
Sorry to jump into the converstation, how slow can the deletion of
Quoted 8 lines
files actually be?
One of the tests I ran a few weeks ago had me generating files, deleting them and then writing them again from a number of clients. I noticed that the space would never freed up again. I have my OSD's and their journals on dedicated partions.
I had planned on asking more on this once I had a stable system again.
Well I don't think the time is actually bounded, and it can be slowed down if multiple clients have capabilities on the file. The main issue is that the MDS is responsible for telling the OSDs to delete all the objects which make up the file; generally this shouldn't take too long but if you delete enough files quickly enough it might take some time. If you're watching it and the used space doesn't start dropping within ~20 minutes from last access then there's a problem, though. Given the scenario you describe it wouldn't surprise me too much if you just went quickly enough that the object deletions never actually occur (ie, they end up getting used again before the MDS has the permissions and the time to delete them). If faster space frees are actually a requirement for some reason you can comment on Bug #630 (http://tracker.newdream.net/issues/630). :)
-Greg