Skip to contentSkip to conversation

ceph status reporting non-existing osd

DISCUSSION Andrey Korolyov 3 participants 16 messages Jul 13, 2012 – Jul 19, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in

    pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB

used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

#1 lore raw
Quoted 15 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in

    pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB
Quoted 8 lines

used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)
-Greg

#2 lore raw
Quoted 22 lines · Gregory Farnum
Quoted 21 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in

    pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB

used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Quoted 6 lines
Quoted 2 lines

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

#3 lore raw
Quoted 26 lines · Sage Weil
Quoted 25 lines · Gregory Farnum
Quoted 23 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in

    pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB

used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 8 lines
Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Should I restart mons simultaneously? Restarting one by one has no effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

#4 lore raw
Quoted 35 lines · Andrey Korolyov
Quoted 34 lines · Sage Weil
Quoted 30 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Quoted 8 lines
Quoted 4 lines

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

I'm not sure what you're asking about here?
-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

#5 lore raw
Quoted 53 lines · Gregory Farnum
Quoted 35 lines · Andrey Korolyov
Quoted 34 lines · Sage Weil
Quoted 30 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Quoted 8 lines
Quoted 4 lines

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 3 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.
--
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

#6 lore raw

"ceph pg set_full_ratio 0.95"
"ceph pg set_nearfull_ratio 0.94"

Quoted 75 lines · Andrey Korolyov
Quoted 61 lines · Gregory Farnum
Quoted 41 lines · Andrey Korolyov
Quoted 40 lines · Sage Weil
Quoted 29 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Restarting ceph-mon should also do the trick.

Quoted 8 lines
Quoted 2 lines

Thanks for the bug report!
sage

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 2 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options
Quoted 6 lines

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.

--
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

#7 lore raw
Quoted 4 lines · Gregory Farnum

"ceph pg set_full_ratio 0.95"
"ceph pg set_nearfull_ratio 0.94"

Quoted 86 lines
Quoted 81 lines · Andrey Korolyov
Quoted 61 lines · Gregory Farnum
Quoted 41 lines · Andrey Korolyov
Quoted 40 lines · Sage Weil
Quoted 29 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Restarting ceph-mon should also do the trick.

Quoted 8 lines
Quoted 2 lines

Thanks for the bug report!
sage

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 2 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.

Thanks, it worked, but setting values back result to turn warning back. --
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

#8 lore raw
Quoted 96 lines · Andrey Korolyov
Quoted 95 lines · Gregory Farnum

"ceph pg set_full_ratio 0.95"
"ceph pg set_nearfull_ratio 0.94"

Quoted 89 lines · Andrey Korolyov
Quoted 69 lines · Gregory Farnum
Quoted 54 lines · Andrey Korolyov
Quoted 42 lines · Sage Weil
Quoted 31 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Quoted 4 lines

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Quoted 1 line

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 2 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.

Thanks, it worked, but setting values back result to turn warning back.

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -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

#9 lore raw
Quoted 103 lines · Gregory Farnum
Quoted 102 lines · Andrey Korolyov
Quoted 98 lines · Gregory Farnum

"ceph pg set_full_ratio 0.95"
"ceph pg set_nearfull_ratio 0.94"

Quoted 91 lines · Andrey Korolyov
Quoted 69 lines · Gregory Farnum
Quoted 54 lines · Andrey Korolyov
Quoted 42 lines · Sage Weil
Quoted 31 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Quoted 4 lines

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Quoted 1 line

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 2 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.

Quoted 4 lines
Quoted 1 line

Thanks, it worked, but setting values back result to turn warning back.

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).
--
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

#10 lore raw
Quoted 122 lines · Andrey Korolyov
Quoted 115 lines · Gregory Farnum
Quoted 114 lines · Andrey Korolyov
Quoted 108 lines · Gregory Farnum

"ceph pg set_full_ratio 0.95"
"ceph pg set_nearfull_ratio 0.94"

Quoted 101 lines · Andrey Korolyov
Quoted 77 lines · Gregory Farnum
Quoted 60 lines · Andrey Korolyov
Quoted 46 lines · Sage Weil
Quoted 33 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Quoted 4 lines

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Quoted 1 line

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 2 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.

Quoted 3 lines
Quoted 1 line

Thanks, it worked, but setting values back result to turn warning back.

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

Quoted 5 lines

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).

Okay, that's what happened — marking an OSD out in the CRUSH map means all the data gets moved off it, but that doesn't remove it from all the places where it's registered in the monitor and in the map, for a couple reasons:
1) You might want to mark an OSD out before taking it down, to allow for more orderly data movement.
2) OSDs can get marked out automatically, but the system shouldn't be able to forget about them on its own.
3) You might want to remove an OSD from the CRUSH map in the process of placing it somewhere else (perhaps you moved the physical machine to a new location).
etc.

You want to run "ceph osd rm 4 5" and that should unregister both of them from everything[1]. :)
-Greg
[1]: Except for the full lists, which have a bug in the version of code you're running — remove the OSDs, then adjust the full ratios again, and all will be well.

--
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

#11 lore raw
Quoted 135 lines · Gregory Farnum
Quoted 122 lines · Andrey Korolyov
Quoted 115 lines · Gregory Farnum
Quoted 114 lines · Andrey Korolyov
Quoted 108 lines · Gregory Farnum

"ceph pg set_full_ratio 0.95"
"ceph pg set_nearfull_ratio 0.94"

Quoted 101 lines · Andrey Korolyov
Quoted 77 lines · Gregory Farnum
Quoted 60 lines · Andrey Korolyov
Quoted 46 lines · Sage Weil
Quoted 33 lines · Gregory Farnum
Quoted 18 lines · Andrey Korolyov

Hi,

Recently I`ve reduced my test suite from 6 to 4 osds at ~60% usage on six-node,
and I have removed a bunch of rbd objects during recovery to avoid overfill.
Right now I`m constantly receiving a warn about nearfull state on non-existing osd:

health HEALTH_WARN 1 near full osd(s)
monmap e3: 3 mons at {0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0}, election epoch 240, quorum 0,1,2 0,1,2
osdmap e2098: 4 osds: 4 up, 4 in
pgmap v518696: 464 pgs: 464 active+clean; 61070 MB data, 181 GB used, 143 GB / 324 GB avail
mdsmap e181: 1/1/1 up {0=a=up:active}

Quoted 5 lines

HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%

Needless to say, osd.4 remains only in ceph.conf, but not at crushmap. Reducing has been done 'on-line', e.g. without restart entire cluster.

Quoted 3 lines

Whoops! It looks like Sage has written some patches to fix this, but for now you should be good if you just update your ratios to a larger number, and then bring them back down again. :)

Quoted 4 lines

Restarting ceph-mon should also do the trick.

Thanks for the bug report!
sage

Quoted 1 line

Should I restart mons simultaneously?

I don't think restarting will actually do the trick for you — you actually will need to set the ratios again.

Quoted 6 lines

Restarting one by one has no
effect, same as filling up data pool up to ~95 percent(btw, when I deleted this 50Gb file on cephfs, mds was stuck permanently and usage remained same until I dropped and recreated data pool - hope it`s one of known posix layer bugs). I also deleted entry from config, and then restarted mons, with no effect. Any suggestions?

Quoted 2 lines

I'm not sure what you're asking about here?
-Greg

Oh, sorry, I have mislooked and thought that you suggested filling up osds. How do I can set full/nearfull ratios correctly?

$ceph injectargs '--mon_osd_full_ratio 96'
parsed options

$ ceph injectargs '--mon_osd_near_full_ratio 94'
parsed options

ceph pg dump | grep 'full'
full_ratio 0.95
nearfull_ratio 0.85

Setting parameters in the ceph.conf and then restarting mons does not affect ratios either.

Quoted 3 lines
Quoted 1 line

Thanks, it worked, but setting values back result to turn warning back.

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

Quoted 5 lines

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).

Okay, that's what happened — marking an OSD out in the CRUSH map means all the data gets moved off it, but that doesn't remove it from all the places where it's registered in the monitor and in the map, for a couple reasons:
1) You might want to mark an OSD out before taking it down, to allow for more orderly data movement.
2) OSDs can get marked out automatically, but the system shouldn't be able to forget about them on its own.
3) You might want to remove an OSD from the CRUSH map in the process of placing it somewhere else (perhaps you moved the physical machine to a new location).
etc.

Quoted 4 lines

You want to run "ceph osd rm 4 5" and that should unregister both of them from everything[1]. :)
-Greg
[1]: Except for the full lists, which have a bug in the version of code you're running — remove the OSDs, then adjust the full ratios again, and all will be well.

$ ceph osd rm 4
osd.4 does not exist
$ ceph -s
   health HEALTH_WARN 1 near full osd(s)
   monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0},
election epoch 58, quorum 0,1,2 0,1,2
   osdmap e2198: 4 osds: 4 up, 4 in
    pgmap v586056: 464 pgs: 464 active+clean; 66645 MB data, 231 GB
used, 95877 MB / 324 GB avail
   mdsmap e207: 1/1/1 up {0=a=up:active}
$ ceph health detail
HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%
$ ceph osd dump
....
max_osd 4
osd.0 up   in  weight 1 up_from 2183 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6800/4030
192.168.10.128:6801/4030 192.168.10.128:6802/4030 exists,up
68b3deec-e80a-48b7-9c29-1b98f5de4f62
osd.1 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6800/2980
192.168.10.129:6801/2980 192.168.10.129:6802/2980 exists,up
b2a26fe9-aaa8-445f-be1f-fa7d2a283b57
osd.2 up   in  weight 1 up_from 2181 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6803/4128
192.168.10.128:6804/4128 192.168.10.128:6805/4128 exists,up
378d367a-f7fb-4892-9ec9-db8ffdd2eb20
osd.3 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6803/3069
192.168.10.129:6804/3069 192.168.10.129:6805/3069 exists,up
faf8eda8-55fc-4a0e-899f-47dbd32b81b8
....
--
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
#12 lore raw
Quoted 53 lines · Andrey Korolyov
Quoted 19 lines · Gregory Farnum
Quoted 11 lines · Andrey Korolyov
Quoted 2 lines · Gregory Farnum

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).

Okay, that's what happened — marking an OSD out in the CRUSH map means all the data gets moved off it, but that doesn't remove it from all the places where it's registered in the monitor and in the map, for a couple reasons:
1) You might want to mark an OSD out before taking it down, to allow for more orderly data movement.
2) OSDs can get marked out automatically, but the system shouldn't be able to forget about them on its own.
3) You might want to remove an OSD from the CRUSH map in the process of placing it somewhere else (perhaps you moved the physical machine to a new location).
etc.

Quoted 4 lines

You want to run "ceph osd rm 4 5" and that should unregister both of them from everything[1]. :)
-Greg
[1]: Except for the full lists, which have a bug in the version of code you're running — remove the OSDs, then adjust the full ratios again, and all will be well.

$ ceph osd rm 4
osd.4 does not exist
$ ceph -s
   health HEALTH_WARN 1 near full osd(s)
   monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0},
election epoch 58, quorum 0,1,2 0,1,2
   osdmap e2198: 4 osds: 4 up, 4 in
    pgmap v586056: 464 pgs: 464 active+clean; 66645 MB data, 231 GB
used, 95877 MB / 324 GB avail
   mdsmap e207: 1/1/1 up {0=a=up:active}
$ ceph health detail
HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%
$ ceph osd dump
....
max_osd 4
osd.0 up   in  weight 1 up_from 2183 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6800/4030
192.168.10.128:6801/4030 192.168.10.128:6802/4030 exists,up
68b3deec-e80a-48b7-9c29-1b98f5de4f62
osd.1 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6800/2980
192.168.10.129:6801/2980 192.168.10.129:6802/2980 exists,up
b2a26fe9-aaa8-445f-be1f-fa7d2a283b57
osd.2 up   in  weight 1 up_from 2181 up_thru 2187 down_at 2172
Quoted 8 lines
last_clean_interval [2136,2171) 192.168.10.128:6803/4128
192.168.10.128:6804/4128 192.168.10.128:6805/4128 exists,up
378d367a-f7fb-4892-9ec9-db8ffdd2eb20
osd.3 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6803/3069
192.168.10.129:6804/3069 192.168.10.129:6805/3069 exists,up
faf8eda8-55fc-4a0e-899f-47dbd32b81b8
....

Hrm. How did you create your new crush map? All the normal avenues of removing an OSD from the map set a flag which the PGMap uses to delete its records (which would prevent it reappearing in the full list), and I can't see how setcrushmap would remove an OSD from the map (although there might be a code path I haven't found).
--
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

#13 lore raw
Quoted 63 lines · Gregory Farnum
Quoted 53 lines · Andrey Korolyov
Quoted 19 lines · Gregory Farnum
Quoted 11 lines · Andrey Korolyov
Quoted 2 lines · Gregory Farnum

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).

Okay, that's what happened — marking an OSD out in the CRUSH map means all the data gets moved off it, but that doesn't remove it from all the places where it's registered in the monitor and in the map, for a couple reasons:
1) You might want to mark an OSD out before taking it down, to allow for more orderly data movement.
2) OSDs can get marked out automatically, but the system shouldn't be able to forget about them on its own.
3) You might want to remove an OSD from the CRUSH map in the process of placing it somewhere else (perhaps you moved the physical machine to a new location).
etc.

Quoted 4 lines

You want to run "ceph osd rm 4 5" and that should unregister both of them from everything[1]. :)
-Greg
[1]: Except for the full lists, which have a bug in the version of code you're running — remove the OSDs, then adjust the full ratios again, and all will be well.

$ ceph osd rm 4
osd.4 does not exist
$ ceph -s
   health HEALTH_WARN 1 near full osd(s)
   monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0},
election epoch 58, quorum 0,1,2 0,1,2
   osdmap e2198: 4 osds: 4 up, 4 in
    pgmap v586056: 464 pgs: 464 active+clean; 66645 MB data, 231 GB
used, 95877 MB / 324 GB avail
   mdsmap e207: 1/1/1 up {0=a=up:active}
$ ceph health detail
HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%
$ ceph osd dump
....
max_osd 4
osd.0 up   in  weight 1 up_from 2183 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6800/4030
192.168.10.128:6801/4030 192.168.10.128:6802/4030 exists,up
68b3deec-e80a-48b7-9c29-1b98f5de4f62
osd.1 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6800/2980
192.168.10.129:6801/2980 192.168.10.129:6802/2980 exists,up
b2a26fe9-aaa8-445f-be1f-fa7d2a283b57
osd.2 up   in  weight 1 up_from 2181 up_thru 2187 down_at 2172
Quoted 8 lines
last_clean_interval [2136,2171) 192.168.10.128:6803/4128
192.168.10.128:6804/4128 192.168.10.128:6805/4128 exists,up
378d367a-f7fb-4892-9ec9-db8ffdd2eb20
osd.3 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6803/3069
192.168.10.129:6804/3069 192.168.10.129:6805/3069 exists,up
faf8eda8-55fc-4a0e-899f-47dbd32b81b8
....
Quoted 5 lines

Hrm. How did you create your new crush map? All the normal avenues of removing an OSD from the map set a flag which the PGMap uses to delete its records (which would prevent it reappearing in the full list), and I can't see how setcrushmap would remove an OSD from the map (although there might be a code path I haven't found).

Manually, by deleting osd4|5 entries and reweighing remaining nodes. --
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

#14 lore raw
Quoted 64 lines · Andrey Korolyov
Quoted 63 lines · Gregory Farnum
Quoted 61 lines · Andrey Korolyov
Quoted 19 lines · Gregory Farnum
Quoted 11 lines · Andrey Korolyov
Quoted 2 lines · Gregory Farnum

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).

Okay, that's what happened — marking an OSD out in the CRUSH map means all the data gets moved off it, but that doesn't remove it from all the places where it's registered in the monitor and in the map, for a couple reasons:
1) You might want to mark an OSD out before taking it down, to allow for more orderly data movement.
2) OSDs can get marked out automatically, but the system shouldn't be able to forget about them on its own.
3) You might want to remove an OSD from the CRUSH map in the process of placing it somewhere else (perhaps you moved the physical machine to a new location).
etc.

Quoted 4 lines

You want to run "ceph osd rm 4 5" and that should unregister both of them from everything[1]. :)
-Greg
[1]: Except for the full lists, which have a bug in the version of code you're running — remove the OSDs, then adjust the full ratios again, and all will be well.

$ ceph osd rm 4
osd.4 does not exist
$ ceph -s
   health HEALTH_WARN 1 near full osd(s)
   monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0},
election epoch 58, quorum 0,1,2 0,1,2
   osdmap e2198: 4 osds: 4 up, 4 in
    pgmap v586056: 464 pgs: 464 active+clean; 66645 MB data, 231 GB
used, 95877 MB / 324 GB avail
   mdsmap e207: 1/1/1 up {0=a=up:active}
$ ceph health detail
HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%
$ ceph osd dump
....
max_osd 4
osd.0 up   in  weight 1 up_from 2183 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6800/4030
192.168.10.128:6801/4030 192.168.10.128:6802/4030 exists,up
68b3deec-e80a-48b7-9c29-1b98f5de4f62
osd.1 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6800/2980
192.168.10.129:6801/2980 192.168.10.129:6802/2980 exists,up
b2a26fe9-aaa8-445f-be1f-fa7d2a283b57
osd.2 up   in  weight 1 up_from 2181 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6803/4128
192.168.10.128:6804/4128 192.168.10.128:6805/4128 exists,up
378d367a-f7fb-4892-9ec9-db8ffdd2eb20
osd.3 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6803/3069
192.168.10.129:6804/3069 192.168.10.129:6805/3069 exists,up
faf8eda8-55fc-4a0e-899f-47dbd32b81b8
....
Quoted 7 lines
Quoted 5 lines

Hrm. How did you create your new crush map? All the normal avenues of removing an OSD from the map set a flag which the PGMap uses to delete its records (which would prevent it reappearing in the full list), and I can't see how setcrushmap would remove an OSD from the map (although there might be a code path I haven't found).

Manually, by deleting osd4|5 entries and reweighing remaining nodes.

So you extracted the CRUSH map, edited it, and injected it using "ceph osd setrcrushmap"?
--
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

#15 lore raw
Quoted 71 lines · Gregory Farnum
Quoted 70 lines · Andrey Korolyov
Quoted 68 lines · Gregory Farnum
Quoted 53 lines · Andrey Korolyov
Quoted 19 lines · Gregory Farnum
Quoted 11 lines · Andrey Korolyov
Quoted 2 lines · Gregory Farnum

Hrm. That shouldn't be possible if the OSD has been removed. How did you take it out? It sounds like maybe you just marked it in the OUT state (and turned it off quite quickly) without actually taking it out of the cluster? -Greg

As I have did removal, it was definitely not like that - at first place, I have marked osds(4 and 5 on same host) out, then rebuilt crushmap and then kill osd processes. As I mentioned before, osd.4 doest not exist in crushmap and therefore it shouldn`t be reported at all(theoretically).

Okay, that's what happened — marking an OSD out in the CRUSH map means all the data gets moved off it, but that doesn't remove it from all the places where it's registered in the monitor and in the map, for a couple reasons:
1) You might want to mark an OSD out before taking it down, to allow for more orderly data movement.
2) OSDs can get marked out automatically, but the system shouldn't be able to forget about them on its own.
3) You might want to remove an OSD from the CRUSH map in the process of placing it somewhere else (perhaps you moved the physical machine to a new location).
etc.

Quoted 4 lines

You want to run "ceph osd rm 4 5" and that should unregister both of them from everything[1]. :)
-Greg
[1]: Except for the full lists, which have a bug in the version of code you're running — remove the OSDs, then adjust the full ratios again, and all will be well.

$ ceph osd rm 4
osd.4 does not exist
$ ceph -s
   health HEALTH_WARN 1 near full osd(s)
   monmap e3: 3 mons at
{0=192.168.10.129:6789/0,1=192.168.10.128:6789/0,2=192.168.10.127:6789/0},
election epoch 58, quorum 0,1,2 0,1,2
   osdmap e2198: 4 osds: 4 up, 4 in
    pgmap v586056: 464 pgs: 464 active+clean; 66645 MB data, 231 GB
used, 95877 MB / 324 GB avail
   mdsmap e207: 1/1/1 up {0=a=up:active}
$ ceph health detail
HEALTH_WARN 1 near full osd(s)
osd.4 is near full at 89%
$ ceph osd dump
....
max_osd 4
osd.0 up   in  weight 1 up_from 2183 up_thru 2187 down_at 2172
last_clean_interval [2136,2171) 192.168.10.128:6800/4030
192.168.10.128:6801/4030 192.168.10.128:6802/4030 exists,up
68b3deec-e80a-48b7-9c29-1b98f5de4f62
osd.1 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6800/2980
192.168.10.129:6801/2980 192.168.10.129:6802/2980 exists,up
b2a26fe9-aaa8-445f-be1f-fa7d2a283b57
osd.2 up   in  weight 1 up_from 2181 up_thru 2187 down_at 2172
Quoted 8 lines
last_clean_interval [2136,2171) 192.168.10.128:6803/4128
192.168.10.128:6804/4128 192.168.10.128:6805/4128 exists,up
378d367a-f7fb-4892-9ec9-db8ffdd2eb20
osd.3 up   in  weight 1 up_from 2136 up_thru 2186 down_at 2135
last_clean_interval [2115,2134) 192.168.10.129:6803/3069
192.168.10.129:6804/3069 192.168.10.129:6805/3069 exists,up
faf8eda8-55fc-4a0e-899f-47dbd32b81b8
....

Hrm. How did you create your new crush map? All the normal avenues of removing an OSD from the map set a flag which the PGMap uses to delete its records (which would prevent it reappearing in the full list), and I can't see how setcrushmap would remove an OSD from the map (although there might be a code path I haven't found).

Quoted 4 lines
Quoted 1 line

Manually, by deleting osd4|5 entries and reweighing remaining nodes.

So you extracted the CRUSH map, edited it, and injected it using "ceph osd setrcrushmap"?

Yep, exactly.
--
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