Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread daniel
Quoting Armin Ranjbar : > but what about when we are shutting down? there will be attempt unmount > /root, but i think nothing will ever > to unmount /wr and /ro (which were mounted at initramfs level) > am i right here? In our setup the rootfs is ro NFS. It only becomes rw when combined with

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread Armin Ranjbar
Interesting, isnt /rw and /ro "in use" since mounted by aufs? On Jul 12, 2012 3:08 PM, "Guan Xin" <[1]guanx@gmail.com> wrote: On Thu, Jul 12, 2012 at 11:23 AM, Armin Ranjbar <[2]z...@zoup.org> wrote: > > Â Â but what about when we are shutting down? there will be attemp

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread sfjro
Hello Armin, Armin Ranjbar: > but what about when we are shutting down? there will be attempt unmount > /root, but i think nothing will ever > to unmount /wr and /ro (which were mounted at initramfs level) > am i right here? After initramfs, you can unmount fs as usual which was mounted in initr

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread Guan Xin
On Thu, Jul 12, 2012 at 11:23 AM, Armin Ranjbar wrote: > >but what about when we are shutting down? there will be attempt unmount >/root, but i think nothing will ever >to unmount /wr and /ro (which were mounted at initramfs level) >am i right here? Is your "/wr" in "/etc/mtab"? I

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread Armin Ranjbar
On Thu, Jul 12, 2012 at 10:02 AM, <[1]sf...@users.sourceforge.net> wrote: It is totally up to what you mount and how you use it. If you use aufs as your root dir, then you should use initramfs or initrd instead of /etc/fstab. not related to this question, but i was wondering

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread Ilya Sretensky
Hello, Dan. Are those /var and /etc required for aufs or any network booted diskless client needs them mounted before the /etc/fstab file is parsed? It appears that now my sysinit runlevel script does it, and you suggest Dracut modules to do it. Junjiro says that is probably possible with /etc/fsta

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-12 Thread daniel
Hi Ilya, We bring up diskless clients via NFS using Gentoo and AUFS with tmpfs for rootfs, /var /etc and a few other folders. We use a dracut generated initrd with custom dracut modules in order to mount rootfs, /var and /etc cleanly at boot. The issue is getting /var /etc and rootfs mounted

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-11 Thread sfjro
Ilya Sretensky: > So the mounting script is still necessary for the mounting of ro > branch, as your answer says. > That makes my attempt pointless, since it involves the boot time > mounting script again. > But why is the ro branch mounting necessary in the script precisely > and not in the fstab

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-11 Thread Ilya Sretensky
Hello, Junjiro! Thank you for your reply. So the mounting script is still necessary for the mounting of ro branch, as your answer says. That makes my attempt pointless, since it involves the boot time mounting script again. But why is the ro branch mounting necessary in the script precisely and n

Re: How to configure aufs3 mounting in fstab for Gentoo?

2012-07-11 Thread sfjro
Hello Ilya, Ilya Sretensky: > I have the details at http://forums.gentoo.org/viewtopic-t-929586.html > But briefly I wish to combine to put it all into the /etc/fstab file > to get rid of the script. > Whether is that possible? It is totally up to what you mount and how you use it. If you use au

How to configure aufs3 mounting in fstab for Gentoo?

2012-07-11 Thread Ilya Sretensky
I have a complicated mounting scheme for Gentoo Linux network booted clients. It is made of a sysinit runlevel mounting script which runs first and /etc/fstab file which runs after. I have the details at http://forums.gentoo.org/viewtopic-t-929586.html But briefly I wish to combine to put it all