[¼öÁ¤]ÇÏµå ¹èµå¼½ÅÍ ¹®Á¦ ¶§¹®¿¡ Áú¹®µå¸³´Ï´Ù

   Á¶È¸ 7214   Ãßõ 0    


안녕하십니까?? 웹서버 한대를 운용중이고

최근에 yum update를 통해서 업데이트를 해줬는데 다음과 같은 에러 메시지를 확인하였습니다.


Oct 18 18:05:37 host systemd: Stopping Self Monitoring and Reporting Technology (SMART) Daemon...
Oct 18 18:05:38 host smartd[736]: smartd received signal 15: Terminated
Oct 18 18:05:38 host smartd[736]: smartd is exiting (exit status 0)
Oct 18 18:05:38 host systemd: Started Self Monitoring and Reporting Technology (SMART) Daemon.
Oct 18 18:05:38 host systemd: Starting Self Monitoring and Reporting Technology (SMART) Daemon...
Oct 18 18:05:38 host smartd[6531]: smartd 6.2 2017-02-27 r4394 [x86_64-linux-3.10.0-514.6.1.el7.x86_64] (local build)
Oct 18 18:05:38 host smartd[6531]: Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
Oct 18 18:05:38 host smartd[6531]: Opened configuration file /etc/smartmontools/smartd.conf
Oct 18 18:05:38 host smartd[6531]: Configuration file /etc/smartmontools/smartd.conf was parsed, found DEVICESCAN, scanning devices
Oct 18 18:05:38 host smartd[6531]: Device: /dev/sda, type changed from 'scsi' to 'sat'
Oct 18 18:05:38 host smartd[6531]: Device: /dev/sda [SAT], opened
Oct 18 18:05:38 host smartd[6531]: Device: /dev/sda [SAT], ST1000DM003-1CH162, S/N:S1DH2HET, WWN:5-000c50-06d6684e9, FW:CC47, 1.00 TB
Oct 18 18:05:38 host smartd[6531]: Device: /dev/sda [SAT], found in smartd database: Seagate Barracuda 7200.14 (AF)
Oct 18 18:05:38 host smartd[6531]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
Oct 18 18:05:38 host smartd[6531]: Monitoring 1 ATA and 0 SCSI devices
Oct 18 18:05:38 host smartd[6531]: Device: /dev/sda [SAT], 8 Currently unreadable (pending) sectors
Oct 18 18:05:38 host smartd[6531]: Sending warning via /usr/libexec/smartmontools/smartdnotify to root ...
Oct 18 18:05:39 host smartd[6531]: Warning via /usr/libexec/smartmontools/smartdnotify to root: successful
Oct 18 18:05:39 host smartd[6531]: Device: /dev/sda [SAT], 8 Offline uncorrectable sectors
Oct 18 18:05:39 host smartd[6531]: Sending warning via /usr/libexec/smartmontools/smartdnotify to root ...
Oct 18 18:05:39 host smartd[6531]: Warning via /usr/libexec/smartmontools/smartdnotify to root: successful


메일함에는 다음과 같은 에러 보고서가 쌓여있네요

[root@host modules]# mail
Heirloom Mail version 12.5 7/5/10.  Type ? for help.
"/var/spool/mail/root": 57 messages 57 unread
>U  1 root                  Thu Feb  9 22:13  19/647   "CurrentPendingSector"
U  2 root                  Thu Feb  9 22:13  19/644   "OfflineUncorrectableSector"
U  3 root                  Thu Feb  9 22:46  19/647   "CurrentPendingSector"
U  4 root                  Thu Feb  9 22:46  19/644   "OfflineUncorrectableSector"
U  5 root                  Sun Feb 12 22:01  19/647   "CurrentPendingSector"
U  6 root                  Sun Feb 12 22:01  19/644   "OfflineUncorrectableSector"


아마 하드의 배드섹터가 발견되었다는 문제 같은데

배드섹터가 얼마나 치명적인지에 대한 감이 없어서 질문드립니다.


결과적으로 하드 교체가 답이겠지만 사용하는데 별 문제가 없다면 그냥 그대로 사용하면 안되는지 궁금해서 질문드립니다.

하드는 중고로 있는것을 사용해서 오래된 것입니다.


감사합니다.




--수정--


smartctl --all /dev/sda 의 결과중 일부입니다. 상태가 어떤 상태인지 확인해 주시면 감사하겠습니다.


SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate     0x000f   110   099   006    Pre-fail  Always       -       27988688
3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
4 Start_Stop_Count        0x0032   098   098   020    Old_age   Always       -       2586
5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
7 Seek_Error_Rate         0x000f   081   060   030    Pre-fail  Always       -       133965020
9 Power_On_Hours          0x0032   068   068   000    Old_age   Always       -       28489
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   098   098   020    Old_age   Always       -       2577
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   075   056   045    Old_age   Always       -       25 (Min/Max 21/27)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       23
193 Load_Cycle_Count        0x0032   001   001   000    Old_age   Always       -       245360
194 Temperature_Celsius     0x0022   025   044   000    Old_age   Always       -       25 (0 13 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       8
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       8
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       24792h+44m+05.727s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       6725639762
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       8105974587

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¹èµå¼½ÅÍ°¡ ÀÚ²Ù ´Ã¾î ³³´Ï´Ù..
¾î´À ¼ø°£ ÀÐÁö¸¦ ¸øÇÏ°í »¸¾î ¹ö¸³´Ï´Ù.
¹Ú¹®Çü 2017-10
µ¥ÀÌÅÍ ¹é¾÷¹× µð½ºÅ© À̹ÌÁö ¶ß¼Å¼­ µ¥ÀÌÅÍ ¸Á½ÇÀ» ÃÖ¼ÒÇÑÀ¸·Î ÇϽðí
(°è¼Ó µ¥ÀÌÅÍ´Â ¹èµå¼½ÅÍ°¡ ´Ã¾î°¨¿¡ µ¥ÀÌÅÍ ¸Á½ÇÀÌ µÇ¾î°¡°í ÀÖÀ» °ÍÀÔ´Ï´Ù.)

»õ Çϵå·Î ¹Ù²Ù¾î ÁÖ¼¼¿ä..
¹èµå¼½ÅÍ°¡ °è¼Ó ´Ã¾î³ª´Â±º¿ä. óÀ½ ¾Ë¾Ò½À´Ï´Ù.
Çϵå Çϳª »ç¼­ dd »ç¿ëÇؼ­ ¿Å°Ü¾ß°Ú³×¿ä. °¨»çÇÕ´Ï´Ù.
PiPPuuP 2017-10
³í¸®Àû(?)ÀÎ ¹èµå¼½ÅͶû, ¹°¸®ÀûÀÎ ¹èµå¼½ÅÍ°¡ Àִµ¥, °è¼Ó ´À´Â °É º¸´Ï ¹°¸®ÀûÀÎ ¹èµå¼½ÅÍ·Î º¸ÀÔ´Ï´Ù.

³í¸®¹èµå´Â °øÀå°¡¼­ ·Î¿ìÆ÷¸äÇÏ¸é ¿î ÁÁÀº °æ¿ì °íÃÄÁø´Ù´Â µµ½ÃÀü¼³ÀÌ Àִµ¥, Çϵ忡µµ SSD¸¶³É ¿©ºÐ¼½ÅÍ°¡ Àֱ⠶§¹®¿¡ ºÒÇÊ¿äÇÑ ÁþÀÔ´Ï´Ù. (°¬´ÙÁشٰí ÇØÁÖ´ÂÁöµµ ¸ð¸£°Ú±º¿ä) Âü°í·Î ÀÌ¹Ì ¾çÀÚ´ÜÀ§ ±â¼úÀ» »ç¿ëÁßÀÎ Çö½Ã´ë °í¹Ðµµ Çϵåµð½ºÅ©¸¦ ÁýÀ̳ª ÇöÀå¿¡¼­ ·Î¿ìÆ÷¸ËÇÒ ±â¼úÀº ÇöÀç Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. (¹Ì¼¼ÇÑ °ø±â Áøµ¿¸¸À¸·Îµµ ÀÛ¾÷ÀÌ ºÒ°¡´ÉÇϱ⠶§¹®¿¡ Ư¼öÇÑ ¼³ºñ¸¦ Áö´Ñ Çϵåµð½ºÅ© °øÀå °°Àºµ¥¼­³ª °¡´ÉÇÑ ÀÛ¾÷ÀÔ´Ï´Ù)
´ë°³ ÇØ´ç ¼½ÅÍ°¡ Á¦Á¶°úÁ¤ Áß ¾îÁ¤ÂÄÇÏ°Ô ºÒ·®ÀÎ °æ¿ì ¹ß»ýÇÕ´Ï´Ù(ÇØ´ç ¼½ÅÍ°¡ °øÀå¿¡¼­ ³ª¿ÔÀ» ¶© Àß ÀÛµ¿Çߴµ¥, ¾²´Ù°¡ ¸ÀÀÌ °¨). ÀÌ °æ¿ì¿¡´Â Áõ½ÄÇÏÁö ¾Ê½À´Ï´Ù. (±×¸®°í ÀÌ·±°æ¿ì´Â Çϵåµð½ºÅ©ÀÇ Æß¿þ¾î°¡ ´ë°³ ¾Ë¾Æ¼­ ÇØ°áÇÕ´Ï´Ù)

¹°¸®¹èµå´Â Ç÷¹ÅÍ¿¡ Á÷Á¢ÀûÀÎ ¼Õ»óÀÌ °¡ÇØÁø »óÅÂÀÔ´Ï´Ù.
°è¼Ó ´Ã¾î³ª´Â ¿ø¸®´Â, ÇÏµå ¾È¿¡ ±ú¾îÁø Á¶°¢À̳ª ¸ÕÁö³ª À̹°ÁúÀÌ ¹«¼­¿î ¼Óµµ·Î µ¹¾Æ°¡°í ÀÖ´Â Ç÷¹ÅͶû Ãæµ¹ÇÏ°í À̸®Àú¸® Æ¢¸é¼­ ¿©±âÀú±â ±Ü°í À־ ±×·¸½À´Ï´Ù. (»ç¶÷ ÀÔÀå¿¡¼­¾ß Ç¥¸éÀ» ±Ü´Â°ÅÁö, Ç÷¡ÅÍ À§ µ¥ÀÌÅÍ ÀÔÀå¿¡¼± µµ½Ã ¸î°³´Â ¿ì½À°Ô ³¯·Á¹ö¸± ¿î¼®ÀÌ ¶³¾îÁö°í Àִ°̴ϴÙ)
ÀÌ °úÁ¤¿¡¼­ Gravity(2013)ÀÇ Äɽ½·¯½Åµå·Ò ¸¶³É ÆÄÆíÀÌ ´Ã¾î³ª°Ô µÇ°í, Á¡Á¡ Æı«°¡ °¡¼ÓµË´Ï´Ù. ¾î´À ¼ø°£ Çϵåµð½ºÅ© ±¸µ¿¿¡ ÇÊ¿äÇÑ Ä¡¸íÀûÀÎ ¿µ¿ªÀÌ Æı«µÉ °ÍÀÌ°í, ±× ¶§´Â Àνĵµ ¾ÈµÉ°Ì´Ï´Ù.
Ãæ°Ý¿¡ ÀÇÇØ ¸Á°¡Áö´Â »ó´ç¼öÀÇ Çϵåµð½ºÅ©°¡ ÀÌ·±½ÄÀ¸·Î ÆĶõ¸¸ÀåÇÑ »ý¾Ö¸¦ ¸¶°¨ÇÕ´Ï´Ù.

±³Ã¼µµ Áß¿äÇÏÁö¸¸, ÇöÀç À¥¼­¹ö°¡ ¿î¿µÁßÀΠȯ°æµµ Á¡°ËÇغ¸¼¼¿ä.
´ë°³ Çϵåµð½ºÅ©¸¦ º®µ¹¸¶³É ¹«ÀÚºñÇÏ°Ô Ãë±ÞÇϰųª, Áøµ¿ÀÌ ½ÉÇÑ Àå¼Ò¿¡ ÀÖ´Â °æ¿ì ÀÌ·±ÀÏÀÌ ¹ß»ýÇϱ⠽±½À´Ï´Ù.
º¸Åë ¸¾¿¡ ¾Èµç´Ù°í ½Ã½ºÅÛÀ» ¹ß·Î Â÷´ë°Å³ª, ÀÛµ¿ÇÏ´Â ¿ÍÁß À§Ä¡¸¦ ¿Å±â°Å³ª, ȤÀº ¼³Ä¡µÈ °÷ÀÌ Áøµ¿ÀÌ ½ÉÇϴٰųª, Çϵåµð½ºÅ©¸¦ Á¦´ë·Î ¼³Ä¡¸¦ ¾ÈÇß´Ù´ø°¡ Çϴ½ÄÀ¸·Î¿ä.
¾ÆÁÖ¾ÆÁÖ¾ÆÁÖ ¿îÀÌ ³ª»Û °æ¿ì °©ÀÚ±â Àü¿øÀÌ Â÷´ÜµÇ¾î¼­ ¹ß»ýÇÒ ¼öµµ Àִµ¥, Çö ¼¼´ë Çϵåµð½ºÅ©´Â °ü¼ºÀ» ÀÌ¿ëÇÑ ÀÚµ¿ÆÄÅ·½Ã½ºÅÛÀ» ÀåºñÇÏ°í Àֱ⠶§¹®¿¡ ÀÌ·±°æ¿ì´Â º¸±â µå’Ô´Ï´Ù.
¸¸¾à ±¸µ¿ ȯ°æÀÌ ¹®Á¦À̸é ÀÌ·±ÀÏÀÌ ¶Ç ¹ß»ýÇÒ°Ì´Ï´Ù.
À¥¼­¹ö°¡ ¿î¿µÁßÀΰ÷ÀÇ È¯°æÀº ¹®Á¦°¡ ¾ø´Â°Í °°½À´Ï´Ù.
°á±¹ »õ·Î Çϵ带 »ç¼­ ±³Ã¼ÇÏ¿´½À´Ï´Ù.

À§ ¹®Á¦·Î Çϵ带 »ç¼­ º¹Á¦ÇϽ÷Á´Â ºÐµé²² Ȥ¿©³ª µµ¿òÀÌ µÉ±î ÇÏ¿© ´ñ±Û ³²±é´Ï´Ù.

cat /dev/sda > /dev/sdb
ȤÀº dd ¸í·É¾î´Â ¹èµå¼½ÅÍ·Î ÀÎÇÏ¿© IO ¿¡·¯°¡ ³ª´õ±º¿ä.
±×¸®°í ÇöÀç ÆÄÀϽýºÅÛÀ» mount ÇØ ³õÀº »óÅ·ΠÇϵå Ŭ·ÐÀ» Çϴ°ÍÀº À§ÇèÇÕ´Ï´Ù.

ddrescue ¸í·É¾î¸¦ »ç¿ëÇϽðųª »õ·Î ¼³Ä¡Çϱ⸦ ±ÇÇÕ´Ï´Ù.


QnA
Á¦¸ñPage 1797/5684
2014-05   4957396   Á¤ÀºÁØ1
2015-12   1493852   ¹é¸Þ°¡
2017-10   3530   lovemiai
2017-10   3869   ´ÃÆĶõ
2017-10   4196   õ¿Üõoo³ë¡¦
2017-10   3484   ǪÇÏÈ÷
2017-10   3557   BigData007
2017-10   3515   NeOpLE
2017-10   3654   ¼·ÀÌ´Ô
2017-10   5358   trevas
2017-10   7215   Áö³ª°¡´ÂÇàÀÎ
2017-10   4282   ȲÀ籤
2017-10   4247   AKMU
2017-10   8328   Ä«¿îÅÍ
2017-10   3739   µÎ¹ß·Î
2017-10   7835   °¡À»¹Ù¶÷
2017-10   4216   ³ª¿ì¸¶Å©
2017-10   3607   ³ª¿ì¸¶Å©
2017-10   3974   ¾Æ¸®¿À
2017-10   3413   ºÀºÀÀÌ
2017-10   6078   ¹Ú¹®Çü
2017-10   5322   ³ª¿ì¸¶Å©