LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2011, 06:04 AM   #1
hoekie
LQ Newbie
 
Registered: May 2011
Posts: 6

Rep: Reputation: 0
NOT afraid of a debian distro upgrade, partly success


I just read Zippy's post, who is afraid of doing a distro upgrade, for a reason!. After some reading and preparations, i did do the aptitude dist-upgrade (Etch->Lenny) on a production machine. All went well, just a
couple of issues:

- The usual config suggestions,
- Some graphic pop-ups about programms to run at boot,
- and i had to remove lilo, somehow it was installed in the process, although the machine has GRUB.
so after 15min or so i was running 5.0.8 (cat /etc/debian_version).
But unfortunately it had the old kernel: 2.6.18-6-686-bigmem, which stayed the same after reboot.

Then a bit hasty i read about grub and update-grub. update-grub
discovered a new kernel (2.6.26-2-686-bigmem) and it updated /boot/grub/menu.lst. But then after reboot nothing!

I had to use rescue mode (@Zippy: dont be afraid of rescue mode, its your best friend) to the change menu.lst and reboot with 2.6.18. I cant pinpoint the problem at boot, the logfiles say:

/var/log/kern.log:
ata2.00: exception Emask 0x50 SAct 0x0 SErr 0x680900 action 0x2 frozen
ata2.00: (irq_stat 0x08000000, interface fatal error)
ata2.00: tag 0 cmd 0xc4 Emask 0x50 stat 0x50 err 0x0 (ATA bus error)
...
Buffer I/O error on device sdb2, logical block 1
...
sd 1:0:0:0: SCSI error: return code = 0x00040000
end_request: I/O error, dev sdb, sector 0
---

/var/log/messages
May 31 17:35:16 mymachine kernel: ata2: soft resetting port
May 31 17:35:16 mymachine kernel: ata2: softreset failed, retrying in 5 secs
May 31 17:35:21 mymachine kernel: ata2: hard resetting port
May 31 17:35:22 mymachine kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May 31 17:35:22 mymachine kernel: ata2.00: configured for PIO0
May 31 17:35:22 mymachine kernel: ata2: EH complete
May 31 17:35:22 mymachine kernel: SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
May 31 17:35:22 mymachine kernel: sdb: Write Protect is off
May 31 17:35:22 mymachine kernel: SCSI device sdb: drive cache: write back
...
May 31 17:35:53 mymachine kernel: sd 1:0:0:0: SCSI error: return code = 0x00040000
May 31 17:35:53 mymachine kernel: end_request: I/O error, dev sdb, sector 4209031
May 31 17:35:53 mymachine kernel: sd 1:0:0:0: SCSI error: return code = 0x00040000
May 31 17:35:53 mymachine kernel: end_request: I/O error, dev sdb, sector 4209036
May 31 17:35:53 mymachine kernel: sd 1:0:0:0: SCSI error: return code = 0x00040000
May 31 17:35:53 mymachine kernel: end_request: I/O error, dev sdb, sector 4209031
May 31 17:35:53 mymachine kernel: sdb : READ CAPACITY failed.
May 31 17:35:53 mymachine kernel: sdb : status=0, message=00, host=4, driver=00
May 31 17:35:53 mymachine kernel: sdb : sense not available.
May 31 17:35:53 mymachine kernel: sdb: Write Protect is off
May 31 17:35:53 mymachine kernel: sd 1:0:0:0: SCSI error: return code = 0x00040000
May 31 17:35:53 mymachine kernel: end_request: I/O error, dev sdb, sector 2097024
May 31 17:35:53 mymachine kernel: sd 1:0:0:0: SCSI error: return code = 0x00040000
May 31 17:35:53 mymachine kernel: end_request: I/O error, dev sdb, sector 2097024
...
May 31 17:37:30 mymachine shutdown[4663]: shutting down for system reboot

/var/log/syslog
pretty much the same

I suspect a driverproblem? What should be done to update the kernel?

H.
 
Old 06-02-2011, 01:07 AM   #2
SalmonEater
Member
 
Registered: Jun 2010
Location: Up the Big River w/o paddle
Distribution: Salent & Slackel
Posts: 131

Rep: Reputation: 19
Se smxi
It will save a lot of guesswork and time!

Welcome to linux!

Last edited by SalmonEater; 06-02-2011 at 01:09 AM.
 
Old 06-02-2011, 05:43 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
1) Fully upgrade etch first.
2) READ the release notes for Lenny and follow the upgrade steps
3) Read the release notes for Squeeze and follow the upgrade steps
4) Be happy!
 
Old 06-03-2011, 04:45 AM   #4
hoekie
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SalmonEater View Post
Se smxi
It will save a lot of guesswork and time!

Welcome to linux!
Thanks, the script looks promising. I'll have to try it on local vm's first.

Quote:
Originally Posted by craigevil View Post
1) Fully upgrade etch first.
I did.
Quote:
Originally Posted by craigevil View Post
2) READ the release notes for Lenny and follow the upgrade steps
I did too (still have that page open), did I overread something? I read about udev, grub, some timing issues, ata2.00 bug/error, irqpoll...
Quote:
Originally Posted by craigevil View Post
3) Read the release notes for Squeeze and follow the upgrade steps
Read those too, but didnt perform the upgrade steps yet. Now I'm wondering if it isn't easier to just start with a clean Squeeze image and get done with it, or to learn something and keep searching for a solution?
Quote:
Originally Posted by craigevil View Post
4) Be happy!
I will, thank you.
 
Old 06-12-2011, 02:17 AM   #5
hoekie
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Turned out sdb was defect, the disk is in RAID1:
Code:
root@rescue ~ # cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda2[0]
      486279424 blocks [2/1] [U_]

md0 : active raid1 sda1[0]
      2104448 blocks [2/1] [U_]

unused devices: <none>
 
Old 06-12-2011, 08:20 AM   #6
hoekie
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Ok SOLVED!
I had the drive replaced and mirrored it from the working one, using:
Code:
dd if=/dev/sda of=/dev/sdb count=1 bs=512
to copy the partitiontable and:
Code:
sfdisk -R /dev/sdb
to activate it for the kernel. Then placed the drive back into the array:
Code:
mdadm /dev/md0 -a /dev/sdb1
mdadm /dev/md1 -a /dev/sdb2
The array will mirror the drive and you can follow the process with:
Code:
cat /proc/mdstat
Then it was time to try the new kernel, as proposed by grub in the first place. I changed /boot/grub/menu.lst back to original and a successful reboot made me happy!

Last edited by hoekie; 06-12-2011 at 08:22 AM.
 
  


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
Afraid of doing a (Debian) distribution upgrade Zippy1970 Linux - Server 8 10-25-2010 04:57 PM
[SOLVED] Best Distro For Partly Disabled Laptop Zak0Zak0 Linux - Laptop and Netbook 6 05-30-2010 01:46 PM
Afraid to reboot after upgrade to 10.0 geomatt Slackware - Installation 7 07-28-2006 07:37 AM
Which Distro/s have 100% success on E1505 ? KL3 Linux - Laptop and Netbook 1 07-08-2006 06:54 PM
Slackware 10 upgrade success naflan Slackware 3 12-16-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration