exportfs does not support NFS export

Moderators: Gully, peteru

Post Reply
prl
Wizard God
Posts: 32711
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

exportfs does not support NFS export

Post by prl » Tue Jun 22, 2021 15:45

I'm trying to set up a couple of NFS exports for testing NetworkBrowser, but I'm having problems exporting any directories on the root filesystem.

In /etc/export I have:
/home/root/logs *(no_subtree_check,sync,rw)

But when I run exportfs, I get:

Code: Select all

root@beyonwizt4:~# exportfs -ar
exportfs: /home/root/logs does not support NFS export
root@beyonwizt4:~#
Exporting /media/hdd/movie with the same option works. No directories on the root filesystem that I've tried exporting (/home/root, /home, /, /usr) work.

Anyone have any ideas on what's wrong? I've tried Professor Google, but I didn't find anything that seemed to apply.

That's on a T4 running 20210603 and packagegroup-base-nfs - 1.0-r83.0.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: exportfs does not support NFS export

Post by MrQuade » Tue Jun 22, 2021 16:26

The V2 is the only box I have ever managed to get NFS exports running on.

I can create them on other boxes, but attempting to connect to them causes some sort of crash, necessitating a network restart.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32711
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: exportfs does not support NFS export

Post by prl » Tue Jun 22, 2021 16:31

The problem I'm having is a 100% server side problem (though it has some weird client-side effects that I still have to work out).

If exportfs doesn't give an error on an export (like for /media/hdd/movie), then that mounts OK on my test V2.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32711
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: exportfs does not support NFS export

Post by prl » Tue Jun 22, 2021 17:09

Curiouser and curiouser.

The same export of /home/root/logs doesn't give an error on my test V2 running the same firmware and the same firmware, but a slightly newer NFS server: packagegroup-base-nfs - 1.0-r83.2
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: exportfs does not support NFS export

Post by peteru » Wed Jun 23, 2021 03:05

In order to export a file system using NFS, the underlying filesystem must support certain features. Not all filesystems do, however ext4 is one of the exportable filesystems.

V2

Code: Select all

$ ssh root@devv2
root@devv2:~# cd logs/
root@devv2:~/logs# df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 6.4G    565.3M      5.5G   9% /
root@devv2:~/logs# mount | grep /dev/root
/dev/root on / type ext4 (rw,relatime,data=ordered)
T4

Code: Select all

$ ssh root@beyonwizt4
root@beyonwizt4:~# cd logs
root@beyonwizt4:~/logs# df -h .
Filesystem                Size      Used Available Use% Mounted on
ubi0:rootfs               1.8G    208.1M      1.6G  11% /
root@beyonwizt4:~/logs# mount | grep ubi0:rootfs
ubi0:rootfs on / type ubifs (rw,relatime)
It could be that UBIFS does not support NFS exports.

Maybe try exporting /media/hdd/logs? That should reside on ext4.

"Beauty lies in the hands of the beer holder."
Blog.

prl
Wizard God
Posts: 32711
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: exportfs does not support NFS export

Post by prl » Wed Jun 23, 2021 10:24

You're probebly right. I may have just looked at the root filesystem type on the V2 and assumed that all the root filesystems were ext4.

One of the reasons I asked is that even though exportfs says that /home/root/logs can't be exported, it still puts it on the server's export list, and if autofs is told to mount that export, it mounts it, and it appears in /medoa/autofs, but it's inaccessible.

That wouldn't be too bad, but if you then delete the inaccessible mount in Mount management, it deletes that NFS mount, but autofs also removes other mounted NFS exports! I'm still trying to work out exactly what's happening in the client side.

But it's a bit nasty when exportfs says "that can't be exported" and then exports it anyway!
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Post Reply

Return to “Developers Community”