Diskless clients sporadically failing to boot

Issues related to configuring your network
Post Reply
ben23f
Posts: 1
Joined: 2017/05/05 04:43:57

Diskless clients sporadically failing to boot

Post by ben23f » 2017/05/05 05:17:21

Hi, i have a server running CentoOS 6.8 that is acting as a file server for a number of diskless clients. The problem i am having is that every now and again some or all clients stop booting. The error occurs immediately after
creating root device: /path/to/client/root
The tricky part of this is that half the clients are on one network ( e.g. 129.130.x.x) , the other half on another network ( e.g. 192.168.x.x)
The server has hostname server1 but its single ethernet port has server2 aliased (server1 and server2 are both in /etc/hosts)

The steps i go to setting up the system are:

add client addresses and hostnames to /etc/hosts

add the following to /etc/sysconfig/network

Code: Select all

NISDOMAIN=MYDOMAIN

add the following lines to /etc/yp.conf

Code: Select all

domain MYDOMAIN server server1
domain MYDOMAIN server server2
disable network manager, iptables, iptables6

create file /etc/sysconfig/ypbind with contents

Code: Select all

OTHER_YPBIND_OPTS="-no-dbus"
add the following to /etc/hosts.allow

Code: Select all

mountd: @netgrp1
mountd: @netgrp2
add the following to /etc/netgroup

Code: Select all

netgrp1 (client1,,) (client2,,) (clients3,,) ...
netgrp2 (client1a,,) (client2a,,) (client3a,,) ...
in /etc/exports

Code: Select all

/path/to/client/root   @netgrp1(rw,insecure,no_root_squash)
/path/to/client/root   @netgrp2(rw,insecure,no_root_squash)
modify /var/yp/Makefile so target "all" builds the following, then run the make file

Code: Select all

passwd groups hosts rpc services netid protocols netgroup networks ethers bootparams
The error seems to be in mountd i get the following log in /var/log/messages where 192.168.x.x is the server2 address
refused mount request from 192.168.x.x:/path/to/client/root : unmatched host
If there's any more information you need please ask, this problem is starting to drive me mad!
Thanks

Post Reply

Return to “CentOS 6 - Networking Support”