Hello list,

I currently have 2 raid5 arrays in my box, and like the idea of using
aufs2 to combine them for the purposes as nfs and the like. This all
works really well as far as I can tell. The problem lies when writing
data to the combined directory.

There are 2 directory structures on both arrays, lets's say
/raid5.1/dirA and /raid5.2/dirB. This is currently visible as /dirA and
/dirB on my share. All's well so far. However If I write data into dirB,
a new dir is created on /raid5.1/dirB. Every few months I unmount my
aufs and relocate everything into the right place.

Reading the aufs 2.1 manual page however, there is a chapter called:
Policies to Select One among Multiple Writable Branches and going
through it, as I understand it pmfs would do just that?
"create=pmfs[:second]
Selects a writable branch where the parent dir exists, such as tdp mode.
When the parent dir exists on multiple writable branches, aufs selects
the one which has most free space, such as mfs mode."

Perfect, but doesn't work. I still get disk full errors (on nfs shares)
when /raid5.1/(dirB) is full, even though it was supposed write into
/raid5.2/dirB; which might be just how things work, but underneath,
everything still always gets written to /raid5.1/.

my fstab looks like this:
none                    /silo                   aufs           
br=/tank/01:/tank/02,sum,udba=none,create=pmfs,cpup=bup 0 0
though i'm not sure cpup is even needeed?

Any thoughts would be appreciated,

Oliver

/proc/mounts
/dev/md101 /tank/01 ext4
rw,noatime,commit=120,barrier=1,stripe=192,data=writeback 0 0
/dev/md102 /tank/02 ext4
rw,noatime,commit=120,barrier=1,stripe=256,data=writeback 0 0
none /silo aufs
rw,relatime,si=66882011d69539b5,udba=none,create=pmfs,cpup=bup,sum 0 0

/sys/module/aufs/*
riley ~ # cat /sys/module/aufs/*
cat: /sys/module/aufs/holders: Is a directory
live
cat: /sys/module/aufs/notes: Is a directory
cat: /sys/module/aufs/parameters: Is a directory
5
cat: /sys/module/aufs/sections: Is a directory
9A243B57E512A94D36FD5FB
2.1-standalone.tree-36-20110117
riley ~ #  cat /sys/module/aufs/*/*
1
0xffffffffa006eed4
0xffffffffa006f198
0xffffffffa006eca8

kernel
Linux riley 2.6.36-gentoo-r5 #2 SMP Tue Jan 25 20:15:51 CET 2011 x86_64
AMD Phenom(tm) II X4 905e Processor AuthenticAMD GNU/Linux

modinfo aufs module
modinfo aufs
filename:       /lib/modules/2.6.36-gentoo-r5/misc/aufs.ko
version:        2.1-standalone.tree-36-20110117
description:    aufs -- Advanced multi layered unification filesystem
author:         Junjiro R. Okajima <aufs-users@lists.sourceforge.net>
license:        GPL
srcversion:     9A243B57E512A94D36FD5FB
depends:
vermagic:       2.6.36-gentoo-r5 SMP mod_unload
parm:           brs:use <sysfs>/fs/aufs/si_*/brN (int)


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d

Reply via email to