LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-16-2005, 10:31 PM   #1
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Rep: Reputation: 0
apt-get dist-upgrade broke lilo, apache & squid


I did a apt-get dist-upgrade today and immediatly noticed that apache, squid, php4 and mysql stuff wasn't working. I've fixed most of those problems and rebooted the server just to make sure everything would come back up right.

The server simply boots to a screen saying LI.

I figured i probably need to get in with a rescue cd and check the lilo config and run lilo -v, so thats what I've been trying.

I can't get any rescue cd to boot for me.

I've tried a debian 2.2 cd, debian 2.4 cd and knoppix so far.

I have a Mylex AccelleRaid 160 (DAC960) raid controll, and I think thats whats holding me up.

with both debian CD's I've been trying the following:

rescue root=/dev/c0d0
rescue root=/dev/c0d0p1
rescue root=/dev/c0d0p2
rescue root=/dev/c0d0p3

rescbf24 root=/dev/c0d0
rescbf24 root=/dev/c0d0p1
rescbf24 root=/dev/c0d0p2
rescbf24 root=/dev/c0d0p3

I don't remeber which partition is actually root, but I'm certain I only have 3 partitions total. There is only 1 controller and 1 array, so it has to be c0d0.

Each of these attempts gives me the same problem. Lilo loads and the next line says Ready. Thats as far as it gets.

Knoppix will stop on a blank screen with a blinking cursor.

I have never had to use a rescue cd with this system, but have done it before without problems. I'm simply stuck this time.

Anybody got any ideas?

The system is a Dell Poweredge 2200
Dual PII 300 Mhz
512 Megs Ram
Mylex 160 with 3x 9 Gig HD's in a Raid 5 config.
It is running debian stable with a 2.4 kernel.

Thanks
 
Old 07-17-2005, 01:46 AM   #2
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Some more information.

I downloaded a Grub floppy with a 2.4 kernel. After loading the kernel from the floppy and telling it to boot to /dev/c0d0, it quickly flashes decompressing linux (I think) and reboots.

When trying to boot with anything running lilo I get something like this:

boot: linux or knoppix or debug or expert or failsafe
Loading Linux............................
Loading minirt.gz...........................
Ready.

And thats it....the cursor blinks at me and just sits there.
 
Old 07-17-2005, 10:54 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
kudos, brickbats, & what else have you tried?

Kudos
First the compliments: Too few posters have the courtesy or thoughtfulness to add additional info as you did. Hope this softens the criticisms.

Brickbats
It helps to spell correctly, especially the name of the hardware involved:
"Mylex Acceleraid 160"
Fortunately, Google suggested the above correction.
For those of us who are not familiar w/ this item, a fuller description, perhaps "Mylex AcceleRAID 160 PCI Ultra-160 SCSI RAID LVD" (right out of the Google results), would be helpful. I guessed the "PCI" & "SCSI" parts, but ...

What else have you tried?
Your original post details the problem & your attempted solutions well. Have you done any Google, LQ, or other searches to find a solution?

Suggestions / Questions
  • Is a re-install feasible?
  • What was setting up the card in the original install like? Any insight there as to what might be wrong now?
  • Quote:
    And thats it....the cursor blinks at me and just sits there.
    And I assume is unresponsive.
Comment
Rumor, collected wisdom, & one horrible personal experience say that
Code:
apt-get dist-upgrade
can hose a system. I will never do one again until: it is easily reversible, there are better safety checks, or I understand the process way, way better.

Last edited by archtoad6; 07-17-2005 at 11:01 AM.
 
Old 07-17-2005, 01:24 PM   #4
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 51
Archtoad said:
"Comment
Rumor, collected wisdom, & one horrible personal experience say that

code:

apt-get dist-upgrade

can hose a system. I will never do one again until: it is easily reversible, there are better safety checks, or I understand the process way, way better."

I can't remember the last time i had a problem with 'apt-get dist-upgrade'. Of course, i'm one of those nuts who read the APT-HOWTO until practically it was second nature.

mikeaustin said:
"I did a apt-get dist-upgrade today and immediatly noticed that apache, squid, php4 and mysql stuff wasn't working. I've fixed most of those problems and rebooted the server just to make sure everything would come back up right.

The server simply boots to a screen saying LI."

Did you do an 'apt-get update' before the dist-upgrade?

Was Lilo updated? Did you run #lilo?

Lilo is giving you an error "LI", what does google.com/linux tells you about it?

In 0.92 seconds (less than a second) i got this:
http://www.google.com/linux?hl=en&lr...g_en%7Clang_es

Last edited by macondo; 07-17-2005 at 01:26 PM.
 
Old 07-17-2005, 02:18 PM   #5
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I had done apt-get update immediately before the dist-upgrade. There were many packaged "held back" and figured the dist-upgrade would take care of that. I didn't look to see if lilo was updated and didn't run lilo before rebooting.

I've tried everything I can find via google and several forums, but havn't had luck yet. I've found instances of this exact same problem on completely different configurations, but every forum I've seen the problem posted did not have any responses regarding a solution.

I've been running linux for a few years, but tend to just keep the box updated and am still learning from my mistakes or jumping into something I should have read about or at least paid closer attention too.

Re-installation is an option, but I havn't backed up my home directory in ages and would really like to get that data back at the very least.

The first time I installed on this system I had no problems, my debian 2.4 CD's kernel is configured to support the raid controller. It was oddly enough the smoothest installation I've done so far. I had the box up and running like I wanted within a couple of hours. My previous attempts took 2 days and alot of frustration.

I'm considering removing the raid controller and drives for the time being, install onto an IDE drive and configure the kernel for the raid controller. I'm assuming once I get an OS working I can reinstall my raid controller and drives, boot from the IDE drive and get to the raid to backup my data and hopefully fix the issues with lilo and whatever else might be going wrong.
 
Old 07-17-2005, 02:22 PM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I have had that problem with lilo as well. Think I reinstalled or used the rescue CD to fix the lilo.conf file. I'm not sure how to do that on a raid hds or so.

Thing is when packages are being kept back you should be careful with them. If I do upgrade I have packages being kept back. If I then do dist-upgrade they're not kept back but I now get a list of packages that will be removed.

Also if you upgrade lilo always keep the old config file and make sure it's run without errors. That is check if it's still ok afterwards and then run "lilo".
 
Old 07-17-2005, 03:49 PM   #7
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Update

Since my last post I've upgraded the bios, firmware, ezassist software, bootblock and diag portions (all flashable items) on my raid controller and I still get the same problems. Knoppix will boot just fine if the raid controller is not in the server.

I'm left with the question of why is knoppix remotely affected by the presence of my raid controller/debian install. Its a live cd that should work independant of other software on a system. At the very least it should begin decompressing linux and boot partially before even looking for hardware on the system.

Does anybody know whats happening before a system begins decompressing linux? It seems apparent that the system is basically locking up because the booting OS is doing something to confuse some part of the system.

Thanks for the help so far!
 
Old 07-17-2005, 05:15 PM   #8
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Another update

I installed another SCSI HD on the onboard SCSI controller and left the Mylex Raid controller installed. I can again boot the installation of debian. From the installer I can mount the partions on the raid array to /target. But I can't run lilo. It tells me something along the lines of the boot partiton must be mounted in /target. It was mounted there, but lilo still won't work.

If I try booting with a rescue option and setting root=/dev/c0d0 or /dev/c0d0p1 it begins to boot and says kernel panic: could not mount root fs.

It does load the drives for the raid controller, see the logical array and the partitons within it. Now it just won't mount and I don't understand why. The drives are in ext3, even if the kernel isn't compiled for ext3, ext2 should still be able to read and write to the partion right?

I've read several howto rescue type documents, but they are all geared towards IDE and I get confused on which partions on my configuration I should be doing what with. Its been 2 years since I setup this box and I don't have a clue which of the 4 partions are spose to be mounted where. I just know I have a partion for /, /home, swap and something else...possible /boot, but I'm not sure.

 
Old 07-17-2005, 06:21 PM   #9
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
frustrations

I've determained that my Partions are:

/dev/rd/c0d0p1
/dev/rd/c0d0p2
/dev/rd/c0d0p3
/dev/rd/c0d0p4

With a blank HD installed I can actually boot the system from the debian cd, but with any of these commands:

rescbf24 root=/dev/rd/c0d0p1
rescbf24 root=/dev/rd/c0d0p2
rescbf24 root=/dev/rd/c0d0p3
rescbf24 root=/dev/rd/c0d0p4

I get Kernel panic: I have no root and I want to scream.
 
Old 07-17-2005, 10:15 PM   #10
mikeaustn
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Finally!

I managed to get the disks mounted in the correct order and lilo -v would not work, but in the debian installer I hit 'Make system bootable' and it reinstalled lilo. Removed the blank HD I had installed just to make it boot and started it back up with no problems. There are still a few issues with Apache and what not, but the system is finally booting and I can sit at my desk and SSH to fix the remaining problems.

Thanks for the help.
 
Old 07-24-2005, 02:48 PM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Good job!

Thanks for telling us what worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 02:33 PM
some help with apt-get dist-upgrade MaTrIx709 Debian 2 09-10-2005 12:13 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM
apt-get dist-upgrade bosewicht Debian 5 10-24-2003 02:08 PM
apt-get dist-upgrade Toasti Linux - Newbie 1 03-28-2003 07:50 AM


All times are GMT -5. The time now is 12:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration