#1  
Old 2nd October 2011, 20:16
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 285
Thanks: 79
Thanked 7 Times in 6 Posts
Exclamation Bad blocks on HDD

Hello!

I have a problem with my HDD drive.
I have Ubuntu 10.04 LTS ISPConfig2 final.
In message log I see this:
Code:
Sep 28 22:51:23 itex kernel: [3456384.516877] ata2.00: configured for UDMA/133
Sep 28 22:51:23 itex kernel: [3456384.516892] ata2: EH complete
Sep 28 22:51:25 itex kernel: [3456386.572387] ata2.00: configured for UDMA/133
Sep 28 22:51:25 itex kernel: [3456386.572408] ata2: EH complete
Sep 28 22:51:27 itex kernel: [3456388.664384] ata2.00: configured for UDMA/133
Sep 28 22:51:27 itex kernel: [3456388.664404] ata2: EH complete
Sep 28 22:51:29 itex kernel: [3456390.676386] ata2.00: configured for UDMA/133
Sep 28 22:51:29 itex kernel: [3456390.676406] ata2: EH complete
Sep 28 22:51:31 itex kernel: [3456392.620874] ata2.00: configured for UDMA/133
Sep 28 22:51:31 itex kernel: [3456392.620896] ata2: EH complete
Sep 28 22:51:34 itex kernel: [3456394.868385] ata2.00: configured for UDMA/133
Sep 28 22:51:34 itex kernel: [3456394.868410] sd 1:0:0:0: [sdb] Unhandled sense code
Sep 28 22:51:34 itex kernel: [3456394.868414] sd 1:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 28 22:51:34 itex kernel: [3456394.868421] sd 1:0:0:0: [sdb] Sense Key : Medium Error [current] [descriptor]
Sep 28 22:51:34 itex kernel: [3456394.868430] Descriptor sense data with sense descriptors (in hex):
Sep 28 22:51:34 itex kernel: [3456394.868434]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
Sep 28 22:51:34 itex kernel: [3456394.868454]         0a 3b 18 b6
Sep 28 22:51:34 itex kernel: [3456394.868463] sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed
Sep 28 22:51:34 itex kernel: [3456394.868472] sd 1:0:0:0: [sdb] CDB: Read(10): 28 00 0a 3b 18 27 00 01 00 00
Sep 28 22:51:34 itex kernel: [3456394.897766] ata2: EH complete
Sep 28 22:51:35 itex kernel: [3456396.176876] ata2.00: configured for UDMA/133
Sep 28 22:51:35 itex kernel: [3456396.176897] ata2: EH complete
Sep 28 23:01:22 itex kernel: [3456983.360859] ata2.00: configured for UDMA/133
Sep 28 23:01:22 itex kernel: [3456983.360877] ata2: EH complete
Sep 28 23:01:24 itex kernel: [3456985.300387] ata2.00: configured for UDMA/133
Sep 28 23:01:24 itex kernel: [3456985.300408] ata2: EH complete
Sep 28 23:01:26 itex kernel: [3456987.248388] ata2.00: configured for UDMA/133
Sep 28 23:01:26 itex kernel: [3456987.248410] ata2: EH complete
Sep 28 23:01:28 itex kernel: [3456989.228880] ata2.00: configured for UDMA/133
Sep 28 23:01:28 itex kernel: [3456989.228898] ata2: EH complete
Sep 28 23:01:31 itex kernel: [3456991.732896] ata2.00: configured for UDMA/133
Sep 28 23:01:31 itex kernel: [3456991.732915] ata2: EH complete
Sep 28 23:01:32 itex kernel: [3456993.280910] ata2.00: configured for UDMA/133
Sep 28 23:01:32 itex kernel: [3456993.280929] sd 1:0:0:0: [sdb] Unhandled sense code
Sep 28 23:01:32 itex kernel: [3456993.280933] sd 1:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 28 23:01:32 itex kernel: [3456993.280940] sd 1:0:0:0: [sdb] Sense Key : Medium Error [current] [descriptor]
Sep 28 23:01:32 itex kernel: [3456993.280949] Descriptor sense data with sense descriptors (in hex):
Sep 28 23:01:32 itex kernel: [3456993.280954]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
Sep 28 23:01:32 itex kernel: [3456993.280974]         0a 3b 03 15
Sep 28 23:01:32 itex kernel: [3456993.280983] sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed
Sep 28 23:01:32 itex kernel: [3456993.280992] sd 1:0:0:0: [sdb] CDB: Read(10): 28 00 0a 3b 03 0f 00 00 10 00
Sep 28 23:01:32 itex kernel: [3456993.301384] ata2: EH complete
Sep 28 23:21:18 itex kernel: [3458179.537486] EDAC MC: Memory scrubbing 'get' control is not implemented
Sep 28 23:21:18 itex kernel: [3458179.537599] EDAC MC: Memory scrubbing 'get' control is not implemented
After that I have php-cgi problem, but Apache work:

Code:
Sep 28 23:47:35 itex kernel: [3459756.058461] php-cgi[10723]: segfault at 350a4520 ip b7258785 sp bfd59cd8 error 4 in libc-2.11.1.so[b71e5000+153000]
Sep 28 23:47:42 itex kernel: [3459763.275734] php-cgi[10779]: segfault at 39000ca0 ip b71c4785 sp bfc71448 error 4 in libc-2.11.1.so[b7151000+153000]
I think that this problem depends on HDD blocks.

I have RAID 1 (mirrow).
md check log:

Code:
Oct  2 00:57:01 itex kernel: [189119.551658] md: data-check of RAID array md0
Oct  2 00:57:01 itex kernel: [189119.551663] md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
Oct  2 00:57:01 itex kernel: [189119.551666] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for data-check.
Oct  2 00:57:01 itex kernel: [189119.551670] md: using 128k window, over a total of 234468544 blocks.
Oct  2 00:57:01 itex kernel: [189119.553189] md: delaying data-check of md1 until md0 has finished (they share one or more physical units)
Oct  2 01:27:17 itex kernel: [190934.816377] ata2.00: configured for UDMA/133
Oct  2 01:27:17 itex kernel: [190934.816398] ata2: EH complete
Oct  2 01:27:19 itex kernel: [190936.784378] ata2.00: configured for UDMA/133
Oct  2 01:27:19 itex kernel: [190936.784397] ata2: EH complete
Oct  2 01:27:21 itex kernel: [190938.736378] ata2.00: configured for UDMA/133
Oct  2 01:27:21 itex kernel: [190938.736390] ata2: EH complete
Oct  2 01:27:22 itex kernel: [190940.680871] ata2.00: configured for UDMA/133
Oct  2 01:27:22 itex kernel: [190940.680882] ata2: EH complete
Oct  2 01:27:24 itex kernel: [190942.628376] ata2.00: configured for UDMA/133
Oct  2 01:27:24 itex kernel: [190942.628389] ata2: EH complete
Oct  2 01:27:26 itex kernel: [190944.572917] ata2.00: configured for UDMA/133
Oct  2 01:27:26 itex kernel: [190944.572939] sd 1:0:0:0: [sdb] Unhandled sense code
Oct  2 01:27:26 itex kernel: [190944.572943] sd 1:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Oct  2 01:27:26 itex kernel: [190944.572949] sd 1:0:0:0: [sdb] Sense Key : Medium Error [current] [descriptor]
Oct  2 01:27:26 itex kernel: [190944.572958] Descriptor sense data with sense descriptors (in hex):
Oct  2 01:27:26 itex kernel: [190944.572962]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
Oct  2 01:27:26 itex kernel: [190944.572982]         0a 3b 03 0f
Oct  2 01:27:26 itex kernel: [190944.572990] sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed
Oct  2 01:27:26 itex kernel: [190944.573000] sd 1:0:0:0: [sdb] CDB: Read(10): 28 00 0a 3b 02 bf 00 00 80 00
Oct  2 01:27:26 itex kernel: [190944.582849] ata2: EH complete
Oct  2 01:27:30 itex kernel: [190948.164379] ata2.00: configured for UDMA/133
Oct  2 01:27:30 itex kernel: [190948.164393] ata2: EH complete
Oct  2 01:27:32 itex kernel: [190950.308843] ata2.00: configured for UDMA/133
Oct  2 01:27:32 itex kernel: [190950.308861] ata2: EH complete
Oct  2 01:27:34 itex kernel: [190952.560378] ata2.00: configured for UDMA/133
Oct  2 01:27:34 itex kernel: [190952.560396] ata2: EH complete
Oct  2 01:27:36 itex kernel: [190954.544376] ata2.00: configured for UDMA/133
Oct  2 01:27:36 itex kernel: [190954.544388] ata2: EH complete
Oct  2 01:27:38 itex kernel: [190956.524379] ata2.00: configured for UDMA/133
Oct  2 01:27:38 itex kernel: [190956.524396] ata2: EH complete
Oct  2 01:27:40 itex kernel: [190958.460375] ata2.00: configured for UDMA/133
Oct  2 01:27:40 itex kernel: [190958.460403] sd 1:0:0:0: [sdb] Unhandled sense code
Oct  2 01:27:40 itex kernel: [190958.460407] sd 1:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Oct  2 01:27:40 itex kernel: [190958.460413] sd 1:0:0:0: [sdb] Sense Key : Medium Error [current] [descriptor]
Oct  2 01:27:40 itex kernel: [190958.460422] Descriptor sense data with sense descriptors (in hex):
Oct  2 01:27:40 itex kernel: [190958.460426]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
Oct  2 01:27:40 itex kernel: [190958.460446]         0a 3b 18 b6
Oct  2 01:27:40 itex kernel: [190958.460454] sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed
Oct  2 01:27:40 itex kernel: [190958.460463] sd 1:0:0:0: [sdb] CDB: Read(10): 28 00 0a 3b 18 3f 00 04 00 00
Oct  2 01:27:40 itex kernel: [190958.470583] ata2: EH complete
Oct  2 02:29:55 itex kernel: [194693.715111] md: md0: data-check done.
Oct  2 02:29:56 itex kernel: [194693.746882] md: data-check of RAID array md1
Oct  2 02:29:56 itex kernel: [194693.746887] md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
Oct  2 02:29:56 itex kernel: [194693.746890] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for data-check.
Oct  2 02:29:56 itex kernel: [194693.746895] md: using 128k window, over a total of 9727232 blocks.
Oct  2 02:33:38 itex kernel: [194916.238177] md: md1: data-check done.
My mdstat:

Code:
root@qw:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[0] sdb1[1]
      234468544 blocks [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
      9727232 blocks [2/2] [UU]

unused devices: <none>
fdisk -l:

Code:
 fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005b815

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       29190   234468643+  fd  Linux raid autodetect
/dev/sda2           29191       30401     9727357+  fd  Linux raid autodetect

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005b815

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       29190   234468643+  fd  Linux raid autodetect
/dev/sdb2           29191       30401     9727357+  fd  Linux raid autodetect

Disk /dev/md1: 9960 MB, 9960685568 bytes
2 heads, 4 sectors/track, 2431808 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md0: 240.1 GB, 240095789056 bytes
2 heads, 4 sectors/track, 58617136 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table
I dont know why it is "Disk /dev/md1 doesn't contain a valid partition table"
but this message is from RAID foundaton.


I have 2 the same new HDD and want to resolve this problem.
What is the better way to solve this problem?
I have host panel with web page. And I am need to solve this problem without data lose.
How can I change this drives properly? And how to reinstall libc-2.11.1 package without problem with Apache and ISPConfig?
Or I can solve this problem without HDD changes.

Big thnks.
Please help to solve this problem.

Last edited by Captain; 2nd October 2011 at 20:58.
Reply With Quote
Sponsored Links
  #2  
Old 3rd October 2011, 19:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

The procedure of exchanging a hard drive in a RAID1 array is described here: http://www.howtoforge.com/how-to-set...ebian-lenny-p4

But before you do this, you should be absolutely sure which drive is broken.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd October 2011, 19:55
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 285
Thanks: 79
Thanked 7 Times in 6 Posts
Default

Thnk you Falko.
I saw this tread.
But I have 2 questions:

How can I solve this problem:

Code:
Sep 28 23:47:35 itex kernel: [3459756.058461] php-cgi[10723]: segfault at 350a4520 ip b7258785 sp bfd59cd8 error 4 in libc-2.11.1.so[b71e5000+153000]
Sep 28 23:47:42 itex kernel: [3459763.275734] php-cgi[10779]: segfault at 39000ca0 ip b71c4785 sp bfc71448 error 4 in libc-2.11.1.so[b7151000+153000]
Why fdisk -l show:

Code:
Disk /dev/md1 doesn't contain a valid partition table
And about broken drive in log files bad sectors is in sdb drive - as I understand it is my second drive, but how I can directly find it in hardware level?

Thnk you!
Reply With Quote
  #4  
Old 4th October 2011, 10:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by Captain View Post
How can I solve this problem:

Code:
Sep 28 23:47:35 itex kernel: [3459756.058461] php-cgi[10723]: segfault at 350a4520 ip b7258785 sp bfd59cd8 error 4 in libc-2.11.1.so[b71e5000+153000]
Sep 28 23:47:42 itex kernel: [3459763.275734] php-cgi[10779]: segfault at 39000ca0 ip b71c4785 sp bfc71448 error 4 in libc-2.11.1.so[b7151000+153000]
I guess this is related to the broken hard drive.
Quote:
Originally Posted by Captain View Post
Why fdisk -l show:

Code:
Disk /dev/md1 doesn't contain a valid partition table
That is normal, you can safely ignore it.

Quote:
Originally Posted by Captain View Post
And about broken drive in log files bad sectors is in sdb drive - as I understand it is my second drive, but how I can directly find it in hardware level?
What do you mean with hardware level?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th October 2011, 22:20
Captain Captain is offline
Senior Member
 
Join Date: Feb 2009
Posts: 285
Thanks: 79
Thanked 7 Times in 6 Posts
Default

Thnk you for answer Falko
I mean: which drive is it drive 1 on SATA0 port or drive 2 on SATA1 port?
How I can 100% be sure that (for expl.) sdb is connected to SATA1 port?
Reply With Quote
  #6  
Old 5th October 2011, 10:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

That's hard to tell. The people from your data center should know.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't receive mails baicunko Server Operation 12 3rd August 2011 22:02
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
Squirrelmail login failure Cracklefish Installation/Configuration 9 30th June 2010 20:38
Add ons for ISPConfig 3 virtue Installation/Configuration 24 16th October 2009 17:30
Mail Sent and Received but failure notice delivered badbandit83 General 7 2nd February 2006 21:50


All times are GMT +2. The time now is 17:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.