LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-07-2008, 03:03 PM   #1
dschornack
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Rep: Reputation: 0
Angry Centos 5.2 LVM - Not Enough Space


I have a server with 8 1TB hard drives connected to a 3ware 9650SE-16ML configured with RAID6. When I install Centos 5.1 or 5.2, I get a default partition configuration defined as follows:

/dev/sda
/dev/sda1 /boot ext3 101 1 13
/dev/sda2 VolGroup00 LVM PV 917 14 130

/dev/sdb
/dev/sdb1 VolGroup00 LVM PV 5720959 1 79932

LVM Volume Groups
VolGroup00 5721824
LogVol01 swap 1984
LogVol00 / ext3 5719840

If I don't change anything, the system installs with no problems. But, if I attempt to change the swap space to match my RAM of 8GB, then I get the following message:

Not enough space
The current request size (5709984.00MB) is larger than the maximum logical volume size (2097152.00MB). To increase this limit you can create more Physical Volumes from unpartitioned disk space and add
them to this Volume Group.

What??? If I leave everything alone, it creates a logical volume size of 5709984.00 MB. Last time I checked 5709984 was larger than 2097152. By Physical Volumes, does it want me to break up /dev/sdb into /dev/sdb1, /dev/sdb2, /dev/sdb3, etc.?

Does anyone have an idea what is going on here? Why does it work if I accept the defaults and doesn't work when I try an change something?

Thanks
David
 
Old 08-07-2008, 03:53 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Looks to me like it created swap on it's on logical volume. How are you trying to partition? Is CentOS already installed? Did you already allocate all the available space to partitions? What do you get with the vgdisplay command?
 
Old 08-07-2008, 04:20 PM   #3
dschornack
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I could not create a boot partition on a 5TB partition so I created one small 1GB drive and let the system break it up into a 100MB boot and the 900MB is empty. The 5TB second drive seems to have a problem with an LVM created using sdb1 as 5720959. So I think what the message means is that I need to break up sdb1 in to two parts, sdb1, sdb2 and sdb3 each with a max of 2097152.00 MB. I am just guessing on this and will have to try it. Let you know the results. I still don't understand why if I leave everything alone it works, unless under the covers it is breaking it up and just not showing me.

David
 
Old 08-07-2008, 04:47 PM   #4
dschornack
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
As it turns out, it really doesn't matter how I break up /dev/sdb, what matters is when I am creating the LVM. If I create an LVM mount point with 5719840MB, the installer complains and says I can't do that. It says I can only create a mount point with 2097152MB. However, if I just let it default, the installer will create a mount point with 5719840MB. Why? What is the difference between the install creating a 5.45TB mount point and me creating a 5.45TB mount point? Is this just an edit check left over from smaller drives?
 
Old 08-07-2008, 05:15 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Come to think of it, I believe that LVM is limited to 2.1TB. I could be mistaken and not sure how the default is setting up the partitions, etc.

Last edited by trickykid; 08-07-2008 at 05:16 PM.
 
Old 08-07-2008, 05:33 PM   #6
dschornack
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I found a solution. trickykid you are correct for the Linux 2.4.x kernel - 2.1TB. However, for a 32bit 2.6.x kernel, the logical volume size limit is 16TB. For the 64bit 2.6.x kernel, the logical volume size limit is 8EB (EB - Extremely Big lol). I am installing CentOS 5.2x64. I solved my problem by adjusting the PE size from 32 to 128 and I was able to create a 5.4TB logical volume. It seems that when you attempt to edit the default LVM on an initial install, it does not display the correct PE value. It was displaying a PE of 32 which cannot be correct, it should have displayed a PE of 128 since it created an LV of 5.4TB. In order to limit the Linux kernel memory usage, there is a limit of 65,536 physical extents (PE) per logical volume (LV). Hence, the LVM PE size will directly determine the maximum size of a logical volume (LV)! I found my answer by reading the following link ... http://www.walkernews.net/2007/07/02...-volume-in-lvm

David
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM and No Space Left On Device llin Linux - Software 4 07-29-2008 01:04 AM
LVM to increase folder space kool_kid Linux - Server 8 03-09-2008 05:05 PM
SELinux - disabling in CentOS 5.1 prevents LVM from loading and/or booting tiber Linux - Software 2 02-09-2008 04:51 AM
Resizing Centos (ext3/LVM) partition alexpacio Linux - Software 6 08-11-2007 01:39 AM
Combining Volumes on LVM Drive in CentOS 5.0 Linux31 Linux - Hardware 2 05-27-2007 08:14 AM


All times are GMT -5. The time now is 05:17 AM.

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