* refs/remotes/upstream/pull/17990/head:
mds: open purge queue when transitioning out of standby replay
mds: always re-probe mds log when standby replay done
Reviewed-by: John Spray <john.spray@redhat.com>
ceph-objectstore-tool: "$OBJ get-omaphdr" and "$OBJ list-omap" scan all pgs instead of using specific pg
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
ceph-disk: more precise error message when a disk is specified
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
To test this change, we create an image of 5GB and do rbd bench write of 1GB:
./bin/rbd create bar -s 5120 && ./bin/rbd bench --io-type write --io-size 32K --io-total 100M --io-pattern rand rbd/bar
Below is the test result.
Was:
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
30911M 27052M 3859M 12.49
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 3191M 26.36 8914M 1174
cephfs_data_a 1 0 0 8914M 0
cephfs_metadata_a 2 2246 0 8914M 21
Now:
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
30911M 27050M 3861M 12.49
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 101216k 1.10 8913M 1178
cephfs_data_a 1 0 0 8913M 0
cephfs_metadata_a 2 892 0 8913M 21
E.g., this change can make "osd pool set-quota max_bytes" work nicely.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
... that have empty OSD and MDS caps. Don't add a ',' at the
start of OSD and MDS caps.
Fixes: http://tracker.ceph.com/issues/21501
Signed-off-by: Ramana Raja <rraja@redhat.com>
heavy RDMA traffic, there are chances to access a current_chunk which can
be beyond the range of pre-allocated Tx buffer pool thus causes a coredump
Signed-off-by: Yan Lei <yongyou.yl@alibaba-inc.com>
traffic, there are chances to access a current_chunk which can be beyond the
range of pre-allocated Tx buffer pool thus causes a coredump.
Signed-off-by: Yan Lei <yongyou.yl@alibaba-inc.com>
actually "r" is always 0 in that branch. so it's a no-op.
this silences the clang analyzer warning of
Value stored to 'r' is never read
Signed-off-by: Kefu Chai <kchai@redhat.com>
shrink the lexical scope of "csum_order" and do not set it if it is
never read.
this silences the clang analyzer warning of:
Value stored to 'csum_order' is never read
Signed-off-by: Kefu Chai <kchai@redhat.com>
"git" is not read after being reset.
this silences clang analyzer warning of:
Value stored to 'gift' is never read
Signed-off-by: Kefu Chai <kchai@redhat.com>
do not set "omap_fsid_fd" to -1 after ::close() it.
also move it's definition to where it is use for the first time for
better readability.
this silences the clang analyzer warning of:
Value stored to 'omap_fsid_fd' is never read
Signed-off-by: Kefu Chai <kchai@redhat.com>
device-class is supported since luminous, so we should fail the init()
if device-class is not updated in crush.
this reverts 244db740: if the device class changes then the user should
either follow the instruction to "ceph osd crush rm-device-class" or fix
CrushWrapper::update_device_class().
this silences clang analyzer warning of:
Value stored to 'r' is never read
Signed-off-by: Kefu Chai <kchai@redhat.com>
* refs/remotes/upstream/pull/17697/head:
pybind/ceph_volume_client: add get, put, and delete object interfaces
pybind/ceph_volume_client: remove 'compat_version'
pybind/ceph_volume_client: set the version
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
* refs/remotes/upstream/pull/16036/head:
mds: improve cap min/max ratio descriptions
mds: fix whitespace
mds: cap client recall to min caps per client
mds: fix conf types
mds: fix whitespace
doc/cephfs: add client min cache and max cache ratio describe
mds: adding tunable features for caps_per_client
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
osd: make scrub right now when pg stats_invalid is true
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Amit Kumar amitkuma@redhat.com