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? |
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? |
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 :( |
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 |
Code:
#boot=/dev/md127 it also won't ask for the password for LUKS as it does when I start 2.6.32-504 |
Does bash (and commands) work correctly?
|
in the 2.6.32-504 version yes
probably not in 2.6.32-696 since I can't even boot into it :P |
I assume, your server has been hacked.
You should reinstall with Centos version 6.9. |
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. |
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? |
Then use gparted to investigate and clean the partition table.
https://gparted.sourceforge.io/download.php |
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.
|
Quote:
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. |
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 |
Quote:
Take your time now, do it right, and work through your problems. |
All times are GMT -5. The time now is 05:27 AM. |