Hello tovis,

"tovis":
> I have read man, aufs html documentation but I have still do not
> understand how to construct the command for making ro /var to be a unified
> with /tmp/var wr so in result every files in /var are seen by system but
> writes to /var goes to ramdisk/tmpfs ...

Generally you can do it by
# mount -t aufs -o br:/tmp/var:/var none /var


> Should I make a separate ram disk (different from /tmp which is tmpfs)?
> What the correct syntax for this branch(?). Can I put it to fstab? Should
> I built a new initrd?

- you can use any dir as an aufs branch (as long as it doesn't make a
  loop with another branch). So you don't have to make a separate
  ramdisk.
- you can write an aufs entry in your fstab if you want
- for initrd, it is totally up to
  + what your initrd does
  + what you want to do
  + when your /var is mounted
  + etc.
  but generally, if you want to use aufs for /var only, then the above
  command should be enough.

I'd suggest you to check the aufs version in your debian system, since
it is known that aufs in debian is obsolete.
Also aufs doesn't support linux-2.6.32 anymore. If you want to use aufs
on linux-2.6.32, then I'd suggest you to get the last version of
aufs2.1-32.
Note again, aufs2.1 is not maintained now.


J. R. Okajima

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d

Reply via email to