From: David Disseldorp <ddiss@suse.de>
To: Sage Weil <sage@newdream.net>
Cc: Wyllys Ingersoll <wyllys.ingersoll@keepertech.com>,
ceph-devel@vger.kernel.org, Lars Marowsky-Bree <lmb@suse.com>
Subject: Re: dmcrypt with luks keys in hammer
Date: Tue, 21 Jul 2015 13:14:29 +0200 [thread overview]
Message-ID: <20150721131429.472492bf@g21.suse.de> (raw)
In-Reply-To: <alpine.DEB.2.00.1507201521000.8878@cobra.newdream.net>
Hi,
On Mon, 20 Jul 2015 15:21:50 -0700 (PDT), Sage Weil wrote:
> On Mon, 20 Jul 2015, Wyllys Ingersoll wrote:
> > No luck with ceph-disk-activate (all or just one device).
> >
> > $ sudo ceph-disk-activate /dev/sdv1
> > mount: unknown filesystem type 'crypto_LUKS'
> > ceph-disk: Mounting filesystem failed: Command '['/bin/mount', '-t',
> > 'crypto_LUKS', '-o', '', '--', '/dev/sdv1',
> > '/var/lib/ceph/tmp/mnt.QHe3zK']' returned non-zero exit status 32
> >
> >
> > Its odd that it should complain about the "crypto_LUKS" filesystem not
> > being recognized, because it did mount some of the LUKS systems
> > successfully, though not sometimes just the data and not the journal
> > (or vice versa).
> >
> > $ lsblk /dev/sdb
> > NAME MAJ:MIN RM SIZE RO
> > TYPE MOUNTPOINT
> > sdb 8:16 0 3.7T 0 disk
> > ??sdb1 8:17 0 3.6T 0 part
> > ? ??e8bc1531-a187-4fd2-9e3f-cf90255f89d0 (dm-0) 252:0 0 3.6T 0
> > crypt /var/lib/ceph/osd/ceph-54
> > ??sdb2 8:18 0 10G 0 part
> > ??temporary-cryptsetup-1235 (dm-6) 252:6 0 125K 1 crypt
> >
> >
> > $ blkid /dev/sdb1
> > /dev/sdb1: UUID="d6194096-a219-4732-8d61-d0c125c49393" TYPE="crypto_LUKS"
> >
> >
> > A race condition (or other issue) with udev seems likely given that
> > its rather random which ones come up and which ones don't.
>
> A race condition during creation or activation? If it's activation I
> would expect ceph-disk activate ... to work reasonably reliably when
> called manually (on a single device at a time).
We encountered similar issues on a non-dmcrypt firefly deployment with
10 OSDs per node.
I've been working on a patch set to defer device activation to systemd
services. ceph-disk activate is extended to support mapping of dmcrypt
devices prior to OSD startup.
The master-based changes aren't ready for upstream yet, but can be found
in my WIP branch at:
https://github.com/ddiss/ceph/tree/wip_bnc926756_split_udev_systemd_master
There are a few things that I'd still like to address before submitting
upstream, mostly covering activate-journal:
- The test/ceph-disk.sh unit tests need to be extended and fixed.
- The activate-journal --dmcrypt changes are less than optimal, and leave
me with a few unanswered questions:
+ Does get_journal_osd_uuid(dev) return the plaintext or cyphertext
uuid?
+ If a journal is encrypted, is the data partition also always
encrypted?
- dmcrypt journal device mapping should probably also be split out into
a separate systemd service, as that'll be needed for the future
network based key retrieval feature.
Feedback on the approach taken would be appreciated.
Cheers, David
next prev parent reply other threads:[~2015-07-21 11:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 19:52 dmcrypt with luks keys in hammer Wyllys Ingersoll
2015-07-20 21:22 ` Sage Weil
2015-07-20 21:46 ` Wyllys Ingersoll
2015-07-20 22:21 ` Sage Weil
2015-07-20 22:23 ` Wyllys Ingersoll
2015-07-21 11:14 ` David Disseldorp [this message]
2015-07-21 14:00 ` Sage Weil
2015-07-21 14:26 ` Wyllys Ingersoll
2015-07-21 14:25 ` Milan Broz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150721131429.472492bf@g21.suse.de \
--to=ddiss@suse.de \
--cc=ceph-devel@vger.kernel.org \
--cc=lmb@suse.com \
--cc=sage@newdream.net \
--cc=wyllys.ingersoll@keepertech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.