Large Filesystem Support?
Hey Reiser team & fellow Reiser users.
iI have a system with 3x 3TB HW RAID5 volumes, using the latest 2.6.11.2 kernel & reiser4-utils 1.0.4.
Using mdadm I've created a raid0 for all 3 volumes which is /dev/md0. This makes quite a large 9TB partition. Reading the FAQ on Reiser (3.6), I was expecting to be well within the limits of the 17TB partition size limit.
These are the results from trying to create the partition:
# mkfs.reiser4 /dev/md0 mkfs.reiser4 1.0.4 Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by reiser4progs/COPYING.
Block size 4096 will be used.
Linux 2.6.11.2 is detected.
Uuid f15dfd7a-8112-4f0a-96af-5ab781bdd2e4 will be used.
Fatal: The partition size is too big.
Reiser4 is going to be created on /dev/md0. (Yes/No): yes
Fatal: The partition size is too big.
Error: Can't initialize block allocator.
Error: Can't create filesystem on /dev/md0.
Unfortunately reiser4 cannot make the large partition. I have yet to use reiser3.6 assuming that reiser4 is the successor.
Could someone please advise how I would get reiserfs on my large partition.
Thanks,
Naveen Nathan
Hello,
what your configure tells about _FILE_OFFSET_BITS & _LARGE_FILES? if it cannot detect the right value, probably the attached patches for configure.in would help.
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 27 lines · Naveen Nathan
Hey Reiser team & fellow Reiser users.
iI have a system with 3x 3TB HW RAID5 volumes, using the latest 2.6.11.2 kernel & reiser4-utils 1.0.4.
Using mdadm I've created a raid0 for all 3 volumes which is
/dev/md0. This makes quite a large 9TB partition. Reading the FAQ on Reiser (3.6), I was expecting to be well within the limits of the 17TB partition size limit.These are the results from trying to create the partition:
# mkfs.reiser4 /dev/md0 mkfs.reiser4 1.0.4 Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by reiser4progs/COPYING.Block size 4096 will be used.
Linux 2.6.11.2 is detected.
Uuid f15dfd7a-8112-4f0a-96af-5ab781bdd2e4 will be used.
Fatal: The partition size is too big.
Reiser4 is going to be created on/dev/md0. (Yes/No): yes
Fatal: The partition size is too big.
Error: Can't initialize block allocator.
Error: Can't create filesystem on/dev/md0.
Quoted 9 lines
Unfortunately reiser4 cannot make the large partition. I have yet to use reiser3.6 assuming that reiser4 is the successor.
Could someone please advise how I would get reiserfs on my large partition.
Thanks,
Naveen Nathan
===== configure.in 1.52 vs edited =====
configure.in +5 -2
@@ -137,9 +136,12 @@ GENERIC_CFLAGS="" GENERIC_CFLAGS="$GENERIC_CFLAGS -D_REENTRANT" AC_SYS_LARGEFILE -if test x${ac_cv_sys_file_offset_bits} != x; then - GENERIC_CFLAGS="$GENERIC_CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}" +if test -z "${ac_cv_sys_file_offset_bits}"; then + AC_MSG_WARN(Can't detect right _FILE_OFFSET_BITS. Will be forced to 64bit.) + ac_cv_sys_file_offset_bits=64 fi + +GENERIC_CFLAGS="$GENERIC_CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}" AC_CHECK_SIZEOF(off_t, 64, [ #include <stdio.h>
===== configure.in 1.241 vs edited =====
configure.in +5 -2
@@ -417,9 +413,12 @@ fi # Check for large file AC_SYS_LARGEFILE -if test x${ac_cv_sys_file_offset_bits} != x; then - GENERIC_CFLAGS="$GENERIC_CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}" +if test -z "${ac_cv_sys_file_offset_bits}"; then + AC_MSG_WARN(Can't detect right _FILE_OFFSET_BITS. Will be forced to 64bit.) + ac_cv_sys_file_offset_bits=64 fi + +GENERIC_CFLAGS="$GENERIC_CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}" AC_CHECK_SIZEOF(off_t, 64, [ #include <stdio.h>
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Naveen Nathan
Thanks for the patch, however I do not think it's working (yet), and/or there is some misconfiguration on our server.
From both the unpatched and patched versions of libaal and reiser4progs 1.0.4.
checking for
_FILE_OFFSET_BITSvalue needed for large files... no checking for_LARGE_FILESvalue needed for large files... no
the patches change cofigure.in, so you need to run autoconf before running confgure.
Quoted 3 lines
I've included a typescript for the compile and install of both libaal and the reiser 4 utils. This may help to analyze what is going on.
thanks for compilation warnings, a few wrong castings were fixed.
Quoted 6 lines
Also, it may be helpful, but I forgot to mention that the kernel also has support for large block devices. I had also tried reiser 3.6 and it could only make a 2.8TB partition.
Regards,
Naveen Nathan
Signature · 2 lines
Thanks, Vitaly Fertman
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Naveen Nathan
Quoted 2 lines
the patches change cofigure.in, so you need to run autoconf before running confgure.
I ran autoconf after applying the patch, and compiled libaal. I'm still receiving for both libaal & reiser4utils:
checking for
_FILE_OFFSET_BITSvalue needed for large files... no checking for_LARGE_FILESvalue needed for large files... noI've included a log for just for libaal.
would you apply this patch instead of the previous one to libaal.
Signature · 2 lines
Thanks, Vitaly Fertman
===== configure.in 1.52 vs edited =====
configure.in +5 -2
@@ -137,9 +136,12 @@ GENERIC_CFLAGS="" GENERIC_CFLAGS="$GENERIC_CFLAGS -D_REENTRANT" AC_SYS_LARGEFILE -if test x${ac_cv_sys_file_offset_bits} != x; then - GENERIC_CFLAGS="$GENERIC_CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}" +if test -z "${ac_cv_sys_file_offset_bits}"; then + AC_MSG_WARN(Can't detect right _FILE_OFFSET_BITS. Will be forced to 64bit.) + ac_cv_sys_file_offset_bits=64 fi + +GENERIC_CFLAGS="$GENERIC_CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}" AC_CHECK_SIZEOF(off_t, 64, [ #include <stdio.h>
===== src/file.c 1.16 vs edited =====
src/file.c +3 -14
@@ -209,18 +209,8 @@ static count_t file_len(return INVAL_BLK ;#ifdef BLKGETSIZE64 -if ((int )ioctl (*((int *)device->entity),BLKGETSIZE64 , &size) >= (int )0 ) { -uint32_t block_count; - - size = (size /4096 ) *4096 / device->blksize; - block_count = size; - -if ((uint64_t )block_count != size) { -aal_fatal ("The partition size is too big." ); -return INVAL_BLK ; - } - -return (count_t )block_count; +if (ioctl (*((int *)device->entity),BLKGETSIZE64 , &size) >=0 ) { +return size / device->blksize; }#endif
@@ -231,8 +221,7 @@ static count_t file_len(if (ioctl (*((int *)device->entity),BLKGETSIZE , &l_size) >=0 ) { size = l_size; -return (count_t)((size *512 /4096 ) *4096 / - device->blksize); +return size *512 / device->blksize; } }
Quoted 7 lines · Vitaly Fertman
Quoted 6 lines · Naveen Nathan
Quoted 2 lines
the patches change cofigure.in, so you need to run autoconf before running confgure.
I ran autoconf after applying the patch, and compiled libaal. I'm still receiving for both libaal & reiser4utils:
Quoted 6 lines
Quoted 4 lines
checking for
_FILE_OFFSET_BITSvalue needed for large files... no checking for_LARGE_FILESvalue needed for large files... noI've included a log for just for libaal.
would you apply this patch instead of the previous one to libaal.
I've applied the patch, and I still get:
checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no
Although I haven't said this earlier, this may help find the problem, especially if these work on your development boxes. We're running Redhat ES4 and we took the stock kernel config, added the reiser options and recompiled against 2.6.11.2 kernel. I've always known stock redhat to be difficult about anything that is not within the vendor limitations. Well like most commercial software anyways.
I've attached the compile log.
Thanks,
Naveen Nathan