LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   LVM Question (https://www.linuxquestions.org/questions/linux-general-1/lvm-question-768034/)

dcellis1950 11-09-2009 05:55 PM

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

sysslack 11-09-2009 06:17 PM

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

rkski 11-09-2009 09:40 PM

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.

chrism01 11-09-2009 10:58 PM

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.

catkin 11-10-2009 02:02 AM

Quote:

Originally Posted by dcellis1950 (Post 3750898)
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 (/)?

dcellis1950 11-11-2009 10:54 AM

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.

catkin 11-11-2009 11:28 AM

Quote:

Originally Posted by dcellis1950 (Post 3753089)
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.

dcellis1950 11-12-2009 09:12 AM

Thanks. That is what I wanted to hear.


All times are GMT -5. The time now is 08:15 AM.