LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2010, 07:43 AM   #1
imitis
Member
 
Registered: Oct 2007
Location: Latvia, Liepaja
Distribution: Slackware
Posts: 92

Rep: Reputation: 29
extend crypted lvm volume


hi... i have crypted lvm volume on hard drive. got another one but I want to extend my current lvm with this second hdd. is it possible?
 
Old 06-11-2010, 10:56 AM   #2
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by imitis View Post
hi... i have crypted lvm volume on hard drive. got another one but I want to extend my current lvm with this second hdd. is it possible?
Yes it is possible.
If you use LVM -> crypt -> filesystem then you can add the second hdd
to the LVM volume group then enlarge the crypt.
Rough steps will be:
Code:
1) fdisk (or not) /dev/second_hdd
2) pvcreate /dev/second_hdd
3) vgextend your_vg /dev/second_hdd
4) lvextend the_crypt_lv
5) cryptsetup luksOpen the_crypt_lv
6) cryptsetup resize the_crypt_lv
7) resize filesystem
If you use crypt -> LVM -> filesystems then if i am not wrong you need
to make a new crypt and add it to the lvm.
Rough steps:
Code:
1) fdisk (or not) /dev/second_hdd
2) cryptsetup luksFormat /dev/second_hdd
3) cryptsetup luksOpen crypt
4) pvcreate crypt
5) vgextend your_vg crypt
6) lvextend your_lv
7) resize filesystem
 
Old 06-12-2010, 12:04 AM   #3
imitis
Member
 
Registered: Oct 2007
Location: Latvia, Liepaja
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: 29
I use crypt -> LVM
if I create second crypted LVM that means that on startup i'll need to enter two passwords!! right?
 
Old 06-12-2010, 02:01 AM   #4
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by imitis View Post
I use crypt -> LVM
if I create second crypted LVM that means that on startup i'll need to enter two passwords!! right?
Yes, that is the downside of it. You'll need to enter password for both.
When there are independent crypt mappings like / and /home, people usually
create /home with a keyfile and store it on / so they only have to enter
one password.
In your case though, the crypt will be part of the lvm so it needs to be
unlocked before lvm and filesystems are recognised so i don't think you
can do this.
 
Old 06-12-2010, 06:55 AM   #5
imitis
Member
 
Registered: Oct 2007
Location: Latvia, Liepaja
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: 29
ok. thx.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extend LVM partition rconan Linux - Software 5 08-31-2010 02:32 AM
Setup slack13 over 2 dm-crypted lvm hdds carlitoco Slackware 4 09-24-2009 02:18 PM
LVM extend size bravored Linux - General 7 01-21-2009 01:13 PM
Problem with crypted LVM after Debian installation setkos Linux - Newbie 7 12-28-2008 06:30 AM
Access a "linux crypted volume" in windows kemkem42 Linux - Software 1 12-01-2005 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:48 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
Open Source Consulting | Domain Registration