LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-25-2012, 01:01 PM   #1
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Rep: Reputation: 19
Extending LUKS encrypted RAID5 array


Hello!

I have 3x2TB disks and I just bought fourth one. What would be steps to include new drive to existing array?

My setup is as follows (I think...):
1. Formatted all three drives to fd with fdisk
2. Created RAID5 array from these drives
3. Created LVM volume group from raid device
4. Created EXT4 filesystem for LVM volume group
5. Encrypted it with LUKS

This was some time ago and I did it with Fedora installer so I'm not 100% sure of those steps. Please correct me if I'm wrong.

OS is Slackware64-current and is up to date.
 
Old 10-25-2012, 04:32 PM   #2
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 251

Rep: Reputation: 34
Your outlined steps contradicts your question. The steps are for new array, lvm and file system. Adding a new device would require different steps. See this link for setting up and modify RAID volumes.
 
Old 10-26-2012, 02:33 AM   #3
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Original Poster
Rep: Reputation: 19
Yes I know that those steps are for creating a new array. I was just trying to tell you how I have made the existing array.

Thanks for the link. I have to read it as soon as possible. I was wondering if LUKS encryption needs additional steps. This may sound stupid but I have really very little idea how it works.
 
Old 10-26-2012, 11:00 AM   #4
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 251

Rep: Reputation: 34
The link is a RAID wiki and should answer all your questions. What you should keep in mind that you will need to increase the size starting will the lowest layer (typically, this is the physical devices).

If your setup is RAID5->LVM->LUKS->EXT4 you would:
1. Grow the RAID by increasing the number of devices
2. Resize the PV to the new RAID size and subsequently the LV(s).
3. Resize LUKS to the new LV size
4. Resize Ext4 to the new LV/LUKS size

If you have the order of LUKS and LVM switched, then adjust the steps accordingly.
 
1 members found this post helpful.
Old 10-28-2012, 02:45 AM   #5
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Original Poster
Rep: Reputation: 19
Thank you tux_dude!

The whole process went smoothly with your advice.
 
  


Reply


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
Problems with extending a raid5 array Sjonnie48 Ubuntu 0 03-06-2011 03:52 PM
Optimize filesystem performance on top of mdadm raid5 + LUKS wallbunny Linux - Software 0 11-22-2010 03:22 PM
Encrypted root with LUKS on LVM and RAID-1: How? gargamel SUSE / openSUSE 5 03-20-2010 05:30 PM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 03:20 AM
cryptsetup won't open crypted fs on raid5 with known luks passphrase luboss Linux - Security 3 11-13-2008 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:15 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration