Skip to contentSkip to conversation

2 TB limit

linux-lvm Brad Vrabete 7 participants 7 messages Mar 25, 2004 – Sep 3, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

Is there any was to create a logigal volume larger than 2TB? Can LVM2 do that?

Thanks,

Brad Vrabete

#1 lore raw
Quoted 2 lines · Brad Vrabete

Is there any was to create a logigal volume larger than 2TB? Can LVM2 do that?

you need to use 2.6.x (or find a patch for 2.4.x) as onty his kernel supports large block devices.

Or you might have luck with x86_64 (aka AMD Opterons)

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /                     (c) 2003 as GNU FDL 1.1
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
#2 lore raw
In reply to Brad Vrabete
Quoted 2 lines · Brad Vrabete

Is there any was to create a logigal volume larger than 2TB? Can LVM2 do that?

I think it can. However tha maximum size for a block device in 2.4 kernels is 2TB. You should try 2.6, and use large enough PE size.

#3 lore raw
Quoted 7 lines · Delian Krustev
Quoted 2 lines · Brad Vrabete

Is there any was to create a logigal volume larger than 2TB? Can LVM2 do that?

I think it can. However tha maximum size for a block device in 2.4 kernels is 2TB. You should try 2.6, and use large enough PE size.

The PE size limitation isn't present in lvm2 (The version of lvm that works in 2.6) if you use the native lvm2 format. So you should be able to create larger than 2TB LVs with LVM2. Just FYI.

Signature · 11 lines
AJ Lewis                                   Voice:  612-638-0500
Red Hat Inc.                               E-Mail: [email protected]
720 Washington Ave. SE, Suite 200
Minneapolis, MN 55414

Current GPG fingerprint = FE77 4B43 6A9B F982 A731  02FA 2BF5 7574 294A AA5A
Grab the key at: http://people.redhat.com/alewis/gpg.html or one of the
many keyservers out there...
-----Begin Obligatory Humorous Quote----------------------------------------
File not found. Should I fake it? (Y/N)
-----End Obligatory Humorous Quote------------------------------------------
#4 lore raw
Quoted 3 lines · AJ Lewis

The PE size limitation isn't present in lvm2 (The version of lvm that works in 2.6) if you use the native lvm2 format. So you should be able to create larger than 2TB LVs with LVM2. Just FYI.

As those of you monitoring the lvm-cvs mailing list may have noticed, I've added code to the LVM2 CVS tree to help people simulate large devices for testing purposes on 2.6 kernels with the latest -udm patches.

lvcreate --type zero -L16T vg # Create 16TB 'zero' device
lvcreate -s vg/lvol0 -L1G # Create snapshot of it

Then use the snapshot as a 'sparse' device, in the example, supporting upto 1GB of actual data.

[At some point I'll merge it into a one-line command with --type sparse]

NB There's been a lot of change in CVS recently (and more to come) so I expect some new bugs to show up along with the new features:-(

Alasdair

Signature · 1 line
[email protected]
#5 lore raw
Quoted 16 lines · Alasdair G Kergon
Quoted 3 lines · AJ Lewis

The PE size limitation isn't present in lvm2 (The version of lvm that works in 2.6) if you use the native lvm2 format. So you should be able to create larger than 2TB LVs with LVM2. Just FYI.

As those of you monitoring the lvm-cvs mailing list may have noticed, I've added code to the LVM2 CVS tree to help people simulate large devices for testing purposes on 2.6 kernels with the latest -udm patches.

lvcreate --type zero -L16T vg # Create 16TB 'zero' device
lvcreate -s vg/lvol0 -L1G # Create snapshot of it

Then use the snapshot as a 'sparse' device, in the example, supporting upto 1GB of actual data.

Quoted 6 lines

[At some point I'll merge it into a one-line command with --type sparse]

NB There's been a lot of change in CVS recently (and more to come) so I expect some new bugs to show up along with the new features:-(

Alasdair

Being confined to running RedHat and using their updates and RPMs, I'm running stock RHEL-ES3 file servers with latest RH kernel of 2.4.21-15.0.4.ELsmp and lvm-1.0.3-15. I'm led to understand that the ES3 kernel has portions of the 2.6 kernel in it, but I don't think it has the portion that can handle >2TB file systems.

I have had a need to go to >2TB file systems for some time and am sort of limping along by stringing together many 2TB file systems.

Can anyone (perhaps our list contributor from RedHat?) tell me when I can expect a kernel and lvm from RedHat that will allow me to go beyond the 2TB limit?

Thanks!
- Larry

Signature · 6 lines
P. Larry Nelson (217-244-9855) | Systems/Network Administrator
461 Loomis Lab                 | U of I, CITES Departmental Services
1110 W. Green St., Urbana, IL  | Consultant to: High Energy Physics Group
MailTo:[email protected]        | http://www.uiuc.edu/ph/www/lnelson
-------------------------------------------------------------------------
 "Information without accountability is just noise."  - P.L. Nelson
#6 lore raw
Quoted 36 lines · P. Larry Nelson
Quoted 17 lines · Alasdair G Kergon
Quoted 3 lines · AJ Lewis

The PE size limitation isn't present in lvm2 (The version of lvm that works in 2.6) if you use the native lvm2 format. So you should be able to create larger than 2TB LVs with LVM2. Just FYI.

As those of you monitoring the lvm-cvs mailing list may have noticed, I've added code to the LVM2 CVS tree to help people simulate large devices for testing purposes on 2.6 kernels with the latest -udm patches.

lvcreate --type zero -L16T vg # Create 16TB 'zero' device
lvcreate -s vg/lvol0 -L1G # Create snapshot of it

Then use the snapshot as a 'sparse' device, in the example, supporting upto 1GB of actual data.

Quoted 6 lines

[At some point I'll merge it into a one-line command with --type sparse]

NB There's been a lot of change in CVS recently (and more to come) so I expect some new bugs to show up along with the new features:-(

Alasdair

Being confined to running RedHat and using their updates and RPMs, I'm running stock RHEL-ES3 file servers with latest RH kernel of 2.4.21-15.0.4.ELsmp and lvm-1.0.3-15. I'm led to understand that the ES3 kernel has portions of the 2.6 kernel in it, but I don't think it has the portion that can handle >2TB file systems.

I have had a need to go to >2TB file systems for some time and am sort of limping along by stringing together many 2TB file systems.

Quoted 6 lines

Can anyone (perhaps our list contributor from RedHat?) tell me when I can expect a kernel and lvm from RedHat that will allow me to go beyond the 2TB limit?

Thanks!
- Larry

I happened to look into this over the past few months. Redhat Enterprise Linux v3 does NOT have any support for >2TB _anything_. Redhat has told me that >2TB support, which would mean kernel v2.6 (and probably LVM2) will only be available when Enterprise v4 comes out. Also, v4 is scheduled to be out in probably about 10 more months now, maybe less (at the time it was 13-15 months).

HTH

Peter