Results 1 to 3 of 3

Thread: AUFS mount containing NFS directories

  1. #1
    Join Date
    May 2008
    Beans
    2

    AUFS mount containing NFS directories

    If I try to mount the AUFS filesystem from a nfs and local directory in Ubuntu 9.10 like this:

    Code:
    sudo mount -t aufs br=/mnt/nfs=rw:/home/data/local=ro none /mnt/union
    I get segmentation fault and my system crashes:

    Code:
    comm: file 2 is not in sorted order
    mount: block device none is write-protected, mounting read-only
    Segmentation fault
    Killed
    /sbin/mount.aufs: bad /proc/3709/mounts
    In 9.04 the same mount command worked fine using unionfs.

    Am I doing something wrong or is it a bug?

  2. #2
    Join Date
    May 2008
    Beans
    2

    Re: AUFS mount containing NFS directories

    I found a workaround that kind of works. I changed from nsf to smb, and now aufs works most of the time. I added the following to fstab:

    Code:
    //readynas/media   /mnt/media      cifs	      iocharset=utf8,codepage=unicode,unicode,uid=1000,gid=2000,user=smb,password=xxxx,file_mode=0644,dir_mode=0755     0       0
    #unionfs           /mnt/union      unionfs       dirs=/mnt/media=rw:/home/data/=ro                 0       0
    aufs               /mnt/photos     aufs          br:/mnt/media/Photos=rw:/home/data/Photos=ro      0       0
    But occasionally the filesystem stops working, and I get the following error in my syslog:

    Code:
     
    Apr  4 14:33:23 aladdin kernel: [20243.343467] aufs au_wh_test:96:f-spot[5244]: I/O Error, .wh.20080607-o004541-jb00l.jpg Invalid whiteout entry type 040755.
    Any ideas on what is wrong? Is aufs just buggy???

  3. #3
    Join Date
    Feb 2008
    Beans
    3

    Re: AUFS mount containing NFS directories

    Quote Originally Posted by jgbc123 View Post
    I found a workaround that kind of works. I changed from nsf to smb, and now aufs works most of the time. I added the following to fstab:

    Code:
    //readynas/media   /mnt/media      cifs	      iocharset=utf8,codepage=unicode,unicode,uid=1000,gid=2000,user=smb,password=xxxx,file_mode=0644,dir_mode=0755     0       0
    #unionfs           /mnt/union      unionfs       dirs=/mnt/media=rw:/home/data/=ro                 0       0
    aufs               /mnt/photos     aufs          br:/mnt/media/Photos=rw:/home/data/Photos=ro      0       0
    But occasionally the filesystem stops working, and I get the following error in my syslog:

    Code:
     
    Apr  4 14:33:23 aladdin kernel: [20243.343467] aufs au_wh_test:96:f-spot[5244]: I/O Error, .wh.20080607-o004541-jb00l.jpg Invalid whiteout entry type 040755.
    Any ideas on what is wrong? Is aufs just buggy???

    The same has happened to me too. I don't like to mount a samba share on linux because of the "secret" file with plain text password.
    I successfully tried i-scsi instead, but it's a bit hard to handle properly startup and shutdown (automatic mount on startup & clean shutdown), I am still investigating.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •