Koozali.org: home of the SME Server

I need new NICs

Offline jwhitmor

  • 3
  • +0/-0
I need new NICs
« on: October 02, 2017, 12:31:12 AM »
Lightning struck a utility pole at our location. The AC power supply is protected by backup power, grounding, and surge suppression, which saved the server and the hard drive raid array. The inducted currents in the network wiring, destroyed the two network interface cards. We installed spares and so now get a warning on startup that says, (basically) "MAC address does not match, ignoring". (once for red, and once for green). Then the system goes into a loop. I am certain this has happened before (elsewhere) so there is most likely a convenient way to get into configuration to assign the new network cards. I have searched, but I can't find it. In the Admin Manual Chapter 5: it states, "To change configuration settings, you have set during install, at a later date you can login as admin user to your server console and choose the option to Reconfigure your server. You will be take through the configuration routine just like during installation. Make your necessary changes or use the Keep option to preserve the settings you have set previously." I would like to do that, but I have not figured out how to get far enough to login. I am obviously missing something.
I can start with the official CD and issue Linux rescue, tell the network not to start. Possibly there is a configuration file I can edit to replace the two old NIC's media access codes with the new MACs ? What would be the proper way to fix this?
« Last Edit: October 02, 2017, 12:53:49 AM by jwhitmor »

Offline ReetP

  • *
  • 3,940
  • +6/-0
Re: I need new NICs
« Reply #1 on: October 02, 2017, 02:28:52 AM »
What version of SME (just to be sure)

Surprised you never get to a console login.

Wondering if there are other issues at play?

You would normally get to a console login, login as admin and follow the reconfig procedure.

I don't have the specific reconfigure commands to hand as I'm away from a computer.

You can't usually just edit a conf file directly as they are auto generated by the server manager code.

However I think the files you need are in /etc/sysconfig

If you can, mount the drives and check logs for errors first. Is the new card compatible?

Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline jwhitmor

  • 3
  • +0/-0
Re: I need new NICs
« Reply #2 on: October 02, 2017, 04:59:38 AM »
Thank you John,
The startup proceeds normally until the system tries to bring up eth0 and eth1, both of which fail with the error: "ignoring, device has a different MAC address."  Then the startup loops with the same error repeated;

"(99)Cannot assign requested address: make_sock: could not bind to address 192.168.0.1:80
no listening sockets available, shutting down
Unable to open logs"

(loops continuously)
(The server LAN (green) address is 192.168.0.1)

This makes sense (to me anyway) if the network card interfaces are not initialized. In this state it is not possible to communicate with the server. When I boot the CD and use Linux rescue, I can say "No" when asked if I want to bring up the network. This allows console communication, since it does not use the network interfaces.

The server is running SME ver. 8.2.  This is a document server used internally with no connection outside the building so it has not yet been upgraded.

***Please see next reply first***
« Last Edit: October 02, 2017, 05:35:41 AM by jwhitmor »

Offline jwhitmor

  • 3
  • +0/-0
Re: I need new NICs
« Reply #3 on: October 02, 2017, 05:47:40 AM »
Thank you again, "I am in"  :-P
I noticed the startup message about, enter "I" for interactive startup. It took a couple tries to get it right, but if I switched to interactive startup, and said "yes" to all services, except: Network, Wan, and Lapd which I answered with "no". This allowed startup to complete to the administrative login on the console terminal. SO I logged in, checked the file systems (clean) checked the raid status (synchronized and clean) and ran the configuration, leaving everything the same except assigning the new network cards. A reboot, and back to business as usual. Before putting the server back into daily use, we are doing another current console backup, and will upgrade the software to ver. 9.2.
Appreciate you pointing me in the right direction,
J.W.

Offline ReetP

  • *
  • 3,940
  • +6/-0
Re: I need new NICs
« Reply #4 on: October 02, 2017, 09:40:00 AM »
NP and well done for sorting it out.

I had completely forgotten about Interactive - very neat trick.

Please do upgrade - even on non essential servers. If you have an issue with v8 and earlier you are pretty well much on your own....

Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

guest22

Re: I need new NICs
« Reply #5 on: October 02, 2017, 11:12:00 PM »
as a note to self, remove udev rule (70 networking?) and post-upgrade, reboot will solve such an issue in no time.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: I need new NICs
« Reply #6 on: October 03, 2017, 08:06:29 AM »
as a note to self, remove udev rule (70 networking?) and post-upgrade, reboot will solve such an issue in no time.
On SME8, maybe (not sure). But definitely not on SME9, which has been improved to work with arbitrary NIC names, so it doesn't matter if your new NIC are eth2 and eth3 as long as you select them in the console menu
C'est la fin du monde !!! :lol: