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
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
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