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

   Á¶È¸ 7259   Ãßõ 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 4350/5691
2014-05   5016737   Á¤ÀºÁØ1
2015-12   1552199   ¹é¸Þ°¡
2017-02   7255   ȲȥÀ»ÇâÇØ
2011-04   7255   Á¤ÀºÁØ1
2005-01   7255   ¹Úµ¿¼±
2004-09   7256   ¹ÚÂù¹Î
2013-10   7256   Ǫ¸£´Þ
2007-08   7256   ³ëÇϼ®
2011-11   7256   »ðÁú¸Å´Ï¾Æ
2008-01   7256   Àü±ÙÇö
2012-05   7256   ¸®³ª
2017-02   7256   ¾ËÆÄ°í
2018-12   7257   ȲÀ籤
2016-07   7257   Ä𸮽ºÆ®
2011-09   7257   GoodWolf
2009-11   7257   ¹é½Âö
2004-06   7257   À̽ÂÇö
2011-02   7257   ÀÌÄ¡·Î¿î
2018-05   7257   ¾¾µð°øÀå
2016-12   7258   waney
2006-03   7258   °û¼±È£
2017-10   7259   TLaJ3KtYGr