Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-31-2007, 11:37 AM   #1
LQ Newbie
Registered: May 2007
Posts: 8

Rep: Reputation: 0
RHEL4 - LVM Setup Partition Size


We have a server (RHEL4) with 6 750G hard drive and an Intel Raid controller setup as one RAID5 array and partitioned with (1G for /boot - 10G for / and rest (~3.5T) for LVM). I would like to create a LV with 3.5T but the maximum I can create is 1.4T bytes.

Any help or input is greatly appreciated.

# uname -a
Linux logserv3 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

# fdisk -l

Disk /dev/sda: 3744.9 GB, 3744999669760 bytes
255 heads, 63 sectors/track, 455303 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         127     1020096   83  Linux
/dev/sda2             128        1402    10241437+  83  Linux
/dev/sda3            1403      187954  1498476134+  8e  Linux LVM

# pvscan 
  PV /dev/sda3   VG VG0   lvm2 [3.40 TB / 3.40 TB free]
  Total: 1 [1.40 TB] / in use: 1 [1.40 TB] / in no VG: 0 [0   ]

# pvdisplay 
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               VG0
  PV Size               3.40 TB / not usable 0   
  Allocatable           yes 
  PE Size (KByte)       65536
  Total PE              55632
  Free PE               55632
  Allocated PE          0
  PV UUID               EnJBcr-2GDa-l7Gg-S50M-rbRA-lEtA-LosJQh
# vgscan 
  Reading all physical volumes.  This may take a while...
  Found volume group "VG0" using metadata type lvm2

  --- Volume group ---
  VG Name               VG0
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.40 TB
  PE Size               64.00 MB
  Total PE              55632
  Alloc PE / Size       0 / 0   
  Free  PE / Size       55632 / 3.40 TB
  VG UUID               7yQhcA-9HDm-U1W7-QR82-5f5v-3Wl0-ZrkcUy

# lvcreate --size 3200G --name LVSQL VG0 
  device-mapper: reload ioctl failed: Invalid argument
  Failed to activate new LV.

# lvcreate --size 3000G --name LVSQL VG0 
  device-mapper: reload ioctl failed: Invalid argument
  Failed to activate new LV.

# lvcreate --size 2000G --name LVSQL VG0 
  device-mapper: reload ioctl failed: Invalid argument
  Failed to activate new LV.

# lvcreate --size 1000G --name LVSQL VG0 
  Logical volume "LVSQL" created

# lvcreate --size 1400G --name LVSQL VG0 
  Logical volume "LVSQL" created

Last edited by sbababei; 05-31-2007 at 11:38 AM.
Old 05-31-2007, 01:01 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,870
Blog Entries: 14

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
Why put it in all in one LV?

It appears you're limited to a 2TB block size per the vgcreate man page (it says 2.4 kernel but on line man page says "as of 2.4 kernel" which I read to mean 2.4 and greater until told differently.)

Don't feel bad though I've hit this same 2TB (actually 1.9999 TB) limit using commercial products such as Veritas Volume Manager on commercial UNIX.
Old 05-31-2007, 02:36 PM   #3
LQ Newbie
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you Jlightner for your response. We had smaller server than this (~1.2T) for logging and the space would fill up in no time. So we were hoping we could have a big partition so it would last longer.

Thanks again.


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 Resize - After logical resize, FS size does not match physical size. spectra Linux - Software 6 11-01-2006 11:28 AM
a RHEL4 box crashed, about LVM jiawj Red Hat 3 02-09-2006 10:11 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Reducing size of PV (partition) in LVM clacour Linux - General 2 10-24-2003 08:19 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration