> Hi Tovis!
>
> I haven't figured out a way to do it using AuFS without moving /var,
> but AFAIK overlayfs does what you want. It's included in Ubuntu
> Oneiric kernel, but I'm not sure about Debian.
>
> I'm looking for a way to do it without overlayfs requirement myself,
> if you find one, please let me know!
>
> Well, of course there are FUSE-based solutions, I've described one in
> a blog post:
> http://shnatsel.blogspot.com/2011/11/miniwheatfs-aka-reliable-ramdisks.html
>
> unionfs-fuse might work for you, I've managed to make it mount over
> non-empty dirs and it seems to work fine, but, as the name implies,
> it's very slow. However, in your case the USB drive can be even
> slower... try something like this:
>
> unionfs-fuse -o cow,max_files=32768 -o allow_other,nonempty,dev
> "/tmp/var"=RW:"/var"=RO "/var"
>
> --
> Sergey "Shnatsel" Davidoff
>
>
Hi Sergej!
Thanks for your answer.
unionfs-fuse ... yes it is exist in Debian (as backport).
Why two separate "-o" option group?
The branch(?) is "/tmp/var"=RW:"/var"=RO "/var" mean that /tmp/var (which
is created at /tmp which is a tmpfs - ramdisk) as writable and it is
branch over /var which is read only. My interpretation is correct?
> I haven't figured out a way to do it using AuFS without moving /var,
What is that mean? Moving /var, basically possible only after mount root
file system, which includes it. Suggestion about unionfs (I have got from
hup.hu) is working if I copy some part of /var to place for rw area for
/var. The translation:
You should make a script which is should run first at the start
(rcS.d/S00unionfs), and it should do the next:

- create a ramdisk

mount -nt tmpfs tmpfs /mnt/tmpfs

- copy/create appropriate directories:

tar -xzf /etc/unionfs/var.tar.gz

- and create a union mount:

mount -t unionfs unionfs /var -o dirs=/mnt/tmpfs:/var

Many places I have read that aufs could do the same things. It is not true
for my situation?

Sincerely
  tovis




------------------------------------------------------------------------------
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