From mboxrd@z Thu Jan 1 00:00:00 1970 From: Loic Dachary Subject: Re: migrating dmcrypt keys ? Date: Mon, 20 Feb 2017 22:12:40 +0100 Message-ID: <48410a16-1abd-34ff-2136-06fb8c35f396@dachary.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38411 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbdBTVMq (ORCPT ); Mon, 20 Feb 2017 16:12:46 -0500 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Wyllys Ingersoll Cc: Ceph Development On 02/20/2017 09:17 PM, Wyllys Ingersoll wrote: > Can you elaborate - specifically what would I look for in ceph-disk? > I would be interested in writing the migration tool if I knew where to > start digging. The keyword to look for is lockbox, starting from here https://github.com/ceph/ceph/blob/master/src/ceph-disk/ceph_disk/main.py#L1193 looking at the pull requests that merged this, you should have some valuable context. Cheers > > thanks! > > On Mon, Feb 20, 2017 at 2:56 PM, Loic Dachary wrote: >> Hi, >> >> On 02/20/2017 08:49 PM, Wyllys Ingersoll wrote: >>> Is it possible to migrate a legacy (i..e pre-Jewel) osd device that >>> was originally setup with dmcrypt keys in /etc/ceph/dmcrypt-keys to >>> use the newer osd-lockbox scheme without having to destroy the osd and >>> re-prepare it? >> >> You can do it manually by mimicing what ceph-disk does. It would be nice to have a tool to do that. >> >> Cheers >> >>> >>> Thanks >>> >> >> -- >> Loïc Dachary, Artisan Logiciel Libre > -- Loïc Dachary, Artisan Logiciel Libre