[EMAIL PROTECTED] wrote: > Patrick: > >>> - How did you mount your aufs? >>> >>> >> by using 'mount -w -t aufs -o dirs=/new=rw:/real_root=ro none /union' in >> the init script of an initramfs .. right after pre-mount and mounting >> scripts of the rootfs have been run. >> > > Thank you. > Then, you didn't use '-n', did you? > And your /etc/mtab file still doesn't exist, right? > How about CONFIG_AUFS_COMPAT? Did you define it? >
Nope, I didnt use -n. But /etc/mtab exists meanwhile and is working fine. No redefining needed. > >>> - How is /proc/mounts just before you remount or unionctl? Will you show >>> us? >>> >>> >> Sure: >> > > Ok. > I recognize that you have mounted aufs with one tmpfs and one > ext3. Additionally, you have several mounts under aufs. > > True (while the other mounts are just debian-specific). > >> confusing me since theres not much documentation about using a stackable >> filesystem with an initramfs thus especially during boot process. >> Thus I asked here to get more detailed information than I could retrieve >> by using google for the past few days. >> > > There is a sample linuxrc script under aufs/sample directory. Doesn't it > help you? > > Not at all because a) initramfs is different to linuxrc ... pivot_root wont work with an initramfs thus one has to use switch_root of busybox or run-init of klibc .. All howtos/tutorials/whatever do not use an initramfs but initrd, which I consider crappy because initrd is deprecated meanwhile. > >> Heh, then again I dont see any reason for shipping it within the aufs >> sources. (or recommending it on SF's project page as a substution for >> the equivalent tool of unionfs). >> > > It was just for compatibility with unionfs. > CONFIG_AUFS_COMPAT is disabled by default, and will be deleted as it was > announced. I don't mean to *recommend* it by these sentences which are > left still. > Ok, then I misunderstood the lines on the project page :) > ---------------------------------------------------------------------- > And there is a simple shell > script 'unionctl' which is compatible with unionctl(8) in > Unionfs, except --query action. > This script executes mount(8) with 'remount' option and uses > add/del/mod aufs mount options. > If you are familiar with Unionfs and want to use unionctl(8), you can > try this script instead of using mount -o remount,... directly. > Aufs does not support ioctl(2) interface. > This script is highly depending upon mount(8) in > util-linux-2.12p package, and you need to mount /proc to use this script. > If your mount(8) version differs, you can try modifying this > script. It is very easy. > ---------------------------------------------------------------------- > > Finally, do you distinguish which systemcall took a long time, your 8 > min? Is it all mount(2) with MS_REMOUNT? > > > Hmm I only tried unionctl .. didnt try mount yet .. tho I will soon... (so if mount also takes that long, I may strace it and report in further details). > Junjiro Okajima > > regards, Patrick ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV