Hello Dmitry,

Dmitry Redkin:
> none    /mnt/media      aufs
> br:/mnt/wd20earx:/mnt/wd30ezrx,create=mfs:600,sum,noauto        0
>
> I'm mounting it in rc.local (don't ask my why I did so, I cannot remember
> that now). System reports correct free space, I can see all the files from
> both hdds in /mnt/media, but every time the new files are created only on
> the first drive in branches list (/mnt/wd20earx), so it slowly goes full
> and right after that the program (particularly - deluge torrent client)
> reports error "not enough free space", though the second hdd still has
> plenty of it.

First, every aufs branch has its own permission.

(from aufs manual)
----------------------------------------------------------------------
.SH Branch Syntax
.TP
.B dir_path[ =permission [ + attribute ] ]
.TQ
.B permission := rw | ro | rr
        :::
.SS Permission
.
.TP
.B rw
Readable and writable branch. Set as default for the first branch.
If the branch filesystem is mounted as readonly, you cannot set it `rw.'
.\" A filesystem which does not support link(2) and i_op\->setattr(), for
.\" example FAT, will not be used as the writable branch.
.
.TP
.B ro
Readonly branch and it has no whiteouts on it.
Set as default for all branches except the first one. Aufs never issue
both of write operation and lookup operation for whiteout to this branch.
.
.TP
.B rr
Real readonly branch, special case of `ro', for natively readonly
branch. Assuming the branch is natively readonly, aufs can optimize
some internal operation. For example, if you specify `udba=notify'
option, aufs does not set fsnotify or inotify for the things on rr branch.
Set by default for a branch whose fs\-type is either `iso9660',
`cramfs' or `romfs' (and `squashfs' for linux\-2.6.29 and later).
----------------------------------------------------------------------

So you should specify the permission for (at least) the second branch
/mnt/wd30ezrx.
And you can confirm it via /sys/fs/aufs/si_*/br*.


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/

Reply via email to