Hello everyone!
Thanks for your valuable help and time!
I have achieved some progress.
I try to describe step-by-step - may be it could help for some one.
1. Make a directory /mnt/var
   #mkdir /mnt/var
2. Copy (for now) whole /var (using mc) and make a tartbal:
   #tar -czf /boot/aufs_var.tar.gz /mnt/var
3. Using /etc/init.d/mountkernfs.sh as a template I have build a small
script for mounting /var ro unified with /mnt/var. Really I was changed
the do_start function and header:

do_start() () {
  echo "Prepare aufs" >&2
  domount tmpfs "" /mnt/var tmpfs
  tar xzf /boot/aufs_var.tar.gz
  mount -nt aufs -o br:/mnt/var:/var none /var
}

3. Using update-rc.d I have put my script, called mount_aufs.sh into
/etc/rcS.d :
  #update-rc.d mount_aufs.sh start S
(It's complain something about LSB synchronizing, but it seem to be face
and working)
4. /tmp I have put on tmpfs simple in fstab

On boot for command mount -nt aufs (and if you try modprobe aufs) the
driver(?) outputs a message:
[] aufs: module is from the staging directory, the quality is onknown, you
have been warned.
[] aufs 2-standalone.tree-32-20100125

After reboot I have /proc/mounts:

rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=1017196k,nr_inodes=254299,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
0 0
/dev/disk/by-label/Rendszer / ext2 rw,noatime,errors=remount-ro 0 0
tmpfs /mnt/var tmpfs rw,relatime 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
none /var aufs rw,relatime,si=1a502864c7c1c06b 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /tmp tmpfs rw,relatime 0 0

One problem still left, what directories/files should I have put into
/mnt/var - whole /var is too big.
I do not know purpose of all files on /var - which should left in /var and
which should be on /mnt/var. How to now what files are written in /var?

Thanks again, for your help and time!
Special thanks for J. R. Okajima great job!

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