Koozali.org: home of the SME Server

Adding additional NIC on install error

David Randall

Adding additional NIC on install error
« on: January 03, 2003, 06:18:36 PM »
I have followed the setup instructions to the letter on http://www.e-smith.org/docs/howto/contrib/SME_High_Availability_How-To.htm and have hit a problem early on.
 
Notably at Section A step 3.
 
I am trying to ;
 
Expand the new template by executing:
/sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth1
 
But the error produced is;
The /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1/ifcfg-eth1 file is exactly as shown on the 'how-to' page i.e.

DEVICE=eth1
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.0.1
NETMASK=255.255.255.0
NETWORK=10.0.0.0
BROADCAST=10.0.0.255

In /etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-eth1/template-begin:USe of unintialized value in pattern match (m//) at /usr/lib/perl5/site/perl/esmith/util.pm line 152.
In /etc/e-smith/templates//etc/sysconfig/network-scripts/ifcfg-eth1/template-begin: Use of uninitialized value in concatenation (.) or string at /etc/smith/templates//etc/sysconfig/network-scripts/ifcfg-eth1/template-begin line 38.
 
This puts the correct /etc/sysconfig/network-scripts/ifcfg-eth1 file there but has not all completed data i.e.
 
the IPADDR= and NETWORK= are blank and the BROADCAST=0.0.0.255
 
Have you any ideas as this is causing me an issue.
 
N.B. the NICs are both supported and the SME is configured as Server Only, as stated in the documentation.

guestHH

Re: Adding additional NIC on install error
« Reply #1 on: January 03, 2003, 07:16:51 PM »
Hi,

Did you fill the newly created template (eth1) with the mentioned info:

SecA Step3

-----------------------------
 Enter the newly created directory and change the new config file of eth1 with the correct private net values for goliath and david (below config is for goliath)

DEVICE=eth1
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.0.1
NETMASK=255.255.255.0
NETWORK=10.0.0.0
BROADCAST=10.0.0.255
---------------------------

After entering this info into the template, then issue the expand command.

Regards,
guestHH

David Randall

Re: Adding additional NIC on install error
« Reply #2 on: January 03, 2003, 07:54:29 PM »
RequestedDeletion,

yes, all the correct data is entered - exactly as the documentation states.

Also, the documentation did say to ;

Create a custom template for the new NIC:
mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ ifcfg-eth1

There is a space at the end before the directory ifcfg-eth1, but I guess this is just a typo.

I could manually edit the /etc/sysconfig/network-scripts/ifcfg-eth1 file, not recommended, but it gets overwritten whenthe server is rebooted.

Thanks anyway,

Dave

guestHH

Re: Adding additional NIC on install error
« Reply #3 on: January 03, 2003, 10:18:12 PM »
edit /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth1 instead and expand the template. changes are then preserved.

Regards,
guestHH