Skip to contentSkip to conversation

OSD replacement feature

DISCUSSION Loic Dachary 4 participants 7 messages Nov 19, 2015 – Nov 24, 2015

lore
Share & tools
lore
#0 lore raw

Hi Vicente,

Now that your ceph-disk deactivate/destroy feature is merged (and documented ;-), I wonder if you have time to comment on http://tracker.ceph.com/issues/13732 which is about replacing a disk ? Your input would be much appreciated.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw

Hi Loic and cephers,

Sure, I have time to help (comment) on this feature replace a disk. This is a useful feature to handle disk failure :p

An simple step is described on http://tracker.ceph.com/issues/13732 :
1. set noout flag - if the broken osd is primary osd, could we handle well?
2. stop osd daemon and we need to wait the osd actually down. (or maybe use deactivate option with ceph-disk)

these two above step seems OK.
about handle crush map, should we remove the broken osd out? If we do that, why we set noout flag? It still trigger re-balance after we remove osd from crushmap.

Could we just remove the auth key and re-create osd with new disk (then add the auth key back)?

I will try and test myself.

feel free to let me know if you have any suggeations!

thanks!!!
vicente

2015-11-20 1:20 GMT+08:00 Loic Dachary <[email protected]>:

Quoted 9 lines

Hi Vicente,

Now that your ceph-disk deactivate/destroy feature is merged (and documented ;-), I wonder if you have time to comment on http://tracker.ceph.com/issues/13732 which is about replacing a disk ? Your input would be much appreciated.

Cheers

--
Loïc Dachary, Artisan Logiciel Libre

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

#2 lore raw
Quoted 10 lines · Wei-Chung Cheng

Hi Loic and cephers,

Sure, I have time to help (comment) on this feature replace a disk. This is a useful feature to handle disk failure :p

An simple step is described on http://tracker.ceph.com/issues/13732 :
1. set noout flag - if the broken osd is primary osd, could we handle well?
2. stop osd daemon and we need to wait the osd actually down. (or maybe use deactivate option with ceph-disk)

Quoted 4 lines

these two above step seems OK.
about handle crush map, should we remove the broken osd out? If we do that, why we set noout flag? It still trigger re-balance after we remove osd from crushmap.

Right--I think you generally want to do either one or the other:

1) mark osd out, leave failed disk in place. or, replace with new disk that re-uses the same osd id.

or,

2) remove osd from crush map. replace with new disk (which gets new osd id).

I think re-using the osd id is awkward currently, so doing 1 and replacing the disk ends up moving data twice.

sage

#3 lore raw

2015-11-20 19:38 GMT+08:00 Sage Weil <[email protected]>:

Quoted 21 lines · Wei-Chung Cheng
Quoted 10 lines

Hi Loic and cephers,

Sure, I have time to help (comment) on this feature replace a disk. This is a useful feature to handle disk failure :p

An simple step is described on http://tracker.ceph.com/issues/13732 :
1. set noout flag - if the broken osd is primary osd, could we handle well?
2. stop osd daemon and we need to wait the osd actually down. (or maybe use deactivate option with ceph-disk)

Quoted 4 lines

these two above step seems OK.
about handle crush map, should we remove the broken osd out? If we do that, why we set noout flag? It still trigger re-balance after we remove osd from crushmap.

Right--I think you generally want to do either one or the other:

1) mark osd out, leave failed disk in place. or, replace with new disk that re-uses the same osd id.

Quoted 8 lines

or,

2) remove osd from crush map. replace with new disk (which gets new osd id).

I think re-using the osd id is awkward currently, so doing 1 and replacing the disk ends up moving data twice.

Hi sage,

If the osd on "DNE" status, its weight must be zero and trigger moving object data?

In my test cases, I only remove the auth key and osd-id (osd is "DNE" status). Then replace with new disk that re-uses the same osd-id.

The osd only has little time on the out status.
I think this operation could reduce some redundant data moving. How you think this operation? or just like you say. mark osd out (deactivate/destroy ...etc) and replace with new disk that re-uses the same osd id?

btw, if we just use ceph-deploy/ceph-disk, we could not create osd with specific osd-id.
that should we implement for it?

thanks!!!
vicente

#4 lore raw
In reply to Sage Weil

There are two reasons for having a ceph-disk replace feature.

1. To simplify the steps required to replace a disk
2. To allow a disk to be replaced proactively without causing any data movement.

So keeping the osd id the same is required and is what motivated the feature for me.

David

Quoted 33 lines · Sage Weil
Quoted 10 lines · Wei-Chung Cheng

Hi Loic and cephers,

Sure, I have time to help (comment) on this feature replace a disk. This is a useful feature to handle disk failure :p

An simple step is described on http://tracker.ceph.com/issues/13732 :
1. set noout flag - if the broken osd is primary osd, could we handle well?
2. stop osd daemon and we need to wait the osd actually down. (or maybe use deactivate option with ceph-disk)

Quoted 4 lines

these two above step seems OK.
about handle crush map, should we remove the broken osd out? If we do that, why we set noout flag? It still trigger re-balance after we remove osd from crushmap.

Right--I think you generally want to do either one or the other:

1) mark osd out, leave failed disk in place. or, replace with new disk that re-uses the same osd id.

or,

2) remove osd from crush map. replace with new disk (which gets new osd id).

I think re-using the osd id is awkward currently, so doing 1 and replacing the disk ends up moving data twice.

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

2015-11-21 1:54 GMT+08:00 David Zafman <[email protected]>:

Quoted 6 lines

There are two reasons for having a ceph-disk replace feature.

1. To simplify the steps required to replace a disk
2. To allow a disk to be replaced proactively without causing any data movement.

Hi David,

It good to without causing any data movement when we want to replaced failure osd.

But I don't have any idea to complete it, could you give some opinions?

I though if we want to replace failure we must move the object data on failure osd to new(replacement) osd?

Or I got some misunderstanding?

thanks!!!
vicente

Quoted 47 lines

So keeping the osd id the same is required and is what motivated the feature for me.

David

Quoted 37 lines · Sage Weil
Quoted 12 lines · Wei-Chung Cheng

Hi Loic and cephers,

Sure, I have time to help (comment) on this feature replace a disk. This is a useful feature to handle disk failure :p

An simple step is described on http://tracker.ceph.com/issues/13732 :
1. set noout flag - if the broken osd is primary osd, could we handle well?
2. stop osd daemon and we need to wait the osd actually down. (or maybe use deactivate option with ceph-disk)

Quoted 4 lines

these two above step seems OK.
about handle crush map, should we remove the broken osd out? If we do that, why we set noout flag? It still trigger re-balance after we remove osd from crushmap.

Right--I think you generally want to do either one or the other:

1) mark osd out, leave failed disk in place. or, replace with new disk that re-uses the same osd id.

or,

2) remove osd from crush map. replace with new disk (which gets new osd id).

I think re-using the osd id is awkward currently, so doing 1 and replacing the disk ends up moving data twice.

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

That is correct. The goal is to only refill the replacement OSD disk. Otherwise, if the OSD is only down for less than mon_osd_down_out_interval (5 min default) or noout is set, no other data movement would occur.

David

Quoted 67 lines · Wei-Chung Cheng

2015-11-21 1:54 GMT+08:00 David Zafman <[email protected]>:

Quoted 5 lines

There are two reasons for having a ceph-disk replace feature.

1. To simplify the steps required to replace a disk
2. To allow a disk to be replaced proactively without causing any data movement.

Hi David,

It good to without causing any data movement when we want to replaced failure osd.

But I don't have any idea to complete it, could you give some opinions?

I though if we want to replace failure we must move the object data on failure osd to new(replacement) osd?

Or I got some misunderstanding?

thanks!!!
vicente

Quoted 42 lines

So keeping the osd id the same is required and is what motivated the feature for me.

David

Quoted 34 lines · Sage Weil
Quoted 11 lines · Wei-Chung Cheng

Hi Loic and cephers,

Sure, I have time to help (comment) on this feature replace a disk. This is a useful feature to handle disk failure :p

An simple step is described on http://tracker.ceph.com/issues/13732 :
1. set noout flag - if the broken osd is primary osd, could we handle well?
2. stop osd daemon and we need to wait the osd actually down. (or maybe use deactivate option with ceph-disk)

Quoted 4 lines

these two above step seems OK.
about handle crush map, should we remove the broken osd out? If we do that, why we set noout flag? It still trigger re-balance after we remove osd from crushmap.

Right--I think you generally want to do either one or the other:

1) mark osd out, leave failed disk in place. or, replace with new disk that re-uses the same osd id.

or,

2) remove osd from crush map. replace with new disk (which gets new osd id).

I think re-using the osd id is awkward currently, so doing 1 and replacing the disk ends up moving data twice.

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

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