[Linux-cachefs] Cachefs fails to take effect on nfs4?

Rince rincebrain at gmail.com
Thu May 21 14:58:57 UTC 2009


Oh dear, I appear to have not built _DEBUG into this version of the
kernel. I'll go modify this and reboot into the new kernel.

- Rich

On Thu, May 21, 2009 at 10:56 AM, Rince <rincebrain at gmail.com> wrote:
> When I say "submounted" I mean "a subdir of /scratch which is a
> different filesystem and export line on the server."
> on pre-NFS4, I'd be required to have a different mount command for
> each, e.g. mount /scratch/sub1;mount /scratch/sub2; [...]
> on NFS4, I can just mount -t nfs4 /scratch and it does the right thing.
>
> Command output pending.
>
> - Rich
>
> On Thu, May 21, 2009 at 10:51 AM, David Howells <dhowells at redhat.com> wrote:
>> Rince <rincebrain at gmail.com> wrote:
>>
>>> I sit corrected. This only occurs for recursively submounted
>>> directories, e.g. /scratch/subdir1.
>>
>> What do you mean by 'submounted'?  Is subdir1 a different export of FSID to
>> /scratch?  Can you cat /proc/fs/nfsfs/volumes?  It should give something like:
>>
>>        [root at andromeda ~]# cat /proc/fs/nfsfs/*
>>        NV SERVER   PORT DEV     FSID              FSC
>>        v4 5a9b4a12  801 0:17    7edcf8bbc93b4329  yes
>>
>> Also, can you do:
>>
>>        echo 65535 >/sys/module/fscache/parameters/debug
>>        echo 255 >/sys/module/cachefiles/parameters/debug
>>        dd if=/scratch/subdir1/testfile of=/dev/null bs=4096 count=4
>>        echo 0 >/sys/module/fscache/parameters/debug
>>        echo 0 >/sys/module/cachefiles/parameters/debug
>>
>> assuming you have CONFIG_FSCACHE_DEBUG=y and CONFIG_CACHEFILES_DEBUG=y and
>> capture what winds up in dmesg?
>>
>>> mount | grep /scratch
>>
>> It might be better to do:
>>
>>        cat /proc/mounts | grep /scratch
>>
>> Things might show up there that don't show up when you do 'mount' without
>> parameters.
>>
>> David
>>
>> --
>> Linux-cachefs mailing list
>> Linux-cachefs at redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-cachefs
>>
>
>
>
> --
>
> A gentleman never strikes a lady with his hat on. -- Fred Allen
>



-- 

Greener's Law: Never argue with a man who buys ink by the barrel.




More information about the Linux-cachefs mailing list