Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 02-13-2013, 03:30 PM   #1
Registered: Apr 2012
Posts: 160

Rep: Reputation: Disabled
Question drbd with cryptsetup

Hi guys

I want to encrypt my drbd block with cryptsetup.

I know that this is possible since i have seen this implementation in action with my own eyes but unfortunately i wasn`t able to get a tut on how to do this.

I did searched a lot on the web to find some sort of tutorial but at the end i haven't managed to complete the task.

For now my question is:

Do i first need to create a cryptsetup partiotion, and then set the drbd to use the generated cryptsetup partition or

first create the drbd and then use crypt setup.

Old 02-15-2013, 03:25 AM   #2
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
You have to have the "underlying" block device active first. So, you have to have your drbd device all created and available on the host first. I don't know if drbd devices are supposed to be partitioned or not but do as is usual for drbd.

After you have your drbd block device available on the host, you can start working with the cryptsetup tool. It will take the drbd device, run its thing on it and it will create a new device (/dev/dm/something) which will be the plain-text equivalent of your device. This will be the device that you will create filesystem on and that you will mount.
Old 02-15-2013, 12:20 PM   #3
Registered: Apr 2012
Posts: 160

Original Poster
Rep: Reputation: Disabled
OK, i found the solution to this

1) Create a partition..say hda2
2) Create your LUKS container on the hda2 partition (luksFormat the /dev/hda2)
3) Open and mount the LUKS partition
4) Create your drbd block pointing to the relevant mounted partition

In order to for the above to work the partition must be mounted prior drbd starts


dbd cryptsetup luks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cryptsetup problem Nikosis Slackware 14 12-23-2015 01:49 PM
[SOLVED] problem with cryptsetup skoinga Linux - Security 4 11-30-2010 05:52 AM
cryptsetup question... dbrazeau Linux - Software 1 09-22-2010 04:06 PM
Compiling cryptsetup 1.0.7 Radikll Linux - Software 1 08-14-2009 10:26 PM
Cryptsetup : Arrrrg ! kemkem42 Linux - Software 0 09-28-2005 04:10 AM

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration