help: can't create file in aufs
hi, I have met a permission problem for directory in aufs, below is my command line output: = [wuhp@test002 /]$ ll /tmp/aufs/ total 20 drwxr-xr-x 5 wuhp wuhp 4096 2013-01-06 02:35 ./ drwxrwxrwt 5 root root 4096 2013-01-06 01:54 ../ drwxr-xr-x 2 wuhp wuhp 4096 2013-01-06 01:55 mnt/ drwxr-xr-x 3 root root 4096 2013-01-06 02:36 root/ drwxr-xr-x 2 wuhp wuhp 4096 2013-01-06 02:35 temp/ [wuhp@test002 /]$ ll /tmp/aufs/root total 12 drwxr-xr-x 3 root root 4096 2013-01-06 02:36 ./ drwxr-xr-x 5 wuhp wuhp 4096 2013-01-06 02:35 ../ drwx-- 2 root root 4096 2013-01-06 02:08 test2/ [wuhp@test002 /]$ sudo mount -t aufs -o br:/tmp/aufs/temp=rw:/tmp/aufs/root=ro+wh none /tmp/aufs/mnt [wuhp@test002 /]$ stat /tmp/aufs/mnt/test2 File: `/tmp/aufs/mnt/test2' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 2bh/43d Inode: 11 Links: 2 Access: (0700/drwx--) Uid: (0/root) Gid: (0/root) Access: 2013-01-06 02:08:19.813238591 -0700 Modify: 2013-01-06 02:08:19.813238591 -0700 Change: 2013-01-06 02:27:29.313239019 -0700 [wuhp@test002 /]$ touch /tmp/aufs/mnt/test2/a touch: cannot touch `/tmp/aufs/mnt/test2/a': Permission denied [wuhp@test002 /]$ sudo chmod 777 /tmp/aufs/mnt/test2 [wuhp@test002 /]$ stat /tmp/aufs/mnt/test2 File: `/tmp/aufs/mnt/test2' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 2bh/43d Inode: 11 Links: 2 Access: (0777/drwxrwxrwx) Uid: (0/root) Gid: (0/root) Access: 2013-01-06 02:08:19.813238591 -0700 Modify: 2013-01-06 02:08:19.813238591 -0700 Change: 2013-01-06 02:39:19.423239284 -0700 [wuhp@test002 /]$ touch /tmp/aufs/mnt/test2/a touch: cannot touch `/tmp/aufs/mnt/test2/a': Permission denied = I can't create file even if I have write permission to /tmp/aufs/mnt/test2, can anyone tell me why and how to fix it? Here is my workstation info: --- [wuhp@test002 /]$ cat /sys/module/aufs/version 2.1-standalone.tree-38-rcN-20110207 [wuhp@test002 /]$ uname -a Linux test002 2.6.38-16-generic #67~lucid1-Ubuntu SMP Fri Sep 7 18:18:45 UTC 2012 x86_64 GNU/Linux --- More findings, if /tmp/aufs/root/test has execute permission, the workflow above works, strange behavior. = [wuhp@test002 /]$ sudo chmod 711 /tmp/aufs/root/test2 [wuhp@test002 /]$ stat /tmp/aufs/root/test2 File: `/tmp/aufs/root/test2' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 801h/2049d Inode: 142665 Links: 2 Access: (0711/drwx--x--x) Uid: (0/root) Gid: (0/root) Access: 2013-01-06 02:08:19.813238591 -0700 Modify: 2013-01-06 02:08:19.813238591 -0700 Change: 2013-01-06 02:43:47.463239384 -0700 [wuhp@test002 /]$ touch /tmp/aufs/mnt/test2/a [wuhp@test002 /]$ stat /tmp/aufs/temp/test2/a File: `/tmp/aufs/temp/test2/a' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 801h/2049d Inode: 142669 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/wuhp) Gid: ( 1000/wuhp) Access: 2013-01-06 02:44:12.613239392 -0700 Modify: 2013-01-06 02:44:12.613239392 -0700 Change: 2013-01-06 02:44:12.613239392 -0700 = thanks, haipeng -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012
Re: help: can't create file in aufs
Hello Haipeng, Haipeng Wu: I have met a permission problem for directory in aufs, below is my command ::: First of all, your version is too old and not supported now. I'd suggest you to upgrade your kernel and try reproducing the problem. Second, where can I get the source files of your version of aufs? Is it modified by Ubuntu people or youself? Anyway http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=summary seems to be totally different from yours. Finally, I cannot reproduce the problem on my test system (not 2.6.38 version). J. R. Okajima -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012
Re: Memory leak on tmpfs under aufs
Hello Jacek, Jacek Konieczny: Unfortunately, the problem hit me again, just before the holidays=E2=80=A6 Just another production system crashed because no space on the device. ::: dmesg contains lots of: [837130.254973] aufs au_xino_write:416:update_axeos_ce[10384]: I/O Error,= write failed (-5) ::: I want you to check the first message from aufs about XINO. Was the message aufs xino_do_trunc:3xx:ppp[nnn]: err bX, (XX) left before other messages? J. R. Okajima -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012
Re: help: can't create file in aufs
Hi, please see my comments in green. On Sun, Jan 6, 2013 at 9:47 PM, [1]sf...@users.sourceforge.net wrote: Hello Haipeng, Haipeng Wu: I have met a permission problem for directory in aufs, below is my command ::: First of all, your version is too old and not supported now. I'd suggest you to upgrade your kernel and try reproducing the problem. I could reproduce the problem on my another workstation, with the kernel 3.2.0, and os was ubuntu 12.04. Second, where can I get the source files of your version of aufs? Is it modified by Ubuntu people or youself? Anyway [2]http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=summary seems to be totally different from yours. my aufs was installed with the kernel, and I didn't make any modification. Finally, I cannot reproduce the problem on my test system (not 2.6.38 version). J. R. Okajima References 1. mailto:sf...@users.sourceforge.net 2. http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-lucid.git;a=summary -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412
aufs3 GIT release
o news - a new branch aufs3.7 is created, and supporting for linux-3.8-rcN started. o TODO (in short term) - test aufs3.x-rcN (for linux-3.8), particulary around NFSD. - investigate trunc_xino. J. R. Okajima -- - aufs3-linux.git#aufs3.0..aufs3.7 branch aufs: tiny, remove a space aufs: update copyright for 2013 - aufs3-linux.git#aufs3.x-rcN branch Addition to above, aufs: for linux-3.8, fsnotify_group 1/2 aufs: for linux-3.8, fsnotify_group 2/2 aufs: for linux-3.8, use FILEID_INVALID macro - aufs3-standalone.git ditto - aufs-util.git none -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412