Difference between revisions of "I586 i686"

From SME Server
Jump to navigationJump to search
m
Line 5: Line 5:
  
  
{{Warning box|'''architecture change from i586 to i686):'''
+
{{Warning box|'''architecture change from i586 to i686'''
 
It´s not for the newbies... and you should to have '''TWO copies of verified backup''', just in case}}
 
It´s not for the newbies... and you should to have '''TWO copies of verified backup''', just in case}}
  

Revision as of 22:31, 11 November 2009


PythonIcon.png Skill level: Advanced
The instructions on this page may require deviations from standard procedures. A good understanding of linux and Koozali SME Server is recommended.


This HowTo are based on this fixed bug.


Warning.png Warning:
architecture change from i586 to i686

It´s not for the newbies... and you should to have TWO copies of verified backup, just in case


Description

This HowTo is to explain what to do when you migrate HDD from a i586 machine (Epia C3 Ezra for example) to a i696 (Pentium III or later).

How to be sure you´re running on i586 kernel

If you not sure about what kernel you´re running, you can do several things to be sure:

uname -a

It´ll show you something like:

Linux lobo 2.6.9-78.0.22.EL #1 Thu Apr 30 19:06:46 EDT 2009 i686 i686 i386 GNU/Linux

Please do not trust it and double check with:

yum list kernel

you´ll see something like this:

=============================================================
Loading "protect-packages" plugin
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Loading "smeserver" plugin
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished  
Excluding Packages from CentOS - os
Finished
Installed Packages
kernel.i586                              2.6.9-78.0.8.EL        installed       
kernel.i586                              2.6.9-67.0.7.EL        installed       
kernel.i586                              2.6.9-78.0.22.EL       installed       
kernel.i586                              2.6.9-78.0.13.EL       installed       
================================================================
No new rpms were installed. No additional commands are required.
================================================================


As you can see (this examples are from real world) uname report i686 but yum know what it installed i586 kernel!

you can even double check this with rpm with

rpm -q --queryformat "%{ARCH}\n" kernel

should result on something like this:

i586
i586
i586
i586

Ok... no more doubts from here: you´re running a i586 kernel.

Updating kernel (and addons)

Getting new i686 files

Open a new browser windows and download from here this files:

kernel-2.6.9-XX.YY.ZZ.EL.i686.rpm 
kernel-smp-2.6.9-XX.YY.ZZ.EL.i686.rpm   
kmod-appletalk-J.K-L.el4.sme.i686.rpm   
kmod-ppp-J.K.L-M.el4.sme.i686.rpm
kmod-slip-J.K-L.el4.sme.i686.rpm 


Warning.png Warning:
number of processors / cores

This list above is for single processor / core situation. If you have more than one processor / core you should download the smp version of that files when available.


meaning of X Y Z J K L M

You´ll see different number for for this letters, the important thing is each letter represent same number on all files!!


installing packages

fo be able to install your recently downloaded packages you must to update

/etc/rpm/platform 

from

i586-redhat-linux

to

i686-redhat-linux

now double check if was updated

cat /etc/rpm/platform         

if you see:

i686-redhat-linux

you can continue: as we´re going to update kernel, let´s just test it before go live: PLEASE USE ivh NOT Uvh or you´ll delete all other kernels (I´m sure about this because I did it!)

rpm -ivh --test --replacefiles --replacepkgs --ignorearch kernel* kmod* 

if everything is fine, go ahead and install those new packages!

rpm -ivh --replacefiles --replacepkgs --ignorearch kernel* kmod* 

If everything is fine till now, verify again with:

yum list kernel

as you is happy with results do a reboot and choose new kernel. After reboot, verify AGAIN with:

yum list kernel
cat /etc/rpm/plataform

If anything do not works, please open a bug report.