Re: cannot use btrfs for nfs server

Forza
2021-07-11T11:41:07Z

On 2021-07-10 08:35, Ulli Horlacher wrote:
> On Fri 2021-07-09 (10:30), Chris Murphy wrote:
>> On Fri, Jul 9, 2021 at 1:34 AM Ulli Horlacher
>> <framstag@rus.uni-stuttgart.de> wrote:
>>
>>>
>>> root@tsmsrvj:/# du -s /nfs/localhost/fex
>>> du: WARNING: Circular directory structure.
>>> This almost certainly means that you have a corrupted file system.
>>> NOTIFY YOUR SYSTEM MANAGER.
>>> The following directory is part of the cycle:
>>> /nfs/localhost/fex/spool
>>
>> What do you get for:
>>
>> btrfs subvolume list -to /nfs/localhost/fex
>
> root@tsmsrvj:~# btrfs subvolume list -to /nfs/localhost/fex
> ERROR: not a btrfs filesystem: /nfs/localhost/fex
> ERROR: can't access '/nfs/localhost/fex'
>
>
> root@tsmsrvj:~# mount | grep localhost
> localhost:/data/fex on /nfs/localhost/fex type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=127.0.0.1,local_lock=none,addr=127.0.0.1)
>
>

I think you should have done the btrfs filesystem and not nfs mount:

btrfs subvolume list -to /data/fex