errors with very large reiserfs partition (was: Re: Software Raid0 problem (Update))
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Stuart,
I hope you don't mind that I inform the reiserfs team about your tests and the resulting error for reiserfs by cc'ing them.
Stuart Levy wrote (ao):
Quoted 79 lines · Max Kipness
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
Anybody know what might be wrong with adding the 3rd drive? Is there a limit on TB in 2.6?
Joshua> According to <http://www.kniggit.net/wwol26.html>, you Joshua> should be able to do 16TB on x86. I wonder if there isn't Joshua> some limit in the md layer that you're hitting, or maybe Joshua> something in userland in FC1 that's limiting you. You may Joshua> want to ask in linux-raid, fedora-list, or even Joshua> linux-kernel.
Quoted 8 lines
Quoted 3 lines
I'd suggest mailing the LVM and/or EVMS mailing lists. Certainly, EVMS, which I've been running at home for a while, has been very impressive.
Hmmm...I might give EVMS a try. I have received no other information anywhere on what the problem might be. I'm pretty sure that Windows 2003 Storage Server can do this but you only NAS OEMs are able to get a hold of it.
I've been doing some experiments. Don't have a 5TB disk array lying around, but it was easy to make a 5TB holey UNIX file and run mke2fs and mkfs.xfs on it, on a 2.4.25-pre6 kernel with RH8 tools and XFS patches.
Result: I'll bet the logical-volume stuff is working perfectly and giving you a 5TB partition; it's the filesystem tools that are limiting what you get.
RH8's mke2fs seems to wrap the partition size modulo 4TB. If I tell it the number of 4K blocks explicitly (e.g. 1310720000 for my 5368709120000-byte file) it warns that I'm giving it a size larger than the amount of space actually available.
mkfs.xfs (from xfsprogs-2.3.5-1), on the other hand, happily does create a 5TB filesystem, and correctly detects its size -- it does use 1310720000 4K blocks. However, I can't 'mount -o loop' the resulting filesystem; the kernel reports:
XFS: File system is too large to be mounted on this system.This turns out to come from a test in
fs/xfs/xfs_mount.c:#if !XFS_BIG_BLKNOS if (unlikely( (sbp->sb_dblocks << (__uint64_t)(sbp->sb_blocklog - BBSHIFT)) > UINT_MAX || (sbp->sb_rblocks << (__uint64_t)(sbp->sb_blocklog - BBSHIFT)) > UINT_MAX)) { cmn_err(CE_WARN, "XFS: File system is too large to be mounted on this system."); return XFS_ERROR(E2BIG); }#endif
And,
XFS_BIG_BLKNOSis indeed false;fs/xfs/linux/xfs_linux.h#define's it to 0, with the comment
* Some types are conditional depending on the target system.
*XFS_BIG_BLKNOSneeds block layer disk addresses to be 64 bits.mkreiserfs was willing to create a large filesystem too, but got errors when I tried to mount and use it. For example:
07:00: rw=0, want=2146566148, limit=947912704 attempt to access beyond end of deviceQuoted 2 lines
We tried Fedora Core 2 Beta and had the same results of 800Gb total instead of 5TB. I can't believe linux has this barrier.
Doesn't Fedora Core 2 have a 2.6 kernel?
If so, try mkfs.xfs rather than mke2fs (which is probably what you get when you just "mkfs" by default). I don't have a 2.6 system to try this on, but ISTR they have enlarged the size of disk block addresses. Clearly the XFS user-level tools already deal with big filesystems, probably correctly; if the kernel code does too, you might be in good shape.
Happy pioneering,
Stuart
Signature · 2 lines
Humilis IT Services and Solutions http://www.humilis.net
Quoted 4 lines · Sander
Hi Stuart,
I hope you don't mind that I inform the reiserfs team about your tests and the resulting error for reiserfs by cc'ing them.
Great, thanks.
It's probably not strictly a reiserfs problem, except that
(like the XFS implementors) they could try to detect the problem at mount time on systems with 32-bit block addressing, and refuse to mount large filesystems.
I just checked fs/xfs/linux/xfs_linux.h for the 2.6.4 kernel. They conditionally enable XFS_BIG_BLKNOS under either of two conditions:
either CONFIG_LBD is set (the Large Block Device option, which somebody mentioned earlier in this linux-ide-arrays thread), or BITS_PER_LONG == 64.
Stuart