Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi!
I have read a couple of threads that deals with resize partion and then create new lvm partion
That is not what I want to do! I have resized my partion from 275 GB to 150 GB. the reason for this was hoping for more space to be able to create a normal partion with cfdisk but that does not seem to work.
I have free space, but how can I use it to create room for a new ordinary partion
when the default partion layout for fedora/centos is to fill the whole space up whether you use it or not?
Here is some data from my Centos mounted from ubuntu cd:
Disk Drive: /dev/sda
Size: 320072933376 bytes, 320.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 38913
Name Flags Part Type FS Type [Label] Size (MB)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
sda1 Boot Primary Linux ext3 [/boot] 106.93
sda2 Primary Linux LVM 319963.40
root@ubuntu:/home/ubuntu# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID heB7kX-ce3I-8SdE-dcmd-mH7q-CVtY-xFPnf9
LV Write Access read/write
LV Status available
# open 1
LV Size 150.00 GB
Current LE 4800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID b2qDT3-dw2w-8tCF-06YP-D9fv-YrSz-5DwbXv
LV Write Access read/write
LV Status available
# open 0
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
root@ubuntu:/home/ubuntu# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 297.99 GB / not usable 20.87 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 9535
Free PE 4673
Allocated PE 4862
PV UUID ZH1clJ-pqce-pCuc-x3Gi-his2-y61i-nHeNJ0
root@ubuntu:/home/ubuntu# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 297.97 GB
PE Size 32.00 MB
Total PE 9535
Alloc PE / Size 4862 / 151.94 GB
Free PE / Size 4673 / 146.03 GB
VG UUID vQUB9T-bnJH-Mcy9-0l7A-8DQZ-3LIL-3sxasj
What is it you need to put on "an ordinary partition" that you couldn't put on a new Logical Volume (LV)?
Partitions have hard boundaries so once you do your original layout it is difficult to resize things because essentially you have to adjust all the partitions beyond the one you're changing to reflect the new setup then add your new partition beyond those.
LVs on the other hand can be resized, added or deleted without needing to worry about what other LVs are there already.
Default for RHEL and CentOS is to put /boot on a partition then allocate all the other space on first drive to VolGroup00 in another partition. However, during the install you have the opportunity to change that to anything you want.
Last edited by MensaWater; 04-22-2010 at 10:52 AM.
thank You I know that basic stuff!
I forgot to mention the reason I want a normal partion is I want to install another linux distro and my disc space was 320 GB from start after fresh install from Centos it was 279 GB
Where did that about 40 GB space go?
I thought mayby LVM eat a lot of extra space!
Thank You for your reply. Now I have made some trial and error in my test/lab environment and come to the conclusion
if I understood from everything I have read, that there is no way to convert a file system from a normal partion to an lvm partion without losing any data and the reverse also would be true!
Correct?
Well then my next question. How copy all the data from one normal root
partion to another LVM partion without losing data.
Would you prefer dd or tar or something else ?
Well then my next question. How copy all the data from one normal root
partion to another LVM partion without losing data.
Would you prefer dd or tar or something else ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.