I am getting a few bad sector messages in my /var/log/messages.
I have read where an "fsck -c -c /dev/hda" may be what I need.
Before I go doing such things I am looking for confirmation that that is what I should do. Anyone please comment on how to tell linux to not use sectors in my disk. This is stright IDE no raid not nothing at this point /dev/hda is all.
Thanks,
jerry
Jerry Geis wrote:
I am getting a few bad sector messages in my /var/log/messages.
I have read where an "fsck -c -c /dev/hda" may be what I need.
Before I go doing such things I am looking for confirmation that that is what I should do. Anyone please comment on how to tell linux to not use sectors in my disk. This is stright IDE no raid not nothing at this point /dev/hda is all.
If it was my system, that is the sign to shut down all non-critical services and do an immediate full backup of the suspect volume. When the backup is done, replace the volume with a fresh disk and restore the data. You're just asking to get kicked in the hiney by trying to manually mark the bad blocks and "write around them". Disks are cheap. Cobbling together destroyed data isn't.
Cheers,
On Fri, 2005-06-03 at 16:44 -0400, Chris Mauritz wrote:
Jerry Geis wrote:
I am getting a few bad sector messages in my /var/log/messages.
I have read where an "fsck -c -c /dev/hda" may be what I need.
Before I go doing such things I am looking for confirmation that that is what I should do. Anyone please comment on how to tell linux to not use sectors in my disk. This is stright IDE no raid not nothing at this point /dev/hda is all.
If it was my system, that is the sign to shut down all non-critical services and do an immediate full backup of the suspect volume. When the backup is done, replace the volume with a fresh disk and restore the data. You're just asking to get kicked in the hiney by trying to manually mark the bad blocks and "write around them". Disks are cheap. Cobbling together destroyed data isn't.
Cheers,
I have seen what I consider an exorbitant amount of ide drive failure lately, granted most of these are lower grade machines, but the percentage of drives failing seems to be much higher than I recall. Is their possibly something with ext3 that stresses drives more? Maybe the location of the journaling info?
Regards, Ted
Ted Kaczmarek wrote:
On Fri, 2005-06-03 at 16:44 -0400, Chris Mauritz wrote:
Jerry Geis wrote:
I am getting a few bad sector messages in my /var/log/messages.
I have read where an "fsck -c -c /dev/hda" may be what I need.
Before I go doing such things I am looking for confirmation that that is what I should do. Anyone please comment on how to tell linux to not use sectors in my disk. This is stright IDE no raid not nothing at this point /dev/hda is all.
If it was my system, that is the sign to shut down all non-critical services and do an immediate full backup of the suspect volume. When the backup is done, replace the volume with a fresh disk and restore the data. You're just asking to get kicked in the hiney by trying to manually mark the bad blocks and "write around them". Disks are cheap. Cobbling together destroyed data isn't.
Cheers,
I have seen what I consider an exorbitant amount of ide drive failure lately, granted most of these are lower grade machines, but the percentage of drives failing seems to be much higher than I recall. Is their possibly something with ext3 that stresses drives more? Maybe the location of the journaling info?
Regards, Ted
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:42a0cf0a189348740014048!
In this day of cheap computers... just like the light bulb... It seems the HD manufacturers have also managed to tune their products to expire shortly after the warrenty is up. I'm simply not seeing the same quality as we had 5 or 10 years ago, but instead, drives which quit at about 3 years or less. I'm speaking of the common cheap IDE drives which wind up in consumers machines. Server grade drives don't seem to fall under this category.. for me personally. I don't know where you can buy a server grade IDEs as I haven't had the need to look.
Otherwise, I did have troubles with a LVM install and decided to never try that one again... at least for a long time.
John Hinton
On Fri, 3 Jun 2005, Jerry Geis wrote:
I am getting a few bad sector messages in my /var/log/messages.
I have read where an "fsck -c -c /dev/hda" may be what I need.
Before I go doing such things I am looking for confirmation that that is what I should do. Anyone please comment on how to tell linux to not use sectors in my disk. This is stright IDE no raid not nothing at this point /dev/hda is all.
Check with:
smartctl -a /dev/hda
if you see disk problems (uncorrectable errors), you might want to buy an equally large or larger disk, use dd_rescue to copy over the partitions (and maybe later grow those partitions or move them into LVM), download a tool from your disk vendor to check the disk (which might destroy all data) and if the tool considers the disk is defect, you can ship it to your vendor if you still are covered by the warranty.
If the disk is defect, you really don't want to risk loosing data using it.
PS It's also important to have smartd running and sending out emails to know of disk failures as soon as possible to reduce any risks.
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
On Sat, 4 Jun 2005, Dag Wieers wrote:
PS It's also important to have smartd running and sending out emails to know of disk failures as soon as possible to reduce any risks.
If smartd is running and sending messages to syslog, logwatch knows how to format them in the nightly report.
-- Paul Heinlein heinlein@madboa.com