Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] pxe boot + nfs mountpoints

9 views
Skip to first unread message

James

unread,
Jun 29, 2009, 1:30:17 PM6/29/09
to
All,

I am having a weird problem and I'm going nuts trying to figure out
what may be going wrong.

I've followed the "Diskless Nodes" document[1] on the g.o website. So
far my machine will PXE boot and mount root partition without any
issues.

The diskless client, however, does *not* mount the non-root partitions
(such as /opt, /usr, etc.). This results in a system with no /usr
partition and a ton of my tools missing. ;)

If I log into the crippled system, however, I can manually mount /usr
and /opt. Things work better at that point.

Here's the fstab file inside of /diskless/gentoo/etc/:

10.1.1.5:/diskless/gentoo / nfs
sync,hard,intr,rw,nolock,rsize=8192,wsize=8192 0 0
10.1.1.5:/opt /opt nfs
sync,hard,intr,ro,nolock,rsize=8192,wsize=8192 0 0
10.1.1.5:/usr /usr nfs
sync,hard,intr,ro,nolock,rsize=8192,wsize=8192 0 0
10.1.1.5:/home /home nfs
sync,hard,intr,rw,nolock,rsize=8192,wsize=8192 0 0
none /proc proc defaults
0 0

-----

/etc/exports is as follows:

/pxe/diskless/gentoo *(sync,rw,no_root_squash,no_all_squash,no_subtree_check)
/opt *(sync,ro,no_root_squash,no_all_squash,no_subtree_check)
/usr *(sync,ro,no_root_squash,no_all_squash,no_subtree_check)
/home *(sync,rw,no_root_squash,no_all_squash,no_subtree_check)
/var/log *(sync,rw,no_root_squash,no_all_squash,no_subtree_check)

Any thoughts on why these partitions are not mounting automatically?
I've even appended "auto" to the fstab mountpoints with no success.

Help greatly appreciated. :)

-j

1 http://www.gentoo.org/doc/en/diskless-howto.xml

James

unread,
Jun 29, 2009, 3:10:22 PM6/29/09
to
Okay, I've gotten a little further by moving some of the runscripts to
/etc/runlevel/boot.

I still, however, can't seem to get /usr/ nfs mounted before some of
the boot runlevel daemons kick off (like keymap, etc.).

I think part of the problem is I'm using OpenRC. Any way on forcing
netmount init script to kick off before everything else?

-j

James

unread,
Jun 30, 2009, 4:30:09 PM6/30/09
to
bump

James

unread,
Jul 5, 2009, 11:50:08 AM7/5/09
to
Any thoughts?

Sascha Hlusiak

unread,
Jul 12, 2009, 5:30:15 AM7/12/09
to
Am Monday 29 June 2009 19:19:53 schrieb James:
> /etc/exports is as follows:
>
> /pxe/diskless/gentoo
> *(sync,rw,no_root_squash,no_all_squash,no_subtree_check) /opt
> *(sync,ro,no_root_squash,no_all_squash,no_subtree_check) /usr
> *(sync,ro,no_root_squash,no_all_squash,no_subtree_check) /home
> *(sync,rw,no_root_squash,no_all_squash,no_subtree_check)
> /var/log
> *(sync,rw,no_root_squash,no_all_squash,no_subtree_check)
>
> Any thoughts on why these partitions are not mounting automatically?
> I've even appended "auto" to the fstab mountpoints with no success.

Why do you want to export /pxe/diskless/gentoo but /usr from the server?
Wouldn't that result in a weird mixed Gentoo system, where you have to be
careful what to emerge?

My PXE system has the whole client system in /pxe/diskless/gentoo, so I can
even use emerge, etc. from the clients without worrying about a mixed /usr.

I do not know a solution to your problem though.

- Sascha

signature.asc
0 new messages