LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-14-2017, 05:14 PM   #1
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Rep: Reputation: 22
Question Upgrade CentOS6.6 to 6.9 from new media on USB


Hi all, hope everyone is OK. (Me not so much, mom is having serious heart problems )

I've tried this thing with upgrading a Linux installation many times but I could never figure out how or if I was doing something wrong so I always reinstalled it.
This time I NEED an upgrade from an old CentOS 6.6 system to the latest, 6.9.
I tried the usual YUM-thing but that made my system go kernel panic on me so I figured that I'll AGAIN try this feature to upgrade from media, but the exact same this happens.
This time I'm gonna ask what to do!

When I get to the screen asking me what type of installation I'd like to do, what should I answer there? I figured that "Replacing Existing Linux System(s)" would be the one, as I always tried, but NOPE. Answer is "Could not find enough free space for automatic partitioning, please use another method".

What installation type should I use to UPGRADE the system, not to REPLACE it, cos that I can do as I always used to do. I want to make the system to start working again with CentOS 6.9 after the failed 'yum update' from v6.6

There are applications installed that can't be reinstalled so.

What is wrong in my head here?
 
Old 10-15-2017, 02:06 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Please post fdisk -l (-> Automatic partioning).
Can you boot the old kernel?
Can you discribe the update process from Centos 6.6 to 6.9 in detail?
 
Old 10-15-2017, 07:53 AM   #3
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
Start the old kernel, yes which is: 2.6.32-504.16.2-el6.x86_64

fdisk -l lists this:
Cannot open /dev/sdc
Cannot open /dev/sdb
Cannot open /dev/sda
Cannot open /dev/md126
Cannot open /dev/mapper/luks-2e......
Cannot open /dev/mapper/luks-cf......
Cannot open /dev/mapper/luks-8c......
Cannot open /dev/mapper/luks-c1......
Cannot open /dev/mapper/luks-38......
Cannot open /dev/mapper/luks-5d......

The upgrade was as this, first tried with yum as:
yum clean all
yum update

restarted and then I got kernel panic.

Tried to start it again now and I see this:
dracut Warning: No root device "block:/dev/disk/by-uuid/cb1b2......" found
dracut Warning: crypto LUKS UUID 381c...... not found
dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel line.
...
...
Kernel panic - not syncing: Attempted to kill init!


so no root device, no wonder it starts to panic :P

I'll try the 'rdshell' thing and see what that gives me.
I'll be back...


I guess it has something to do with the encrypted partitions but I thought that it would handle that

Last edited by Basher52; 10-15-2017 at 08:24 AM.
 
Old 10-15-2017, 09:43 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Can you post grub.cfg? (-> dracut Warning: No root device "block:/dev/disk/by-uuid/cb1b2......" found)

And this error should not occur at all:

Cannot open /dev/sdc
Cannot open /dev/sdb
Cannot open /dev/sda
 
Old 10-15-2017, 11:54 AM   #5
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
Code:
#boot=/dev/md127
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-696.13.2.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-696.13.2.el6.x86_64 ro root=UUID=cb1b237a-c2ef-4106-9b45-4c923be6bceb rd_MD_UUID=82edd843:2cfa32f2:dd799763:4908a7f5  KEYBOARDTYPE=pc KEYTABLE=sv-latin1 SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LUKS_UUID=luks-381c31cd-9788-4719-be7f-f8daa4316036 rd_MD_UUID=f882865d:d1f00a5b:22a0bc38:a440c5c6 rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8
        initrd /initramfs-2.6.32-696.13.2.el6.x86_64.img
title CentOS (2.6.32-504.16.2.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-504.16.2.el6.x86_64 ro root=UUID=cb1b237a-c2ef-4106-9b45-4c923be6bceb rd_MD_UUID=82edd843:2cfa32f2:dd799763:4908a7f5  KEYBOARDTYPE=pc KEYTABLE=sv-latin1 SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LUKS_UUID=luks-381c31cd-9788-4719-be7f-f8daa4316036 rd_MD_UUID=f882865d:d1f00a5b:22a0bc38:a440c5c6 rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8
        initrd /initramfs-2.6.32-504.16.2.el6.x86_64.img
title CentOS (2.6.32-504.12.2.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-504.12.2.el6.x86_64 ro root=UUID=cb1b237a-c2ef-4106-9b45-4c923be6bceb rd_MD_UUID=82edd843:2cfa32f2:dd799763:4908a7f5  KEYBOARDTYPE=pc KEYTABLE=sv-latin1 SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LUKS_UUID=luks-381c31cd-9788-4719-be7f-f8daa4316036 rd_MD_UUID=f882865d:d1f00a5b:22a0bc38:a440c5c6 rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8
        initrd /initramfs-2.6.32-504.12.2.el6.x86_64.img
title CentOS 6 (2.6.32-504.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=UUID=cb1b237a-c2ef-4106-9b45-4c923be6bceb rd_MD_UUID=82edd843:2cfa32f2:dd799763:4908a7f5  KEYBOARDTYPE=pc KEYTABLE=sv-latin1 SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LUKS_UUID=luks-381c31cd-9788-4719-be7f-f8daa4316036 rd_MD_UUID=f882865d:d1f00a5b:22a0bc38:a440c5c6 rd_NO_LVM rd_NO_DM LANG=en_US.UTF-8
        initrd /initramfs-2.6.32-504.el6.x86_64.img

it also won't ask for the password for LUKS as it does when I start 2.6.32-504

Last edited by Basher52; 10-15-2017 at 11:56 AM.
 
Old 10-15-2017, 12:38 PM   #6
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Does bash (and commands) work correctly?
 
Old 10-15-2017, 12:55 PM   #7
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
in the 2.6.32-504 version yes
probably not in 2.6.32-696 since I can't even boot into it :P
 
Old 10-15-2017, 12:56 PM   #8
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I assume, your server has been hacked.

You should reinstall with Centos version 6.9.
 
Old 10-15-2017, 01:50 PM   #9
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
well, that can't be the case since it's internal only and it worked perfect with the 6.6 version.
I thought it would be smart to get the latest version so I tried to upgrade it and that made this error.
 
Old 10-15-2017, 02:07 PM   #10
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
but the main question was how to use a DVD to try to upgrade the installation.
The selection "Replacing Existing Linux System(s)" seems right but it I only get: "Could not find enough free space for automatic partitioning, please use another method".
So how do I do this?
 
Old 10-15-2017, 02:11 PM   #11
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Then use gparted to investigate and clean the partition table.
https://gparted.sourceforge.io/download.php
 
Old 10-15-2017, 03:45 PM   #12
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
If I do I'll wipe the installation like I would do if I made a clean installation and that is what I don't want to do.
 
Old 10-15-2017, 04:06 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,705

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Basher52 View Post
If I do I'll wipe the installation like I would do if I made a clean installation and that is what I don't want to do.
Honestly, you really SHOULD do that...why upgrade from 6.6 to 6.9, when the latest is 7.4? If you're upgrading anyway, you really should get the latest-and-greatest, and at least put off (for a while), the inevitable EOL you're going to hit with the 6.x versions. Since you're already planning downtime and have things ready to go, a fresh install would get you the cleanest results. This will also give you the added benefit of testing your backup/recovery plans, because unless you can RESTORE your backups, they're useless.

And if this is a on a single-disk system, that's even easier. Spend the $59 or so and pop for a new drive, along with another $20 for a USB-to-SATA enclosure for the old drive. Do your install, and you just have to copy files from old drive to new. And if things go REALLY bad, you just swap drives and you're back up in a few minutes.
 
Old 10-15-2017, 10:54 PM   #14
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Original Poster
Rep: Reputation: 22
OK then, I'll do that, to do a clean install of 6.9 I mean.
Can't go to 7 though since I got some hardware that only work with kernel up to 2.6.32

Last edited by Basher52; 10-16-2017 at 11:00 AM.
 
Old 10-16-2017, 06:26 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,705

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Basher52 View Post
OK then, I'll do that, to do a clean install of 6.9 I mean. Can't go to 7 though since I got some hardware that only work with kernel up to 6.32
Which hardware is that?? Because it seems unlikely, because hardware is typically better supported as it gets older, while the 'bleeding edge' hardware may have problems. What device(s) are you working with? And have you *TRIED* the latest CentOS 7.4 to see if it will function? You WILL be in a situation where even 6.9 won't be supported and/or won't work on whatever new hardware you have to buy. Things WILL DIE in the future, so clinging to an old OS/hardware is just going to bring you more bad times in the future. Worse, because you won't have ANY time to test things, but will be in disaster-recovery mode.

Take your time now, do it right, and work through your problems.

Last edited by TB0ne; 10-16-2017 at 06:27 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade tidy package on Centos6 NotionCommotion Linux - Newbie 10 07-25-2016 06:16 PM
[SOLVED] usb mount point used to be /media/$USER/$LABEL, now /media/usb kaz2100 Debian 2 06-29-2016 07:41 PM
how upgrade OEL6.1 to Centos6.7 seighalani Linux - Software 2 12-14-2015 05:09 PM
how to install TRENDnet TU-ET100C USB NIC on CentOS6 rakeafake Linux - Networking 1 05-25-2012 06:55 AM
How to upgrade kernel in rhel6/centos6 with internet. manually download and upgrade. Gil@LQ Linux - Kernel 3 03-12-2012 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration