Skip to contentSkip to conversation

maintanance on osd host

DISCUSSION Stefan Priebe - Profihost AG 6 participants 13 messages Feb 26, 2013 – Mar 1, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi list,

how can i do a short maintanance like a kernel upgrade on an osd host? Right now ceph starts to backfill immediatly if i say:
ceph osd out 41
...

Without ceph osd out command all clients hang for the time ceph does not know that the host was rebootet.

I tried
ceph osd set nodown and ceph osd set noout
but this doesn't result in any difference

Stefan

A message that is not in the archive (sent off-list or not yet received): 512CCD19.7010509-2Lf/[email protected]

#2 lore raw
Quoted 7 lines · Stefan Priebe - Profihost AG

Hi list,

how can i do a short maintanance like a kernel upgrade on an osd host? Right now ceph starts to backfill immediatly if i say:
ceph osd out 41
...

Quoted 7 lines

Without ceph osd out command all clients hang for the time ceph does not know that the host was rebootet.

I tried
ceph osd set nodown and ceph osd set noout
but this doesn't result in any difference

Hi Stefan,

in my practice nodown will freeze all I/O for sure until OSD will return, killing osd process and setting ``mon osd down out interval'' large enough will do the trick - you`ll get only two small freezes on the peering process at start and at the end. Also it is very strange that your clients hanging for a long time - I have set non-optimal values for purpose and was not able to observe re-peering process longer than a minute.

#3 lore raw
In reply to Stefan Priebe - Profihost AG
Quoted 7 lines · Stefan Priebe - Profihost AG

Hi list,

how can i do a short maintanance like a kernel upgrade on an osd host? Right now ceph starts to backfill immediatly if i say:
ceph osd out 41
...

Quoted 6 lines

Without ceph osd out command all clients hang for the time ceph does not know that the host was rebootet.

I tried
ceph osd set nodown and ceph osd set noout
but this doesn't result in any difference

For a temporary event like this, you want the osd to be down (so that io can continue with remaining replicas) but NOT to mark it out (so that data doesn't get rebalanced). The simplest way to do that is

ceph osd set noout
killall ceph-osd
.. reboot ..

Just remember to do

ceph osd unset noout

when you are done so that future osds that fail will get marked out on their own after the 5 minute (default) interval.

sage

#4 lore raw

But that redults in a 1-3s hickup for all KVM vms. This is not what I want.

Stefan

Am 26.02.2013 um 18:06 schrieb Sage Weil <[email protected]>:

Quoted 36 lines · Stefan Priebe - Profihost AG
Quoted 7 lines

Hi list,

how can i do a short maintanance like a kernel upgrade on an osd host? Right now ceph starts to backfill immediatly if i say:
ceph osd out 41
...

Quoted 6 lines

Without ceph osd out command all clients hang for the time ceph does not know that the host was rebootet.

I tried
ceph osd set nodown and ceph osd set noout
but this doesn't result in any difference

For a temporary event like this, you want the osd to be down (so that io can continue with remaining replicas) but NOT to mark it out (so that data doesn't get rebalanced). The simplest way to do that is

ceph osd set noout
killall ceph-osd
.. reboot ..

Just remember to do

ceph osd unset noout

when you are done so that future osds that fail will get marked out on their own after the 5 minute (default) interval.

sage

--
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 1 line · Stefan Priebe - Profihost AG

But that redults in a 1-3s hickup for all KVM vms. This is not what I want.

You can do

kill $pid
ceph osd down $osdid

(or even reverse the order, if the sequence is quick enough) to avoid waiting for the failure detection delay. But if the OSDs are going down, then the peering has to happen one way or another.

sage

Quoted 43 lines

Stefan

Am 26.02.2013 um 18:06 schrieb Sage Weil <[email protected]>:

Quoted 36 lines · Stefan Priebe - Profihost AG
Quoted 7 lines

Hi list,

how can i do a short maintanance like a kernel upgrade on an osd host? Right now ceph starts to backfill immediatly if i say:
ceph osd out 41
...

Quoted 6 lines

Without ceph osd out command all clients hang for the time ceph does not know that the host was rebootet.

I tried
ceph osd set nodown and ceph osd set noout
but this doesn't result in any difference

For a temporary event like this, you want the osd to be down (so that io can continue with remaining replicas) but NOT to mark it out (so that data doesn't get rebalanced). The simplest way to do that is

ceph osd set noout
killall ceph-osd
.. reboot ..

Just remember to do

ceph osd unset noout

when you are done so that future osds that fail will get marked out on their own after the 5 minute (default) interval.

sage

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

Hi Sage,

Am 26.02.2013 18:24, schrieb Sage Weil:

Quoted 11 lines · Stefan Priebe - Profihost AG
Quoted 1 line

But that redults in a 1-3s hickup for all KVM vms. This is not what I want.

You can do

kill $pid
ceph osd down $osdid

(or even reverse the order, if the sequence is quick enough) to avoid waiting for the failure detection delay. But if the OSDs are going down, then the peering has to happen one way or another.

But exaclty this results in starting backfill immediatly. My idea was to first mark the osd down so the mon knows about this fact. So no I/O is stalled. And then reboot the whole host but exactly this does not work like expected as backfilling is starting immediatly after setting the osd to down ;-(

Greets,
Stefan

#7 lore raw
Quoted 12 lines · Stefan Priebe

Hi Sage,

Am 26.02.2013 18:24, schrieb Sage Weil:

Quoted 9 lines · Stefan Priebe - Profihost AG
Quoted 2 lines

But that redults in a 1-3s hickup for all KVM vms. This is not what I want.

You can do

kill $pid
ceph osd down $osdid

Quoted 8 lines
Quoted 3 lines

(or even reverse the order, if the sequence is quick enough) to avoid waiting for the failure detection delay. But if the OSDs are going down, then the peering has to happen one way or another.

But exaclty this results in starting backfill immediatly. My idea was to first mark the osd down so the mon knows about this fact. So no I/O is stalled. And then reboot the whole host but exactly this does not work like expected as backfilling is starting immediatly after setting the osd to down ;-(

Backfilling should not happen on down, unless you have reconfigured 'mon osd down out interval = 0' or something along those lines. Setting the 'noout' flag will also prevent the osds from marking out.

As for limiting the IO stall: you could also do 'ceph osd set noup', then mark them down, then kill the daemon, and you won't have to worry about racing with the daemon marking itself back up (as it normally does).

sage

#8 lore raw
In reply to Stefan Priebe
Quoted 20 lines · Stefan Priebe

Hi Sage,

Am 26.02.2013 18:24, schrieb Sage Weil:

Quoted 6 lines · Stefan Priebe - Profihost AG
Quoted 3 lines

But that redults in a 1-3s hickup for all KVM vms. This is not what I want.

Quoted 8 lines

You can do

kill $pid
ceph osd down $osdid

(or even reverse the order, if the sequence is quick enough) to avoid waiting for the failure detection delay. But if the OSDs are going down, then the peering has to happen one way or another.

Quoted 5 lines

But exaclty this results in starting backfill immediatly. My idea was to first mark the osd down so the mon knows about this fact. So no I/O is stalled. And then reboot the whole host but exactly this does not work like expected as backfilling is starting immediatly after setting the osd to down ;-(

"out" and "down" are quite different — are you sure you tried "down" and not "out"? (You reference out in your first email, rather than down.)
-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

Hi Greg,
Hi Sage,

Am 26.02.2013 21:27, schrieb Gregory Farnum:

Quoted 5 lines · Stefan Priebe

"out" and "down" are quite different — are you sure you tried "down" and not "out"? (You reference out in your first email, rather than down.)
-Greg

sorry that's it i misread down / out. Sorry. Wouldn't it make sense to mark the osd automatically down when shutting down via the init script? It doesn't seem to make sense to hope for the automatic detection when somebody uses the init script.

Stefan
--
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 10 lines · Stefan Priebe - Profihost AG

Hi Greg,
Hi Sage,

Am 26.02.2013 21:27, schrieb Gregory Farnum:

Quoted 5 lines · Stefan Priebe

"out" and "down" are quite different — are you sure you tried "down" and not "out"? (You reference out in your first email, rather than down.)
-Greg

Quoted 4 lines

sorry that's it i misread down / out. Sorry. Wouldn't it make sense to mark the osd automatically down when shutting down via the init script? It doesn't seem to make sense to hope for the automatic detection when somebody uses the init script.

Yes, yes it would. http://tracker.ceph.com/issues/4267 :) -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

#11 lore raw

I have it documented here:

http://ceph.com/docs/master/rados/operations/troubleshooting-osd/#stopping-w-out-rebalancing

Let me know if this works for you.

Quoted 23 lines · Gregory Farnum
Quoted 10 lines · Stefan Priebe - Profihost AG

Hi Greg,
Hi Sage,

Am 26.02.2013 21:27, schrieb Gregory Farnum:

Quoted 5 lines · Stefan Priebe

"out" and "down" are quite different — are you sure you tried "down" and not "out"? (You reference out in your first email, rather than down.)
-Greg

Quoted 4 lines

sorry that's it i misread down / out. Sorry. Wouldn't it make sense to mark the osd automatically down when shutting down via the init script? It doesn't seem to make sense to hope for the automatic detection when somebody uses the init script.

Yes, yes it would. http://tracker.ceph.com/issues/4267 :) -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

Signature · 9 lines
John Wilkins
Senior Technical Writer
Intank
[email protected]
(415) 425-9599
--
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