Re: [OVERLAYFS] Can I create file in directory on lower layer located on NFS

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

 



On Mon, Oct 16, 2017 at 7:13 PM, charles zheng <czheng2@xxxxxx> wrote:
> Hi Miklos,
>
> We are developing a docker related system that requires to union
> directories on NFS and local filesystem.  I successfully created a
> overlayfs that has lower layer located on NFS and upper layer located
> on the local file system. But when I tried to create new files in the
> directory located on NFS, I got error message: "Operation not
> supported". Does that mean I can not create new files inside the
> directory located on NFS? But base on the documentation of overlayfs,
> lower layer does not need to be writable.
>
> Steps to reproduce the problem are (/mnt/nfs is the NFS mount,
> /home/zc is the local mount)
>
> 1. create directory "/mnt/nfs/lower/lower_dir"
>
> 2. create directories "/home/zc/upper/upper_dir", "/home/zc/work" and
> "/home/zc/merged"
>
> 3. create overlayfs by running command
>
> mount -t overlay overlay -o\
> lowerdir=/mnt/nfs/lower,\
> upperdir=/home/zc/upper,\
> workdir=/home/zc/work \
> /home/zc/merged
>
> 4. Try to create new file "/merged/lower_dir/test.txt" and get error
> message "Operation not supported"
>

Hi Charles,

This should definitely work.
Please specify with kernel version/commit you are testing with
Please attach relevant overlayfs logs from dmesg when you get the
error and from overlayfs mount time.
Please attach content of /proc/self/mountinfo after overlay is mounted

Thanks,
Amir.
--
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