{"id":86286,"date":"2026-10-27T17:20:37","date_gmt":"2026-10-27T08:20:37","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=86286"},"modified":"2026-10-27T19:54:46","modified_gmt":"2026-10-27T10:54:46","slug":"smartctl-hdd-health-check","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286","title":{"rendered":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306e\u300c\u9759\u304b\u306a\u6b7b\u300d\u3092\u9632\u3050\u4ed5\u7d44\u307f \u2015 smartctl \u3067\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u81ea\u5b85\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u3088\u304f\u3042\u308b\u306e\u306f\u3001\u5916\u4ed8\u3051 HDD \u3092\u3082\u3046 1 \u53f0\u3064\u306a\u304e\u3001\u6bce\u6669 rsync \u306a\u3069\u3067\u8907\u88fd\u3057\u3066\u304a\u304f\u69cb\u6210\u3067\u3059\u3002\u305f\u3060\u3001\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u3001\u8aad\u307e\u308c\u306a\u3044\u307e\u307e\u9759\u304b\u306b\u58ca\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u306e\u30c9\u30e9\u30a4\u30d6\u306f\u66f8\u304d\u8fbc\u307e\u308c\u308b\u3060\u3051\u3067\u3001\u307b\u3068\u3093\u3069\u8aad\u307e\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u50b7\u3093\u3067\u3044\u3066\u3082\u5fa9\u5143\u3059\u308b\u65e5\u307e\u3067\u6c17\u3065\u3051\u306a\u3044\u3002\u3053\u308c\u304c<strong>\u300c\u30b7\u30e5\u30ec\u30c7\u30a3\u30f3\u30ac\u30fc\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u300d<\/strong>\u3068\u547c\u3070\u308c\u308b\u5b9a\u756a\u306e\u5931\u6557\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3053\u3067\u79c1\u306f\u3001Raspberry Pi 5 \u306b\u3064\u306a\u3044\u3060\u5916\u4ed8\u3051 HDD 2 \u53f0\u3092 <strong>smartctl \u3067\u6bce\u6669\u30fb\u6bce\u9031\u30fb\u6bce\u6708<\/strong>\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002smartctl \u3068\u306f\u3001HDD \u3084 SSD \u304c\u8a18\u9332\u3057\u3066\u3044\u308b SMART\uff08\u81ea\u5df1\u8a3a\u65ad\u306e\u60c5\u5831\uff09\u3092\u8aad\u3080\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u307e\u305f\u3001\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u958b\u59cb\u3082\u547d\u3058\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3053\u306e\u8a18\u4e8b\u3067\u308f\u304b\u308b\u3053\u3068<\/strong>\u306f\u3001\u6b21\u306e 4 \u3064\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>smartctl \u3067\u6bce\u6669\u8aad\u3080 SMART \u5c5e\u6027<\/strong>\u3068\u3001\u524d\u65e5\u3068\u306e\u5dee\u5206\u3067\u306e\u5224\u5b9a<\/li>\n\n\n\n<li><strong>\u77ed\u3044\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3068\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8<\/strong>\u306e\u4f7f\u3044\u5206\u3051\u3068\u6240\u8981\u6642\u9593<\/li>\n\n\n\n<li><strong>rsync \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u300c\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u3066\u52d5\u3044\u3066\u3044\u306a\u3044\u300d<\/strong>\u72b6\u614b\u306e\u898b\u3064\u3051\u65b9<\/li>\n\n\n\n<li><strong>\u6bce\u6669\u52d5\u304b\u3057\u3066\u3044\u308b Python\u30fb\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u3068 crontab<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e88\u5099\u304c\u3042\u308b\u3053\u3068\u3068\u3001\u4e88\u5099\u304c\u4f7f\u3048\u308b\u3053\u3068\u306f\u5225<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">2026 \u5e74\u306f\u3001\u7a7a\u306e\u4fbf\u304c\u6b62\u307e\u308b\u30cb\u30e5\u30fc\u30b9\u304c\u7d9a\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3082\u3001\u305d\u306e 1 \u3064\u306f\u3001\u307e\u3055\u306b<strong>\u300c\u4e88\u5099\u304c\u4f7f\u3048\u306a\u304b\u3063\u305f\u300d<\/strong>\u8a71\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>2026 \u5e74 9 \u6708 21 \u65e5\uff08\u7c73\u56fd\uff09<\/strong>: \u30d5\u30a3\u30e9\u30c7\u30eb\u30d5\u30a3\u30a2\u306e\u9032\u5165\u7ba1\u5236\u65bd\u8a2d\u3067\u4e3b\u56de\u7dda\u304c\u6545\u969c\u3057\u307e\u3057\u305f\u3002\u3068\u3053\u308d\u304c\u3001\u5207\u308a\u66ff\u3048\u305f\u4e88\u5099\u306e\u5149\u30d5\u30a1\u30a4\u30d0\u30fc\u306f\u5de5\u4e8b\u3067\u5207\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u7d50\u679c\u3001\u5317\u6771\u90e8\u306e\u4e3b\u8981\u7a7a\u6e2f\u3067\u96e2\u9678\u304c\u6b62\u307e\u308a\u30011,000 \u4fbf\u4ee5\u4e0a\u306b\u5f71\u97ff\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>2026 \u5e74 4 \u6708 21 \u65e5\uff08\u65e5\u672c\uff09<\/strong>: \u798f\u5ca1\u822a\u7a7a\u4ea4\u901a\u7ba1\u5236\u90e8\u306e\u4e0d\u5177\u5408\u3067\u3001\u7ba1\u5236\u51e6\u7406\u80fd\u529b\u304c\u4f4e\u4e0b\u3057\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u6771\u4eac\u306e\u4e88\u5099\u7cfb\u306b\u5207\u308a\u66ff\u3048\u3066\u5fa9\u65e7\u3057\u305f\u3082\u306e\u306e 5 \u6642\u9593\u4f59\u308a\u304b\u304b\u308a\u3001\u56fd\u5185\u7dda 200 \u4fbf\u4ee5\u4e0a\u304c\u6b20\u822a\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u300c\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u300d\u3068\u300c\u3059\u3050\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u300d\u306f\u9055\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2023 \u5e74\u306e\u4e8b\u6545: \u4e88\u5099\u304c\u4e3b\u7cfb\u3068\u540c\u3058\u7406\u7531\u3067\u58ca\u308c\u308b\u578b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u30012023 \u5e74\u306b\u3082\u4f3c\u305f\u578b\u306e\u4e8b\u6545\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070 8 \u6708\u306e\u82f1\u56fd\u306e\u7ba1\u5236\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u4e0d\u6b63\u306a\u98db\u884c\u8a08\u753b\u30c7\u30fc\u30bf\u3067\u4e3b\u7cfb\u304c\u6b62\u307e\u308a\u3001<strong>\u4e88\u5099\u7cfb\u3082\u540c\u3058\u30c7\u30fc\u30bf\u3067\u6b62\u307e\u308a\u307e\u3057\u305f<\/strong>\u3002\u3055\u3089\u306b 1 \u6708\u306e\u7c73\u56fd FAA \u3067\u306f\u3001\u540c\u671f\u4e2d\u306b\u58ca\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u4e88\u5099\u5074\u306b\u3082\u30b3\u30d4\u30fc\u3055\u308c\u3001\u5168\u7c73\u3067\u96e2\u9678\u304c\u6b62\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u308c\u3082\u898f\u6a21\u306f\u9055\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001<strong>\u6559\u8a13\u306f\u81ea\u5b85\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u305d\u306e\u307e\u307e\u5f53\u3066\u306f\u307e\u308a\u307e\u3059<\/strong>\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4e88\u5099\u306f\u3001\u4f7f\u3046\u524d\u306b\u300c\u4f7f\u3048\u308b\u3053\u3068\u300d\u3092\u78ba\u304b\u3081\u308b<\/strong>\u3002\u78ba\u304b\u3081\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u4e88\u5099\u3067\u306f\u306a\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u69cb\u6210: Raspberry Pi 5 \u3068\u5916\u4ed8\u3051 HDD 2 \u53f0\u3092 smartctl \u3067\u8a3a\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u69cb\u6210\u306f\u5358\u7d14\u3067\u3059\u3002\u307e\u305a\u3001Raspberry Pi 5 \u306b 4 TB \u306e USB HDD \u3092 2 \u53f0\u3064\u306a\u304e\u3001\u30e1\u30a4\u30f3\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u6bce\u6669 02:00 \u306b rsync \u3067\u8907\u88fd\u3057\u300104:30 \u306b <strong>smartctl \u3092\u542b\u3080\u76e3\u67fb\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u304c\u52d5\u304d\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001\u7d50\u679c\u3092 Slack \u3068\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"840\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-architecture.png\" alt=\"smartctl \u306b\u3088\u308b\u5916\u4ed8\u3051 HDD \u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u69cb\u6210\u56f3\u3002Raspberry Pi 5 \u304c\u30e1\u30a4\u30f3\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e HDD \u306e SMART \u3092\u8aad\u307f\u3001\u7d50\u679c\u3092 Slack \u306b\u9001\u308b\" class=\"wp-image-86287\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-architecture.png 1600w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-architecture-360x189.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-architecture-1024x538.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-architecture-768x403.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-architecture-1536x806.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><figcaption class=\"wp-element-caption\">\u56f3 1\uff1aRaspberry Pi 5 \u304c smartctl \u3067 2 \u53f0\u306e HDD \u3092\u6bce\u6669\u8a3a\u308b\u3002\u4e00\u65b9\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5074\u306f\u66f8\u304b\u308c\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u8aad\u307f\u306b\u884c\u304b\u306a\u3044\u9650\u308a\u8ab0\u3082\u8aad\u307e\u306a\u3044\u3002<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u30dd\u30a4\u30f3\u30c8\u306f 1 \u3064\u3060\u3051\u3067\u3059\u3002<strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u3001\u653e\u3063\u3066\u304a\u304f\u3068\u4e00\u5ea6\u3082\u8aad\u307e\u308c\u306a\u3044<\/strong>\u3002rsync \u306f\u5dee\u5206\u3092\u66f8\u304f\u3060\u3051\u3067\u3001\u8aad\u307f\u8fd4\u3055\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8aad\u3081\u306a\u3044\u5834\u6240\u304c\u3067\u304d\u3066\u3082\u8ab0\u3082\u6c17\u3065\u304d\u307e\u305b\u3093\u3002\u3088\u3063\u3066\u3001\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3082\u305d\u3053\u306b\u96c6\u4e2d\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306e\u5916\u304b\u3089\u306e\u63a5\u7d9a\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.creationline.com\/tech-blog\/author\/r-goto\/86223\">WireGuard \u306e\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u63a5\u7d9a\u306e\u8a18\u4e8b<\/a>\u306b\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/86229\">Nginx Proxy Manager \u304b\u3089 Caddy \u306b\u4e57\u308a\u63db\u3048\u305f\u8a18\u4e8b<\/a>\u306b\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">smartctl \u306b\u3088\u308b\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u4e2d\u8eab: \u8efd\u3044\u691c\u67fb\u3092\u6bce\u6669\u3001\u91cd\u3044\u691c\u67fb\u3092\u6708 1 \u56de<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u691c\u67fb\u306f\u3001\u8efd\u3044\u3082\u306e\u3092\u9ad8\u983b\u5ea6\u306b\u3001\u91cd\u3044\u3082\u306e\u3092\u4f4e\u983b\u5ea6\u306b\u3057\u3066\u5c64\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6bce\u6669 8 \u6642\u9593\u306e\u5168\u9762\u691c\u67fb\u306f\u78ba\u5b9f\u3067\u3059\u304c\u3001HDD \u306e\u5bff\u547d\u3092\u7e2e\u3081\u3001\u96fb\u6c17\u4ee3\u3082\u7121\u99c4\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u8efd\u3044\u691c\u67fb\u3067<strong>\u5146\u5019<\/strong>\u3092\u6bce\u6669\u62fe\u3044\u3001\u91cd\u3044\u691c\u67fb\u3067<strong>\u5b9f\u4f53<\/strong>\u3092\u6708 1 \u56de\u78ba\u304b\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u691c\u67fb\u306e\u5c64\u3068\u5468\u671f\u306e\u4e00\u89a7\uff08\u8868 1\uff09<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-collapse:collapse;width:100%;font-size:0.95em\"><thead><tr><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u3044\u3064<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u4f55\u3092\u3059\u308b<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u8ca0\u8377\u30fb\u6642\u9593<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top;background:#eff6ff;font-weight:700;white-space:nowrap\">\u5c0e\u5165\u6642\uff081 \u56de\uff09<br>\u65b0\u54c1\u3092\u4f7f\u3046\u524d<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u5168\u9762\u66f8\u304d\u8fbc\u307f\u691c\u67fb\uff08badblocks -w\uff09\u3068\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3067\u3001\u521d\u671f\u4e0d\u826f\u3092\u30c7\u30fc\u30bf\u3092\u8f09\u305b\u308b\u524d\u306b\u843d\u3068\u3059\u3002\u305f\u3060\u3057\u4e2d\u8eab\u304c\u6d88\u3048\u308b\u306e\u3067\u3001\u65b0\u54c1\u9650\u5b9a<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u7d04 15 \u6642\u9593 + 8 \u6642\u9593<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top;background:#eff6ff;font-weight:700;white-space:nowrap\">\u6bce\u6669<br>04:30<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">smartctl -x \u3067 SMART \u3092\u5168\u90e8\u8aad\u307f\u3001\u524d\u65e5\u3068\u6bd4\u3079\u308b\u3002\u3055\u3089\u306b\u30012 \u53f0\u306e\u30de\u30a6\u30f3\u30c8\u3001\u4eca\u591c\u306e\u8907\u88fd\u3001\u30ab\u30fc\u30cd\u30eb\u306e I\/O \u30a8\u30e9\u30fc\u3082\u78ba\u8a8d<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">1\u301c2 \u79d2 \/ \u53f0<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top;background:#eff6ff;font-weight:700;white-space:nowrap\">\u6bce\u9031<br>\u65e5\u66dc 04:00<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u77ed\u3044\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\uff08smartctl -t short\uff09\u3067\u3001\u96fb\u6c17\u30fb\u6a5f\u68b0\u7cfb\u3068\u3054\u304f\u4e00\u90e8\u306e\u8aad\u307f\u53d6\u308a\u3092\u81ea\u5df1\u8a3a\u65ad\u3002\u305d\u306e\u7d50\u679c\u306f\u7fcc\u6669\u306e\u8aad\u307f\u53d6\u308a\u3067\u62fe\u3046<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">1\u301c2 \u5206<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top;background:#eff6ff;font-weight:700;white-space:nowrap\">\u6bce\u6708<br>\u7b2c 1 \u65e5\u66dc 04:00<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\uff08smartctl -t long\uff09\u3067\u5168\u30bb\u30af\u30bf\u3092\u8aad\u307f\u3001\u300c\u66f8\u3051\u305f\u306e\u306b\u8aad\u3081\u306a\u3044\u5834\u6240\u300d\u3092\u6d17\u3044\u51fa\u3059\u3002\u3057\u304b\u3082\u30c7\u30fc\u30bf\u306f\u58ca\u3055\u305a\u3001\u4f7f\u3044\u306a\u304c\u3089\u5b9f\u884c\u3067\u304d\u308b<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u7d04 8 \u6642\u9593\uff084 TB\uff09<\/td><\/tr><\/tbody><\/table><figcaption style=\"text-align:center;font-size:0.9em;color:#555\">\u8868 1\uff1a\u8efd\u3044\u691c\u67fb\u3092\u6bce\u6669\u3001\u91cd\u3044\u691c\u67fb\u3092\u6708 1 \u56de\u884c\u3046<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u6bce\u6669: smartctl -x \u3067 SMART \u3092\u300c\u5168\u90e8\u300d\u8aad\u307f\u3001\u524d\u65e5\u3068\u6bd4\u3079\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SMART \u306f\u3001HDD \u81ea\u8eab\u304c\u8a18\u9332\u3057\u3066\u3044\u308b\u5065\u5eb7\u72b6\u614b\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u3067\u3059\u3002\u4f8b\u3048\u3070 <code>smartctl -x --json<\/code> \u306a\u3089\u3001\u5c5e\u6027\u3001\u6e29\u5ea6\u3001\u901a\u96fb\u6642\u9593\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u3001\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u5c65\u6b74\u307e\u3067\u4e00\u5ea6\u306b JSON \u3067\u53d6\u308c\u307e\u3059\u3002\u3057\u304b\u3082\u8aad\u3080\u3060\u3051\u306a\u306e\u3067\u8ca0\u8377\u306f\u306a\u304f\u3001<strong>1 \u53f0\u3042\u305f\u308a 1\u301c2 \u79d2<\/strong>\u3067\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u898b\u3066\u3044\u308b\u5c5e\u6027\u306f\u3001\u5177\u4f53\u7684\u306b\u306f\u6b21\u306e 6 \u3064\u304c\u4e2d\u5fc3\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6bce\u6669\u898b\u3066\u3044\u308b 6 \u3064\u306e SMART \u5c5e\u6027\uff08\u8868 2\uff09<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-collapse:collapse;width:100%;font-size:0.95em\"><thead><tr><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">ID<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u540d\u524d<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u610f\u5473<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u3069\u3046\u5224\u5b9a\u3057\u3066\u3044\u308b\u304b<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">197<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">Current_Pending_Sector<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u8aad\u3081\u306a\u304f\u3066\u4ee3\u66ff\u5f85\u3061\u306e\u30bb\u30af\u30bf<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">1 \u3067\u3082<strong>\u8d64<\/strong>\uff08\u4eca\u307e\u3055\u306b\u8aad\u3081\u306a\u3044\u5834\u6240\u304c\u3042\u308b\uff09<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">198<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">Offline_Uncorrectable<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u8a02\u6b63\u3067\u304d\u306a\u304b\u3063\u305f\u30bb\u30af\u30bf<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">1 \u3067\u3082<strong>\u8d64<\/strong><\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">5<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">Reallocated_Sector_Ct<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u4e88\u5099\u9818\u57df\u306b\u632f\u308a\u66ff\u3048\u305f\u30bb\u30af\u30bf\u6570<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">0 \u4ee5\u5916\u306f\u9ec4\u3001<strong>\u524d\u65e5\u304b\u3089\u5897\u3048\u305f\u3089\u8d64<\/strong><\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">187<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">Reported_Uncorrectable<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u30c7\u30fc\u30bf\u3092\u8fd4\u305b\u306a\u304b\u3063\u305f\u8aad\u307f\u51fa\u3057\u306e\u56de\u6570<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">0 \u4ee5\u5916\u306f\u9ec4\u3001\u524d\u65e5\u304b\u3089\u5897\u3048\u305f\u3089\u8d64<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">199<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">UDMA_CRC_Error_Count<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u8ee2\u9001\u8def\uff08\u30b1\u30fc\u30d6\u30eb\u30fbUSB \u5909\u63db\u57fa\u677f\uff09\u306e\u30a8\u30e9\u30fc<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u5897\u3048\u305f\u3089\u9ec4\uff08\u30c9\u30e9\u30a4\u30d6\u3067\u306f\u306a\u304f\u63a5\u7d9a\u3092\u7591\u3046\uff09<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">188<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">Command_Timeout<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u5fdc\u7b54\u5f85\u3061\u5207\u308c<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u5897\u3048\u305f\u3089\u9ec4\uff08\u96fb\u6e90\u30fb\u30b1\u30fc\u30d6\u30eb\u3092\u7591\u3046\uff09<\/td><\/tr><\/tbody><\/table><figcaption style=\"text-align:center;font-size:0.9em;color:#555\">\u8868 2\uff1a\u6bce\u6669\u898b\u3066\u3044\u308b\u5c5e\u6027\uff08\u7d76\u5bfe\u5024\u3088\u308a\u3001\u524d\u65e5\u304b\u3089\u306e\u5dee\u5206\u3092\u91cd\u304f\u898b\u308b\uff09<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u7d76\u5bfe\u5024\u3088\u308a\u3001\u524d\u65e5\u304b\u3089\u306e\u5dee\u5206\u3092\u91cd\u304f\u898b\u308b<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">SMART \u306e\u751f\u306e\u5024\u306f\u3001\u30e1\u30fc\u30ab\u30fc\u3054\u3068\u306b\u610f\u5473\u304c\u9055\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070 Seagate \u306e\u8aad\u307f\u51fa\u3057\u30a8\u30e9\u30fc\u7387\u306f\u3001\u5de8\u5927\u306a\u6570\u5b57\u3067\u3082\u6b63\u5e38\u3067\u3059\u3002\u3057\u304b\u3057\u300c\u6628\u65e5 0 \u306e\u4ee3\u66ff\u51e6\u7406\u6e08\u307f\u30bb\u30af\u30bf\u304c\u4eca\u65e5 3\u300d\u306f\u3001\u3069\u306e\u30e1\u30fc\u30ab\u30fc\u3067\u3082\u7570\u5909\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u6bce\u6669\u306e\u7d50\u679c\u3092\u30b7\u30ea\u30a2\u30eb\u756a\u53f7\u3054\u3068\u306b\u4fdd\u5b58\u3057\u3001<strong>\u7fcc\u6669\u306b\u5f15\u304d\u7b97<\/strong>\u3092\u3057\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u3058\u308f\u3058\u308f\u9032\u3080\u52a3\u5316\u3092\u6700\u521d\u306e\u4e00\u6b69\u3067\u6355\u307e\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5c5e\u6027\u306e\u307b\u304b\u306b smartctl \u306e JSON \u304b\u3089\u62fe\u3046\u3082\u306e<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u540c\u3058 JSON \u304b\u3089\u6b21\u3082\u62fe\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7dcf\u5408\u5224\u5b9a<\/strong>\uff08smart_status.passed\uff09: FAILED \u306f\u300c\u3082\u3046\u3059\u3050\u58ca\u308c\u308b\u300d\u3068\u3044\u3046\u81ea\u5df1\u7533\u544a\u306a\u306e\u3067\u3001\u8d64\u3002<\/li>\n\n\n\n<li><strong>\u6b63\u898f\u5316\u5024\u3068\u95be\u5024<\/strong>: Pre-fail \u5c5e\u6027\u304c\u95be\u5024\u3092\u5272\u308c\u3070\u3001\u751f\u306e\u5024\u306b\u95a2\u4fc2\u306a\u304f\u8d64\u3002\u3044\u308f\u3070\u3001\u30e1\u30fc\u30ab\u30fc\u304c\u5b9a\u7fa9\u3057\u305f\u300c\u8b66\u544a\u706f\u300d\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u6e29\u5ea6<\/strong>: 50 \u2103 \u8d85\u3067\u9ec4\u3001\u52d5\u4f5c\u4e0a\u9650\uff0855\u301c60 \u2103\uff09\u8d85\u3067\u8d64\u3002\u306a\u304a\u3001\u5916\u4ed8\u3051\u30b1\u30fc\u30b9\u306e\u4e2d\u306f\u60f3\u50cf\u3088\u308a\u71b1\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u5c65\u6b74<\/strong>: \u9031\u6b21\u30fb\u6708\u6b21\u306e\u7d50\u679c\u3092\u7fcc\u6669\u306b\u62fe\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u5931\u6557\u306a\u3089\u8d64\u300110 \u65e5\u4ee5\u4e0a\u8d70\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u300c\u4ed5\u7d44\u307f\u304c\u6b62\u307e\u3063\u3066\u3044\u308b\u300d\u3068\u77e5\u3089\u305b\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u901a\u96fb\u6642\u9593<\/strong>: 5 \u5e74\u8d85\u3067\u300c\u4ea4\u63db\u3092\u8003\u3048\u59cb\u3081\u308b\u300d\u30017 \u5e74\u8d85\u3067\u300c\u3044\u3064\u58ca\u308c\u3066\u3082\u304a\u304b\u3057\u304f\u306a\u3044\u300d\u3068\u3057\u3066\u9ec4\u3002<\/li>\n\n\n\n<li><strong>\u30c7\u30d0\u30a4\u30b9\u7d71\u8a08<\/strong>\uff08GP Log\uff09: Reported Uncorrectable Errors \u306a\u3069\u306f\u3001\u5c5e\u6027\u8868\u306b\u51fa\u306a\u3044\u30c9\u30e9\u30a4\u30d6\u3067\u3082\u3053\u3053\u306b\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6bce\u6669: rsync \u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u672c\u5f53\u306b\u8d70\u3063\u305f\u304b\u3092\u7591\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c9\u30e9\u30a4\u30d6\u304c\u5143\u6c17\u3067\u3082\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u8d70\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u610f\u5473\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3082\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306f<strong>\u300c\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u3066\u52d5\u3044\u3066\u3044\u306a\u3044\u300d<\/strong>\u72b6\u614b\u306b\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u79c1\u304c\u5b9f\u969b\u306b\u8e0f\u3093\u3060\u306e\u306f\u6b21\u306e 2 \u3064\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u3092\u629c\u3044\u305f\u307e\u307e<\/strong>\u306b\u3057\u305f\u3089\u3001rsync \u306f\u7a7a\u306e\u30de\u30a6\u30f3\u30c8\u5148\uff08\u3064\u307e\u308a SD \u30ab\u30fc\u30c9\uff09\u306b 1.5 TB \u3092\u66f8\u3053\u3046\u3068\u3057\u305f\u3002<\/li>\n\n\n\n<li><strong>\u30e1\u30a4\u30f3 HDD \u304c\u5916\u308c\u305f\u72b6\u614b<\/strong>\u3067 rsync --delete \u304c\u8d70\u308b\u3068\u3001\u7a7a\u306e\u5143\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5fe0\u5b9f\u306b\u8907\u88fd\u3057\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5168\u90e8\u6d88\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3057\u304b\u3057\u3001\u3069\u3061\u3089\u3082 rsync \u306f\u6b63\u5e38\u7d42\u4e86\u3057\u3001\u30ed\u30b0\u306b\u306f\u300cdone\u300d\u3068\u51fa\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5192\u982d\u3067\u4e21\u65b9\u306e\u30de\u30a6\u30f3\u30c8\u3092\u78ba\u304b\u3081\u3001\u7121\u3051\u308c\u3070<strong>\u4f55\u3082\u305b\u305a\u306b\u901a\u77e5\u3060\u3051<\/strong>\u3057\u3066\u7d42\u308f\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/sh\n# \u4e21\u65b9\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u4f55\u3082\u3057\u306a\u3044\uff08\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8907\u88fd\u3059\u308b\u3068\u4e8b\u6545\u306b\u306a\u308b\uff09\nif ! mountpoint -q \/mnt\/backup || ! mountpoint -q \/mnt\/main; then\n  curl -s -X POST -H 'Content-type: application\/json' \\\n    --data '{\"text\":\"backup skipped: main or backup is not mounted\"}' \"$SLACK_WEBHOOK_URL\" > \/dev\/null\n  exit 0\nfi\nrsync -aHAX --delete \/mnt\/main\/ \/mnt\/backup\/ 2> \/var\/log\/backup\/rsync_errors.log \\\n  || curl -s -X POST -H 'Content-type: application\/json' --data '{\"text\":\"rsync error\"}' \"$SLACK_WEBHOOK_URL\"<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f\u72ec\u7acb\u306b\u898b\u308b 4 \u9805\u76ee<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u3055\u3089\u306b\u3001\u6bce\u6669\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f\u72ec\u7acb\u306b\u6b21\u3092\u898b\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2 \u53f0\u3068\u3082<strong>\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u304b<\/strong>\u3002\u305f\u3060\u3001USB \u306e\u5916\u4ed8\u3051\u306f\u300cdf \u306b\u306f\u51fa\u308b\u306e\u306b\u8aad\u3080\u3068 I\/O \u30a8\u30e9\u30fc\u300d\u306b\u3082\u306a\u308b\u306e\u3067\u3001\u5b9f\u969b\u306b statvfs \u3092\u6253\u3063\u3066\u78ba\u304b\u3081\u307e\u3059\u3002<\/li>\n\n\n\n<li>rsync \u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u306e<strong>\u66f4\u65b0\u6642\u523b<\/strong>\u304c 30 \u6642\u9593\u4ee5\u5185\u304b\u3002\u3064\u307e\u308a\u3001\u53e4\u3051\u308c\u3070\u8d70\u3063\u3066\u3044\u306a\u3044\u3002\u307e\u305f\u3001\u30b5\u30a4\u30ba\u304c 0 \u3067\u306a\u3051\u308c\u3070\u4f55\u304b\u304c\u8907\u88fd\u3067\u304d\u3066\u3044\u306a\u3044\u3002<\/li>\n\n\n\n<li>\u30c7\u30a3\u30b9\u30af\u306e<strong>\u4f7f\u7528\u7387<\/strong>\u304c 90% \u3092\u8d85\u3048\u3066\u3044\u306a\u3044\u304b\u3002<\/li>\n\n\n\n<li>24 \u6642\u9593\u4ee5\u5185\u306e\u30ab\u30fc\u30cd\u30eb\u30ed\u30b0\u306b <strong>I\/O error \u3084 USB \u30ea\u30bb\u30c3\u30c8<\/strong>\u304c\u7121\u3044\u304b\u3002\u306a\u304a\u3001SMART \u3088\u308a\u5148\u306b OS \u5074\u304c\u60b2\u9cf4\u3092\u4e0a\u3052\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6bce\u9031: smartctl -t short \u3067\u77ed\u3044\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\uff081\u301c2 \u5206\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SMART \u306e\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306f\u3001HDD \u304c\u81ea\u5206\u81ea\u8eab\u3092\u691c\u67fb\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002\u3064\u307e\u308a\u3001smartctl \u3067\u300c\u59cb\u3081\u3066\u300d\u3068\u547d\u3058\u308c\u3070\u3001\u3042\u3068\u306f\u30c9\u30e9\u30a4\u30d6\u5185\u90e8\u304c\u9032\u3081\u307e\u3059\u3002\u307e\u305f\u3001\u30c7\u30fc\u30bf\u306f\u66f8\u304d\u63db\u3048\u306a\u3044\u306e\u3067\u3001<strong>\u30de\u30a6\u30f3\u30c8\u3057\u305f\u307e\u307e\u5b9f\u884c\u3067\u304d\u307e\u3059<\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u77ed\u3044\u30c6\u30b9\u30c8\uff08<code>smartctl -t short<\/code>\uff09\u306f 1\u301c2 \u5206\u3067\u3001\u96fb\u6c17\u7cfb\u30fb\u6a5f\u68b0\u7cfb\u306e\u81ea\u5df1\u8a3a\u65ad\u3068\u3001\u3054\u304f\u4e00\u90e8\u306e\u8aad\u307f\u53d6\u308a\u3092\u884c\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u8ca0\u8377\u304c\u5c0f\u3055\u304f\u3001<strong>\u6bce\u9031\u65e5\u66dc<\/strong>\u306b\u5165\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u6708\u306e\u6700\u521d\u306e\u65e5\u66dc\u3060\u3051\u306f\u62e1\u5f35\u30c6\u30b9\u30c8\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6bce\u6708: smartctl -t long \u306e\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3067\u5168\u30bb\u30af\u30bf\u3092\u8aad\u3080<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3057\u3066\u3001\u3053\u3053\u304c\u3053\u306e\u4ed5\u7d44\u307f\u306e<strong>\u6838\u5fc3<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3088\u304f\u3042\u308b\u8aa4\u89e3\u306b<strong>\u300c\u66f8\u3051\u305f\u306e\u3060\u304b\u3089\u8aad\u3081\u308b\u300d<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057 HDD \u306e\u78c1\u6c17\u8a18\u9332\u306f\u6642\u9593\u3068\u3068\u3082\u306b\u5f31\u307e\u308a\u3001\u66f8\u3044\u305f\u6642\u306f\u6b63\u5e38\u3060\u3063\u305f\u30bb\u30af\u30bf\u304c\u5f8c\u304b\u3089\u8aad\u3081\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u6f5c\u5728\u30bb\u30af\u30bf\u30a8\u30e9\u30fc\uff08latent sector error\uff09\u3068\u547c\u3073\u307e\u3059\u3002\u4f8b\u3048\u3070 SMART \u306e\u4ee3\u66ff\u5f85\u3061\u30bb\u30af\u30bf\uff08197\uff09\u306f\u3001\u8aad\u3082\u3046\u3068\u3057\u3066\u5931\u6557\u3057\u3066\u521d\u3081\u3066\u5897\u3048\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u8aad\u307e\u306a\u3051\u308c\u3070\u305a\u3063\u3068 0 \u306e\u307e\u307e\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"760\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-long-selftest-latent-sector-error.png\" alt=\"smartctl \u306e\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\uff08smartctl -t long\uff09\u304c\u5168\u30bb\u30af\u30bf\u3092\u8aad\u307f\u3001\u6f5c\u5728\u30bb\u30af\u30bf\u30a8\u30e9\u30fc\u3092\u898b\u3064\u3051\u308b\u4ed5\u7d44\u307f\u306e\u6a21\u5f0f\u56f3\" class=\"wp-image-86288\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-long-selftest-latent-sector-error.png 1680w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-long-selftest-latent-sector-error-360x163.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-long-selftest-latent-sector-error-1024x463.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-long-selftest-latent-sector-error-768x347.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-long-selftest-latent-sector-error-1536x695.png 1536w\" sizes=\"auto, (max-width: 1680px) 100vw, 1680px\" \/><figcaption class=\"wp-element-caption\">\u56f3 2\uff1a\u300c\u66f8\u3051\u305f\u300d\u3068\u300c\u8aad\u3081\u308b\u300d\u306f\u5225\u3002\u3064\u307e\u308a\u3001\u8aad\u307e\u308c\u306a\u3044\u5834\u6240\u306e\u7570\u5e38\u306f\u3001smartctl -t long \u3067\u8aad\u307f\u306b\u884c\u3063\u3066\u521d\u3081\u3066\u5206\u304b\u308b\u3002<\/figcaption><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\">\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u6240\u8981\u6642\u9593\u3068\u6ce8\u610f\u70b9<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\uff08<code>smartctl -t long<\/code>\uff09\u3067\u306f\u3001\u30c9\u30e9\u30a4\u30d6\u304c\u5168\u30bb\u30af\u30bf\u3092\u7aef\u304b\u3089\u7aef\u307e\u3067\u8aad\u307f\u307e\u3059\u30024 TB \u306e USB HDD \u3067<strong>\u7d04 8 \u6642\u9593<\/strong>\u3067\u3059\u3002\u3057\u304b\u3082\u3001\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u305a\u3001\u4f7f\u3044\u306a\u304c\u3089\u5b9f\u884c\u3067\u304d\u307e\u3059\uff08I\/O \u304c\u3042\u308b\u3068\u4e00\u6642\u505c\u6b62\u3057\u3001\u305d\u306e\u5206\u9577\u5f15\u304d\u307e\u3059\uff09\u3002\u305d\u3057\u3066\u3001\u7d50\u679c\u306f\u30c9\u30e9\u30a4\u30d6\u5185\u306b\u6b8b\u308b\u306e\u3067\u3001\u7fcc\u6669\u306e\u8aad\u307f\u53d6\u308a\u3067\u300cCompleted without error\u300d\u304b\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6570\u5b57\u3067\u611f\u899a\u3092\u3064\u304b\u3093\u3067\u304a\u304d\u307e\u3059\u3002\u6c11\u751f\u7528 HDD \u306e\u8aad\u307f\u53d6\u308a\u4e0d\u80fd\u30a8\u30e9\u30fc\u7387\u306f\u3001\u4ed5\u69d8\u66f8\u3067\u306f\u4e00\u822c\u306b\u300c10<sup>14<\/sup> \u30d3\u30c3\u30c8\u306b 1 \u56de\u300d\u3067\u3059\u3002\u4e00\u65b9\u30014 TB \u306f\u7d04 3.2\u00d710<sup>13<\/sup> \u30d3\u30c3\u30c8\u306a\u306e\u3067\u3001\u5168\u9762\u3092 1 \u56de\u8aad\u3080\u3068\u8a08\u7b97\u4e0a 0.3 \u56de\u307b\u3069\u5f53\u305f\u308a\u307e\u3059\u3002\u3064\u307e\u308a<strong>\u6570\u56de\u306b 1 \u56de\u306f\u5f53\u305f\u308b<\/strong>\u30aa\u30fc\u30c0\u30fc\u3067\u3059\u3002\u5b9f\u969b\u306e\u826f\u54c1\u306f\u305a\u3063\u3068\u512a\u79c0\u3067\u3059\u304c\u3001\u5168\u9762\u306e\u8aad\u307f\u8fd4\u3057\u306f\u6c17\u4f11\u3081\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5c0e\u5165\u6642: \u65b0\u54c1 HDD \u306f badblocks \u3067\u691c\u67fb\u3057\u3066\u304b\u3089\u4f7f\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HDD \u306e\u6545\u969c\u306f\u3001\u4f7f\u3044\u59cb\u3081\u3068\u5bff\u547d\u672b\u671f\u306b\u96c6\u4e2d\u3057\u307e\u3059\uff08\u30d0\u30b9\u30bf\u30d6\u66f2\u7dda\uff09\u3002\u305d\u306e\u305f\u3081\u65b0\u54c1\u306f\u3001\u30c7\u30fc\u30bf\u3092\u8f09\u305b\u308b\u524d\u306b<strong>\u4e00\u5ea6\u3060\u3051<\/strong>\u91cd\u3044\u691c\u67fb\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u4e2d\u8eab\u304c\u5168\u90e8\u6d88\u3048\u308b\u3002\u65b0\u54c1\u3001\u307e\u305f\u306f\u6d88\u3057\u3066\u3088\u3044\u30c9\u30e9\u30a4\u30d6\u306b\u3060\u3051\u5b9f\u884c\u3059\u308b\nsudo badblocks -wsv -t random -b 4096 \/dev\/sdX\n\n# 0 \u4ef6\u306a\u3089\u7d9a\u3051\u3066\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\uff08\u30c9\u30e9\u30a4\u30d6\u81ea\u8eab\u306e\u5168\u9762\u8aad\u307f\u53d6\u308a\uff09\nsudo smartctl -t long -d sat \/dev\/sdX\n# \u7fcc\u65e5\nsudo smartctl -l selftest -d sat \/dev\/sdX<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>badblocks -w<\/code> \u306f\u5168\u9762\u306b\u30d1\u30bf\u30fc\u30f3\u3092\u66f8\u3044\u3066\u8aad\u307f\u623b\u3059\u691c\u67fb\u3067\u30014 TB \u3067\u7d04 15 \u6642\u9593\u3067\u3059\u3002\u307e\u305f\u3001USB \u30b1\u30fc\u30d6\u30eb\u3084\u5909\u63db\u57fa\u677f\u3092\u542b\u3080\u7d4c\u8def\u5168\u4f53\u3092\u8abf\u3079\u308b\u306e\u3067\u3001\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3068\u306f\u898b\u308b\u5834\u6240\u304c\u9055\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4e21\u65b9\u901a\u308c\u3070\u521d\u671f\u4e0d\u826f\u306f\u307b\u307c\u7121\u3044\u3068\u8a00\u3048\u307e\u3059\u3002\u306a\u304a\u3001\u4e2d\u8eab\u304c\u6d88\u3048\u308b\u3046\u3048\u300115 \u6642\u9593\u306e\u30d5\u30eb\u7a3c\u50cd\u306f\u53e4\u3044\u30c9\u30e9\u30a4\u30d6\u306b\u5f15\u5c0e\u3092\u6e21\u3057\u304b\u306d\u307e\u305b\u3093\u3002\u3064\u307e\u308a\u3001<strong>\u53e4\u3044\u30c9\u30e9\u30a4\u30d6\u306b\u306f\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3067\u5341\u5206<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">smartctl \u306e\u5b9a\u671f\u30c1\u30a7\u30c3\u30af\u3067\u5b88\u308c\u308b\u3053\u3068\u3001\u5b88\u308c\u306a\u3044\u3053\u3068<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u4e07\u5168\u300d\u3068\u306f\u8a00\u3044\u305f\u304f\u306a\u3044\u306e\u3067\u3001<strong>\u4f55\u3092\u5b88\u308c\u3066\u3044\u3066\u4f55\u3092\u5b88\u308c\u3066\u3044\u306a\u3044\u304b<\/strong>\u3092\u6b63\u76f4\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b88\u308c\u3066\u3044\u308b\u3053\u3068: \u4e88\u5146\u304b\u3089\u76e3\u8996\u306e\u6b7b\u307e\u3067<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30c9\u30e9\u30a4\u30d6\u306e\u4e88\u5146<\/strong>: \u7dcf\u5408\u5224\u5b9a\u30fb\u95be\u5024\u5272\u308c\u30fb\u4ee3\u66ff\u51e6\u7406\u306e\u5897\u52a0\u30fb\u6e29\u5ea6\u3092\u3001\u524d\u65e5\u3068\u306e\u5dee\u5206\u3067\u898b\u308b\u3002<\/li>\n\n\n\n<li><strong>\u8aad\u3081\u306a\u3044\u5834\u6240<\/strong>: \u6708 1 \u56de\u306e\u5168\u9762\u8aad\u307f\u53d6\u308a\u3067\u3001SMART \u306b\u51fa\u306a\u3044\u6f5c\u5728\u30bb\u30af\u30bf\u30a8\u30e9\u30fc\u3092\u6d17\u3044\u51fa\u3059\u3002<\/li>\n\n\n\n<li><strong>\u4ed5\u7d44\u307f\u306e\u6b7b<\/strong>: \u8d70\u3063\u305f\u304b\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u304b\u30012 \u53f0\u304c\u898b\u3048\u3066\u3044\u308b\u304b\u3002\u30c9\u30e9\u30a4\u30d6\u304c\u5143\u6c17\u3067\u3082\u3001\u6b62\u307e\u3063\u3066\u3044\u308c\u3070\u8d64\u3002<\/li>\n\n\n\n<li><strong>\u63a5\u7d9a\u306e\u52a3\u5316<\/strong>: CRC \u30a8\u30e9\u30fc\u3068\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3067\u3001\u30b1\u30fc\u30d6\u30eb\u30fb\u5909\u63db\u57fa\u677f\u30fb\u96fb\u6e90\u3092\u5207\u308a\u5206\u3051\u308b\u3002\u3057\u304b\u3082\u3001USB \u5916\u4ed8\u3051\u306e\u4e0d\u8abf\u306e\u534a\u5206\u306f\u3053\u3053\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u76e3\u8996\u306e\u6b7b<\/strong>: \u6b63\u5e38\u3067\u3082\u6bce\u6669 1 \u884c\u3001Slack \u306b\u51fa\u3059\u3002\u300c\u901a\u77e5\u304c\u6765\u306a\u3044\uff1d\u6b63\u5e38\u300d\u3060\u3068\u3001\u76e3\u8996\u304c\u6b62\u307e\u3063\u3066\u3082\u6c17\u3065\u3051\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">SMART \u3060\u3051\u306b\u983c\u3089\u306a\u3044\u7406\u7531\uff08Google \u3068 Backblaze \u306e\u7d71\u8a08\uff09<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">SMART \u3060\u3051\u306b\u983c\u3089\u306a\u3044\u306e\u306f\u3001<a href=\"https:\/\/www.usenix.org\/conference\/fast-07\/failure-trends-large-disk-drive-population\" target=\"_blank\" rel=\"noreferrer noopener\">Google \u304c 10 \u4e07\u53f0\u898f\u6a21\u3067\u8abf\u3079\u305f 2007 \u5e74\u306e\u8ad6\u6587<\/a>\u3067\u3001\u6545\u969c\u30c9\u30e9\u30a4\u30d6\u306e 36% \u306b SMART \u306e\u5146\u5019\u304c\u7121\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/www.backblaze.com\/blog\/what-smart-stats-indicate-hard-drive-failures\/\" target=\"_blank\" rel=\"noreferrer noopener\">Backblaze \u306e\u96c6\u8a08<\/a>\u3067\u3082\u3001\u4e3b\u8981 5 \u5c5e\u6027\u306b\u5146\u5019\u304c\u51fa\u306a\u3044\u307e\u307e\u58ca\u308c\u305f\u30c9\u30e9\u30a4\u30d6\u304c 2 \u5272\u307b\u3069\u3042\u308a\u307e\u3057\u305f\u3002\u3064\u307e\u308a SMART \u306f\u3001<strong>\u300c\u51fa\u305f\u3089\u672c\u7269\u300d\u3060\u304c\u300c\u51fa\u306a\u3044\u304b\u3089\u5b89\u5168\u300d\u3067\u306f\u306a\u3044<\/strong>\u3002\u305d\u306e\u305f\u3081\u3001\u5168\u9762\u8aad\u307f\u53d6\u308a\u3068\u4ed5\u7d44\u307f\u5074\u306e\u691c\u67fb\u3092\u91cd\u306d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b88\u308c\u3066\u3044\u306a\u3044\u3053\u3068: \u8ad6\u7406\u7684\u306a\u7834\u58ca\u30fb\u7121\u8a00\u306e\u7834\u640d\u30fb\u540c\u6642\u306b\u5931\u3046\u4e8b\u6545<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8ad6\u7406\u7684\u306a\u7834\u58ca<\/strong>: \u8aa4\u3063\u3066\u6d88\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3084\u6697\u53f7\u5316\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3082\u3001rsync --delete \u304c\u7fcc\u6669\u306b\u5fe0\u5b9f\u306b\u904b\u3073\u307e\u3059\uff08FAA \u306e\u4e8b\u6545\u3068\u540c\u3058\u578b\uff09\u3002\u4e00\u65b9\u3001\u3053\u308c\u306b\u306f\u4e16\u4ee3\u7ba1\u7406\uff08\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3084 --backup-dir\uff09\u304c\u52b9\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u7121\u8a00\u306e\u7834\u640d\uff08silent corruption\uff09<\/strong>: \u30a8\u30e9\u30fc\u306b\u306a\u3089\u305a\u306b\u4e2d\u8eab\u3060\u3051\u5316\u3051\u308b\u3068\u3001\u5168\u9762\u8aad\u307f\u53d6\u308a\u3067\u3082\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001ZFS\u30fbBtrfs \u306e scrub \u304b\u3001\u30cf\u30c3\u30b7\u30e5\u306e\u7167\u5408\u304c\u8981\u308a\u307e\u3059\uff08\u5f8c\u8ff0\u306e\u4e88\u884c\u6f14\u7fd2\uff09\u3002<\/li>\n\n\n\n<li><strong>\u540c\u6642\u306b\u5931\u3046\u4e8b\u6545<\/strong>: \u706b\u4e8b\u30fb\u76d7\u96e3\u30fb\u843d\u96f7\u3067\u306f\u3001\u540c\u3058\u673a\u306e 2 \u53f0\u304c\u540c\u6642\u306b\u6b7b\u306b\u307e\u3059\u3002\u3088\u3063\u3066\u3001\u3053\u308c\u306f\u30aa\u30d5\u30b5\u30a4\u30c8\u306e\u30b3\u30d4\u30fc\uff083-2-1 \u30eb\u30fc\u30eb\u306e\u300c1\u300d\uff09\u306e\u4ed5\u4e8b\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>SD \u30ab\u30fc\u30c9<\/strong>: Pi \u672c\u4f53\u306e SD \u306b\u306f SMART \u304c\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\u91cd\u8981\u306a\u8a2d\u5b9a\u3084 DB \u306f HDD \u5074\u3078\u6bce\u6669\u66f8\u304d\u51fa\u3057\u3001\u76e3\u8996\u306b\u76f8\u4e57\u308a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u307e\u308a\u3053\u306e\u4ed5\u7d44\u307f\u306f\u3001\u300c<strong>\u5fa9\u5143\u3057\u3088\u3046\u3068\u3057\u305f\u65e5\u306b\u3001\u30c9\u30e9\u30a4\u30d6\u304c\u8aad\u3081\u306a\u3044<\/strong>\u300d\u3068\u3044\u3046\u6700\u3082\u6094\u3057\u3044\u5931\u6557\u3092\u72d9\u3044\u6483\u3061\u306b\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u3063\u3066\u3044\u308b\u30c4\u30fc\u30eb\u3068\u3001\u6bce\u6669\u52d5\u304b\u3059\u30b9\u30af\u30ea\u30d7\u30c8<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c4\u30fc\u30eb\u4e00\u89a7: smartctl\uff08smartmontools\uff09\u30fbbadblocks\u30fbrsync<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">smartctl \u306f <a href=\"https:\/\/www.smartmontools.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">smartmontools<\/a> \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5165\u3063\u3066\u304a\u308a\u3001Raspberry Pi OS \u306a\u3089 <code>sudo apt install smartmontools<\/code> \u3067\u5c0e\u5165\u3067\u304d\u307e\u3059\u3002<strong>\u307b\u304b\u306e\u30c4\u30fc\u30eb\u3082\u3001\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308b\u304b apt \u3067\u5165\u308b\u3082\u306e<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-collapse:collapse;width:100%;font-size:0.95em\"><thead><tr><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u30c4\u30fc\u30eb<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u4f55\u3092\u78ba\u8a8d\u3059\u308b\u304b<\/th><th style=\"background:#1d4ed8;color:#fff;padding:8px 10px;border:1px solid #cbd5e1;text-align:left;font-weight:700\">\u8ca0\u8377<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">smartmontools\uff08smartctl\uff09<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">SMART \u5c5e\u6027\u30fb\u6e29\u5ea6\u30fb\u30a8\u30e9\u30fc\u30ed\u30b0\u30fb\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u3068\u7d50\u679c<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u8aad\u3080\u3060\u3051\u306a\u3089\u7121\u3057<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">badblocks\uff08e2fsprogs\uff09<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u65b0\u54c1\u306e\u5168\u9762\u66f8\u304d\u8fbc\u307f\u30fb\u8aad\u307f\u623b\u3057\u691c\u67fb<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u6700\u5927\uff08\u65b0\u54c1\u9650\u5b9a\uff09<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">mountpoint \/ findmnt \/ lsblk<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u304b\u3001\u3069\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u3069\u3053\u304b<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u7121\u3057<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">rsync\uff08-n --itemize-changes\u3001-c\uff09<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u8907\u88fd\u306e\u5dee\u5206\u304c\u30bc\u30ed\u304b\u3001\u5fc5\u8981\u306a\u3089\u4e2d\u8eab\u307e\u3067\u6bd4\u8f03<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">-c \u306f\u5168\u8aad\u307f<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">journalctl -k<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u30ab\u30fc\u30cd\u30eb\u306e I\/O \u30a8\u30e9\u30fc\u30fbUSB \u30ea\u30bb\u30c3\u30c8<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u7121\u3057<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">tune2fs \/ e2fsck<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">ext4 \u306e\u30a8\u30e9\u30fc\u56de\u6570\u3001\u7570\u5e38\u6642\u306e\u6319\u52d5\uff08errors=remount-ro\uff09<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u8aad\u3080\u3060\u3051\u306a\u3089\u7121\u3057<\/td><\/tr><tr><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">cron + curl\uff08Slack Webhook\uff09<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u6bce\u6669\u52d5\u304b\u3059\u3001\u7d50\u679c\u3092\u5c4a\u3051\u308b<\/td><td style=\"padding:8px 10px;border:1px solid #cbd5e1;vertical-align:top\">\u7121\u3057<\/td><\/tr><\/tbody><\/table><figcaption style=\"text-align:center;font-size:0.9em;color:#555\">\u8868 3\uff1a\u4f7f\u3063\u3066\u3044\u308b\u30c4\u30fc\u30eb<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u624b\u3067\u78ba\u304b\u3081\u308b\u3068\u304d\u306e smartctl \u30b3\u30de\u30f3\u30c9<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u3069\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u3069\u306e\u30c9\u30e9\u30a4\u30d6\u304b\uff08USB \u306f\u5dee\u3057\u76f4\u3059\u3068\u540d\u524d\u304c\u5909\u308f\u308b\u306e\u3067\u6bce\u56de\u78ba\u304b\u3081\u308b\uff09\nlsblk -o NAME,SIZE,MODEL,SERIAL,MOUNTPOINT\n\n# \u7dcf\u5408\u5224\u5b9a\u3060\u3051\nsudo smartctl -H -d sat \/dev\/sda\n\n# \u5c5e\u6027\u306e\u8868\uff08\u4eba\u9593\u5411\u3051\uff09\nsudo smartctl -A -d sat \/dev\/sda\n\n# \u5168\u90e8\u3092 JSON \u3067\uff08\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3053\u308c\u3092\u8aad\u3080\uff09\nsudo smartctl -x --json -d sat \/dev\/sda | jq '.smart_status, .temperature, .power_on_time'\n\n# \u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u958b\u59cb\u3068\u7d50\u679c\nsudo smartctl -t short -d sat \/dev\/sda     # 1\u301c2 \u5206\nsudo smartctl -t long  -d sat \/dev\/sda     # 4 TB \u3067\u7d04 8 \u6642\u9593\nsudo smartctl -l selftest -d sat \/dev\/sda  # \u5c65\u6b74\uff08Completed without error \/ read failure\uff09\n\n# \u8907\u88fd\u306b\u5dee\u5206\u304c\u6b8b\u3063\u3066\u3044\u306a\u3044\u304b\uff08\u4f55\u3082\u66f8\u304b\u306a\u3044\uff09\nrsync -aHAXn --delete --itemize-changes \/mnt\/main\/ \/mnt\/backup\/ | head\n\n# \u76f4\u8fd1 24 \u6642\u9593\u306e\u30ab\u30fc\u30cd\u30eb\u306e\u60b2\u9cf4\njournalctl -k --since -24h | grep -iE 'I\/O error|medium error|uas|reset'\n\n# ext4 \u304c\u8a18\u9332\u3057\u305f\u30a8\u30e9\u30fc\u56de\u6570\u3068\u3001\u7570\u5e38\u6642\u306e\u6319\u52d5\nsudo tune2fs -l \/dev\/sda1 | grep -iE 'error|mount count'<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>-d sat<\/code> \u306f\u3001USB \u5909\u63db\u57fa\u677f\u8d8a\u3057\u306b SATA \u306e SMART \u3092\u8aad\u3080\u305f\u3081\u306e\u6307\u5b9a\u3067\u3059\u3002\u4ed8\u3051\u306a\u304f\u3066\u3082\u8aad\u3081\u308b\u57fa\u677f\u3082\u3042\u308b\u306e\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f<strong>\u4ed8\u3051\u3066\u5931\u6557\u3057\u305f\u3089\u5916\u3059<\/strong>\u9806\u3067\u8a66\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6bce\u6669\u52d5\u304b\u3059\u30b9\u30af\u30ea\u30d7\u30c8\uff08Python 3\u3001\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u307f\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u3044\u308b\u3082\u306e\u3092\u3001\u3053\u306e\u8a18\u4e8b\u7528\u306b 1 \u30d5\u30a1\u30a4\u30eb\u306b\u307e\u3068\u3081\u76f4\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3082\u3001Python 3 \u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u3051\u3067\u52d5\u304d\u307e\u3059\u3002\u51e6\u7406\u306f\u300c<strong>SMART \u3092\u8aad\u3080 \u2192 \u524d\u56de\u3068\u6bd4\u3079\u308b \u2192 \u30de\u30a6\u30f3\u30c8\u30fb\u8907\u88fd\u306e\u9bae\u5ea6\u30fb\u30ab\u30fc\u30cd\u30eb\u30ed\u30b0\u3092\u898b\u308b \u2192 Slack \u3078 1 \u884c<\/strong>\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/usr\/bin\/env python3\n# storage-health.py \u2014 \u6bce\u6669 1 \u56de\u3002SMART \u3092\u8aad\u3093\u3067\u524d\u56de\u3068\u6bd4\u3079\u3001\u30de\u30a6\u30f3\u30c8\u30fb\u8907\u88fd\u306e\u9bae\u5ea6\u30fb\u30ab\u30fc\u30cd\u30eb\u30ed\u30b0\u3092\u78ba\u304b\u3081\u3001\u7d50\u679c\u3092 Slack \u3078 1 \u884c\nimport json, os, subprocess, time, urllib.request\n\nDRIVES  = ['\/dev\/sda', '\/dev\/sdb']                  # lsblk \u3067\u78ba\u304b\u3081\u305f\u30c7\u30d0\u30a4\u30b9\nMOUNTS  = {'\/mnt\/main': '\u30e1\u30a4\u30f3', '\/mnt\/backup': '\u30d0\u30c3\u30af\u30a2\u30c3\u30d7'}\nRSYNC_ERR = '\/var\/log\/backup\/rsync_errors.log'      # \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u6bce\u56de\u66f8\u304d\u76f4\u3059\u30a8\u30e9\u30fc\u30ed\u30b0\nSTATE   = '\/var\/lib\/storage-health\/last.json'       # \u524d\u56de\u306e SMART\uff08\u30b7\u30ea\u30a2\u30eb\u756a\u53f7\u3054\u3068\uff09\nWEBHOOK = os.environ.get('SLACK_WEBHOOK_URL', '')\nTRACK = {5: '\u4ee3\u66ff\u51e6\u7406\u6e08\u307f\u30bb\u30af\u30bf', 187: '\u8a02\u6b63\u3067\u304d\u306a\u304b\u3063\u305f\u8aad\u307f\u51fa\u3057', 188: '\u30b3\u30de\u30f3\u30c9\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8',\n         197: '\u4ee3\u66ff\u5f85\u3061\u30bb\u30af\u30bf', 198: '\u8a02\u6b63\u4e0d\u80fd\u30bb\u30af\u30bf', 199: 'CRC \u30a8\u30e9\u30fc\uff08\u30b1\u30fc\u30d6\u30eb\uff09'}\n\ndef run(cmd, timeout=90):\n    return subprocess.run(cmd, capture_output=True, text=True, timeout=timeout).stdout\n\ndef smart(dev):\n    for opt in (['-d', 'sat'], []):                   # USB \u5909\u63db\u57fa\u677f\u8d8a\u3057\u306f -d sat\u3001\u3060\u3081\u306a\u3089\u7d20\u3067\n        try: j = json.loads(run(['smartctl', '-x', '--json', *opt, dev]) or '{}')\n        except json.JSONDecodeError: j = {}\n        if j.get('ata_smart_attributes'): return j\n    return {}\n\ncrit, warn, info = [], [], []\nprev = json.load(open(STATE)) if os.path.exists(STATE) else {}\nnow = {}\n\nfor dev in DRIVES:\n    j = smart(dev)\n    if not j: warn.append(f'{dev}: SMART \u3092\u8aad\u3081\u306a\u3044'); continue\n    sn = j.get('serial_number', dev); name = f\"{dev}({j.get('model_name', '?')})\"\n    attrs = {str(a['id']): a['raw']['value'] for a in j['ata_smart_attributes']['table']}\n    now[sn] = attrs; old = prev.get(sn, {})\n    if not (j.get('smart_status') or {}).get('passed'): crit.append(f'{name}: SMART \u7dcf\u5408\u5224\u5b9a FAILED')\n    for a in j['ata_smart_attributes']['table']:    # \u6b63\u898f\u5316\u5024\u304c\u95be\u5024\u5272\u308c\uff08\u30c9\u30e9\u30a4\u30d6\u81ea\u8eab\u306e\u8b66\u544a\u706f\uff09\n        if a.get('when_failed') == 'now': crit.append(f\"{name}: {a['name']} \u304c\u95be\u5024\u3092\u5272\u3063\u3066\u3044\u308b\")\n    for i in ('197', '198'):                         # \u4eca\u8aad\u3081\u306a\u3044\u30bb\u30af\u30bf\u306f 1 \u3067\u3082\u8d64\n        if attrs.get(i): crit.append(f'{name}: {TRACK[int(i)]} {attrs[i]}')\n    for i, label in TRACK.items():                   # \u524d\u56de\u304b\u3089\u306e\u5897\u52a0\n        d = attrs.get(str(i), 0) - old.get(str(i), 0)\n        if d > 0: (crit if i in (5, 187, 197, 198) else warn).append(f'{name}: {label} \u304c\u524d\u56de\u304b\u3089 +{d}')\n    t = (j.get('temperature') or {}).get('current')\n    if t and t >= 50: warn.append(f'{name}: \u6e29\u5ea6 {t} \u2103')\n    poh = (j.get('power_on_time') or {}).get('hours') or 0\n    if poh >= 7 * 8766: warn.append(f'{name}: \u901a\u96fb {poh \/ 8766:.1f} \u5e74')\n    log = j.get('ata_smart_self_test_log') or {}\n    tests = ((log.get('extended') or log.get('standard') or {}).get('table')) or []\n    if tests:\n        last = tests[0]\n        if last['status'].get('passed') is False: crit.append(f\"{name}: \u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u5931\u6557 {last['type']['string']} \/ {last['status']['string']}\")\n        elif (poh - last['lifetime_hours']) % 65536 > 24 * 10: info.append(f'{name}: \u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u304c 10 \u65e5\u4ee5\u4e0a\u8d70\u3063\u3066\u3044\u306a\u3044')\n        else: info.append(f\"{name}: \u76f4\u8fd1\u306e\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8 {last['type']['string']} = {last['status']['string']}\")\n    else: info.append(f'{name}: \u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u5c65\u6b74\u306a\u3057')\n\nfor path, label in MOUNTS.items():                   # \u30de\u30a6\u30f3\u30c8\u3002df \u306b\u51fa\u3066\u3044\u3066\u3082\u8aad\u3081\u306a\u3044\u72b6\u614b\u3092 statvfs \u3067\u5f3e\u304f\n    try:\n        if not os.path.ismount(path): raise OSError('not mounted')\n        os.statvfs(path)\n    except OSError as e: crit.append(f'{label} \u304c\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\uff08{e}\uff09')\n\nif os.path.exists(RSYNC_ERR):                        # \u8907\u88fd\u306e\u9bae\u5ea6\u3068\u30a8\u30e9\u30fc\n    age = (time.time() - os.stat(RSYNC_ERR).st_mtime) \/ 3600\n    if age > 30: warn.append(f'\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c {age:.0f} \u6642\u9593\u8d70\u3063\u3066\u3044\u306a\u3044')\n    if os.stat(RSYNC_ERR).st_size: warn.append('rsync \u304c\u30a8\u30e9\u30fc\u3092\u8a18\u9332\u3057\u3066\u3044\u308b')\nelse: warn.append('rsync \u306e\u30ed\u30b0\u304c\u7121\u3044\uff08\u4e00\u5ea6\u3082\u8d70\u3063\u3066\u3044\u306a\u3044\uff09')\n\nkmsg = run(['journalctl', '-k', '--since', '-24h', '-q', '-g', 'I\/O error|medium error|UAS|reset']).strip().splitlines()\nif kmsg: warn.append(f'\u30ab\u30fc\u30cd\u30eb\u30ed\u30b0\u306b I\/O \u30a8\u30e9\u30fc\u7b49 {len(kmsg)} \u884c')\n\nos.makedirs(os.path.dirname(STATE), exist_ok=True)\njson.dump(now, open(STATE, 'w'))                     # \u6b21\u56de\u306e\u6bd4\u8f03\u7528\n\nicon = '&#x1f534;' if crit else '&#x1f7e1;' if warn else '&#x1f7e2;'\ntext = f'{icon} storage-health: ' + (' \/ '.join(crit + warn) if crit or warn else '\u7570\u5e38\u306a\u3057') + '\\n' + '\\n'.join(info)\nprint(text)\nif WEBHOOK:                                          # \u6b63\u5e38\u3067\u3082\u6bce\u6669 1 \u884c\u3002\u6765\u306a\u3044\u65e5\u306f\u76e3\u8996\u5074\u304c\u6b7b\u3093\u3067\u3044\u308b\n    req = urllib.request.Request(WEBHOOK, json.dumps({'text': text}).encode(), {'Content-Type': 'application\/json'})\n    urllib.request.urlopen(req, timeout=10)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3092\u547d\u3058\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068 crontab<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3092\u547d\u3058\u308b\u5074\u306f\u3001\u77ed\u3044\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u6708\u306e\u6700\u521d\u306e\u65e5\u66dc\u3060\u3051\u62e1\u5f35\u30c6\u30b9\u30c8\u3001\u307b\u304b\u306e\u65e5\u66dc\u306f\u77ed\u3044\u30c6\u30b9\u30c8\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001cron \u306b\u66dc\u65e5\u3068\u65e5\u4ed8\u3092\u4e21\u65b9\u66f8\u304f\u3068\u300c\u3069\u3061\u3089\u304b\u306b\u4e00\u81f4\u3059\u308c\u3070\u5b9f\u884c\u300d\u306b\u306a\u308b\u305f\u3081\u3001<strong>\u5224\u5b9a\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e2d\u3067<\/strong>\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/sh\n# smart-selftest.sh \u2014 \u65e5\u66dc\u306b\u5b9f\u884c\u3002\u6708\u306e\u6700\u521d\u306e\u65e5\u66dc\u306f\u62e1\u5f35\u30c6\u30b9\u30c8\u3001\u305d\u308c\u4ee5\u5916\u306f\u77ed\u3044\u30c6\u30b9\u30c8\nif [ \"$(date +%d)\" -le 7 ]; then T=long; else T=short; fi\nfor dev in \/dev\/sda \/dev\/sdb; do\n  smartctl -t $T -d sat \"$dev\" > \/dev\/null 2>&amp;1 || smartctl -t $T \"$dev\" > \/dev\/null 2>&amp;1\ndone\necho \"smart self-test ($T) started: $(date)\"<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># root \u306e crontab\uff08crontab -e\uff09\nSLACK_WEBHOOK_URL=https:\/\/hooks.slack.com\/services\/XXXX\/YYYY\/ZZZZ\n\n0  2 * * *  \/usr\/local\/bin\/backup.sh                 # \u8907\u88fd\n30 4 * * *  \/usr\/local\/bin\/storage-health.py         # \u6bce\u6669\u306e\u8aad\u307f\u53d6\u308a\u3068\u6bd4\u8f03\n0  4 * * 0  \/usr\/local\/bin\/smart-selftest.sh         # \u65e5\u66dc: \u77ed\u3044 \/ \u7b2c 1 \u65e5\u66dc: \u62e1\u5f35\uff08\u7d50\u679c\u306f\u7fcc\u6669\u306b\u62fe\u3046\uff09<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u9806\u756a\u306b\u3082\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u8907\u88fd\uff0802:00\uff09\u306e\u5f8c\u306b\u8aad\u307f\u53d6\u308a\uff0804:30\uff09\u3092\u52d5\u304b\u305b\u3070\u3001\u8907\u88fd\u4e2d\u306e CRC \u30a8\u30e9\u30fc\u3084\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u305d\u306e\u6669\u306b\u62fe\u3048\u307e\u3059\u3002\u307e\u305f\u3001\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306f\u65e5\u66dc 04:00 \u306b\u59cb\u3081\u3001\u7d50\u679c\u306f\u6708\u66dc 04:30 \u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u62e1\u5f35\u30c6\u30b9\u30c8\u4e2d\u306f\u9759\u304b\u306b\u3057\u3066\u304a\u304f\u306e\u304c\u7406\u60f3\u3067\u3059\u304c\u3001<strong>\u4f7f\u3063\u3066\u3082\u58ca\u308c\u306f\u3057\u307e\u305b\u3093<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6708 1 \u56de\u306e\u300c\u5fa9\u5143\u306e\u4e88\u884c\u6f14\u7fd2\u300d: \u7121\u4f5c\u70ba\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u6bd4\u3079\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c9\u30e9\u30a4\u30d6\u304c\u8aad\u3081\u3066\u3082\u3001<strong>\u4e2d\u8eab\u304c\u540c\u3058\u304b<\/strong>\u306f\u5225\u554f\u984c\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u6708 1 \u56de\u3001\u7121\u4f5c\u70ba\u306b\u9078\u3093\u3060\u30d5\u30a1\u30a4\u30eb\u3092\u4e21\u65b9\u304b\u3089\u8aad\u3093\u3067\u6bd4\u3079\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u5168\u90e8\u6bd4\u3079\u308b\uff08<code>rsync -c<\/code>\uff09\u3068 4 TB \u3067\u4e38 1 \u65e5\u304b\u304b\u308b\u306e\u3067\u3001\u6a19\u672c\u691c\u67fb\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/sh\n# restore-drill.sh \u2014 \u7121\u4f5c\u70ba\u306b 200 \u30d5\u30a1\u30a4\u30eb\u9078\u3073\u3001\u30e1\u30a4\u30f3\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u6bd4\u3079\u308b\ncd \/mnt\/main || exit 1\nfind . -type f -size +1k 2>\/dev\/null | shuf -n 200 | while read -r f; do\n  a=$(sha256sum \"$f\" | cut -c1-64); b=$(sha256sum \"\/mnt\/backup\/$f\" 2>\/dev\/null | cut -c1-64)\n  [ \"$a\" = \"$b\" ] || echo \"MISMATCH: $f\"\ndone | tee \/var\/log\/backup\/restore-drill.log\n[ -s \/var\/log\/backup\/restore-drill.log ] &amp;&amp; echo \"restore drill: mismatches found\" || echo \"restore drill: 200\/200 OK\"<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">200 \u30d5\u30a1\u30a4\u30eb\u3067\u4e0d\u4e00\u81f4\u304c\u30bc\u30ed\u306a\u3089\u3001<strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5168\u4f53\u304c\u58ca\u308c\u3066\u3044\u308b\u78ba\u7387\u306f\u304b\u306a\u308a\u4f4e\u3044<\/strong>\u3068\u8a00\u3048\u307e\u3059\u3002\u9006\u306b 1 \u3064\u3067\u3082\u51fa\u305f\u3089\u3001\u305d\u306e\u65e5\u306e\u3046\u3061\u306b\u539f\u56e0\u3092\u8ffd\u3044\u307e\u3059\u3002\u3044\u308f\u3070\u300c\u4e88\u5099\u56de\u7dda\u306b\u5207\u308a\u66ff\u3048\u3066\u307f\u308b\u300d\u8a13\u7df4\u306e\u81ea\u5b85\u7248\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">smartctl \u3068 HDD \u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306b\u95a2\u3059\u308b\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">smartctl \u3067 USB \u5916\u4ed8\u3051 HDD \u306e SMART \u304c\u8aad\u3081\u306a\u3044\u3068\u304d\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u307e\u305a <code>-d sat<\/code> \u3092\u4ed8\u3051\u3066\u8a66\u3057\u3066\u304f\u3060\u3055\u3044<\/strong>\u3002\u305f\u3060\u3057\u3001USB-SATA \u5909\u63db\u57fa\u677f\u306b\u3088\u3063\u3066\u306f SMART \u3092\u901a\u3055\u306a\u3044\u3082\u306e\u3082\u3042\u308a\u3001\u305d\u306e\u5834\u5408\u306f\u30b1\u30fc\u30b9\u3092\u66ff\u3048\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306f\u3001\u3069\u306e\u304f\u3089\u3044\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">4 TB \u306e USB HDD \u3067<strong>\u7d04 8 \u6642\u9593<\/strong>\u3067\u3059\u3002\u307e\u305f\u3001\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u305a\u3001\u30de\u30a6\u30f3\u30c8\u3057\u305f\u307e\u307e\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5b9f\u884c\u4e2d\u306b I\/O \u304c\u3042\u308b\u3068\u4e00\u6642\u505c\u6b62\u3059\u308b\u306e\u3067\u3001\u305d\u306e\u5206\u9577\u5f15\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">smartctl \u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3067\u3001HDD \u306e\u5bff\u547d\u306f\u7e2e\u307f\u307e\u305b\u3093\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bce\u6669\u306e SMART \u8aad\u307f\u53d6\u308a\uff081 \u53f0 1\u301c2 \u79d2\uff09\u3068\u9031 1 \u56de\u306e\u77ed\u3044\u30c6\u30b9\u30c8\uff081\u301c2 \u5206\uff09\u306f\u3001<strong>\u5bff\u547d\u306b\u97ff\u304f\u307b\u3069\u306e\u8ca0\u8377\u3067\u306f\u3042\u308a\u307e\u305b\u3093<\/strong>\u3002\u4e00\u65b9\u3001\u6708 1 \u56de\u306e\u62e1\u5f35\u30c6\u30b9\u30c8\u306f\u5168\u9762\u3092\u7d04 8 \u6642\u9593\u8aad\u3080\u306e\u3067\u3001\u76f8\u5fdc\u306e\u8ca0\u8377\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u6bce\u6669\u3067\u306f\u306a\u304f\u6708 1 \u56de\u306b\u3068\u3069\u3081\u3001\u66f8\u304d\u8fbc\u307f\u3092\u4f34\u3046 badblocks -w \u306f\u65b0\u54c1\u306e\u5c0e\u5165\u6642\u3060\u3051\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SMART \u306e\u3069\u306e\u5024\u304c\u51fa\u305f\u3089\u3001\u30c9\u30e9\u30a4\u30d6\u3092\u4ea4\u63db\u3059\u3079\u304d\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7dcf\u5408\u5224\u5b9a\u304c FAILED\u3001Pre-fail \u5c5e\u6027\u306e\u95be\u5024\u5272\u308c\u3001\u4ee3\u66ff\u5f85\u3061\u30bb\u30af\u30bf\uff08197\uff09\u3084\u8a02\u6b63\u4e0d\u80fd\u30bb\u30af\u30bf\uff08198\uff09\u304c 1 \u4ee5\u4e0a\u306a\u3089\u3001<strong>\u4ea4\u63db\u3092\u8003\u3048\u307e\u3059<\/strong>\u3002\u307e\u305f\u3001\u4ee3\u66ff\u51e6\u7406\u6e08\u307f\u30bb\u30af\u30bf\uff085\uff09\u304c\u5897\u3048\u7d9a\u3051\u308b\u5834\u5408\u3082\u540c\u3058\u3067\u3059\u3002\u4e00\u65b9\u3001CRC \u30a8\u30e9\u30fc\uff08199\uff09\u3084\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\uff08188\uff09\u306f\u3001\u307e\u305a\u30b1\u30fc\u30d6\u30eb\u30fb\u5909\u63db\u57fa\u677f\u30fb\u96fb\u6e90\u3092\u7591\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">smartctl \u306e\u5b9a\u671f\u5b9f\u884c\u306f\u3001smartd \u3067\u306f\u3060\u3081\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">smartmontools \u4ed8\u5c5e\u306e smartd \u3067\u3082\u3001<strong>\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u306e\u5b9a\u671f\u5b9f\u884c\u3068\u7570\u5e38\u6642\u306e\u30e1\u30fc\u30eb\u901a\u77e5<\/strong>\u306f\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u305d\u308c\u306b\u52a0\u3048\u3066\u524d\u65e5\u3068\u306e\u5dee\u5206\u3001\u30de\u30a6\u30f3\u30c8\u3001rsync \u306e\u9bae\u5ea6\u3001\u30ab\u30fc\u30cd\u30eb\u30ed\u30b0\u3082\u307e\u3068\u3081\u3066\u898b\u3066\u3001Slack \u306b 1 \u884c\u3067\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SSD \u3067\u3082\u540c\u3058\u3084\u308a\u65b9\u3067\u5927\u4e08\u592b\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SMART \u306e\u8aad\u307f\u53d6\u308a\u3068\u5dee\u5206\u6bd4\u8f03\u3001\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u3068\u3044\u3046\u8003\u3048\u65b9\u306f\u540c\u3058\u3067\u3059\u3002\u305f\u3060\u3057\u898b\u308b\u5c5e\u6027\u304c\u9055\u3044\u3001<strong>\u6b8b\u308a\u5bff\u547d\u3084\u7dcf\u66f8\u304d\u8fbc\u307f\u91cf<\/strong>\u304c\u4e2d\u5fc3\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001badblocks -w \u306e\u3088\u3046\u306a\u5168\u9762\u66f8\u304d\u8fbc\u307f\u306f\u5bff\u547d\u3092\u6e1b\u3089\u3059\u306e\u3067\u3001SSD \u306b\u306f\u304a\u3059\u3059\u3081\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u3001\u300c\u53d6\u308b\u3053\u3068\u300d\u3088\u308a\u300c\u8aad\u3081\u308b\u3053\u3068\u300d\u306e\u307b\u3046\u304c\u96e3\u3057\u3044\u3002\u3057\u304b\u3082\u3001\u8aad\u3081\u308b\u304b\u3069\u3046\u304b\u306f\u8aad\u3093\u3067\u307f\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u3002\u305d\u308c\u306a\u3089\u3001<strong>\u8aad\u3080\u4f5c\u696d\u3092 smartctl \u3068 cron \u306b\u6bce\u6708\u3084\u3089\u305b\u3066\u3001\u5146\u5019\u306f\u6bce\u6669\u898b\u308c\u3070\u3044\u3044<\/strong>\u3002\u3064\u307e\u308a\u3001\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u305d\u308c\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u521d\u306e\u30d5\u30a3\u30e9\u30c7\u30eb\u30d5\u30a3\u30a2\u306e\u4e8b\u6545\u306f\u30012 \u672c\u76ee\u306e\u56de\u7dda\u304c\u5207\u308c\u3066\u3044\u305f\u3053\u3068\u306b\u3001\u5207\u308a\u66ff\u3048\u308b\u307e\u3067\u8ab0\u3082\u6c17\u3065\u304b\u306a\u304b\u3063\u305f\u8a71\u3067\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u673a\u306e\u4e0a\u306e 4 TB \u306b\u3082\u540c\u3058\u3053\u3068\u304c\u8d77\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u9055\u3044\u306f<strong>\u6c17\u3065\u304f\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3092\u7f6e\u304f\u304b\u3069\u3046\u304b<\/strong>\u3060\u3051\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5b85\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u3088\u304f\u3042\u308b\u306e\u306f\u3001\u5916\u4ed8\u3051 HDD \u3092\u3082\u3046 1 \u53f0\u3064\u306a\u304e\u3001\u6bce\u6669 rsync \u306a\u3069\u3067\u8907\u88fd\u3057\u3066\u304a\u304f\u69cb\u6210\u3067\u3059\u3002\u305f\u3060\u3001\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u3001\u8aad\u307e\u308c\u306a\u3044\u307e\u307e\u9759\u304b\u306b\u58ca\u308c\u307e\u3059\u3002 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u306e\u30c9\u30e9\u30a4\u30d6\u306f\u66f8\u304d\u8fbc\u307e\u308c\u308b\u3060\u3051\u3067 [&#8230;]<\/p>\n","protected":false},"author":189,"featured_media":86289,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[919,324],"tags":[602,640,321],"class_list":["post-86286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r-goto","category-raspberrypi","tag-linux","tag-python","tag-raspberrypi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u5b9a\u671f\u30c1\u30a7\u30c3\u30af\uff5c\u58ca\u308c\u308b\u524d\u306b\u6c17\u3065\u304f\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u8aad\u307e\u308c\u306a\u3044\u307e\u307e\u50b7\u3080\u3002smartctl \u3067 SMART \u3092\u6bce\u6669\u6bd4\u3079\u3001\u6bce\u6708\u5168\u9762\u3092\u8aad\u3080\u4ed5\u7d44\u307f\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u8aad\u3081\u307e\u3059\u304b\uff1f smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u6bce\u6669\u30fb\u6bce\u9031\u30fb\u6bce\u6708\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3059\u308b\" \/>\n<meta property=\"og:description\" content=\"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u66f8\u304b\u308c\u308b\u3060\u3051\u3067\u3001\u307b\u3068\u3093\u3069\u8aad\u307e\u308c\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u58ca\u308c\u3066\u3082\u8ab0\u3082\u6c17\u3065\u304b\u306a\u3044\u3002Raspberry Pi 5 \u3068 smartctl \u3067\u7d44\u3093\u3060 3 \u5c64\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3068\u3001\u6bce\u6669\u52d5\u304b\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-27T08:20:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-27T10:54:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-eyecatch.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ryuji Goto\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u8aad\u3081\u307e\u3059\u304b\uff1f smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u6bce\u6669\u30fb\u6bce\u9031\u30fb\u6bce\u6708\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3059\u308b\" \/>\n<meta name=\"twitter:description\" content=\"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u66f8\u304b\u308c\u308b\u3060\u3051\u3067\u3001\u307b\u3068\u3093\u3069\u8aad\u307e\u308c\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u58ca\u308c\u3066\u3082\u8ab0\u3082\u6c17\u3065\u304b\u306a\u3044\u3002Raspberry Pi 5 \u3068 smartctl \u3067\u7d44\u3093\u3060 3 \u5c64\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3068\u3001\u6bce\u6669\u52d5\u304b\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryuji Goto\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286\"},\"author\":{\"name\":\"Ryuji Goto\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/9f7eceb89fc7af995d3cee7095ac5cb1\"},\"headline\":\"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306e\u300c\u9759\u304b\u306a\u6b7b\u300d\u3092\u9632\u3050\u4ed5\u7d44\u307f \u2015 smartctl \u3067\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\",\"datePublished\":\"2026-10-27T08:20:37+00:00\",\"dateModified\":\"2026-10-27T10:54:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286\"},\"wordCount\":269,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smartctl-hdd-health-check-eyecatch.jpg\",\"keywords\":[\"linux\",\"python\",\"RaspberryPi\"],\"articleSection\":[\"r-goto\",\"RaspberryPi\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286\",\"name\":\"smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u5b9a\u671f\u30c1\u30a7\u30c3\u30af\uff5c\u58ca\u308c\u308b\u524d\u306b\u6c17\u3065\u304f\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smartctl-hdd-health-check-eyecatch.jpg\",\"datePublished\":\"2026-10-27T08:20:37+00:00\",\"dateModified\":\"2026-10-27T10:54:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/9f7eceb89fc7af995d3cee7095ac5cb1\"},\"description\":\"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u8aad\u307e\u308c\u306a\u3044\u307e\u307e\u50b7\u3080\u3002smartctl \u3067 SMART \u3092\u6bce\u6669\u6bd4\u3079\u3001\u6bce\u6708\u5168\u9762\u3092\u8aad\u3080\u4ed5\u7d44\u307f\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smartctl-hdd-health-check-eyecatch.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/smartctl-hdd-health-check-eyecatch.jpg\",\"width\":2400,\"height\":1260,\"caption\":\"smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u5b9a\u671f\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3059\u308b\u8a18\u4e8b\u306e\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3002HDD \u306e\u30d7\u30e9\u30c3\u30bf\u30fc\u3068\u3001\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u304c\u8aad\u307f\u9032\u3081\u308b\u7bc4\u56f2\u306e\u30a4\u30e1\u30fc\u30b8\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/raspberrypi\\\/86286#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8457\u8005\uff08Author\uff09\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"r-goto\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/r-goto\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306e\u300c\u9759\u304b\u306a\u6b7b\u300d\u3092\u9632\u3050\u4ed5\u7d44\u307f \u2015 smartctl \u3067\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/9f7eceb89fc7af995d3cee7095ac5cb1\",\"name\":\"Ryuji Goto\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/f320162288-230x230.jpg\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/f320162288-230x230.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/f320162288-230x230.jpg\",\"caption\":\"Ryuji Goto\"},\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/r-goto\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u5b9a\u671f\u30c1\u30a7\u30c3\u30af\uff5c\u58ca\u308c\u308b\u524d\u306b\u6c17\u3065\u304f\u65b9\u6cd5","description":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u8aad\u307e\u308c\u306a\u3044\u307e\u307e\u50b7\u3080\u3002smartctl \u3067 SMART \u3092\u6bce\u6669\u6bd4\u3079\u3001\u6bce\u6708\u5168\u9762\u3092\u8aad\u3080\u4ed5\u7d44\u307f\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286","og_locale":"ja_JP","og_type":"article","og_title":"\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u8aad\u3081\u307e\u3059\u304b\uff1f smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u6bce\u6669\u30fb\u6bce\u9031\u30fb\u6bce\u6708\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3059\u308b","og_description":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u66f8\u304b\u308c\u308b\u3060\u3051\u3067\u3001\u307b\u3068\u3093\u3069\u8aad\u307e\u308c\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u58ca\u308c\u3066\u3082\u8ab0\u3082\u6c17\u3065\u304b\u306a\u3044\u3002Raspberry Pi 5 \u3068 smartctl \u3067\u7d44\u3093\u3060 3 \u5c64\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3068\u3001\u6bce\u6669\u52d5\u304b\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2026-10-27T08:20:37+00:00","article_modified_time":"2026-10-27T10:54:46+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-eyecatch.jpg","type":"image\/jpeg"}],"author":"Ryuji Goto","twitter_card":"summary_large_image","twitter_title":"\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u8aad\u3081\u307e\u3059\u304b\uff1f smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u6bce\u6669\u30fb\u6bce\u9031\u30fb\u6bce\u6708\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3059\u308b","twitter_description":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u66f8\u304b\u308c\u308b\u3060\u3051\u3067\u3001\u307b\u3068\u3093\u3069\u8aad\u307e\u308c\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u58ca\u308c\u3066\u3082\u8ab0\u3082\u6c17\u3065\u304b\u306a\u3044\u3002Raspberry Pi 5 \u3068 smartctl \u3067\u7d44\u3093\u3060 3 \u5c64\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3068\u3001\u6bce\u6669\u52d5\u304b\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Ryuji Goto","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286"},"author":{"name":"Ryuji Goto","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/9f7eceb89fc7af995d3cee7095ac5cb1"},"headline":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306e\u300c\u9759\u304b\u306a\u6b7b\u300d\u3092\u9632\u3050\u4ed5\u7d44\u307f \u2015 smartctl \u3067\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af","datePublished":"2026-10-27T08:20:37+00:00","dateModified":"2026-10-27T10:54:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286"},"wordCount":269,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-eyecatch.jpg","keywords":["linux","python","RaspberryPi"],"articleSection":["r-goto","RaspberryPi"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286","url":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286","name":"smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u5b9a\u671f\u30c1\u30a7\u30c3\u30af\uff5c\u58ca\u308c\u308b\u524d\u306b\u6c17\u3065\u304f\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-eyecatch.jpg","datePublished":"2026-10-27T08:20:37+00:00","dateModified":"2026-10-27T10:54:46+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/9f7eceb89fc7af995d3cee7095ac5cb1"},"description":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306f\u8aad\u307e\u308c\u306a\u3044\u307e\u307e\u50b7\u3080\u3002smartctl \u3067 SMART \u3092\u6bce\u6669\u6bd4\u3079\u3001\u6bce\u6708\u5168\u9762\u3092\u8aad\u3080\u4ed5\u7d44\u307f\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3002","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-eyecatch.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/smartctl-hdd-health-check-eyecatch.jpg","width":2400,"height":1260,"caption":"smartctl \u3067\u5916\u4ed8\u3051 HDD \u3092\u5b9a\u671f\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3059\u308b\u8a18\u4e8b\u306e\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u3002HDD \u306e\u30d7\u30e9\u30c3\u30bf\u30fc\u3068\u3001\u62e1\u5f35\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u304c\u8aad\u307f\u9032\u3081\u308b\u7bc4\u56f2\u306e\u30a4\u30e1\u30fc\u30b8"},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/raspberrypi\/86286#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u8457\u8005\uff08Author\uff09","item":"https:\/\/www.creationline.com\/tech-blog\/author"},{"@type":"ListItem","position":3,"name":"r-goto","item":"https:\/\/www.creationline.com\/tech-blog\/author\/r-goto"},{"@type":"ListItem","position":4,"name":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7 HDD \u306e\u300c\u9759\u304b\u306a\u6b7b\u300d\u3092\u9632\u3050\u4ed5\u7d44\u307f \u2015 smartctl \u3067\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/9f7eceb89fc7af995d3cee7095ac5cb1","name":"Ryuji Goto","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/f320162288-230x230.jpg","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/f320162288-230x230.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/10\/f320162288-230x230.jpg","caption":"Ryuji Goto"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/r-goto"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/86286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/189"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=86286"}],"version-history":[{"count":8,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/86286\/revisions"}],"predecessor-version":[{"id":86297,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/86286\/revisions\/86297"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/86289"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=86286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=86286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=86286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}