my first post in the forums, I hope this is the right section for the post. I come from a different background (mainly Solaris and Red Hat) and trying to move first steps in the Suse world, so far so good but I’ve a problem that I’m unable to solve.
As per title we are deploying some SLES machines via PXE and autoyast configuration files, as these servers are equipped with multiple network cards with different manufacturer/speed/specs I would need to define the network card name in a predictable way so reading around I’ve found this article which explains how to do this via udev rules but whatver I try to implement it I get a segmentation fault after the first reboot and the auconfiguration is not completed leaving me with a server I cannot even access as all passwords/users are managed through post-install scripts. If this makes any difference I also configure bond networks via autoyast, below the interesting bits of my configuration :
....
yes
mode=active-backup miimon=100
eth0
eth1
static
bond0
MY_IP_ADDRESS
MASK
CIDR_MASK
auto
no
...
This works like a charm but if I add the following code to control the udev rules the machine segfaults and does not complete correctly :
As you can see I do this using the bus system ID of the network card and not the mac address, so not sure if this is causing the problem or makes anything different.
No the server has not been reinstalled without the bonding, part because I did not have time (next on the to do list) part because having the bond there is a requirement… well in case I can script this.
As per editor I’m using VI, is there anything else ? So no “dirty” characters in the config file.
Between tonight (4:40pm here) and tomorrow I will try to put aside some spare time and rebuild the server without the bond configuration and will let you know how it went.
Making a long story short I basically had a “” in the wrong place just before the udev rules, while it did not cause the installer to complain it segfaulted when configuring network as per ay.xml file.
I did not notice this immediately but only when I edited the file trying to remove the bond configuration, I removed it and put just AFTER the udev rules and now everything is working as intended, I feel both silly and relieved
On a side note I was wondering if any script or tool to validate autoyast xml file do exist, it would be handy in situations like this eheheh
Againthanks for your help and for pointing me in the right direction.
Not sure about a specific program that validates autoyast files, maybe
use color in vi?
You can post actual configs etc, just put in between the code tags if
it’s a large file, then there is also http://paste.opensuse.org/ and you
can select the file format, eg diff, xml etc. Just set the expire to
never expire (and make it private if you want).
There are other options, like http://susestudio.com you can upload your
autoyast files and build the system, test the build in ‘Test
Drive’, modify it etc and create your own install dvd, cd image etc.
Might be worth while to investigate at least for your testing.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 2 days 20:29, 3 users, load average: 0.14, 0.08, 0.11
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU
Thanks Malcolm, I already have 4 eyes… but it seems they are not enough
I already do use colors in vi but you know I’m a lazy person eheheh I will give the suse studio a go even if not sure if that can help as in my testing use of custom kernel and repos for packages we develop internally is involved but that’s the easy part.
Again thanks for the well worth of info and help you gave me.