xfs
[Top] [All Lists]

Re: stale NFS file handle problem on XFS inode64

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: stale NFS file handle problem on XFS inode64
From: hank peng <pengxihan@xxxxxxxxx>
Date: Tue, 22 Nov 2011 11:22:15 +0800
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=cuRESxZ4JTYosv7UgPZIv9AUM83lh2AQfE/oD/HpZwk=; b=f0CzL/ylalt7JQksUyaJ6pn3RwobOTCb+qsxPiGHuJwhYe8ra5UAbr0TVIChx19eh6 18C+5LUoX+anukmi4mbbF+F4jsSX0gWaNhjEOba2q3gxPV/WFLHw4UrZOt475gaTYyuE PvdOfjROEWRz/vce9Ulkk1rPEDs6jrer1PzgY=
In-reply-to: <20111122014609.GK2386@dastard>
References: <CAJNJY8Q--O2Z3K6KFxVKOivwaABk+oRtC1y0eQ0nS1WdPNMwsQ@xxxxxxxxxxxxxx> <20111121170459.GA1327@xxxxxxxxxxxxx> <CAJNJY8Ty+bQpzGL9wq7Qv3ozcKUPwmTyYUeb2wQqZ326K4JeWw@xxxxxxxxxxxxxx> <20111122014609.GK2386@dastard>
2011/11/22 Dave Chinner <david@xxxxxxxxxxxxx>:
> On Tue, Nov 22, 2011 at 08:19:15AM +0800, hank peng wrote:
>> 2011/11/22 Christoph Hellwig <hch@xxxxxxxxxxxxx>:
>> > On Mon, Nov 21, 2011 at 09:00:57PM +0800, hank peng wrote:
>> >> Hi:
>> >> I have a 4TB XFS filesystem mounted with "inode64" option, and I
>> >> exported it using NFS v3, on NFS client, I entered a subdirectory and
>> >> got "stale NFS file handle" error.
>> >> ls -il showed that its inode number exceed 32 bit limit.
>> >> NFS server: kernel version is 2.6.35.6
>> >> NFS client: kernel version is 2.6.18
>> >
>> > Do you export the root directory of the XFS filesystem, or a
>> > subdirectory in it?  If it's the former it should work in theory,
>> > althrough I'm not sure how well 64-bit inode numbers work with a client
>> > that old, if it's the latter it needs a few tweaks to work, see
>> >
>> The following is what I did:
>> 1. mkfs.xfs /dev/sdb   (whole disk)
>> 2. create a mount point in my root filesystem:
>> mkdir /mnt/mymount
>> 3. monut xfs with inode64
>> mount /dev/sdb /mnt/mymount -o inode64
>> 4. export it in NFS /etc/exports
>> /mnt/mymount   *(rw, no_root,squash, sync)
>                       ^^^^^^^^^^^^^^ no_root_squash
>>
sorry, it is my type mistake, it is no_root_squash.

I think I have already exported the root of my XFS filesystem, am I right?


>> so, is there any problem here?
>>
>> >        
>> > http://xfs.org/index.php/XFS_FAQ#Q:_Why_doesn.27t_NFS-exporting_subdirectories_of_inode64-mounted_filesystem_work.3F
>
> It's in the FAQ entry christoph pointed you to:
>
> "However, exporting the root of the filesystem works"
>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@xxxxxxxxxxxxx
>



-- 
The simplest is not all best but the best is surely the simplest!

<Prev in Thread] Current Thread [Next in Thread>