* [gentoo-user] NFS and portage tree
@ 2007-11-09 10:06 Uwe Thiem
2007-11-09 10:21 ` Neil Bothwick
0 siblings, 1 reply; 5+ messages in thread
From: Uwe Thiem @ 2007-11-09 10:06 UTC (permalink / raw
To: gentoo-user
Hi folks, here comes an interesting little problem.
I have two boxes, A and B, both running gentoo. Box B has got a full portage
tree, box A has none but nfs mounts it from B. This has worked for me for
several years.
Since some update lately, A can not nfs mount /usr/portage (or anything else)
from B. NFS mount is broken. I know that emerging nfs-utils will cure the
problem. On the other hand, I can not emerge nfs-utils on A without nfs
working. Hic rhodos, hic salta!
Anybody with an idea other than re-installing A?
Hm... Maybe with a livecd and chrooting.
Uwe
--
If a man speaks in a forest, and no woman listens to him,
is he still lying?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] NFS and portage tree
2007-11-09 10:06 [gentoo-user] NFS and portage tree Uwe Thiem
@ 2007-11-09 10:21 ` Neil Bothwick
2007-11-09 11:27 ` Uwe Thiem
0 siblings, 1 reply; 5+ messages in thread
From: Neil Bothwick @ 2007-11-09 10:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
On Fri, 9 Nov 2007 12:06:11 +0200, Uwe Thiem wrote:
> Since some update lately, A can not nfs mount /usr/portage (or anything
> else) from B. NFS mount is broken. I know that emerging nfs-utils will
> cure the problem. On the other hand, I can not emerge nfs-utils on A
> without nfs working. Hic rhodos, hic salta!
Set compatible CFLAGS etc. on B and emerge --buildpkgonly nfs-utils. Then
copy the package from $PKGDIR/All/nfs-utils-* to A using sneakernet and
unpack it into /. Then mount /usr/portage and emerge nfs-utils to make
sure it is installed properly.
Alternative, and less kludgy, solution. Tar up /usr/portage on B, unpack
it on A.
This reminds me of why I let each machine have its own portage tree and
run a local rsync mirror :)
--
Neil Bothwick
Do not meddle in the affairs of dragons, for thou art crunchy.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] NFS and portage tree
2007-11-09 10:21 ` Neil Bothwick
@ 2007-11-09 11:27 ` Uwe Thiem
2007-11-09 11:48 ` Neil Bothwick
2007-11-10 8:48 ` PaulNM
0 siblings, 2 replies; 5+ messages in thread
From: Uwe Thiem @ 2007-11-09 11:27 UTC (permalink / raw
To: gentoo-user
On 09 November 2007, Neil Bothwick wrote:
> On Fri, 9 Nov 2007 12:06:11 +0200, Uwe Thiem wrote:
> > Since some update lately, A can not nfs mount /usr/portage (or anything
> > else) from B. NFS mount is broken. I know that emerging nfs-utils will
> > cure the problem. On the other hand, I can not emerge nfs-utils on A
> > without nfs working. Hic rhodos, hic salta!
>
> Set compatible CFLAGS etc. on B and emerge --buildpkgonly nfs-utils. Then
> copy the package from $PKGDIR/All/nfs-utils-* to A using sneakernet and
> unpack it into /. Then mount /usr/portage and emerge nfs-utils to make
> sure it is installed properly.
Thanks, Neil. Fortunately, the idea about a livecd and chroot worked. A can
nfs mount again.
>
> Alternative, and less kludgy, solution. Tar up /usr/portage on B, unpack
> it on A.
Too big a thing for A. There is a reason why it doesn't have its own portage
tree. ;-)
Uwe
--
If a man speaks in a forest, and no woman listens to him,
is he still lying?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] NFS and portage tree
2007-11-09 11:27 ` Uwe Thiem
@ 2007-11-09 11:48 ` Neil Bothwick
2007-11-10 8:48 ` PaulNM
1 sibling, 0 replies; 5+ messages in thread
From: Neil Bothwick @ 2007-11-09 11:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 542 bytes --]
On Fri, 9 Nov 2007 13:27:54 +0200, Uwe Thiem wrote:
> > Alternative, and less kludgy, solution. Tar up /usr/portage on B,
> > unpack it on A.
>
> Too big a thing for A. There is a reason why it doesn't have its own
> portage tree. ;-)
You could get away with copying only the directories you need. Or just
stick the directories on a USB stick and do
PORTDIR_OVERLAY="/media/sda1" emerge nfs-utils
--
Neil Bothwick
Women live longer than men because they have so many clothes that they
wouldn't be caught dead in.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] NFS and portage tree
2007-11-09 11:27 ` Uwe Thiem
2007-11-09 11:48 ` Neil Bothwick
@ 2007-11-10 8:48 ` PaulNM
1 sibling, 0 replies; 5+ messages in thread
From: PaulNM @ 2007-11-10 8:48 UTC (permalink / raw
To: gentoo-user
Uwe Thiem wrote:
> Too big a thing for A. There is a reason why it doesn't have its own portage
> tree. ;-)
>
> Uwe
You could also loopback mount a file just for portage, which shrinks the
needed space down considerably. I use reiserfs with tail packing to fit
the whole tree onto a 260 megabyte file.
On a test directory in an ext3 partition..
du -h portagetest
561M portagetest
Actual portage setup...
df -h
/root/portage.img 260M 248M 13M 96% /usr/portage
ls -lha /root/portage.img
-rw-r--r-- 1 root root 260M 2007-11-09 20:03 /root/portage.img
/etc/fstab entry...
/root/portage.img /usr/portage auto loop,noatime,nodev 0 2
Down to almost half is pretty darn good in my book. Of course, packages
and distfiles are kept elsewhere. All my systems are different chosts,
so no sharing packages; and I use http-replicator, so no need for
distfiles saved on every machine.
PaulNM
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-10 9:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-09 10:06 [gentoo-user] NFS and portage tree Uwe Thiem
2007-11-09 10:21 ` Neil Bothwick
2007-11-09 11:27 ` Uwe Thiem
2007-11-09 11:48 ` Neil Bothwick
2007-11-10 8:48 ` PaulNM
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox