使用Smartctl查Dell服务器坏道实录(2)

# 8 Background short  Completed                  16    7074                 - [-   -   -]

# 9 Background short  Completed                  16    7050                 - [-  -    -]

#10 Background long   Completed                  16    7028                 - [-   -   -]

#11 Background short  Completed                  16    7026                 - [-   -   -]

#12 Background short  Completed                  16    7002                 - [-   -   -]

#13 Background short  Completed                  16    6978                 - [-   -   -]

#14 Background short  Completed                  16    6954                 - [-   -   -]

#15 Background long   Completed                  16    6932                 - [-   -   -]

#16 Background short  Completed                  16    6930                 - [-   -   -]

#17 Background short  Completed                  16    6906                 - [-   -   -]

#18  Backgroundshort  Completed                  16    6882                 - [-   -   -]

#19 Background long   Completed                  16    6860                 - [-   -   -]

#20 Background short  Completed                  16    6858                 - [-   -   -]

Long (extended) Self Test duration: 3200seconds [53.3 minutes]

二、查看硬盘分区

#fdisk –lu

Disk/dev/sda: 300.0 GB, 300000000000 bytes

255heads, 63 sectors/track, 36472 cylinders, total 585937500 sectors

Units = sectors of 1 * 512 = 512 bytes

Device Boot      Start         End      Blocks  Id  System

/dev/sda1   *         63      208844      104391  83  Linux

/dev/sda2         208845   585922679   292856917+ 8e  Linux LVM

三、确认坏区位置

# echo 'scale=5;(435567298 - 208845) * 512/4096'|bc    *512是1个Units512字节,/4096是每个块设备是4096字节

54419806.62500 处于第五个扇区,8个扇区1个块,0.125*5=0.625

说明在54419806这个块的第5个扇区有问题,接下来查看下出问题的地方是否有文件使用了

四、查看是否有文件在使用坏区

# debugfs

debugfs 1.39 (29-May-2006)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/a2be63f92487fb5a4473e1e3fd089be2.html