linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Cc: linux-nfs@vger.kernel.org
Subject: Re: 64bit inodes and IA32 apps over NFS
Date: Sat, 14 Aug 2010 20:58:13 -0400	[thread overview]
Message-ID: <1281833894.9828.3.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <20100813144703.GP20901@ics.muni.cz>

On Fri, 2010-08-13 at 16:47 +0200, Lukas Hejtmanek wrote:
> Hello,
> 
> is there any workaround for NFSv4 when exporting XFS with 64bit inodes?
> 
> IA32 apps receives:
> getdents(3, 0xb7571008, 1000)           = -1 EOVERFLOW (Value too large for defined data type)
> 
> when compiling on x86_64, I got not error.
> 
> From the XFS man page:
> By default, with 32bit inodes, XFS places inodes only in the first 1TB of
> a disk. If you have a disk with 100TB, all inodes will be stuck in the first
> TB. This can lead to strange things like "disk full" when you still have
> plenty space free, but there's no more place in the first TB to create a new
> inode. Also, performance sucks.
> 
> To come around this, use the inode64 mount options for filesystems >1TB.
> Inodes will then be placed in the location where their data is, minimizing
> disk seeks.
> 
> Beware that some old programs might have problems reading 64bit inodes,
> especially over NFS.
> 
> 
> So, is there any workaround in NFS for IA32 apps?
> 

[trondmy@heimdal linux_nfs-2.6]$ less Documentation/kernel-parameters.txt

        nfs.enable_ino64=
                        [NFS] enable 64-bit inode numbers.
                        If zero, the NFS client will fake up a 32-bit inode
                        number for the readdir() and stat() syscalls instead
                        of returning the full 64-bit number.
                        The default is to return 64-bit inode numbers.

Trond

      reply	other threads:[~2010-08-15  0:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-13 14:47 64bit inodes and IA32 apps over NFS Lukas Hejtmanek
2010-08-15  0:58 ` Trond Myklebust [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281833894.9828.3.camel@heimdal.trondhjem.org \
    --to=trond.myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=xhejtman@ics.muni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).