linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some Union Mount questions
@ 2010-05-21 22:06 David Brown
  2010-05-24 20:44 ` Valerie Aurora
  0 siblings, 1 reply; 2+ messages in thread
From: David Brown @ 2010-05-21 22:06 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: vaurora

Okay so its been a while so I figured I'd better update on things.

It Works!

I've gotten it to work using Val's documentation at
http://valerieaurora.org/union/ with some additions to the initramfs
package to generate the correct initrd

# cat etc/initramfs-tools/scripts/nfs-bottom/union
#!/bin/sh

# init-premount script for lvm2.

PREREQS=""
prereqs()
{
	echo $PREREQS
}

case "$1" in
	prereqs)
	prereqs
	exit 0
	;;
esac

echo "mounting union tmpfs"
mount.union -n -o union -t tmpfs none ${rootmnt}
# cat etc/initramfs-tools/hooks/union
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

copy_exec /bin/mount /bin/mount.union
#

Then it works pretty good. (I really like debians initramfs package).

I can stand up an 8 node cluster with an nfs read only root file
system and it works!

However, the output of the kernel is very verbose lots of debug
messages about how you are managing the tmpfs part of the union. Also
lots of duplicate entries, which seems weird.

May 21 21:53:24 x6 kernel: [   56.558749] lib: appending to union

Does this mean you are appending /lib to the union tmpfs over and over?

So df doesn't show any leaking of the processes running on the system
syslog is going over the wire to a central server, there's 7 agetty's
running, udev is kinda freaking out (kernel version difference I
guess), and cron is running. So the image is pretty stripped down.
This is pretty usual for an HPC compute node. I'm currently doing some
long tests trying to determine how fast would tmpfs fill up and what
would be filling it up.

Also, when is it going to be included to mainline stuff? Also, should
I put a redhat bugzilla request in for inclusion into RHEL 6.1/2?

Sadly, this wonderful feature would be more easily adopted here if it
was included into RHEL 6.1 or 6.2 at some point.

Thanks,
- David Brown

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Some Union Mount questions
  2010-05-21 22:06 Some Union Mount questions David Brown
@ 2010-05-24 20:44 ` Valerie Aurora
  0 siblings, 0 replies; 2+ messages in thread
From: Valerie Aurora @ 2010-05-24 20:44 UTC (permalink / raw)
  To: David Brown; +Cc: linux-fsdevel

On Fri, May 21, 2010 at 03:06:30PM -0700, David Brown wrote:
> Okay so its been a while so I figured I'd better update on things.
> 
> It Works!
> 
> I've gotten it to work using Val's documentation at
> http://valerieaurora.org/union/ with some additions to the initramfs
> package to generate the correct initrd
> 
> # cat etc/initramfs-tools/scripts/nfs-bottom/union
> #!/bin/sh
> 
> # init-premount script for lvm2.
> 
> PREREQS=""
> prereqs()
> {
> 	echo $PREREQS
> }
> 
> case "$1" in
> 	prereqs)
> 	prereqs
> 	exit 0
> 	;;
> esac
> 
> echo "mounting union tmpfs"
> mount.union -n -o union -t tmpfs none ${rootmnt}
> # cat etc/initramfs-tools/hooks/union
> #!/bin/sh
> 
> PREREQ=""
> 
> prereqs()
> {
> 	echo "$PREREQ"
> }
> 
> case $1 in
> prereqs)
> 	prereqs
> 	exit 0
> 	;;
> esac
> 
> . /usr/share/initramfs-tools/hook-functions
> 
> copy_exec /bin/mount /bin/mount.union
> #
> 
> Then it works pretty good. (I really like debians initramfs package).
> 
> I can stand up an 8 node cluster with an nfs read only root file
> system and it works!

Great news!  Thanks for sharing your scripts!

> However, the output of the kernel is very verbose lots of debug
> messages about how you are managing the tmpfs part of the union. Also

There should be a separate debugging patch that you can remove.

> lots of duplicate entries, which seems weird.
> 
> May 21 21:53:24 x6 kernel: [   56.558749] lib: appending to union
> 
> Does this mean you are appending /lib to the union tmpfs over and over?

No, it's not - this is a misleading debugging message.  We do call
append_to_union() each time we lookup a unioned directory, even if we
already constructed the union stack.  It bails out if it finds the
union has already been created.  The next rewrite will not do this.

> So df doesn't show any leaking of the processes running on the system
> syslog is going over the wire to a central server, there's 7 agetty's
> running, udev is kinda freaking out (kernel version difference I
> guess), and cron is running. So the image is pretty stripped down.
> This is pretty usual for an HPC compute node. I'm currently doing some
> long tests trying to determine how fast would tmpfs fill up and what
> would be filling it up.
> 
> Also, when is it going to be included to mainline stuff? Also, should
> I put a redhat bugzilla request in for inclusion into RHEL 6.1/2?

I still don't know when it will be in mainline.  I got a code review
from Al and I am rewriting to his specifications (this is the third
version).

> Sadly, this wonderful feature would be more easily adopted here if it
> was included into RHEL 6.1 or 6.2 at some point.

Backporting to RHEL 6.1 or 6.2 is part of the plan at this point.  I'm
not looking forward to it, but that's life at a distro. :)

Thanks for testing!

-VAL

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-24 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 22:06 Some Union Mount questions David Brown
2010-05-24 20:44 ` Valerie Aurora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).