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

Bug#786925: marked as done (linux: overlay filesystem incompatible with NFS)



Your message dated Sat, 25 Jun 2016 00:35:46 +0200
with message-id <1466807746.2504.4.camel@decadent.org.uk>
and subject line Re: Bug#786925: overlay and NFS now works
has caused the Debian Bug report #786925,
regarding linux: overlay filesystem incompatible with NFS
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
786925: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786925
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:linux
Version: 4.0.2-1
Severity: normal
Control: affects -1 ltsp-client-core

LTSP has been using aufs to provide a writeable tmpfs layer on top of
NFS since wheezy.

With the switch to the overlay filesystem (after adjusting LTSP's
initramfs-tools hooks to support overlay), it appears to fail due to an
incompatibility with NFS. The following is from a failed initramfs-tools
boot running the commands manually:

  BusyBox v1.22.1 (Debian 1:1.22.0-15) built-in shell (ash)
  Enter 'help' for a list of built-in commands.
  
  sh: can't access tty; job control turned off
  / # mount
  rootfs on / type rootfs (rw)
  sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=61069,mode=755)
  devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmod
  e=000)
  tmpfs on /run type tmpfs (rw,nosuid,relatime,size=101168k,mode=755)
  192.168.67.1:/opt/ltsp/amd64 on /rofs type nfs (ro,relatime,vers=3,rsize=524288,
  wsize=524288,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=7,retrans=10,sec=s
  ys,local_lock=all,addr=192.168.67.1)
  tmpfs on /cow type tmpfs (rw,relatime,mode=755)
  / # mount -t overlay -o upperdir=/cow/up,lowerdir=/rofs,workdir=/cow/work overla
  y /root
  [   49.944625] overlayfs: filesystem on '/rofs' not supported
  mount: mounting overlay on /root failed:  Invalid argument


It works fine when using a loopback mounted squashfs image over NFS, or
with NBD+squashfs, but mounting NFS as a lowerdir directly appears to
fail.


This may be the same issue as mentioned here:

  https://lkml.org/lkml/2014/10/30/242

Though that hasn't received much response...


live well,
  vagrant


-- Package-specific info:
** Kernel log: boot messages should be attached

** Model information
not available

** PCI devices:
not available

** USB devices:
not available


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages linux-image-4.0.0-1-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.56
ii  initramfs-tools [linux-initramfs-tool]  0.120
ii  kmod                                    20-1
ii  linux-base                              3.5

Versions of packages linux-image-4.0.0-1-amd64 recommends:
ii  firmware-linux-free  3.3
ii  irqbalance           1.0.6-3

Versions of packages linux-image-4.0.0-1-amd64 suggests:
pn  debian-kernel-handbook         <none>
pn  grub-pc | grub-efi | extlinux  <none>
pn  linux-doc-4.0                  <none>

Versions of packages linux-image-4.0.0-1-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
pn  firmware-linux-nonfree  <none>
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information excluded

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 4.6.2-1

On Wed, 2016-06-22 at 15:32 +0200, Thomas Lange wrote:
> Package: src:linux
> Fixed: 4.6.2-1
> 
> overlayfs and NFS works if you add the option default_permissions to
> the mount command as follow:
> 
> mount -t nfs -oro,noatime server:/srv/fai/nfsroot /tmp/lower
> mount -t overlay overlay
> -olowerdir=/tmp/lower,upperdir=/tmp/upper,workdir=/tmp/work,default_p
> ermissions /tmp/merged
> 
> It works nicely for me with Debian kernel 4.6.2. Without this option,
> overwriting an existing file ended with a permissions denied.
> 
> This option was added in january 2016 to the kernel. See
> http://thread.gmane.org/gmane.linux.file-systems.union/493
> 
> IMO we can close this bug now.

OK.

Ben.

-- 

Ben Hutchings
Reality is just a crutch for people who can't handle science fiction.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: