Koozali.org: home of the SME Server

Moving a system hard disc to another system and getting Kernel Panic

Offline brianr

  • *
  • 988
  • +2/-0
I am trying to move my EXT4 SME8.0b7 (+Upgrades)  to a different system.

I have broken the raid, and am just experimenting with one of the drives (the other one is still working fine on the original system).

When I boot from the SMEServer disc on the new system, I get a series of failed  to find "main" and others, and  finally a Kernel Panic.

I felt this was probably because the new system (probably) needs a different kernel module for the SATA discs, so I attempted an "upgrade" from the 8.0b7 ISO CD that I'd originally used for the install, thinking that this might re-assess the hardware and link in the correct modules, however Shad tells me that the Upgrade is only related to packages, not hardware.

So, anyone any ideas about how to get the system up and running?  I've done a bit of Googling, but found nothing that really fits my situation.

I realise that backup, re-install and restore is a dead cert way of doing it, but I thought I might be able to short circuit that!
 
I have the system available and can try whatever the team thinks
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline larieu

  • ****
  • 214
  • +0/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #1 on: October 31, 2011, 05:23:26 PM »
the safest way I have already used was to

1. install the new server as 'fresh install"
2. upgrade to the last available software ( yum update; signal-event post-upgrade; signal-event reboot; exit)
3. install all contribs you want to use (most probably you use on the older system - try to not configure them - ust install)
4. use this wiki how to http://wiki.contribs.org/Moving_SME_to_new_Hardware to move your data and settings from one server to the other one

I have tried also to move the main HDD onto one completely  different system and it was a failure
(I have dd-it and checked if the clone on the main system works - and tried with that clone - but no good results
« Last Edit: October 31, 2011, 05:25:28 PM by larieu »
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #2 on: October 31, 2011, 05:26:19 PM »
the safest way I have already used was to

1. install the new server as 'fresh install"
2. upgrade to the last available software ( yum update; signal-event post-upgrade; signal-event reboot; exit)
3. install all contribs you want to use (most probably you use on the older system - try to not configure them - ust install)
4. use this wiki how to http://wiki.contribs.org/Moving_SME_to_new_Hardware to move your data and settings from one server to the other one

Yes, as I said, in the posting, that is a good way to do it (I've done that many times in the past), but it takes time and I'd like to have a more immediate way at my fingertips.

It must be possible  :?:
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline larieu

  • ****
  • 214
  • +0/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #3 on: October 31, 2011, 05:34:23 PM »
it is quite rapid if you do it in small steps
let's say
you plan to change the hardware in 2 weeks time
in first Weekend install the new server with all contribs
and affa according to the wiki

then in the next WE (affa will have each day updated during schedule) you could try to just make the last part
I imagine that from Saturday to Sunday night to Sunday morning not to much data will be changed between this servers
that mean rsync will work quite fast

for me with around 450G data wasn't to problematic
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #4 on: October 31, 2011, 05:38:34 PM »
it is quite rapid if you do it in small steps
let's say
you plan to change the hardware in 2 weeks time
in first Weekend install the new server with all contribs
and affa according to the wiki

then in the next WE (affa will have each day updated during schedule) you could try to just make the last part
I imagine that from Saturday to Sunday night to Sunday morning not to much data will be changed between this servers
that mean rsync will work quite fast

for me with around 450G data wasn't to problematic

yes, yes I agree entirely, in-fact I've got both sets of hardware here now, I "just" need to move the hard drives, then I'll need to do it again for another system (into the one I am taking them out of), in about a week.

I'm not trying to be "difficult", I just felt that Linux being Linux it ought to be possible to switch without the re-install, just a matter of finding the relevant information.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #5 on: October 31, 2011, 05:39:41 PM »
how different is the new hw? I mean: cpu, mb, chipset etc?

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #6 on: October 31, 2011, 05:41:34 PM »
how different is the new hw? I mean: cpu, mb, chipset etc?

CPU is AMD, but I suspect the SATA controllers are different as the MB make is different.

I could give you more detail if you wished...

I have sucessfully installed SME8.0b6 on the "new" hardware in the past.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #7 on: October 31, 2011, 05:57:19 PM »
check sata settings on old and new hw, they should be the same..

you could also boot from cd in rescue mode, mount the SME install in read/write mode, then chroot (follow the instructions)

then..
Code: [Select]
cd /boot

then backup the old initrd and then create a new initrd image for the last kernel with
Code: [Select]
mv initrd-YOUR_LAST_USED_KERNEL.img initrd-YOUR_LAST_USED_KERNEL.img.old
mkinitrd  initrd-YOUR_LAST_USED_KERNEL.img  YOUR_LAST_USED_KERNEL

you can get the  YOUR_LAST_USED_KERNEL on the working machine with a
Code: [Select]
uname -r

HTH

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #8 on: October 31, 2011, 06:01:11 PM »
check sata settings on old and new hw, they should be the same..

Can you explain this a bit more?  do you mean your instructions will only work if the SATA "settings" are the same?  Not even sure what you mean by "settings" - do you mean controller type or some other internal settings?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #9 on: October 31, 2011, 06:03:13 PM »
I mean ahci and so on..

try the new initrd img way and let us know

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #10 on: October 31, 2011, 06:16:10 PM »
I mean ahci and so on..

try the new initrd img way and let us know

Stefano - Yes, that worked a treat!   :-P :-P We should wiki it, will you do it or shall I? 

Many thanks
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #11 on: October 31, 2011, 06:18:37 PM »
Stefano - Yes, that worked a treat!   :-P :-P We should wiki it, will you do it or shall I? 

Many thanks

I've lost my wiki account (my fault, of course).. please do, thank you

Offline brianr

  • *
  • 988
  • +2/-0
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #12 on: October 31, 2011, 06:21:53 PM »
I've lost my wiki account (my fault, of course).. please do, thank you

ok, I'll probably do it tomorrow now..  thanks again for your help.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline brianr

  • *
  • 988
  • +2/-0
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Moving a system hard disc to another system and getting Kernel Panic
« Reply #14 on: October 31, 2011, 10:02:15 PM »
I've lost my wiki account (my fault, of course).. please do, thank you
It should be the same as the one you use for the forums.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)