Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-01-2010, 02:53 AM   #1
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Rep: Reputation: 16
configuring LVM post installation.

I have some free space (not partitioned) on my disk drive. I have not configured LVM during installation.Is it possible to modify some of the existing partitions to be a member of LVM?
Old 07-01-2010, 06:39 AM   #2
Registered: Jun 2010
Location: INDIA
Distribution: All Linux & Unix
Posts: 86

Rep: Reputation: 19
go to google then find the howto lvm
Old 07-01-2010, 06:42 AM   #3
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
If you mean non-destructively -- no, it isn't. You have to copy your data somewhere (external USB drive) and copy it back after setting up the LVM. If you also want your system partition to become part of a volume group, it is a little more complicated, because you have to make sure your system boots entirely from the external drive -- but it is possible, btdt
Old 07-01-2010, 08:31 AM   #4
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
Originally Posted by subho.d View Post
go to google then find the howto lvm
quite a reply!
Old 07-01-2010, 09:39 AM   #5
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,049

Rep: Reputation: 70
Assuming you have two new hard disks each 250 GB /dev/sdb and /dev/sdc. Say you wanted to mount this LVM to your home folder.

Create Physical Volumes
pvcreate /dev/sdb
pvcreate /dev/sdc
Create a Volume Group
vgcreate lvm01 /dev/sdb /dev/sdc
Create a Logical Volume
lvcreate -L 500 GB -n my_lvm_name lvm01
Note: you may have to play around with the -L option until you find the correct one. It may be 460 or 480. Make sure to maximize your size. You can always 'lvremove my_lvm_name' and try again.

Then label it

e2label /dev/lvm01/my_lvm_name /home.

Then add the entry to your /etc/fstab file. Instead of listing the device with the path /dev/lvm01/my_lvm_name, just use LABEL=/home.

Later on if your /home folder gets full you can buy another hard disk /dev/sdd and add it by doing
pvcreate /dev/sdd
vgextend lvm01 /dev/sdd

Last edited by trist007; 07-01-2010 at 09:53 AM.



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
Configuring LVM using disks on separate servers ZAMO Linux - Enterprise 2 12-18-2008 12:28 PM
LVM snapshot(configuring backup time) abhishekrahel Linux - General 1 10-07-2008 10:28 PM
Windows on LUKS LVM Post Slackware 12.1 Install -{Jester}- Slackware 4 05-23-2008 01:10 AM
How configuring lilo with raid1 and lvm on mandriva 2007 gibe Linux - Server 1 11-16-2006 05:56 PM
LVM creation in post installation lewkh Linux - Hardware 0 11-17-2004 09:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 PM.

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
Open Source Consulting | Domain Registration