public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Emerge server
@ 2011-03-21 10:40 Peter Humphrey
  2011-03-21 11:30 ` Gregory Fontenele
  2011-03-21 11:44 ` Peter Humphrey
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Humphrey @ 2011-03-21 10:40 UTC (permalink / raw
  To: gentoo-user

Hello list,

I'm setting my i5 workstation up to be an emerge host to a new Atom N550 box 
on the LAN. I've created a 32-bit chroot at /mnt/atom on the i5 box, written 
an init.d script to mount the Atom's whole file system on /mnt/atom/target 
over NFS, and set an alias
	tmerj='emerge --root=/target --jobs=5 --keep-going'
in /mnt/atom/etc/profile.d/profile_aliases.sh.

The Atom box has had nfs-utils installed at an early stage so that the 
workstation can do all the heavy work. Its /etc/exports file says
	/ 192.168.2.6(sync,rw,no_root_squash,no_subtree_check

This appears to be working, but for an odd wrinkle (and it's too early to 
declare success of the whole operation). Some packages, such as MySQL, when 
I've installed them this way have also been installed in parallel on the 
host machine. At least, that appeared to be happening because for several 
packages I had one job emerge " to /target/" and another emerge without that 
qualification. Yet when I cat /mnt/atom/var/lib/portage/world, it's empty.

How should I interpret this? Have I missed something in the setup? I'm also 
unsure of the effect of /proc and /sys being nfs-exported from the Atom, so I 
think I'll make the export a bit more selective (when gentoo-sources have 
finished being written to disk - it's been about 20 minutes so far).

Incidentally, one thing I've noticed is that the final stage of installing 
gentoo-sources, the writing to disk of all the files, takes many minutes 
because of the slow 2.5" disk in the Atom box. The rest of the operation, so 
far, is pleasingly quick - much better than building natively on the Atom.

-- 
Rgds
Peter



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

* Re: [gentoo-user] Emerge server
  2011-03-21 10:40 [gentoo-user] Emerge server Peter Humphrey
@ 2011-03-21 11:30 ` Gregory Fontenele
  2011-03-21 11:47   ` Neil Bothwick
  2011-03-21 11:44 ` Peter Humphrey
  1 sibling, 1 reply; 6+ messages in thread
From: Gregory Fontenele @ 2011-03-21 11:30 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org; +Cc: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]

any manager can I unsubscribe from this list?

Enviado via iPhone

Em 21/03/2011, às 07:40, Peter Humphrey <peter@humphrey.ukfsn.org> escreveu:

> Hello list,
> 
> I'm setting my i5 workstation up to be an emerge host to a new Atom N550 box 
> on the LAN. I've created a 32-bit chroot at /mnt/atom on the i5 box, written 
> an init.d script to mount the Atom's whole file system on /mnt/atom/target 
> over NFS, and set an alias
>    tmerj='emerge --root=/target --jobs=5 --keep-going'
> in /mnt/atom/etc/profile.d/profile_aliases.sh.
> 
> The Atom box has had nfs-utils installed at an early stage so that the 
> workstation can do all the heavy work. Its /etc/exports file says
>    / 192.168.2.6(sync,rw,no_root_squash,no_subtree_check
> 
> This appears to be working, but for an odd wrinkle (and it's too early to 
> declare success of the whole operation). Some packages, such as MySQL, when 
> I've installed them this way have also been installed in parallel on the 
> host machine. At least, that appeared to be happening because for several 
> packages I had one job emerge " to /target/" and another emerge without that 
> qualification. Yet when I cat /mnt/atom/var/lib/portage/world, it's empty.
> 
> How should I interpret this? Have I missed something in the setup? I'm also 
> unsure of the effect of /proc and /sys being nfs-exported from the Atom, so I 
> think I'll make the export a bit more selective (when gentoo-sources have 
> finished being written to disk - it's been about 20 minutes so far).
> 
> Incidentally, one thing I've noticed is that the final stage of installing 
> gentoo-sources, the writing to disk of all the files, takes many minutes 
> because of the slow 2.5" disk in the Atom box. The rest of the operation, so 
> far, is pleasingly quick - much better than building natively on the Atom.
> 
> -- 
> Rgds
> Peter
> 

[-- Attachment #2: Type: text/html, Size: 2829 bytes --]

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

* Re: [gentoo-user] Emerge server
  2011-03-21 10:40 [gentoo-user] Emerge server Peter Humphrey
  2011-03-21 11:30 ` Gregory Fontenele
@ 2011-03-21 11:44 ` Peter Humphrey
  2011-03-21 13:39   ` Peter Humphrey
  2011-03-29 16:15   ` Peter Humphrey
  1 sibling, 2 replies; 6+ messages in thread
From: Peter Humphrey @ 2011-03-21 11:44 UTC (permalink / raw
  To: gentoo-user

On Monday 21 March 2011 10:40:52 I wrote:

> Have I missed something in the setup?

I had. I'd missed "--config-root=/target" to go with "--root=target".

Sorry about the noise - though someone may be interested in how I'm 
implementing the idea of an emerge server.

-- 
Rgds
Peter



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

* Re: [gentoo-user] Emerge server
  2011-03-21 11:30 ` Gregory Fontenele
@ 2011-03-21 11:47   ` Neil Bothwick
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2011-03-21 11:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 376 bytes --]

On Mon, 21 Mar 2011 08:30:46 -0300, Gregory Fontenele wrote:

> any manager can I unsubscribe from this list?

You don't get off mailing lists by spamming them.

If you are incapable of following the instructions you have already been
given, you could always killfile the list's address, as I am doing with
yours.


-- 
Neil Bothwick

(A)bort (R)etry (S)ell it

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user] Emerge server
  2011-03-21 11:44 ` Peter Humphrey
@ 2011-03-21 13:39   ` Peter Humphrey
  2011-03-29 16:15   ` Peter Humphrey
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Humphrey @ 2011-03-21 13:39 UTC (permalink / raw
  To: gentoo-user

On Monday 21 March 2011 11:44:47 I wrote:
> On Monday 21 March 2011 10:40:52 I wrote:
> > Have I missed something in the setup?
> 
> I had. I'd missed "--config-root=/target" to go with "--root=target".

The next problem comes when installing xorg-xserver, which tries to find a 
kernl config in /usr/src/linux/ and doesn't find one. Maybe I'll have to 
symlink /usr/src/linux to /target/usr/src/linux. I'll have to think about 
that one.
 
Rgds
Peter



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

* Re: [gentoo-user] Emerge server
  2011-03-21 11:44 ` Peter Humphrey
  2011-03-21 13:39   ` Peter Humphrey
@ 2011-03-29 16:15   ` Peter Humphrey
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Humphrey @ 2011-03-29 16:15 UTC (permalink / raw
  To: gentoo-user

On Monday 21 March 2011 11:44:47 I wrote:
> On Monday 21 March 2011 10:40:52 I wrote:
> > Have I missed something in the setup?
> 
> I had. I'd missed "--config-root=/target" to go with "--root=target".

I'm now finding one problem that threatens to invalidate the whole idea. Today I 
returned after a few days away and ran an update, after mounting the Atom's file 
systems to /mnt/atom/target on the i5 and chrooting into /mnt/atom.

12 packages needed to be updated; four of those were installed to the chroot and 
the other eight to the target. They should all have gone to the target.

Has anyone here tried working this way? I can't tell whether the problem is 
woolly thinking on my part or problems in portage. I did think portage had all 
the tools it needs to maintain another system mounted on a target directory 
under the file-system root.

-- 
Rgds
Peter



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

end of thread, other threads:[~2011-03-29 16:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 10:40 [gentoo-user] Emerge server Peter Humphrey
2011-03-21 11:30 ` Gregory Fontenele
2011-03-21 11:47   ` Neil Bothwick
2011-03-21 11:44 ` Peter Humphrey
2011-03-21 13:39   ` Peter Humphrey
2011-03-29 16:15   ` Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox