All of lore.kernel.org
 help / color / mirror / Atom feed
* OSD disk replacement best practise
@ 2014-08-14 11:29 Guang Yang
       [not found] ` <BLU436-SMTP13190B33FCDD9EB1BD24DCEDFE80-MsuGFMq8XAE@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Guang Yang @ 2014-08-14 11:29 UTC (permalink / raw)
  To: Ceph-devel, ceph-users

Hi cephers,
Most recently I am drafting the run books for OSD disk replacement, I think the rule of thumb is to reduce data migration (recover/backfill), and I thought the following procedure should achieve the purpose:
  1. ceph osd out osd.XXX (mark it out to trigger data migration)
  2. ceph osd rm osd.XXX
  3. ceph auth rm osd.XXX
  4. provision a new OSD which will take XXX as the OSD id and migrate data back.

With the above procedure, the crush weight of the host never changed so that we can limit the data migration only for those which are neccesary.

Does it make sense?

Thanks,
Guang

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: OSD disk replacement best practise
       [not found] ` <BLU436-SMTP13190B33FCDD9EB1BD24DCEDFE80-MsuGFMq8XAE@public.gmane.org>
@ 2014-08-14 17:17   ` Smart Weblications GmbH - Florian Wiessner
  0 siblings, 0 replies; 2+ messages in thread
From: Smart Weblications GmbH - Florian Wiessner @ 2014-08-14 17:17 UTC (permalink / raw)
  To: Guang Yang, Ceph-devel, ceph-users

Am 14.08.2014 13:29, schrieb Guang Yang:
> Hi cephers,
> Most recently I am drafting the run books for OSD disk replacement, I think the rule of thumb is to reduce data migration (recover/backfill), and I thought the following procedure should achieve the purpose:
>   1. ceph osd out osd.XXX (mark it out to trigger data migration)
>   2. ceph osd rm osd.XXX
>   3. ceph auth rm osd.XXX
>   4. provision a new OSD which will take XXX as the OSD id and migrate data back.
> 
> With the above procedure, the crush weight of the host never changed so that we can limit the data migration only for those which are neccesary.
> 
> Does it make sense?
> 

Looks sane to me, and i remember that i did it that way a few times.


-- 

Mit freundlichen Grüßen,

Florian Wiessner

Smart Weblications GmbH
Martinsberger Str. 1
D-95119 Naila

fon.: +49 9282 9638 200
fax.: +49 9282 9638 205
24/7: +49 900 144 000 00 - 0,99 EUR/Min*
http://www.smart-weblications.de

--
Sitz der Gesellschaft: Naila
Geschäftsführer: Florian Wiessner
HRB-Nr.: HRB 3840 Amtsgericht Hof
*aus dem dt. Festnetz, ggf. abweichende Preise aus dem Mobilfunknetz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-14 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 11:29 OSD disk replacement best practise Guang Yang
     [not found] ` <BLU436-SMTP13190B33FCDD9EB1BD24DCEDFE80-MsuGFMq8XAE@public.gmane.org>
2014-08-14 17:17   ` Smart Weblications GmbH - Florian Wiessner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.