"J. R. Okajima"
>
> If you set RW to the lower branch, you can.
> But you wrote that you did copy all files to the upper branch. It means
> all modifications are made on tmpfs and you don't need aufs. As long as
> the file exists on the upper tmpfs, aufs will never touch the same named
> file on the lower.
>
This was only the first try. For now I'm trying to refine this option, for
example put logs to the tmpfs but save crontabs to USB. I have deleted
from /mnt/var (on tmpfs) neer everything what I want to be save on USB,
for example /var/lib/alsa/asound.state or /var/spool. On /mnt/var there
are no directories such as /mnt/var/lib/alsa or /mnt/var/spool. But, as
I'm realized they are still written to tmpfs :( I'm afraid that the
problem is that I'm creating branch at boot time when only rootfs is
mounted, no real read-write USB partition, and aufs register /var as read
only.

"J. R. Okajima"
>
> For the message ioctl, it means the version of your aufs-util doesn't
> match your aufs module. You should update aufs-util.
> For unmounting,
> (from the aufs manual)
> ----------------------------------------------------------------------
> When your aufs is the root directory of your system, and your system
> tells you some of the filesystem were not unmounted cleanly, try these
> procedure when you shutdown your system.
> .nf
> # mount -no remount,ro /
> # for i in $writable_branches
> # do mount -no remount,ro $i
> # done
> .fi
> If your xino file is on a hard drive, you also need to specify
> `noxino' option or `xino=/your/tmpfs/xino' at remounting root
> directory.
> ----------------------------------------------------------------------
> In your case, the root dir sould be replaced by /var.
>
I have read manual, and found this part, but what is confuse me - sorry
about - that this small script remount ro every mount, and also those
things about xino - where is my xino? Some settings on Squeeze placed to
/etc/default/aufs - there are a bunch of scripts, seem little bit strange.
By the way. For now I'm trying create branch after whole boot, from root
prompt. The /var is read-write for sure at this point.

Thanks again for your time and patience to me
  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