NFS over Unionfs prevents updating existing files

Bug #197006 reported by Reinhard Tartler
4
Affects Status Importance Assigned to Milestone
fai (Ubuntu)
Fix Released
Undecided
Reinhard Tartler
linux (Ubuntu)
Won't Fix
Undecided
Ben Collins

Bug Description

Binary package hint: linux-image-generic

System: ubuntu hardy kernel version 2.6.24.10.8
Steps to reproduce:

mount an NFS share, and use Unionfs to mount an tmpfs over it.

Symptoms: New files can be created as expected, however editing existing files fails with "No permission to write to $file".

This avoids using installation methods like fai, that use this technique during install time. E.g. it fails to setup /etc/resolv.conf or /etc/apt/sources.list.

UPDATE: we need to switch to AUFS. live-initramfs does already have support aufs support, so it is just a matter to switch it on.

Revision history for this message
Ben Collins (ben-collins) wrote :

The unionfs in hardy is an older 1.4 version, just used for basic unionfs and live-cd. If you want better unionfs, use aufs instead, which has support for NFS overlays.

Changed in linux-meta:
assignee: nobody → ben-collins
status: New → Won't Fix
Revision history for this message
Reinhard Tartler (siretart) wrote :

13:58:20 < BenC> siretart: "crashed" is a loose word in this context, since unionfs didn't crash either
13:58:34 < BenC> siretart: what exactly happened when you tried to use unionfs (in what way did it fail)
13:58:45 < BenC> aufs I mean
13:59:21 < siretart> I have to admit that I can only tell from memory. I gave it a quick shot, and on the first glance, it looked
                     like aufs wouldn't work with NFS at all
13:59:29 < BenC> If we can give you an updated aufs to resolve this, we can do that...but updating unionfs to work with NFS is not
                 going to happen
13:59:42 < siretart> hm. I see
14:00:18 < BenC> siretart: how hard is it for you to download and build latest aufs with our kernel headers and test it for fai?
...
14:03:54 < siretart> ok. will try that. thanks!

description: updated
Changed in fai:
status: New → Triaged
Revision history for this message
Björn Torkelsson (torkel) wrote :

A workaround would be to remove (at least) /etc/resolv.conf, /etc/syslog.conf and /etc/mtab from the nfsroot. Other files might have to be removed too depending on your setup.

Changed in fai:
assignee: nobody → siretart
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fai - 3.2.4+svn4837-0ubuntu2

---------------
fai (3.2.4+svn4837-0ubuntu2) hardy; urgency=low

  * upload to hardy

fai (3.2.4+svn4837-0ubuntu2~ppa3) hardy; urgency=low

  * simple config GRUB/10-setup: add to kernel-img.conf postinst and postrm
    hook settings that run update-grub. Without them, grub's menu.lst is not
    updated on linux image installation/removal.

fai (3.2.4+svn4837-0ubuntu2~ppa2) hardy; urgency=low

  * don't install menu.lst and GRUB postinst script at all in the binary
    package by removing them in the clean rule of debian/rules
  * remove console-data support, show how to preseed console-setup in the
    example class GERMAN. (LP: #207756)

fai (3.2.4+svn4837-0ubuntu2~ppa1) hardy; urgency=low

  [ Christian Meier ]
  * bin/fai, lib/get-config-dir-nfs: always use -n option in romountopt to
    prevent accessing /etc/mtab in read-only environment
    (closes: LP: #207582)
  * fix grub example (closes LP: #187659)
    * remove menu.lst of examples
    * move the postinst script of menu.lst to
      examples/simple/scripts/GRUB/10-setup and modify it to let update-grub
      do the configuration of menu.lst
  * workaround for not correctly working unionfs over nfs
    * create nfshooks (/etc/fai/10-unionfs-workaround) that delete certain
      files in nfsroot that will be created automatically through fai scripts.
      (LP: #197006)
  * add ghostscript to build dependencies
  * don't fail build if there are no postinst scripts in the 'simple-example'
    configuration space

  [ Reinhard Tartler ]
  * add genisofs alternative to mkisofs in fai-server and fai-quickstart
    packages (LP: #156836)

 -- Reinhard Tartler <email address hidden> Tue, 01 Apr 2008 12:41:34 +0200

Changed in fai:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.