LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-13-2013, 03:30 PM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 169

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.


Thanks
 
Old 02-15-2013, 03:25 AM   #2
r0b0
Member
 
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
tripialos
Member
 
Registered: Apr 2012
Posts: 169

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
 
  


Reply

Tags
dbd cryptsetup luks



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:07 AM.

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