Re: Backup LUKS/Dmcrypt keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, David!

In case of dm-crypt luks (as default) ceph-disk keeps particular OSD partition\partitions key in ceph mon attributes and uses OSD partition uuid as an ID for this key. 

So you can get all your keys running:

/usr/bin/ceph config-key ls

You'll get something like:

[
...
    "dm-crypt/osd/50250ade-500a-44c4-8a47-00224d76594a/luks",
    "dm-crypt/osd/940b5b1c-5926-4aa5-8cd7-ce2f22371d6a/luks",
    "dm-crypt/osd/dd28c6ba-c101-4874-bc1c-401b34cb2f9b/luks",
...
]

These uuids are partition uuids.

You can get particular key as:

/usr/bin/ceph config-key get dm-crypt/osd/<OSD_PARTITION_UUID>/luks

As I don't use external wal\db partition currently I can't tell the exact config path for their keys, but I believe a scheme will be the same.

Best regards,
Vladimir

2018-04-26 1:29 GMT+05:00 Kevin Olbrich <ko@xxxxxxx>:
Hi,

how can I backup the dmcrypt keys on luminous?
The folder under /etc/ceph does not exist anymore.

Kind regards
Kevin

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




--

С уважением,
Дробышевский Владимир
Компания "АйТи Город"
+7 343 2222192

ИТ-консалтинг
Поставка проектов "под ключ"
Аутсорсинг ИТ-услуг
Аутсорсинг ИТ-инфраструктуры
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux