* [linux-lvm] LVM2 with disks greater than 2TB
@ 2006-03-27 22:56 Dan
2006-03-28 0:39 ` Barnaby Claydon
0 siblings, 1 reply; 9+ messages in thread
From: Dan @ 2006-03-27 22:56 UTC (permalink / raw)
To: linux-lvm
I have 24 - 500GB drives raided such that 11 drives + 1 hot spare per
raid to get 4.54TB times 2. I want to use LVM2 to make this into one
~9TB disk, but when I create the partitions and do a df -h they show up
as about 560GB each instead of 4.5TB each. I do an fdisk -l and they
show up correctly. I am using Slackware 10.0. I have device-mapper and
LVM2 correctly installed. I am obviously hitting a 2TB limit from what
I have read, but does anyone know if it is possible to even do what I
want? If so, any suggestions on what I need to install to get this to
work? I am running the 2.6.15.4 kernel. Thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-27 22:56 [linux-lvm] LVM2 with disks greater than 2TB Dan
@ 2006-03-28 0:39 ` Barnaby Claydon
2006-03-28 18:02 ` Dan
0 siblings, 1 reply; 9+ messages in thread
From: Barnaby Claydon @ 2006-03-28 0:39 UTC (permalink / raw)
To: LVM general discussion and development
Dan wrote:
> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare per
> raid to get 4.54TB times 2. I want to use LVM2 to make this into one
> ~9TB disk, but when I create the partitions and do a df -h they show
> up as about 560GB each instead of 4.5TB each. I do an fdisk -l and
> they show up correctly. I am using Slackware 10.0. I have
> device-mapper and LVM2 correctly installed. I am obviously hitting a
> 2TB limit from what I have read, but does anyone know if it is
> possible to even do what I want? If so, any suggestions on what I
> need to install to get this to work? I am running the 2.6.15.4
> kernel. Thanks
>
Dan, from the LVM2 FAQ (
http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
* For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
* For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes, that
is a very large number.)
From what I recall when I built my last LVM, it's a matter of setting
the PE size during creation (hopefully you haven't started filling with
data yet). I think the default causes you to hit the 2TB limit, but it
can definitely be set higher. The default PE Size seems to depend on
Linux distribution, but mine is at 4MB and I'm at 1.5TB right now so the
references to a 32MB default would definitely get you to 9TB.
Sorry I can't offer any other specifics - hope that helps.
-Barnaby
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 0:39 ` Barnaby Claydon
@ 2006-03-28 18:02 ` Dan
2006-03-28 19:20 ` Judd Tracy
0 siblings, 1 reply; 9+ messages in thread
From: Dan @ 2006-03-28 18:02 UTC (permalink / raw)
To: LVM general discussion and development
What concerns me is if I just try and make a single 4.54TB partition as
reiserfs without using LVM2 and mount it, it still only shows up as
~560GB using df -h. This makes me think it maybe an os issue. Any
thoughts?
Barnaby Claydon wrote:
> Dan wrote:
>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare per
>> raid to get 4.54TB times 2. I want to use LVM2 to make this into one
>> ~9TB disk, but when I create the partitions and do a df -h they show
>> up as about 560GB each instead of 4.5TB each. I do an fdisk -l and
>> they show up correctly. I am using Slackware 10.0. I have
>> device-mapper and LVM2 correctly installed. I am obviously hitting a
>> 2TB limit from what I have read, but does anyone know if it is
>> possible to even do what I want? If so, any suggestions on what I
>> need to install to get this to work? I am running the 2.6.15.4
>> kernel. Thanks
>>
> Dan, from the LVM2 FAQ (
> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
>
> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
> that is a very large number.)
>
> From what I recall when I built my last LVM, it's a matter of setting
> the PE size during creation (hopefully you haven't started filling
> with data yet). I think the default causes you to hit the 2TB limit,
> but it can definitely be set higher. The default PE Size seems to
> depend on Linux distribution, but mine is at 4MB and I'm at 1.5TB
> right now so the references to a 32MB default would definitely get you
> to 9TB.
>
> Sorry I can't offer any other specifics - hope that helps.
>
> -Barnaby
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 18:02 ` Dan
@ 2006-03-28 19:20 ` Judd Tracy
2006-03-28 19:49 ` Dan
2006-03-28 21:24 ` Dan
0 siblings, 2 replies; 9+ messages in thread
From: Judd Tracy @ 2006-03-28 19:20 UTC (permalink / raw)
To: LVM general discussion and development
I recall having a similar problem when I setup a large array a long time
ago and it was related to the partition table if I remember correctly.
I wish I could remember more, but that was atleast 2 years ago.
Hopefully it can lead you in the right direction. I think I ended up
using and EFI partion table if I remember correctly.
Judd
Dan wrote:
> What concerns me is if I just try and make a single 4.54TB partition
> as reiserfs without using LVM2 and mount it, it still only shows up as
> ~560GB using df -h. This makes me think it maybe an os issue. Any
> thoughts?
>
> Barnaby Claydon wrote:
>
>> Dan wrote:
>>
>>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare
>>> per raid to get 4.54TB times 2. I want to use LVM2 to make this
>>> into one ~9TB disk, but when I create the partitions and do a df -h
>>> they show up as about 560GB each instead of 4.5TB each. I do an
>>> fdisk -l and they show up correctly. I am using Slackware 10.0. I
>>> have device-mapper and LVM2 correctly installed. I am obviously
>>> hitting a 2TB limit from what I have read, but does anyone know if
>>> it is possible to even do what I want? If so, any suggestions on
>>> what I need to install to get this to work? I am running the
>>> 2.6.15.4 kernel. Thanks
>>>
>> Dan, from the LVM2 FAQ (
>> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
>>
>> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
>> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
>> that is a very large number.)
>>
>> From what I recall when I built my last LVM, it's a matter of setting
>> the PE size during creation (hopefully you haven't started filling
>> with data yet). I think the default causes you to hit the 2TB limit,
>> but it can definitely be set higher. The default PE Size seems to
>> depend on Linux distribution, but mine is at 4MB and I'm at 1.5TB
>> right now so the references to a 32MB default would definitely get
>> you to 9TB.
>>
>> Sorry I can't offer any other specifics - hope that helps.
>>
>> -Barnaby
>>
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Judd Tracy
University of Central Florida
Institute for Simulation and Training
jtracy@ist.ucf.edu
407-882-1479
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 19:20 ` Judd Tracy
@ 2006-03-28 19:49 ` Dan
2006-03-28 21:24 ` Dan
1 sibling, 0 replies; 9+ messages in thread
From: Dan @ 2006-03-28 19:49 UTC (permalink / raw)
To: LVM general discussion and development
I was just reading up on some things from 3ware which is who makes the
cards I am using. They say to use gnu parted instead of fdisk because
fdisk doesn't support > 2TB disks. I am not sure if this still holds
true since the article was from June 2004 but I will try it and let
everyone know how I make out.
Judd Tracy wrote:
> I recall having a similar problem when I setup a large array a long
> time ago and it was related to the partition table if I remember
> correctly. I wish I could remember more, but that was atleast 2 years
> ago. Hopefully it can lead you in the right direction. I think I
> ended up using and EFI partion table if I remember correctly.
>
> Judd
>
> Dan wrote:
>
>> What concerns me is if I just try and make a single 4.54TB partition
>> as reiserfs without using LVM2 and mount it, it still only shows up
>> as ~560GB using df -h. This makes me think it maybe an os issue.
>> Any thoughts?
>>
>> Barnaby Claydon wrote:
>>
>>> Dan wrote:
>>>
>>>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare
>>>> per raid to get 4.54TB times 2. I want to use LVM2 to make this
>>>> into one ~9TB disk, but when I create the partitions and do a df -h
>>>> they show up as about 560GB each instead of 4.5TB each. I do an
>>>> fdisk -l and they show up correctly. I am using Slackware 10.0. I
>>>> have device-mapper and LVM2 correctly installed. I am obviously
>>>> hitting a 2TB limit from what I have read, but does anyone know if
>>>> it is possible to even do what I want? If so, any suggestions on
>>>> what I need to install to get this to work? I am running the
>>>> 2.6.15.4 kernel. Thanks
>>>>
>>> Dan, from the LVM2 FAQ (
>>> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
>>>
>>> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
>>> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
>>> that is a very large number.)
>>>
>>> From what I recall when I built my last LVM, it's a matter of
>>> setting the PE size during creation (hopefully you haven't started
>>> filling with data yet). I think the default causes you to hit the
>>> 2TB limit, but it can definitely be set higher. The default PE Size
>>> seems to depend on Linux distribution, but mine is at 4MB and I'm at
>>> 1.5TB right now so the references to a 32MB default would definitely
>>> get you to 9TB.
>>>
>>> Sorry I can't offer any other specifics - hope that helps.
>>>
>>> -Barnaby
>>>
>>>
>>> _______________________________________________
>>> linux-lvm mailing list
>>> linux-lvm@redhat.com
>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 19:20 ` Judd Tracy
2006-03-28 19:49 ` Dan
@ 2006-03-28 21:24 ` Dan
2006-03-28 21:38 ` Barnaby Claydon
1 sibling, 1 reply; 9+ messages in thread
From: Dan @ 2006-03-28 21:24 UTC (permalink / raw)
To: LVM general discussion and development
It was indeed a partition problem. Thanks. fdisk does not support
partitions over 2TB so I had to use GNU Parted to setup the partition
with a GPT label that supports over 2TB. I could then create reiserfs
filesystems and got two 4.6TB partitions. Unfortunately Parted and GPT
do not support LVM so I could not raid the two partitions into one giant
one unless I am missing something. But the 2 partitions will work fine
for what I need. For anyone who might be interested I found the info I
needed at the links below:
http://www.coraid.com/support/linux/contrib/chernow/gpt.html
http://www.gnu.org/software/parted/manual/html_chapter/
http://www.wlug.org.nz/GPT
Judd Tracy wrote:
> I recall having a similar problem when I setup a large array a long
> time ago and it was related to the partition table if I remember
> correctly. I wish I could remember more, but that was atleast 2 years
> ago. Hopefully it can lead you in the right direction. I think I
> ended up using and EFI partion table if I remember correctly.
>
> Judd
>
> Dan wrote:
>
>> What concerns me is if I just try and make a single 4.54TB partition
>> as reiserfs without using LVM2 and mount it, it still only shows up
>> as ~560GB using df -h. This makes me think it maybe an os issue.
>> Any thoughts?
>>
>> Barnaby Claydon wrote:
>>
>>> Dan wrote:
>>>
>>>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare
>>>> per raid to get 4.54TB times 2. I want to use LVM2 to make this
>>>> into one ~9TB disk, but when I create the partitions and do a df -h
>>>> they show up as about 560GB each instead of 4.5TB each. I do an
>>>> fdisk -l and they show up correctly. I am using Slackware 10.0. I
>>>> have device-mapper and LVM2 correctly installed. I am obviously
>>>> hitting a 2TB limit from what I have read, but does anyone know if
>>>> it is possible to even do what I want? If so, any suggestions on
>>>> what I need to install to get this to work? I am running the
>>>> 2.6.15.4 kernel. Thanks
>>>>
>>> Dan, from the LVM2 FAQ (
>>> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
>>>
>>> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
>>> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
>>> that is a very large number.)
>>>
>>> From what I recall when I built my last LVM, it's a matter of
>>> setting the PE size during creation (hopefully you haven't started
>>> filling with data yet). I think the default causes you to hit the
>>> 2TB limit, but it can definitely be set higher. The default PE Size
>>> seems to depend on Linux distribution, but mine is at 4MB and I'm at
>>> 1.5TB right now so the references to a 32MB default would definitely
>>> get you to 9TB.
>>>
>>> Sorry I can't offer any other specifics - hope that helps.
>>>
>>> -Barnaby
>>>
>>>
>>> _______________________________________________
>>> linux-lvm mailing list
>>> linux-lvm@redhat.com
>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 21:24 ` Dan
@ 2006-03-28 21:38 ` Barnaby Claydon
2006-03-28 22:16 ` Devon H. O'Dell
0 siblings, 1 reply; 9+ messages in thread
From: Barnaby Claydon @ 2006-03-28 21:38 UTC (permalink / raw)
To: LVM general discussion and development
Dan, you should still be able to use LVM. The pvcreate create command
should still work on each of the two 4.6TB partitions and then use those
two PVs in your LVM.
How far did you get after using Parted and GPT ? Did you get LVM-related
errors that I may not be considering? :)
-Barnaby
Dan wrote:
> It was indeed a partition problem. Thanks. fdisk does not support
> partitions over 2TB so I had to use GNU Parted to setup the partition
> with a GPT label that supports over 2TB. I could then create reiserfs
> filesystems and got two 4.6TB partitions. Unfortunately Parted and
> GPT do not support LVM so I could not raid the two partitions into one
> giant one unless I am missing something. But the 2 partitions will
> work fine for what I need. For anyone who might be interested I found
> the info I needed at the links below:
> http://www.coraid.com/support/linux/contrib/chernow/gpt.html
> http://www.gnu.org/software/parted/manual/html_chapter/
> http://www.wlug.org.nz/GPT
>
> Judd Tracy wrote:
>> I recall having a similar problem when I setup a large array a long
>> time ago and it was related to the partition table if I remember
>> correctly. I wish I could remember more, but that was atleast 2
>> years ago. Hopefully it can lead you in the right direction. I
>> think I ended up using and EFI partion table if I remember correctly.
>>
>> Judd
>>
>> Dan wrote:
>>
>>> What concerns me is if I just try and make a single 4.54TB partition
>>> as reiserfs without using LVM2 and mount it, it still only shows up
>>> as ~560GB using df -h. This makes me think it maybe an os issue.
>>> Any thoughts?
>>>
>>> Barnaby Claydon wrote:
>>>
>>>> Dan wrote:
>>>>
>>>>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare
>>>>> per raid to get 4.54TB times 2. I want to use LVM2 to make this
>>>>> into one ~9TB disk, but when I create the partitions and do a df
>>>>> -h they show up as about 560GB each instead of 4.5TB each. I do
>>>>> an fdisk -l and they show up correctly. I am using Slackware
>>>>> 10.0. I have device-mapper and LVM2 correctly installed. I am
>>>>> obviously hitting a 2TB limit from what I have read, but does
>>>>> anyone know if it is possible to even do what I want? If so, any
>>>>> suggestions on what I need to install to get this to work? I am
>>>>> running the 2.6.15.4 kernel. Thanks
>>>>>
>>>> Dan, from the LVM2 FAQ (
>>>> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
>>>>
>>>> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
>>>> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
>>>> that is a very large number.)
>>>>
>>>> From what I recall when I built my last LVM, it's a matter of
>>>> setting the PE size during creation (hopefully you haven't started
>>>> filling with data yet). I think the default causes you to hit the
>>>> 2TB limit, but it can definitely be set higher. The default PE Size
>>>> seems to depend on Linux distribution, but mine is at 4MB and I'm
>>>> at 1.5TB right now so the references to a 32MB default would
>>>> definitely get you to 9TB.
>>>>
>>>> Sorry I can't offer any other specifics - hope that helps.
>>>>
>>>> -Barnaby
>>>>
>>>>
>>>> _______________________________________________
>>>> linux-lvm mailing list
>>>> linux-lvm@redhat.com
>>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>>
>>>
>>> _______________________________________________
>>> linux-lvm mailing list
>>> linux-lvm@redhat.com
>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>>
>>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 21:38 ` Barnaby Claydon
@ 2006-03-28 22:16 ` Devon H. O'Dell
2006-03-28 22:20 ` Dan
0 siblings, 1 reply; 9+ messages in thread
From: Devon H. O'Dell @ 2006-03-28 22:16 UTC (permalink / raw)
To: LVM general discussion and development
2006/3/28, Barnaby Claydon <bclaydon@volved.com>:
> Dan, you should still be able to use LVM. The pvcreate create command
> should still work on each of the two 4.6TB partitions and then use those
> two PVs in your LVM.
>
> How far did you get after using Parted and GPT ? Did you get LVM-related
> errors that I may not be considering? :)
>
> -Barnaby
I had this problem earlier. The issue ended up being the same: I
forgot to create GPT labels for the partitions. I had 2x4TB arrays I
needed to span into a single 8TB array for several systems. The steps
I use when making these LVM partition are as follows:
parted /dev/sdb
mklabel gpt
mkpart
primary
xfs
0
4196049
select /dev/sdc
mklabel gpt
mkpart
primary
xfs
0
4196049
quit
At the shell, type:
pvcreate --metadatasize 1M /dev/sd{b,c}1
vgcreate -s 128M vg0 /dev/sd[bc]1
lvcreate -n lv0 -L8T vg0
mkfs.xfs /dev/vg0/lv0
The sizes are arbitrary numbers that I got while playing around with
them and are the first ones that actually worked without whining at me
about metadata sizes when creating the logical volume. Dan, LVM
doesn't really care about the partition label. You should be able to
do what I did above (but then with ReiserFS) to get what you need.
With standard DOS partitions this will not work, as they only support
2^32-1 bytes.
--Devon
> Dan wrote:
> > It was indeed a partition problem. Thanks. fdisk does not support
> > partitions over 2TB so I had to use GNU Parted to setup the partition
> > with a GPT label that supports over 2TB. I could then create reiserfs
> > filesystems and got two 4.6TB partitions. Unfortunately Parted and
> > GPT do not support LVM so I could not raid the two partitions into one
> > giant one unless I am missing something. But the 2 partitions will
> > work fine for what I need. For anyone who might be interested I found
> > the info I needed at the links below:
> > http://www.coraid.com/support/linux/contrib/chernow/gpt.html
> > http://www.gnu.org/software/parted/manual/html_chapter/
> > http://www.wlug.org.nz/GPT
> >
> > Judd Tracy wrote:
> >> I recall having a similar problem when I setup a large array a long
> >> time ago and it was related to the partition table if I remember
> >> correctly. I wish I could remember more, but that was atleast 2
> >> years ago. Hopefully it can lead you in the right direction. I
> >> think I ended up using and EFI partion table if I remember correctly.
> >>
> >> Judd
> >>
> >> Dan wrote:
> >>
> >>> What concerns me is if I just try and make a single 4.54TB partition
> >>> as reiserfs without using LVM2 and mount it, it still only shows up
> >>> as ~560GB using df -h. This makes me think it maybe an os issue.
> >>> Any thoughts?
> >>>
> >>> Barnaby Claydon wrote:
> >>>
> >>>> Dan wrote:
> >>>>
> >>>>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare
> >>>>> per raid to get 4.54TB times 2. I want to use LVM2 to make this
> >>>>> into one ~9TB disk, but when I create the partitions and do a df
> >>>>> -h they show up as about 560GB each instead of 4.5TB each. I do
> >>>>> an fdisk -l and they show up correctly. I am using Slackware
> >>>>> 10.0. I have device-mapper and LVM2 correctly installed. I am
> >>>>> obviously hitting a 2TB limit from what I have read, but does
> >>>>> anyone know if it is possible to even do what I want? If so, any
> >>>>> suggestions on what I need to install to get this to work? I am
> >>>>> running the 2.6.15.4 kernel. Thanks
> >>>>>
> >>>> Dan, from the LVM2 FAQ (
> >>>> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
> >>>>
> >>>> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
> >>>> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
> >>>> that is a very large number.)
> >>>>
> >>>> From what I recall when I built my last LVM, it's a matter of
> >>>> setting the PE size during creation (hopefully you haven't started
> >>>> filling with data yet). I think the default causes you to hit the
> >>>> 2TB limit, but it can definitely be set higher. The default PE Size
> >>>> seems to depend on Linux distribution, but mine is at 4MB and I'm
> >>>> at 1.5TB right now so the references to a 32MB default would
> >>>> definitely get you to 9TB.
> >>>>
> >>>> Sorry I can't offer any other specifics - hope that helps.
> >>>>
> >>>> -Barnaby
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> linux-lvm mailing list
> >>>> linux-lvm@redhat.com
> >>>> https://www.redhat.com/mailman/listinfo/linux-lvm
> >>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >>>
> >>>
> >>> _______________________________________________
> >>> linux-lvm mailing list
> >>> linux-lvm@redhat.com
> >>> https://www.redhat.com/mailman/listinfo/linux-lvm
> >>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> >>
> >>
> >>
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] LVM2 with disks greater than 2TB
2006-03-28 22:16 ` Devon H. O'Dell
@ 2006-03-28 22:20 ` Dan
0 siblings, 0 replies; 9+ messages in thread
From: Dan @ 2006-03-28 22:20 UTC (permalink / raw)
To: LVM general discussion and development
Yeah I thought it would care about the partition label so I made a bad
assumption it had to be lvm when it doesn't at all. It worked fine with
reiserfs and now I have my 9.09TB partition. Thanks everyone for the help.
Devon H. O'Dell wrote:
> 2006/3/28, Barnaby Claydon <bclaydon@volved.com>:
>
>> Dan, you should still be able to use LVM. The pvcreate create command
>> should still work on each of the two 4.6TB partitions and then use those
>> two PVs in your LVM.
>>
>> How far did you get after using Parted and GPT ? Did you get LVM-related
>> errors that I may not be considering? :)
>>
>> -Barnaby
>>
>
> I had this problem earlier. The issue ended up being the same: I
> forgot to create GPT labels for the partitions. I had 2x4TB arrays I
> needed to span into a single 8TB array for several systems. The steps
> I use when making these LVM partition are as follows:
>
> parted /dev/sdb
> mklabel gpt
> mkpart
> primary
> xfs
> 0
> 4196049
> select /dev/sdc
> mklabel gpt
> mkpart
> primary
> xfs
> 0
> 4196049
> quit
>
> At the shell, type:
>
> pvcreate --metadatasize 1M /dev/sd{b,c}1
> vgcreate -s 128M vg0 /dev/sd[bc]1
> lvcreate -n lv0 -L8T vg0
> mkfs.xfs /dev/vg0/lv0
>
> The sizes are arbitrary numbers that I got while playing around with
> them and are the first ones that actually worked without whining at me
> about metadata sizes when creating the logical volume. Dan, LVM
> doesn't really care about the partition label. You should be able to
> do what I did above (but then with ReiserFS) to get what you need.
>
> With standard DOS partitions this will not work, as they only support
> 2^32-1 bytes.
>
> --Devon
>
>
>> Dan wrote:
>>
>>> It was indeed a partition problem. Thanks. fdisk does not support
>>> partitions over 2TB so I had to use GNU Parted to setup the partition
>>> with a GPT label that supports over 2TB. I could then create reiserfs
>>> filesystems and got two 4.6TB partitions. Unfortunately Parted and
>>> GPT do not support LVM so I could not raid the two partitions into one
>>> giant one unless I am missing something. But the 2 partitions will
>>> work fine for what I need. For anyone who might be interested I found
>>> the info I needed at the links below:
>>> http://www.coraid.com/support/linux/contrib/chernow/gpt.html
>>> http://www.gnu.org/software/parted/manual/html_chapter/
>>> http://www.wlug.org.nz/GPT
>>>
>>> Judd Tracy wrote:
>>>
>>>> I recall having a similar problem when I setup a large array a long
>>>> time ago and it was related to the partition table if I remember
>>>> correctly. I wish I could remember more, but that was atleast 2
>>>> years ago. Hopefully it can lead you in the right direction. I
>>>> think I ended up using and EFI partion table if I remember correctly.
>>>>
>>>> Judd
>>>>
>>>> Dan wrote:
>>>>
>>>>
>>>>> What concerns me is if I just try and make a single 4.54TB partition
>>>>> as reiserfs without using LVM2 and mount it, it still only shows up
>>>>> as ~560GB using df -h. This makes me think it maybe an os issue.
>>>>> Any thoughts?
>>>>>
>>>>> Barnaby Claydon wrote:
>>>>>
>>>>>
>>>>>> Dan wrote:
>>>>>>
>>>>>>
>>>>>>> I have 24 - 500GB drives raided such that 11 drives + 1 hot spare
>>>>>>> per raid to get 4.54TB times 2. I want to use LVM2 to make this
>>>>>>> into one ~9TB disk, but when I create the partitions and do a df
>>>>>>> -h they show up as about 560GB each instead of 4.5TB each. I do
>>>>>>> an fdisk -l and they show up correctly. I am using Slackware
>>>>>>> 10.0. I have device-mapper and LVM2 correctly installed. I am
>>>>>>> obviously hitting a 2TB limit from what I have read, but does
>>>>>>> anyone know if it is possible to even do what I want? If so, any
>>>>>>> suggestions on what I need to install to get this to work? I am
>>>>>>> running the 2.6.15.4 kernel. Thanks
>>>>>>>
>>>>>>>
>>>>>> Dan, from the LVM2 FAQ (
>>>>>> http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html ) it mentions:
>>>>>>
>>>>>> * For 32-bit CPUs on 2.6 kernels, the maximum LV size is 16TB.
>>>>>> * For 64-bit CPUs on 2.6 kernels, the maximum LV size is 8EB. (Yes,
>>>>>> that is a very large number.)
>>>>>>
>>>>>> From what I recall when I built my last LVM, it's a matter of
>>>>>> setting the PE size during creation (hopefully you haven't started
>>>>>> filling with data yet). I think the default causes you to hit the
>>>>>> 2TB limit, but it can definitely be set higher. The default PE Size
>>>>>> seems to depend on Linux distribution, but mine is at 4MB and I'm
>>>>>> at 1.5TB right now so the references to a 32MB default would
>>>>>> definitely get you to 9TB.
>>>>>>
>>>>>> Sorry I can't offer any other specifics - hope that helps.
>>>>>>
>>>>>> -Barnaby
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> linux-lvm mailing list
>>>>>> linux-lvm@redhat.com
>>>>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>>>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>>>>>
>>>>> _______________________________________________
>>>>> linux-lvm mailing list
>>>>> linux-lvm@redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>>>>
>>>>
>>>>
>>> _______________________________________________
>>> linux-lvm mailing list
>>> linux-lvm@redhat.com
>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-03-28 22:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-27 22:56 [linux-lvm] LVM2 with disks greater than 2TB Dan
2006-03-28 0:39 ` Barnaby Claydon
2006-03-28 18:02 ` Dan
2006-03-28 19:20 ` Judd Tracy
2006-03-28 19:49 ` Dan
2006-03-28 21:24 ` Dan
2006-03-28 21:38 ` Barnaby Claydon
2006-03-28 22:16 ` Devon H. O'Dell
2006-03-28 22:20 ` Dan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.