๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸงLinux

[๋ฆฌ๋ˆ…์Šค] I/O Error ๋””์Šคํฌ ์ฐพ๋Š” ๋ช…๋ น์–ด

by _viper_ 2019. 5. 16.
๋ฐ˜์‘ํ˜•

 


๋ฆฌ๋ˆ…์Šค ์„œ๋ฒ„ ์„œ๋น„์Šค ์ž‘๋™์— ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธฐ๊ฑฐ๋‚˜ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ ์ฐพ์•„๋ณด๋ฉด ์žฆ์€ ๊ฒฝ์šฐ๋กœ Disk I/O Error๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํ•ด๋‹น ๋””์Šคํฌ ์ ‘์†ํ•ด์„œ ls ๋ช…๋ น์–ด๋กœ ์ผ์ผ์ด ์กฐํšŒํ•ด๋ณด์ง€ ์•Š๊ณ  Error ๊ฒฝ๋กœ๊ฐ€ ๋ฐ”๋กœ ํ™•์ธ๋ฉ๋‹ˆ๋‹ค.

 

๐Ÿ’ก dmesg ๋ช…๋ น์–ด๋กœ ํ•œ ๋ฒˆ์— i/o error ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” Disk(/dev/sde) ํ™•์ธ

  • dmesg๋Š” ์‹œ์Šคํ…œ ๋ถ€ํŒ… ๋ฐ ๋™์ž‘ ์ค‘์— ์ปค๋„(kernel)์—์„œ ์ƒ์„ฑ๋œ ๋กœ๊ทธ ๋ฉ”์‹œ์ง€๋ฅผ ํ‘œ์‹œํ•˜๋Š”๋ฐ ์‚ฌ์šฉ

 

$ dmesg -T | grep 'I/O error'
--------------------------------------------------------------------
EXT4-fs (sde): previous I/O error to superblock detected
blk_update_request: I/O error, dev sde, sector 0
Buffer I/O error on dev sde, logical block 0, lost sync page write