Re: pmfsrr mode

2015-04-01 Thread sfjro

sf...@users.sourceforge.net:
 This will print many debug information including how aufs selected the
 branch. I may send you another debug patch to print more information and
 ask you to apply/rebuild if you can.

I tried but could not reproduce the problem.

Branches:
/run/shm/11044.1=rw
/run/shm/11044.2=rw
/run/shm/rw=rw
/run/shm/ro=ro

Filesystem 1K-blocks  Used Available Use% Mounted on
tmpfs 20252416202508   1% /run/shm/rw
tmpfs  40508 0 40508   0% /run/shm

Option: create=pmfsrr:$((50*1024*1024))

Status:
- the target parent dir is a/b/c. let's call it $dir.
- /run/shm/rw/$dir does not exist.
- the dir exists both under /run/shm/11044.[12].
In other words,
- there are three writable branches.
- two of them have a parent dir, but they are smaller in free space.


Test:   cp /etc/hosts $dir/

I confirmed the file went to /run/shm/rw/$dir expectedly.

Next time when you post, give me these info.

(from aufs README)
--
When you have any problems or strange behaviour in aufs, please let me
know with:
- /proc/mounts (instead of the output of mount(8))
- /sys/module/aufs/*
- /sys/fs/aufs/* (if you have them)
- /debug/aufs/* (if you have them)
- linux kernel version
  if your kernel is not plain, for example modified by distributor,
  the url where i can download its source is necessary too.
- aufs version which was printed at loading the module or booting the
  system, instead of the date you downloaded.
- configuration (define/undefine CONFIG_AUFS_xxx)
--


J. R. Okajima

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/


Re: Permissions for root user

2015-04-01 Thread Yair Yarom

On Tue, Mar 31 2015, sf...@users.sourceforge.net wrote:

 On my test system where NFS server is linux, the first mv back failed.
   :::
 exporting localhost:/tmp/irush/export
 + mv -v /tmp/irush/nfs/a/b /tmp/irush/nfs/a/c
 `/tmp/irush/nfs/a/b' - `/tmp/irush/nfs/a/c'
 mv: cannot move `/tmp/irush/nfs/a/b' to `/tmp/irush/nfs/a/c': Permission 
 denied
   :::

This is weird, assuming no_root_squash - it should work..

 Anyway  ACL is a good hint actually.
 While I cannot reproduce your problem on my side, I'd suggest you to try
 a branch attribute icexsys for the writable branch such as
 # mount -t aufs -o br:$tmp/rw=rw+icexsys:$tmp/nfs=ro aufs $tmp/union

This didn't help. I still see Operation not supported in the aufs
mv. This time I tried on a freshly complied 3.19.3.


Yair.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/


Re: Permissions for root user

2015-04-01 Thread sfjro
Yair Yarom:
 This is weird, assuming no_root_squash - it should work..

Agreed, and I am afraid there is one more something wrong in my test
system.


  Anyway  ACL is a good hint actually.
  While I cannot reproduce your problem on my side, I'd suggest you to try
  a branch attribute icexsys for the writable branch such as
  # mount -t aufs -o br:$tmp/rw=rw+icexsys:$tmp/nfs=ro aufs $tmp/union

 This didn't help. I still see Operation not supported in the aufs
 mv. This time I tried on a freshly complied 3.19.3.

How was the configuration?
If CONFIG_AUFS_XATTR is enabled, try this patch and specify 'verbose'
option when mounting aufs. It will print the xattr name. If XATTR (ACL)
causes the problem, then this patch and 'verbose' will tell us.

# mount -t aufs -o br:$tmp/rw=rw:$tmp/nfs=ro,verbose aufs $tmp/union

If CONFIG_AUFS_XATTR is disabled, then XATTR/ACL is not the problem. I'd
ask you to enable CONFIG_AUFS_DEBUG and run

# echo 1  /sys/module/aufs/parameter/debug
mv -v $tmp/union/a/{b,c}
# echo 0  /sys/module/aufs/parameter/debug

It will print many debug messages which we can start narrowing down the
cause.


J. R. Okajima



a.patch.bz2
Description: BZip2 compressed data
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/