Skip to contentSkip to conversation

create very large file system

DISCUSSION Mark F 9 participants 13 messages Jul 19, 2006 – Jul 21, 2006

lore
Share & tools
lore

Mark F

author
#0 lore raw

Suse Linux Enterprise Server 9 SP3

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

I end up with only a 1.5TB file system. Does anyone know why this doesn't work, what to do to fix it?

Others have suggested that only XFS or JFS will work. Is this so?

Thanks,
-Mark

#1 lore raw
Quoted 4 lines · Mark F

Suse Linux Enterprise Server 9 SP3

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

how did they fail?

Quoted 3 lines

I end up with only a 1.5TB file system. Does anyone know why this doesn't work, what to do to fix it?

you have a single 5TB device? h/w raid, I think ?

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Quoted 4 lines

Others have suggested that only XFS or JFS will work. Is this so?

Thanks,
-Mark

Signature · 1 line
Alex.
author
#2 lore raw
Quoted 8 lines · Alexander Zarochentsev
Quoted 4 lines · Mark F

Suse Linux Enterprise Server 9 SP3

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

how did they fail?

When I create the partition using cfdisk it appeared to be created correctly, now I have discovered that it is not.

I thought the problem was with the mkfs.<filesystem> commands but it looks like it is a bit deeper than that.

Quoted 4 lines
Quoted 2 lines

I end up with only a 1.5TB file system. Does anyone know why this doesn't work, what to do to fix it?

you have a single 5TB device? h/w raid, I think ?

Yes, Orion 12S RAID Array. 12x500GB drives

Quoted 3 lines

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Thanks, I don't know what GPT format is but I'll try to figure it out, I'm compiling/installing gparted right now.

-Mark

Quoted 6 lines
Quoted 4 lines

Others have suggested that only XFS or JFS will work. Is this so?

Thanks,
-Mark

#3 lore raw
In reply to Alexander Zarochentsev
Quoted 6 lines · Alexander Zarochentsev
Quoted 2 lines · Mark F

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Or, for that matter, don't use a partition table at all, since this adds an unhelpful offset to all the filesystem structures and can hurt performance on RAID where the filesystem is trying to align IO to RAID stripe boundaries.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

#4 lore raw
Quoted 5 lines · Andreas Dilger
Quoted 4 lines · Alexander Zarochentsev
Quoted 2 lines · Mark F

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

Quoted 7 lines
Quoted 2 lines

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Or, for that matter, don't use a partition table at all, since this adds an unhelpful offset to all the filesystem structures and can hurt performance on RAID where the filesystem is trying to align IO to RAID stripe boundaries.

Well, damn. Too late for that to help me. I've a 700GB that's... rather too full to put on DVDs or my other drives to fix that. There isn't some "safe" way to remove a partition table from a SW RAID array, is there?

--Clay

Quoted 6 lines

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

#5 lore raw
Quoted 6 lines · Clay Barnes
Quoted 5 lines · Andreas Dilger
Quoted 4 lines · Alexander Zarochentsev
Quoted 2 lines · Mark F

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Quoted 8 lines
Quoted 4 lines

Or, for that matter, don't use a partition table at all, since this adds an unhelpful offset to all the filesystem structures and can hurt performance on RAID where the filesystem is trying to align IO to RAID stripe boundaries.

Well, damn. Too late for that to help me. I've a 700GB that's... rather too full to put on DVDs or my other drives to fix that. There isn't some "safe" way to remove a partition table from a SW RAID array, is there?

Define "safe". You could probably do it non-destructively with dd, if you set the block size properly. That doesn't make it safe, though, you're basically screwed if you lose power.

And even once you do that, I don't think the Reiser4 tools would let you resize.

Anyway, I haven't tried this myself, as my SW RAID does actually have multiple partitions, for good reason.

#6 lore raw
In reply to Andreas Dilger
Quoted 5 lines · Andreas Dilger
Quoted 4 lines · Alexander Zarochentsev
Quoted 2 lines · Mark F

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

Quoted 7 lines
Quoted 2 lines

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Or, for that matter, don't use a partition table at all, since this adds an unhelpful offset to all the filesystem structures and can hurt performance on RAID where the filesystem is trying to align IO to RAID stripe boundaries.

Can linux still auto-detect raid volumes if there's no partition table?

Signature · 2 lines
Regards,
Christian Iversen
#7 lore raw
Quoted 9 lines · Christian Iversen
Quoted 8 lines · Andreas Dilger
Quoted 6 lines · Alexander Zarochentsev
Quoted 2 lines · Mark F

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Quoted 6 lines
Quoted 4 lines

Or, for that matter, don't use a partition table at all, since this adds an unhelpful offset to all the filesystem structures and can hurt performance on RAID where the filesystem is trying to align IO to RAID stripe boundaries.

Can linux still auto-detect raid volumes if there's no partition table?

Hmm, that I'm not sure of - we mostly deal with external RAID devices.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

#8 lore raw
In reply to Christian Iversen
Quoted 9 lines · Christian Iversen
Quoted 8 lines · Andreas Dilger
Quoted 6 lines · Alexander Zarochentsev
Quoted 2 lines · Mark F

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

you might need to convert the partition table to GPT format for supporting 2TB+ partitions. it can be done by the gnu parted tool.

Quoted 6 lines
Quoted 4 lines

Or, for that matter, don't use a partition table at all, since this adds an unhelpful offset to all the filesystem structures and can hurt performance on RAID where the filesystem is trying to align IO to RAID stripe boundaries.

Can linux still auto-detect raid volumes if there's no partition table?

You're not supposed to be doing it that way these days. RAID autodetect is getting tossed out of the kernel in the future (probably still many versions away though), and RAID, DM, LVM, and maybe even regular partition setup is going to be done in initramfs / initrd.

At least, that is what I read.

Signature · 2 lines
Jonathan Briggs <[email protected]>
eSoft, Inc.
#9 lore raw
Quoted 2 lines · Jonathan Briggs

You're not supposed to be doing it that way these days. RAID autodetect is getting tossed out of the kernel in the future (probably still many

Bit OT, but is there something that is supposed to replace RAID autodetect, or we're just supposed to make initscripts to run mdadm?

Signature · 3 lines
avuton
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
#10 lore raw
Quoted 6 lines · Avuton Olrich
Quoted 2 lines · Jonathan Briggs

You're not supposed to be doing it that way these days. RAID autodetect is getting tossed out of the kernel in the future (probably still many

Bit OT, but is there something that is supposed to replace RAID autodetect, or we're just supposed to make initscripts to run mdadm?

I'm not sure, but I suspect it may have something to do with the device-mapper. I know that's what I use for a striped array -- and yes, I have to make an initscript -- initrd, because I boot off the thing -- to set them up. The good news is, the detection can be done in userland now -- since mine is nvidia raid, I can use dmraid, which runs entirely in userland, autodetects from BIOS settings, then sets up a proper device-mapper table in the kernel.

Device-mapper doesn't support everything yet (as far as I know), but the principle should be about the same for more complex RAID -- some userland tool. There really is no reason for this autodetection to be in the kernel.

In the meantime, there may be rough edges...

#11 lore raw
In reply to Mark F

Hi,

Quoted 7 lines · Mark F

Suse Linux Enterprise Server 9 SP3

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

I end up with only a 1.5TB file system. Does anyone know why this doesn't work, what to do to fix it?

I fixed a bug in mke2fs that had this result over a year ago, so a recent e2fsprogs should fix it.

Failing that, there's a workaround: use "mke2fs -b 4096" to prevent mke2fs from trying to work out the device size in units of 1k blocks. Counting in 4k blocks prevents a 32-bit overflow.

--Stephen

author
#12 lore raw
Quoted 9 lines · Stephen Tweedie

Hi,

Quoted 5 lines · Mark F

Suse Linux Enterprise Server 9 SP3

I've tried to create a large 5TB file system using both reiserfs and ext3 and both have failed.

I end up with only a 1.5TB file system. Does anyone know why this doesn't work, what to do to fix it?

Quoted 8 lines

I fixed a bug in mke2fs that had this result over a year ago, so a recent e2fsprogs should fix it.

Failing that, there's a workaround: use "mke2fs -b 4096" to prevent mke2fs from trying to work out the device size in units of 1k blocks. Counting in 4k blocks prevents a 32-bit overflow.

--Stephen

Thanks,

I finally got it formated using the GPT label with parted. I formatted it reiserfs, it takes a few seconds to mount but seems to work fine and shows up at full size.

-Mark