Project

General

Profile

Actions

Bug #16176

closed

objectmap does not show object existence correctly

Added by Xinxin Shu almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel,kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

in the latest master, i create 10GB rbd and use rbd bench-write to fill objects, and i used "ctrl + c" to terminate bench-write process, then i check objects,it shows there are 26 objects

[root@ctrl src]# ./rados -c /mnt/data/devs/ceph.conf -p rbd ls | grep rbd_data.113a74b0dc51 | wc -l
2016-06-07 10:02:45.681910 7f438e50ba40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:02:45.682067 7f438e50ba40 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:02:45.713863 7f438e50ba40 -1 WARNING: the following dangerous and experimental features are enabled: *
26
[root@ctrl src]#

but when i use 'rbd du' to disk usage, it only shows that only 6 objects exist, and the objectmap flag is valid
NAME PROVISIONED USED
test 10240M 24576k

[root@ctrl src]# ./rbd -c /mnt/data/devs/ceph.conf -p rbd info test
2016-06-07 10:03:55.902227 7f6963a84d80 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:03:55.902758 7f6963a84d80 -1 WARNING: the following dangerous and experimental features are enabled: *
2016-06-07 10:03:55.935078 7f6963a84d80 -1 WARNING: the following dangerous and experimental features are enabled: *
rbd image 'test':
size 10240 MB in 2560 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.113a74b0dc51
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:


Files

bug-16176-log.zip (749 KB) bug-16176-log.zip Xinxin Shu, 11/22/2016 08:26 AM

Related issues 2 (0 open2 closed)

Copied to rbd - Backport #18289: kraken: objectmap does not show object existence correctlyClosedActions
Copied to rbd - Backport #18290: jewel: objectmap does not show object existence correctlyResolvedJason DillamanActions
Actions

Also available in: Atom PDF