You are not logged in.

#1 2023-12-04 10:34:32

pavkamlc
Member
Registered: 2023-12-01
Posts: 3

NFS exports on autofs drives

I have nfs4 server fs0 with exports on xfs volumes. When I have to use autofs for this exports, nfs writes

Cannot export /misc, possibly unsupported filesystem or fsid= required

cat /etc/auto.misc

home            -fstype=xfs             :/dev/mapper/home-home

cat /etc/exports

/misc *(ro,sync,crossmnt,fsid=0)
/misc/home *(rw,sync)

exportfs

/misc           <world>
/misc/home      <world>

I canť find any solution/working configuration

Offline

#2 2023-12-19 22:31:10

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: NFS exports on autofs drives

I think auto.misc should contain something like:

/home/<your-username> -fstype=nfs4 <servername-or-ip>:/home

or maybe

/home/<your-username> -fstype=nfs4 <servername-or-ip>:/home/<your-username>

(depends on your setup)

In auto.master:

/- /etc/autofs/auto.misc

/etc/exports looks unusual too but try sorting autofs first as I'm guessing you've tested NFS manually.

Offline

#3 2023-12-21 08:13:33

pavkamlc
Member
Registered: 2023-12-01
Posts: 3

Re: NFS exports on autofs drives

There is no problem on client side. Problem is on server side when I tried export XFS mounted by autofs. I can resolve by use fstab instead autofs, this works. But when I use autofs, this create mountpoint /misc with unspported filesystem (autofs), then create mountpoint /misc/home and at the end I get this error by nfs server. I tried use fsid but without success. On kernel.org I don't found any helpful documentation.

Painless wrote:

I think auto.misc should contain something like:

/home/<your-username> -fstype=nfs4 <servername-or-ip>:/home

or maybe

/home/<your-username> -fstype=nfs4 <servername-or-ip>:/home/<your-username>

(depends on your setup)

In auto.master:

/- /etc/autofs/auto.misc

/etc/exports looks unusual too but try sorting autofs first as I'm guessing you've tested NFS manually.

Offline

#4 2023-12-22 00:00:27

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: NFS exports on autofs drives

Autofs is typically a client side service for automounting network shares.  I'm not sure what your intention is by running it on the NFS server.

Offline

#5 2023-12-22 15:50:35

pavkamlc
Member
Registered: 2023-12-01
Posts: 3

Re: NFS exports on autofs drives

No, autofs is designed for mount on request, server/client independed. But this is not question. It seems by nfs export unsupported solution, so I´d like to know any workaround.

Painless wrote:

Autofs is typically a client side service for automounting network shares.  I'm not sure what your intention is by running it on the NFS server.

Offline

#6 2023-12-22 17:06:45

just4arch
Member
Registered: 2023-01-07
Posts: 99

Re: NFS exports on autofs drives

pavkamlc wrote:

It seems by nfs export unsupported solution, so I´d like to know any workaround.

Systemd automount?

Offline

Board footer

Powered by FluxBB