LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-09-2009, 06:55 PM   #1
dcellis1950
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Rep: Reputation: 2
LVM Question


I am new to LinuxQuestions.org, but not to Linux. I have a question about LVM.

My /dev/sda disk is partitioned into Windows NTFS on sda1, Linux /boot partition on sda2, and the Fedora 10 root (/) LVM partition is on sda3. I have moved my Windows XP to VMware on the Linux system and would like to add the sda1 partition to root LVM group.

I don't think there should be a problem in doing this, but I would like another opinion before I try it.

Thanks
 
Old 11-09-2009, 07:17 PM   #2
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Rep: Reputation: 15
Hi!
I am not absolutely sure, but I don't think if I remember correctly, that you can make a partiton a member of LVM group if it is not partioned as LVM from the beginning!

Maybe this link could be of help


http://www.debuntu.org/how-to-instal...lvm-filesystem
 
Old 11-09-2009, 10:40 PM   #3
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
Quote:
I am not absolutely sure, but I don't think if I remember correctly, that you can make a partiton a member of LVM group if it is not partioned as LVM from the beginning!
I think you're thinking of RAID.
The whole point of LVM is the flexibility it gives you to add partitions or whole HDD's in the future (by extending your volumegroup with more physical volumes). So the answer is go ahead.
 
Old 11-09-2009, 11:58 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
The LVM HOWTO http://tldp.org/HOWTO/LVM-HOWTO/. You've prob got v2. You should just need to use fdisk or an equiv to declare sda1 as a pv (type 8e), then add it to the VG, then the LV.
 
Old 11-10-2009, 03:02 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by dcellis1950 View Post
My /dev/sda disk is partitioned into Windows NTFS on sda1, Linux /boot partition on sda2, and the Fedora 10 root (/) LVM partition is on sda3.
The emboldened text is a little strange. Partitions are LVM physical volumes (PVs) which are assigned to LVM volume groups (VGs) and spae from VGs is used to create LVM logical volumes (LVs) in which you can create file systems.

Do you mean that sda3 is used as a PV in a VG out of which you have created an LV which you are using for Fedora 10 root (/)? If so, is sda3 the only PV in the VG and is all the space in the VG used for Fedora 10 root (/)?
 
Old 11-11-2009, 11:54 AM   #6
dcellis1950
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Original Poster
Rep: Reputation: 2
To be more specific, sda3 is part of /dev/mapper/VolGroup00-LogVol00 which has two logical volumes (LV 00 and LV 01) on it, one of which is root (/) for Fedora 10. At the moment, VG 00 is using only sda3. I would like to add sda1 to the VG 00 and then add space to both logical volumes or maybe add another logical volume.

Yes I know that I have to reformat the NTFS partition for LVM.

I guess my real questions are:
1. Is there a problem using two partitions from the the same disks for a Volume Group.
2. Could there be a problem having the /boot partition in the on sda2, which is between these two partitions.

I believe there are no problems with doing either of these, but I would just like other's input.
 
Old 11-11-2009, 12:28 PM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by dcellis1950 View Post
1. Is there a problem using two partitions from the the same disks for a Volume Group.
2. Could there be a problem having the /boot partition in the on sda2, which is between these two partitions.
AIUI ...

1. No, except for a possible performance degradation, likely trivial if the heads only have to skip over a relatively small partition (used for /boot). There is no reason to set out to have such an arrangement but if it arises as a matter of convenience ... that's one of the things LVM is good at.
2. No, assuming the partition table is sane with no overlapping.
 
Old 11-12-2009, 10:12 AM   #8
dcellis1950
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Original Poster
Rep: Reputation: 2
Thanks. That is what I wanted to hear.
 
  


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
LVM question sang_froid Linux - General 2 03-10-2009 11:25 AM
LVM question tom.bokman@mcwa.com Linux - Server 3 02-20-2008 03:19 PM
Question about LVM Torr Linux - General 1 05-28-2006 08:36 AM
question about LVM an2ny_18 Linux - Software 3 03-12-2006 05:35 AM
lvm question babag Mandriva 4 09-11-2005 03:13 AM


All times are GMT -5. The time now is 11:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration