Exporting overlay via NFS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm currently trying to spice up an NFS share by adding an overlay
fs layer.

As I only found a note regarding issues with using an overlay on
the NFS client side in Documentation/filesystems/overlayfs.txt,
I thought I'd ask about the NFS server side here.


Instead of booting from a /srv/nfs/debian-sid/.amd64,
I want to boot from an overlay like:

/srv/nfs/debian-sid/.amd64 + /srv/nfs/debian-sid/overlay
= /srv/nfs/debian-sid/amd64

This overlay is constructed on the NFS server side.


Without this overlay, things work for me:

/etc/exports:
	/srv/nfs *(ro,async,no_root_squash)

And mounting that with a kernel parameter like:
	... ro root=/dev/nfs net.ifnames=0 ip=:::::eth0:dhcp \
	nfsroot=172.23.208.16:/srv/nfs/debian-sid/.amd64 ...

As well as some more overlay magic in the initrd on the client
side to add a tmpfs over the read-only NFS share. This part works
so far.


Now I'm trying to add an overlayfs on the NFS server side too,
as described above. Unfortunately, this fails on the
nfs-root-booting client side:

~~~
[...]
mount call failed - server replied: Permission denied.
Begin: Retrying nfs mount ... mount call failed - server replied: Permission denied.
done.
Begin: Retrying nfs mount ... mount call failed - server replied: Permission denied.
done.
[...]
~~~


I also tried changing the export from /srv/nfs to
/srv/nfs/debian-sid/amd64, but I still get the permission denied.
The overlay /srv/nfs/debian-sid/amd64 looks fine and with an empty
/srv/nfs/debian-sid/overlay directory identical to the .amd64 one.


NFS server side runs a Debian Jessie with a 4.7.0-0.bpo.1-amd64
kernel. The NFS client side runs a 4.7 kernel, too, and is
supposed to boot a Debian Sid.


Any idea why this permission denied might happen?

Regards, Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux