{"id":514,"date":"2011-05-07T09:03:27","date_gmt":"2011-05-07T16:03:27","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=514"},"modified":"2011-05-07T09:03:27","modified_gmt":"2011-05-07T16:03:27","slug":"repairing-disk-errors-in-centos","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=514","title":{"rendered":"Repairing disk errors in CentOS."},"content":{"rendered":"<p>I started getting the following errors every night when the \/var partition backed up on one of my CentOS 5 servers.<\/p>\n<p>  DUMP: read error from \/dev\/sda5: Input\/output error: [block 4125240, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [block 4125252, ext2blk 0]: count=515656<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125240, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125252, ext2blk 0]: count=515656<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125241, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125253, ext2blk 0]: count=515656<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125242, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125254, ext2blk 0]: count=515656<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125243, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125255, ext2blk 0]: count=515656<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125244, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125245, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125246, ext2blk 0]: count=515655<br \/>\n  DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125247, ext2blk 0]: count=515655<\/p>\n<p>Also, I found the following kinds of message in the messages file:<\/p>\n<p>May  7 02:34:37 white1 kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0<br \/>\nMay  7 02:34:37 white1 kernel: ata1.00: BMDMA stat 0x24<br \/>\nMay  7 02:34:37 white1 kernel: ata1.00: cmd c8\/00:50:ea:9f:03\/00:00:00:00:00\/e3 tag 0 dma 40960 in<br \/>\nMay  7 02:34:37 white1 kernel:          res 51\/40:00:08:a0:03\/00:00:00:00:00\/03 Emask 0x9 (media error)<br \/>\nMay  7 02:34:37 white1 kernel: ata1.00: status: { DRDY ERR }<br \/>\nMay  7 02:34:37 white1 kernel: ata1.00: error: { UNC }<br \/>\nMay  7 02:34:37 white1 kernel: ata1.00: configured for UDMA\/133<br \/>\nMay  7 02:34:37 white1 kernel: ata1: EH complete<br \/>\nMay  7 02:34:40 white1 kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0<br \/>\nMay  7 02:34:40 white1 kernel: ata1.00: BMDMA stat 0x24<br \/>\nMay  7 02:34:40 white1 kernel: ata1.00: cmd c8\/00:50:ea:9f:03\/00:00:00:00:00\/e3 tag 0 dma 40960 in<br \/>\nMay  7 02:34:40 white1 kernel:          res 51\/40:00:08:a0:03\/00:00:00:00:00\/03 Emask 0x9 (media error)<br \/>\nMay  7 02:34:40 white1 kernel: ata1.00: status: { DRDY ERR }<\/p>\n<p>From single user mode with \/var dismounted, I ran the following:<\/p>\n<p># e2fsck -c \/dev\/sda5<\/p>\n<p>I wish I had kept the output, but I know I accepted the defaults ( &#8220;Y&#8221; ) for all the prompts or which their were a couple.  After it completed, I ran dump that completed without error.  We will see how it goes from here.  According to the man page, any bad blocks found using this command are added to the bad block inode so that they are used by any files or directories.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started getting the following errors every night when the \/var partition backed up on one of my CentOS 5 servers. DUMP: read error from \/dev\/sda5: Input\/output error: [block 4125240, ext2blk 0]: count=515655 DUMP: read error from \/dev\/sda5: Input\/output error: [block 4125252, ext2blk 0]: count=515656 DUMP: read error from \/dev\/sda5: Input\/output error: [sector 4125240, ext2blk [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[175,177,176,48],"class_list":["post-514","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-disk","tag-e2fsck","tag-errors","tag-linux"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=514"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/514\/revisions\/515"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}