HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Bad blocks on HDD (http://www.howtoforge.com/forums/showthread.php?t=54399)

Captain 2nd October 2011 20:16

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.

falko 3rd October 2011 19:04

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.

Captain 3rd October 2011 19:55

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!

falko 4th October 2011 10:20

Quote:

Originally Posted by Captain (Post 264714)
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 (Post 264714)
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 (Post 264714)
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?

Captain 4th October 2011 22:20

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?

falko 5th October 2011 10:35

That's hard to tell. The people from your data center should know.

Captain 5th October 2011 10:59

Ok. Big thnk for help.

One question about:

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]

One web page on hosting have problem. When I want to open one category in this page have 500 Error.

And in messages.log i see new line with php-cgi: segfault.
May it is damage? may be it is need to reinstall it?

Thnk you.

falko 6th October 2011 12:45

As I said before, I guess it is related to the broken hard drive. It should start working again after you have replaced the drive.

Captain 9th October 2011 23:40

Hello!

I change bad hdd. re-configure RAID.
Check for badblocks 2 HDD in RAID massive - everythink is ok.

But still have this error in message log:
Code:

Sep 30 21:40:35 itex kernel: [3459756.058461] php-cgi[10723]: segfault at 350a4520 ip b7258785 sp bfd59cd8 error 5 in libc-2.11.1.so[b71e5000+153000]
Sep 30 21:40:42 itex kernel: [3459763.275734] php-cgi[10779]: segfault at 39000ca0 ip b71c4785 sp bfc71448 error 5 in libc-2.11.1.so[b7151000+153000]

Any ideas?

Big thnks.

Captain 26th October 2011 18:37

May be it is need to reinstall libc-2.11.1.so?

How I can to do without trouble in ISPConfig?!

Thnk you.


All times are GMT +2. The time now is 10:58.

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