2010/05/08

Upgrading a 1&1 Dynamic Cloud Server from Ubuntu 8.04 LTS to 10.04 LTS

My first try following the instructions for Lucid was not successful, after shutdown -r now the Dynamic Cloud Server did not start up again. It is a pity that there is no serial console nor a Rescue or Repair-mode, so I gave it another try...

After loads of retries (new initialisation, waiting and another execution of do-release-upgrade --devel-release) I found the solution in the end:

  • While do-release-upgrade --devel-release updated dhclient I took the old configuration with static-route, see dhclient: classless static route, bug? as well.
  • As I had no second chance to boot without security, I removed apparmor (apt-get remove apparmor), maybe I will install this again after some research.
  • Most important: New Linux-Kernels include a new IDE-driver, which adresses former hda devices as sda, so I changed three things after the package update but before reboot:
    • In /boot/grub/menu.lst I replaced # kopt=root=/dev/hda1 ro console=tty0 console=ttyS0,57600 with # kopt=root=/dev/sda1 ro console=tty0 console=ttyS0,57600.
    • After that I called update-grub to update the configuration of grub.
    • In /etc/fstab I replaced all occurrences of hda with sda.

Now the server is up and running again :-)

8 comments:

  1. Thank you very much! This article probably prevented similar experiences for me! You should consider to use flattr, I would enjoy to show some love for this one! :-D

    ReplyDelete
  2. Hi, I'm looking to upgrade my 8.04 LTS dynamic cloud server from 1and1 to a 10.04 LTS.

    I don't understand the first step (dhclient and static-route). Could you please give more info on what to do ?

    Also, when trying to upgrade I've got a message telling me :
    WARNING: Failed to read mirror file
    No valid mirror found

    Any idea ?

    REgards,

    ReplyDelete
  3. @sgegmund: when asked during installation of dhclient just choose to use your old configuration. If your system is not able to set up it's network automatically you are lost.

    ReplyDelete
  4. You're the best, I just done 10 failed installation !!!!

    I'm trying

    ReplyDelete
  5. it's working but this line doesn't have to be replaced: # kopt=root=/dev/hda1 ro console=tty0 console=ttyS0,57600 with # kopt=root=/dev/sda1 ro console=tty0 console=ttyS0,57600.

    it's not effective anyway BUT you need indeed to adjust "menu.lst" to replace hda by sda and that works !!

    WELL DONE MATE

    ReplyDelete
  6. @chris and Ben update-grub uses the comment AFAIK and if you update your kernel these settings will be taken as well. Regards Mirko

    ReplyDelete
  7. You definitely saved my life.
    I let it down after something like 10 tries, I totally didn't see the device name change...
    Thanks a lot !

    ReplyDelete
  8. to have something looking like a rescue disk, I load with grub fallback the netinst opensuse kernel:
    http://en.opensuse.org/SDB:Remote_installation

    ReplyDelete