{"id":3021,"date":"2025-10-27T00:23:31","date_gmt":"2025-10-26T15:23:31","guid":{"rendered":"https:\/\/blog.id774.net\/entry\/?p=3021"},"modified":"2025-10-27T00:28:33","modified_gmt":"2025-10-26T15:28:33","slug":"ssd-%e3%81%ae%e3%82%b9%e3%83%af%e3%83%83%e3%83%97%e9%a0%98%e5%9f%9f%e3%82%92%e5%89%8a%e9%99%a4%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.id774.net\/entry\/2025\/10\/27\/3021\/","title":{"rendered":"SSD \u306e\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u305f"},"content":{"rendered":"<p><a href=\"https:\/\/blog.id774.net\/entry\/2025\/08\/31\/2974\/\">VM \u30db\u30b9\u30c8\u74b0\u5883<\/a>\u306e\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u3001\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u7d71\u5408\u3057\u305f\u3002<\/p>\n<hr>\n<h2>\u524d\u63d0\u3068\u74b0\u5883<\/h2>\n<p><a href=\"https:\/\/blog.id774.net\/entry\/2025\/09\/05\/2989\/\">Debian 13<\/a> \u3092\u7a3c\u50cd\u3055\u305b\u3066\u3044\u308b<a href=\"https:\/\/blog.id774.net\/entry\/2025\/09\/02\/2980\/\">\u7269\u7406\u30db\u30b9\u30c8<\/a>\u306e\u69cb\u6210\u3092\u898b\u76f4\u3057\u305f\u3002\u3053\u306e\u30db\u30b9\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3042\u308b\u3002<\/p>\n<ul>\n<li>\u76ee\u7684: \u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u304a\u3088\u3073 VMware Workstation 17 Pro \u306b\u3088\u308b\u8907\u6570 VM \u306e\u540c\u6642\u7a3c\u50cd<\/li>\n<li>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883: Xfce<\/li>\n<li>\u30b7\u30b9\u30c6\u30e0\u30b9\u30c8\u30ec\u30fc\u30b8: SSD (ADATA SP600, 128GB)<\/li>\n<li>\u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8: HDD \u8907\u6570\u672c (LUKS \u6697\u53f7\u5316 \/mnt\/disk1, \/mnt\/disk2)<\/li>\n<li>\u7269\u7406\u30e1\u30e2\u30ea: 32GB<\/li>\n<li>OS: Debian 13<\/li>\n<\/ul>\n<p>\u3053\u306e\u74b0\u5883\u3067\u306f\u3001LVM \u4e0a\u306b\u7d04 6GB \u306e<a href=\"https:\/\/blog.id774.net\/entry\/2025\/08\/31\/2974\/\">\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u78ba\u4fdd<\/a>\u3057\u3066\u3044\u305f\u3002\u3057\u304b\u3057\u904b\u7528\u72b6\u6cc1\u3092\u89b3\u6e2c\u3059\u308b\u3068\u3001\u30e1\u30e2\u30ea\u306e\u7a7a\u304d\u304c\u5e38\u306b\u5927\u304d\u304f\u3001\u30b9\u30ef\u30c3\u30d7\u306e\u4f7f\u7528\u91cf\u306f\u5e38\u306b 0B \u3067\u3042\u3063\u305f\u3002\u305d\u3053\u3067\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u3001\u305d\u306e\u9818\u57df\u3092\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u672c\u8a18\u4e8b\u306f\u305d\u306e\u5224\u65ad\u3068\u4f5c\u696d\u624b\u9806\u306e\u8a18\u9332\u3067\u3042\u308b\u3002<\/p>\n<hr>\n<h2>\u5224\u65ad\u306e\u6574\u7406<\/h2>\n<p>\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u30b1\u30fc\u30b9\u30d0\u30a4\u30b1\u30fc\u30b9\u3067\u3042\u308a\u3001\u5358\u7d14\u306b\u6b63\u3057\u3044\uff0f\u9593\u9055\u3044\u3068\u306f\u8a00\u3048\u306a\u3044\u3002\u672c\u30db\u30b9\u30c8\u3067\u306f\u6b21\u306e\u89b3\u70b9\u304b\u3089\u524a\u9664\u3092\u59a5\u5f53\u3068\u5224\u65ad\u3057\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u89b3\u70b9<\/th>\n<th>\u3053\u306e\u30db\u30b9\u30c8\u306e\u72b6\u6cc1<\/th>\n<th>\u5224\u65ad\u6839\u62e0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7269\u7406\u30e1\u30e2\u30ea\u4f59\u88d5<\/td>\n<td>Mem: 31Gi \u4e2d used 10Gi \/ available 20Gi \/ swap \u4f7f\u7528 0B<\/td>\n<td>32GB \u306e RAM \u304c\u3042\u308a\u3001\u5e73\u5e38\u6642\u306f 10GB \u7a0b\u5ea6\u3057\u304b\u4f7f\u308f\u305a\u3001swap \u306f\u5e38\u6642 0B \u3067\u63a8\u79fb\u3057\u3066\u3044\u308b\u3002free -h \u306e\u7d50\u679c\u3067\u78ba\u8a8d\u6e08\u307f\u3067\u3042\u308a\u3001\u5b9f\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3067\u30b9\u30ef\u30c3\u30d7\u306b\u9003\u304c\u3059\u5fc5\u8981\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u904b\u7528\u76ee\u7684<\/td>\n<td>\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3068\u8907\u6570 VM \u306e\u540c\u6642\u7a3c\u50cd<\/td>\n<td>VM \u3084\u30ad\u30e3\u30c3\u30b7\u30e5\u7528\u9014\u3067\u30e1\u30e2\u30ea\u306f\u4f7f\u3046\u304c\u300132GB \u5185\u3067\u53ce\u307e\u3063\u3066\u3044\u308b\u3002\u30b9\u30ef\u30c3\u30d7\u3092\u524d\u63d0\u306b\u903c\u8feb\u3092\u5438\u53ce\u3059\u308b\u8a2d\u8a08\u3067\u306f\u306a\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u7528\u6027\u8981\u4ef6<\/td>\n<td>\u5373\u6642\u5fa9\u65e7\u306f\u4e0d\u8981<\/td>\n<td>\u505c\u6b62\u3057\u305f\u5834\u5408\u3067\u3082\u5fa9\u65e7\u624b\u9806\u3067\u623b\u305b\u308b\u3002RTO \u306f\u30bc\u30ed\u3067\u306f\u306a\u304f\u8a31\u5bb9\u5e45\u304c\u3042\u308b\u3002\u3057\u305f\u304c\u3063\u3066\u300c\u30b9\u30ef\u30c3\u30d7\u3067\u8e0f\u3093\u5f35\u3063\u3066\u30b5\u30fc\u30d3\u30b9\u7d99\u7d9a\u3059\u308b\u300d\u4fa1\u5024\u306f\u5c0f\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30fc\u30bf\u4fdd\u5168<\/td>\n<td>\u91cd\u8981\u30c7\u30fc\u30bf\u306f\u5358\u4e00\u30c7\u30a3\u30b9\u30af\u4f9d\u5b58\u3067\u306f\u306a\u3044<\/td>\n<td>\u3069\u306e\u7269\u7406\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u3066\u3082\u552f\u4e00\u7121\u4e8c\u306e\u30c7\u30fc\u30bf\u306f\u5b58\u5728\u3057\u306a\u3044\u3002\u5fa9\u65e7\u306f\u4ea4\u63db\u3068\u518d\u69cb\u7bc9\u3067\u3088\u3044\u3068\u3044\u3046\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30b9\u30c8\u30ec\u30fc\u30b8\u69cb\u6210<\/td>\n<td>SSD 128GB \u4e0a\u3067 \/ \u3068 swap_1 \u3092 LVM \u3067\u5206\u5272<\/td>\n<td>\u30b9\u30ef\u30c3\u30d7\u3092\u524a\u9664\u3059\u308c\u3070\u3001\u305d\u306e\u5206\u3092 \/ \u306b\u7d71\u5408\u3067\u304d\u308b\u3002\u9650\u3089\u308c\u305f SSD \u5bb9\u91cf\u3092\u6709\u52b9\u306b\u4f7f\u3048\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>SSD \u3078\u306e\u66f8\u304d\u8fbc\u307f<\/td>\n<td>\u30b9\u30ef\u30c3\u30d7\u306f SSD \u4e0a<\/td>\n<td>\u7121\u99c4\u306a swap \u66f8\u304d\u8fbc\u307f\u306f SSD \u306e\u66f8\u304d\u63db\u3048\u91cf\u3092\u5897\u3084\u3059\u3002\u7528\u9014\u304c OS \u3068\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5\u4e2d\u5fc3\u3067\u3042\u308b\u4ee5\u4e0a\u3001\u524a\u6e1b\u3067\u304d\u308b\u66f8\u304d\u8fbc\u307f\u306f\u524a\u6e1b\u3059\u308b\u65b9\u91dd\u3068\u5408\u81f4\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>S.M.A.R.T. \u72b6\u614b<\/td>\n<td>S.M.A.R.T. overall-health: PASSED \/ \u518d\u914d\u7f6e\u30bb\u30af\u30bf 0 \/ \u4fdd\u7559\u30bb\u30af\u30bf 0 \/ \u8a02\u6b63\u4e0d\u80fd 0<\/td>\n<td>ADATA SP600 \u306f\u53e4\u3044 SSD \u3060\u304c\u3001Reallocated_Sector_Ct=0, Current_Pending_Sector=0, Offline_Uncorrectable=0 \u3067\u3042\u308a\u3001\u81ea\u5df1\u30c6\u30b9\u30c8\u3082 Completed without error \u3068\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u3002\u660e\u78ba\u306a\u7269\u7406\u30a8\u30e9\u30fc\u5146\u5019\u306f\u51fa\u3066\u3044\u306a\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u76e3\u8996\u4f53\u5236<\/td>\n<td>\u5b9a\u671f\u7684\u306b smartctl \u3092\u78ba\u8a8d\u3067\u304d\u308b<\/td>\n<td>\u969c\u5bb3\u6642\u306f\u30c7\u30a3\u30b9\u30af\u4ea4\u63db\u3068\u30ea\u30b9\u30c8\u30a2\u3067\u5bfe\u5fdc\u3059\u308b\u524d\u63d0\u904b\u7528\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30b9\u30ef\u30c3\u30d7\u3067\u5ef6\u547d\u3059\u308b\u3088\u308a\u58ca\u308c\u305f\u3089\u5fa9\u65e7\u3059\u308b\u8a2d\u8a08\u306e\u307b\u3046\u304c\u5408\u7406\u7684\u3067\u3042\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0a\u8a18\u306e\u7d50\u679c\u3068\u3057\u3066\u3001\u672c\u30db\u30b9\u30c8\u3067\u306f\u300c\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u7dad\u6301\u3057\u7d9a\u3051\u308b\u4fa1\u5024\u300d\u3088\u308a\u300c\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092 \/ \u306b\u7d71\u5408\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u5358\u7d14\u5316\u3057\u3001SSD \u306e\u9650\u3089\u308c\u305f\u5bb9\u91cf\u3092\u6709\u52b9\u6d3b\u7528\u3059\u308b\u4fa1\u5024\u300d\u304c\u4e0a\u56de\u308b\u3068\u5224\u65ad\u3057\u305f\u3002<\/p>\n<hr>\n<h2>S.M.A.R.T. \u60c5\u5831\u306e\u78ba\u8a8d<\/h2>\n<p>\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u3001\u305d\u306e\u9818\u57df\u3092 \/ \u306b\u7d71\u5408\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u305d\u306e SSD \u3092\u4eca\u5f8c\u3082<a href=\"https:\/\/blog.id774.net\/entry\/2025\/09\/01\/2977\/\">\u30b7\u30b9\u30c6\u30e0\u30c7\u30a3\u30b9\u30af<\/a>\u3068\u3057\u3066\u4fe1\u7528\u3059\u308b\u3068\u3044\u3046\u5224\u65ad\u3067\u3082\u3042\u308b\u3002\u3088\u3063\u3066\u4e8b\u524d\u306b <a href=\"https:\/\/ja.wikipedia.org\/wiki\/Self-Monitoring,_Analysis_and_Reporting_Technology\">S.M.A.R.T.<\/a> \u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u91cd\u8981\u306a\u6307\u6a19\u306f\u6b21\u3067\u3042\u308b\u3002<\/p>\n<ul>\n<li>S.M.A.R.T. overall-health self-assessment test result: PASSED<br \/>\u30c7\u30d0\u30a4\u30b9\u306e\u81ea\u5df1\u8a3a\u65ad\u4e0a\u306f\u6b63\u5e38\u3067\u3042\u308b\u3002<\/li>\n<li>Reallocated_Sector_Ct = 0<br \/>\u4e0d\u826f\u30d6\u30ed\u30c3\u30af\u304c\u4ee3\u66ff\u9818\u57df\u306b\u30ea\u30de\u30c3\u30d7\u3055\u308c\u305f\u8a18\u9332\u304c\u306a\u3044\u3002\u4e0d\u826f\u30d6\u30ed\u30c3\u30af\u304c\u9855\u5728\u5316\u3057\u3066\u3044\u306a\u3044\u3002<\/li>\n<li>Current_Pending_Sector = 0<br \/>\u300c\u4eca\u306f\u8aad\u3081\u306a\u3044\u304c\u5f8c\u3067\u518d\u8a66\u884c\u3059\u308b\u300d\u4fdd\u7559\u30bb\u30af\u30bf\u304c\u306a\u3044\u3002\u8aad\u3081\u306a\u3044\u9818\u57df\u306e\u767a\u751f\u5146\u5019\u306f\u306a\u3044\u3002<\/li>\n<li>Offline_Uncorrectable = 0<br \/>\u30aa\u30d5\u30e9\u30a4\u30f3\u81ea\u5df1\u30c6\u30b9\u30c8\u3067\u8a02\u6b63\u4e0d\u80fd\u3060\u3063\u305f\u30bb\u30af\u30bf\u304c\u306a\u3044\u3002<\/li>\n<li>Self-test log: Extended offline Completed without error<br \/>\u904e\u53bb\u306e\u30ed\u30f3\u30b0\u30bb\u30eb\u30d5\u30c6\u30b9\u30c8\u304c\u30a8\u30e9\u30fc\u306a\u3057\u3067\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3002<\/li>\n<li>\u901a\u96fb\u6642\u9593\u306f 65535h \u3068\u8868\u793a\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u306f\u3053\u306e SSD \u306e\u30ab\u30a6\u30f3\u30bf\u4e0a\u9650\u306b\u5f35\u308a\u4ed8\u3044\u3066\u3044\u308b\u3002\u30c7\u30d0\u30a4\u30b9\u304c\u53e4\u3044\u3053\u3068\u306f\u4e8b\u5b9f\u3067\u3042\u308b\u3002\u305f\u3060\u3057\u3053\u308c\u306f\u300c\u3059\u3050\u58ca\u308c\u308b\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u306a\u304f\u3001\u5358\u306b\u901a\u96fb\u6642\u9593\u304c\u9577\u3044\u3068\u3044\u3046\u4e8b\u5b9f\u3092\u793a\u3059\u3060\u3051\u3067\u3042\u308b\u3002<\/li>\n<\/ul>\n<p>\u91cd\u8981\u306a\u306e\u306f\u3001S.M.A.R.T. \u306e\u7d50\u679c\u306f\u300c\u3044\u3064\u58ca\u308c\u308b\u304b\u300d\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u70b9\u3067\u3042\u308b\u3002\u65b0\u54c1\u3067\u3082\u7a81\u7136\u58ca\u308c\u308b\u3053\u3068\u306f\u3042\u308b\u3002\u9006\u306b\u901a\u96fb 5 \u4e07\u6642\u9593\u3092\u8d85\u3048\u305f HDD \u304c\u307e\u3060\u52d5\u304d\u7d9a\u3051\u308b\u3053\u3068\u3082\u3042\u308b\u3002\u3088\u3063\u3066\u672c\u30db\u30b9\u30c8\u3067\u306f\u3001\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u308b\u3053\u3068\u305d\u306e\u3082\u306e\u3092\u907f\u3051\u3088\u3046\u3068\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u58ca\u308c\u305f\u6642\u306b\u5fa9\u65e7\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u91cd\u8996\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u306f\u904b\u7528\u3068\u3057\u3066\u3001<a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%83%87%E3%82%A3%E3%82%B6%E3%82%B9%E3%82%BF%E3%83%AA%E3%82%AB%E3%83%90%E3%83%AA#%E7%9B%AE%E6%A8%99%E5%BE%A9%E6%97%A7%E6%99%82%E9%96%93\">RTO<\/a> \u3092\u3069\u3053\u307e\u3067\u8a31\u5bb9\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u8a71\u306b\u7f6e\u304d\u63db\u308f\u308b\u3002<\/p>\n<hr>\n<h2>\u4f5c\u696d\u624b\u9806<\/h2>\n<p>\u4ee5\u4e0b\u306b\u5b9f\u969b\u306b\u884c\u3063\u305f\u624b\u9806\u3092\u793a\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3068\u78ba\u8a8d\u51fa\u529b\u3092\u5bfe\u306b\u3057\u3001\u518d\u73fe\u3068\u691c\u8a3c\u304c\u3067\u304d\u308b\u5f62\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h3>1. \u30e1\u30e2\u30ea\u3068\u30b9\u30ef\u30c3\u30d7\u306e\u73fe\u72b6\u78ba\u8a8d<\/h3>\n<p>\u307e\u305a\u30b7\u30b9\u30c6\u30e0\u304c\u5b9f\u969b\u306b\u30b9\u30ef\u30c3\u30d7\u3092\u4f7f\u3063\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ free -h<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;total &nbsp; &nbsp; &nbsp; &nbsp;used &nbsp; &nbsp; &nbsp; &nbsp;free &nbsp; &nbsp; &nbsp;shared &nbsp;buff\/cache &nbsp; available<br \/>\nMem: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;31Gi &nbsp; &nbsp; &nbsp; &nbsp;10Gi &nbsp; &nbsp; &nbsp; 1.1Gi &nbsp; &nbsp; &nbsp; 8.6Gi &nbsp; &nbsp; &nbsp; &nbsp;28Gi &nbsp; &nbsp; &nbsp; &nbsp;20Gi<br \/>\nSwap: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6.0Gi &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0B &nbsp; &nbsp; &nbsp; 6.0Gi<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u7269\u7406\u30e1\u30e2\u30ea 31Gi \u4e2d 10Gi \u7a0b\u5ea6\u3057\u304b\u4f7f\u3063\u3066\u304a\u3089\u305a\u3001available \u304c 20Gi \u3042\u308b\u3002Swap \u306f 6.0Gi \u78ba\u4fdd\u3055\u308c\u3066\u3044\u308b\u304c\u4f7f\u7528\u91cf\u306f 0B \u3067\u3042\u308b\u3002<\/p>\n<p>\u30b9\u30ef\u30c3\u30d7\u304c\u3069\u3053\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ swapon --show<br \/>\nNAME &nbsp; &nbsp; &nbsp;TYPE &nbsp; &nbsp; &nbsp;SIZE USED PRIO<br \/>\n\/dev\/dm-2 partition &nbsp; 6G &nbsp; 0B &nbsp; -2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\/dev\/dm-2 \u304c\u30b9\u30ef\u30c3\u30d7\u30c7\u30d0\u30a4\u30b9\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308b\u3002\u3053\u306e\u74b0\u5883\u3067\u306f\u3053\u308c\u306f LVM \u306e LV (ray-vg\/swap_1) \u306b\u76f8\u5f53\u3059\u308b\u3002<\/p>\n<h3>2. \u30b9\u30ef\u30c3\u30d7\u3092\u505c\u6b62\u3059\u308b<\/h3>\n<p>\u7a3c\u50cd\u4e2d\u306e\u307e\u307e\u30b9\u30ef\u30c3\u30d7\u3092\u7121\u52b9\u5316\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ sudo swapoff -a<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u505c\u6b62\u5f8c\u306b\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ swapon --show<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u51fa\u529b\u304c\u7a7a\u3067\u3042\u308a\u3001\u73fe\u5728\u306e\u30ab\u30fc\u30cd\u30eb\u306f\u30b9\u30ef\u30c3\u30d7\u3092\u4e00\u5207\u4f7f\u3063\u3066\u3044\u306a\u3044\u72b6\u614b\u306b\u306a\u3063\u305f\u3002<\/p>\n<h3>3. \/etc\/fstab \u306e\u66f4\u65b0<\/h3>\n<p>\u518d\u8d77\u52d5\u6642\u306b\u518d\u3073\u30b9\u30ef\u30c3\u30d7\u3092\u6709\u52b9\u5316\u3055\u308c\u306a\u3044\u3088\u3046\u3001\/etc\/fstab \u306e\u8a72\u5f53\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\"># Swap (LVM)<br \/>\n#\/dev\/mapper\/ray--vg-swap_1 &nbsp;none &nbsp;swap &nbsp;sw &nbsp;0 0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3067\u6b21\u56de\u306e\u30d6\u30fc\u30c8\u3067\u3082\u30b9\u30ef\u30c3\u30d7\u306f\u8a2d\u5b9a\u3055\u308c\u306a\u3044\u3002<\/p>\n<h3>4. LVM \u306e\u72b6\u614b\u78ba\u8a8d (\u524a\u9664\u524d)<\/h3>\n<p>\u30b9\u30ef\u30c3\u30d7\u7528\u306e LV \u304c\u3069\u306e\u3088\u3046\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ sudo lvs<br \/>\n&nbsp; LV &nbsp; &nbsp; VG &nbsp; &nbsp; Attr &nbsp; &nbsp; &nbsp; LSize &nbsp; Pool Origin Data% &nbsp;Meta% &nbsp;Move Log Cpy%Sync Convert<br \/>\n&nbsp; root &nbsp; ray-vg -wi-ao---- 111.32g<br \/>\n&nbsp; swap_1 ray-vg -wi-a----- &nbsp; 5.99g<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ sudo vgs<br \/>\n&nbsp; VG &nbsp; &nbsp; #PV #LV #SN Attr &nbsp; VSize &nbsp; &nbsp;VFree<br \/>\n&nbsp; ray-vg &nbsp; 1 &nbsp; 2 &nbsp; 0 wz--n- &amp;lt;117.32g &nbsp; &nbsp;0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>ray-vg \u3068\u3044\u3046 VG \u306b root \u3068 swap_1 \u306e 2 \u672c\u306e LV \u304c\u3042\u308a\u3001\u7a7a\u304d\u9818\u57df\u306f 0GiB \u3068\u5831\u544a\u3055\u308c\u3066\u3044\u308b\u3002\u3064\u307e\u308a swap_1 \u3092\u524a\u9664\u3059\u308c\u3070\u3001\u305d\u306e\u5206\u304c\u4e38\u3054\u3068\u7a7a\u304f\u3002<\/p>\n<h3>5. \u30b9\u30ef\u30c3\u30d7 LV \u306e\u524a\u9664<\/h3>\n<p>LVM \u304b\u3089 swap_1 \u3092\u524a\u9664\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ sudo lvremove \/dev\/ray-vg\/swap_1<br \/>\nDo you really want to remove active logical volume ray-vg\/swap_1? [y\/n]: y<br \/>\n&nbsp; Logical volume &quot;swap_1&quot; successfully removed.<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3053\u308c\u3067 LVM \u4e0a\u304b\u3089\u30b9\u30ef\u30c3\u30d7\u7528 LV \u304c\u6d88\u3048\u3001\u305d\u306e\u5bb9\u91cf\u304c VG \u5185\u306e\u672a\u5272\u308a\u5f53\u3066\u9818\u57df\u3068\u3057\u3066\u89e3\u653e\u3055\u308c\u305f\u3002<\/p>\n<h3>6. \u30eb\u30fc\u30c8 LV \u306e\u62e1\u5f35<\/h3>\n<p>\u7a7a\u3044\u305f\u9818\u57df\u3092 root LV \u306b\u3059\u3079\u3066\u5272\u308a\u5f53\u3066\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ sudo lvextend -l +100%FREE \/dev\/ray-vg\/root<br \/>\n&nbsp; Size of logical volume ray-vg\/root changed from 111.32 GiB (28499 extents) to &amp;lt;117.32 GiB (30033 extents).<br \/>\n&nbsp; Logical volume ray-vg\/root successfully resized.<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>LV \u81ea\u4f53\u306f\u62e1\u5f35\u3055\u308c\u305f\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306f\u307e\u3060\u53e4\u3044\u30b5\u30a4\u30ba\u306e\u307e\u307e\u3067\u3042\u308b\u3002ext4 \u306f\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u62e1\u5f35\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u62e1\u5f35\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ sudo resize2fs \/dev\/ray-vg\/root<br \/>\nresize2fs 1.47.2 (1-Jan-2025)<br \/>\nFilesystem at \/dev\/ray-vg\/root is mounted on \/; on-line resizing required<br \/>\nold_desc_blocks = 14, new_desc_blocks = 15<br \/>\nThe filesystem on \/dev\/ray-vg\/root is now 30753792 (4k) blocks long.<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<h3>7. \u62e1\u5f35\u7d50\u679c\u306e\u78ba\u8a8d<\/h3>\n<p>\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30b5\u30a4\u30ba\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ df -h \/<br \/>\n\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u30b5\u30a4\u30ba &nbsp;\u4f7f\u7528 &nbsp;\u6b8b\u308a \u4f7f\u7528% \u30de\u30a6\u30f3\u30c8\u4f4d\u7f6e<br \/>\n\/dev\/mapper\/ray--vg-root &nbsp; 115G &nbsp; 25G &nbsp; 85G &nbsp; 23% \/<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u4f5c\u696d\u524d\u306f\u7d04 110G \u3060\u3063\u305f \/ \u304c\u3001\u7d04 115G \u306b\u62e1\u5f35\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002\u3053\u308c\u306f\u65e7\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3060\u3063\u305f 6G \u5f31\u304c \/ \u306b\u7d71\u5408\u3055\u308c\u305f\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u3002<\/p>\n<p>\u6700\u7d42\u78ba\u8a8d\u3068\u3057\u3066\u3001\u30b9\u30ef\u30c3\u30d7\u304c\u7121\u52b9\u306a\u307e\u307e\u3067\u3042\u308b\u3053\u3068\u3092\u518d\u5ea6\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">$ swapon --show<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u51fa\u529b\u304c\u7a7a\u3067\u3042\u308b\u3053\u3068\u304b\u3089\u3001\u518d\u8d77\u52d5\u5f8c\u3082\u30b9\u30ef\u30c3\u30d7\u306f\u5229\u7528\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u308b\u3002fstab \u306e\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u6e08\u307f\u72b6\u614b\u3068\u5408\u308f\u305b\u3066\u3001\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u306f\u8ad6\u7406\u7684\u306b\u3082\u7269\u7406\u7684\u306b\u3082\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u6d88\u3048\u305f\u3002<\/p>\n<hr>\n<h2>\u7d50\u679c\u3068\u8003\u5bdf<\/h2>\n<p>\u4eca\u56de\u306e\u5909\u66f4\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u304c\u9054\u6210\u3055\u308c\u305f\u3002<\/p>\n<ul>\n<li>\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u5b8c\u5168\u306b\u524a\u9664\u3057\u305f\u3002<\/li>\n<li>\u30b9\u30ef\u30c3\u30d7\u7528\u306b\u78ba\u4fdd\u3057\u3066\u3044\u305f LVM \u306e LV \u3092\u524a\u9664\u3057\u3001\u305d\u306e\u5bb9\u91cf\u3092 root LV \u306b\u7d71\u5408\u3057\u305f\u3002<\/li>\n<li>\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u62e1\u5f35\u3057\u3001\/ \u306e\u5229\u7528\u53ef\u80fd\u5bb9\u91cf\u304c\u62e1\u5927\u3057\u305f\u3002<\/li>\n<li>fstab \u3092\u4fee\u6b63\u3057\u305f\u3053\u3068\u3067\u3001\u518d\u8d77\u52d5\u5f8c\u306b\u3082\u30b9\u30ef\u30c3\u30d7\u306f\u5fa9\u6d3b\u3057\u306a\u3044\u69cb\u6210\u306b\u306a\u3063\u305f\u3002<\/li>\n<li>SSD \u4e0a\u3067\u306e\u7121\u99c4\u306a\u30b9\u30ef\u30c3\u30d7\u66f8\u304d\u8fbc\u307f\u306f\u4eca\u5f8c\u767a\u751f\u3057\u306a\u3044\u3002<\/li>\n<li>\u30b7\u30b9\u30c6\u30e0\u306f 32GB \u306e\u7269\u7406\u30e1\u30e2\u30ea\u3060\u3051\u3067\u5b89\u5b9a\u7a3c\u50cd\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u306e\u30db\u30b9\u30c8\u3067\u306f\u3001\u30c7\u30a3\u30b9\u30af\u6545\u969c\u306f\u300c\u3044\u3064\u304b\u5fc5\u305a\u8d77\u304d\u308b\u3053\u3068\u300d\u3068\u3057\u3066\u6271\u3063\u3066\u3044\u308b\u3002\u3064\u307e\u308a\u6545\u969c\u305d\u306e\u3082\u306e\u3092\u907f\u3051\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u6545\u969c\u5f8c\u306b\u5fa9\u65e7\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3068\u3044\u3046\u904b\u7528\u601d\u60f3\u3067\u3042\u308b\u3002\u53ef\u7528\u6027\u8981\u4ef6\u304c\u300c\u5373\u6642\u5fa9\u65e7\u5fc5\u9808\u300d\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u65b9\u91dd\u306f\u59a5\u5f53\u3067\u3042\u308b\u3002\u4eca\u56de\u306e\u30b9\u30ef\u30c3\u30d7\u524a\u9664\u3068\u9818\u57df\u7d71\u5408\u306f\u3001\u305d\u306e\u601d\u60f3\u3068\u6574\u5408\u3059\u308b\u3002<\/p>\n<hr>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u5341\u5206\u306a\u7269\u7406\u30e1\u30e2\u30ea (32GB) \u3092\u642d\u8f09\u3057\u3001swap \u304c\u5b9f\u969b\u306b\u306f\u6d88\u8cbb\u3055\u308c\u3066\u3044\u306a\u3044 Debian 13 \u74b0\u5883\u3067\u306f\u3001SSD \u4e0a\u306e\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u306f\u5fc5\u9808\u3067\u306f\u306a\u3044\u3002\u3080\u3057\u308d\u3001\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u3001\u305d\u306e\u9818\u57df\u3092 \/ \u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u3067\u3001SSD \u306e\u9650\u3089\u308c\u305f\u5bb9\u91cf\u3092\u6709\u52b9\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p>S.M.A.R.T. \u306e\u7d50\u679c\u304c\u793a\u3059\u3088\u3046\u306b\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u306f\u53e4\u304f\u3066\u3082\u660e\u78ba\u306a\u7269\u7406\u969c\u5bb3\u5146\u5019\u304c\u51fa\u3066\u3044\u306a\u3044\u9650\u308a\u3001\u904b\u7528\u7d99\u7d9a\u306f\u53ef\u80fd\u3067\u3042\u308b\u3002\u305f\u3060\u3057\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306f\u3044\u3064\u3067\u3082\u58ca\u308c\u3046\u308b\u305f\u3081\u3001\u524d\u63d0\u306f\u300c\u58ca\u308c\u305f\u3089\u5fa9\u65e7\u3059\u308b\u300d\u3053\u3068\u3067\u3042\u308a\u3001\u3053\u308c\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u5fa9\u65e7\u624b\u9806\u306e\u6574\u5099\u3067\u62c5\u4fdd\u3055\u308c\u308b\u3002<\/p>\n<p>\u307e\u3068\u3081\u308b\u3068\u3001\u3053\u306e\u30db\u30b9\u30c8\u3067\u306f\u30b9\u30ef\u30c3\u30d7\u3092\u524a\u9664\u3057\u3001LVM \u306e\u7a7a\u304d\u9818\u57df\u3092\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u304c\u5408\u7406\u7684\u3067\u3042\u3063\u305f\u3002\u3053\u308c\u306f\u5358\u306a\u308b\u5bb9\u91cf\u306e\u6700\u9069\u5316\u3067\u306f\u306a\u304f\u3001\u904b\u7528\u30e2\u30c7\u30eb\u305d\u306e\u3082\u306e\u306e\u6574\u7406\u3067\u3082\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VM \u30db\u30b9\u30c8\u74b0\u5883\u306e\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u3001\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u7d71\u5408\u3057\u305f\u3002 \u524d\u63d0\u3068\u74b0\u5883 Debian 13 \u3092\u7a3c\u50cd\u3055\u305b\u3066\u3044\u308b\u7269\u7406\u30db\u30b9\u30c8\u306e\u69cb\u6210\u3092\u898b\u76f4\u3057\u305f\u3002\u3053\u306e\u30db\u30b9\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3042\u308b\u3002 \u76ee\u7684: \u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u304a\u3088\u3073 VM &#8230; <a title=\"SSD \u306e\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u305f\" class=\"read-more\" href=\"https:\/\/blog.id774.net\/entry\/2025\/10\/27\/3021\/\" aria-label=\"SSD \u306e\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3092\u524a\u9664\u3057\u305f \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,14],"tags":[],"class_list":["post-3021","post","type-post","status-publish","format-standard","hentry","category-diary","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/3021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/comments?post=3021"}],"version-history":[{"count":0,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/3021\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/media?parent=3021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/categories?post=3021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/tags?post=3021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}