{"id":12549,"date":"2020-12-29T09:20:54","date_gmt":"2020-12-29T00:20:54","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=12549"},"modified":"2023-05-27T18:11:40","modified_gmt":"2023-05-27T09:11:40","slug":"%e3%80%90aws%e3%80%91ec2%e3%81%b8%e3%80%8cebs%e3%80%8d%e3%82%92%e3%83%9e%e3%82%a6%e3%83%b3%e3%83%88%e3%81%99%e3%82%8b%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=12549","title":{"rendered":"\u3010AWS\u3011EBS\u306e\u57fa\u672c\u3001EC2\u3078\u300cEBS\u300d\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u624b\u9806"},"content":{"rendered":"<h2>EBS(Amazon Elastic Block Store)<\/h2>\n<p>EC2\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u5916\u4ed8\u3051\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3067\u3059\u3002<\/p>\n<h3>\u7279\u5fb4<\/h3>\n<h4>\u7a2e\u985e\u306b\u5fdc\u3058\u3066IOPS(\u6027\u80fd\uff09\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/h4>\n<h5>IOPS\u3068\u306f\uff1f<\/h5>\n<p>\u300cIO per second\u300d\u306e\u3053\u3068\u30671\u79d2\u3042\u305f\u308a\u306eIO\u6027\u80fd\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h4>\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/h4>\n<h3>EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30b9\u30c8\u30a2\u3068\u306e\u4f7f\u3044\u5206\u3051<\/h3>\n<p>EC2\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306fEBS\u306e\u4ed6\u306bEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30b9\u30c8\u30a2\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30b9\u30c8\u30a2<\/h4>\n<h5>EC2\u3068\u4e0d\u53ef\u5206\uff08EC2\u30db\u30b9\u30c8\u306b\u5185\u81d3\uff09<\/h5>\n<p>\u305f\u3060\u3057\u3001\u5185\u81d3\u3057\u3066\u3044\u308b\u306e\u3067\u30ec\u30a4\u30c6\u30f3\u30b7\u306b\u975e\u5e38\u306b\u6709\u5229\u3067<span style=\"color: #ff0000;\"><strong>\u6027\u80fd\u91cd\u8996\u306e\u4e00\u6642\u9818\u57df\u306e\u5834\u5408<\/strong><\/span>\u306f\u3053\u3061\u3089\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h5>EC2\u3092Terminate(\u7d42\u4e86\uff09\u3059\u308b\u3068\u30af\u30ea\u30a2\u3055\u308c\u308b\u3002<\/h5>\n<h5>Terminate\u524d\u306b\u30c7\u30fc\u30bf\u3092\u9000\u907f\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/h5>\n<h5>\u6027\u80fd\u30fb\u5bb9\u91cf\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30bf\u30a4\u30d7\u3054\u3068\u306b\u898f\u5b9a<\/h5>\n<h4>EBS<\/h4>\n<ul>\n<li>EC2\u3068\u306f\u72ec\u7acb\u7ba1\u7406<\/li>\n<li>Terminate(\u7d42\u4e86\uff09\u3057\u3066\u3082\u4fdd\u5b58\u53ef\u80fd<\/li>\n<li>Volume\u3054\u3068\u306b\u6027\u80fd\u30fb\u5bb9\u91cf\u3092\u5b9a\u7fa9\u53ef\u80fd<\/li>\n<li>\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u5f97\u3057\u3066S3\u3067\u4fdd\u8b77\u53ef\u80fd<\/li>\n<\/ul>\n<h3>\u6ce8\u610f\u70b9<\/h3>\n<ul>\n<li>EC2\u3068EBS\u304c\u540c\u3058AZ(\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3\uff09\u5185\u306b\u306a\u3051\u308c\u3070\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/li>\n<li>\u540c\u3058EBS\u306f\u8907\u6570\u306eEC2\u304b\u3089\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<h3>EBS\u306e\u7a2e\u985e<\/h3>\n<p>\u904b\u7528\u4e2d\u306b\u81ea\u7531\u306b\u7a2e\u985e\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u306a\u306e\u3067\u3082\u3057\u30b5\u30a4\u30ba\u304c\u8db3\u3089\u306a\u304f\u306a\u3063\u305f\u3089\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>SSD\u30bf\u30a4\u30d7<\/h4>\n<h5>\u6c4e\u7528SSD<\/h5>\n<p>\u7279\u5225\u306a\u8981\u4ef6\u304c\u306a\u3044\u9650\u308a\u306f\u3053\u3061\u3089\u3092\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h5>\u30d7\u30ed\u30d3\u30b8\u30e7\u30f3\u30c9 IOPS SSD<\/h5>\n<p>\u6c4e\u7528\u306e\u65b9\u3088\u308a\u3082\u6027\u80fd\u304c\u826f\u3044\u3067\u3059\u3002\u7279\u5b9a\u306e\u8981\u4ef6\u3092\u6e80\u305f\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u5834\u5408\u306f\u3053\u3061\u3089\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h6>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h6>\n<p>Oracle\u7b49\u306e\u5927\u898f\u6a21\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u591a\u304f\u4f7f\u3046\u5834\u5408<\/p>\n<h4>HDD\u30bf\u30a4\u30d7<\/h4>\n<p>SSD\u306b\u6bd4\u3079\u308b\u3068\u6599\u91d1\u304c\u4f4e\u3044\u304a\u5f97\u306a\u30bf\u30a4\u30d7\u3067\u3059\u3002<\/p>\n<h5>\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u6700\u9069\u5316HDD(st1)<\/h5>\n<h6>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h6>\n<ul>\n<li>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u51e6\u7406<\/li>\n<li>\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf<\/li>\n<li>\u30c7\u30fc\u30bf\u30a6\u30a7\u30a2\u30cf\u30a6\u30b9<\/li>\n<li>\u30ed\u30b0\u51e6\u7406<\/li>\n<\/ul>\n<h5>Cold HDD(sc1)<\/h5>\n<p>\u4fdd\u7ba1\u7528\u306e\u30bf\u30a4\u30d7\u3067\u3059\u3002\u6599\u91d1\u304c\u975e\u5e38\u306b\u5b89\u3044\u30bf\u30a4\u30d7\u3067\u5229\u7528\u983b\u5ea6\u304c\u4f4e\u3044\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u5834\u5408\u306f\u3053\u3061\u3089\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h6>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h6>\n<ul>\n<li>\u30cb\u30a2\u30fb\u30a2\u30fc\u30ab\u30a4\u30d6<\/li>\n<li>\u30ed\u30b0\u84c4\u7a4d<\/li>\n<\/ul>\n<h3>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h3>\n<h4>\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h4>\n<p>\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306fS3\u306b\u4fdd\u7ba1\u3057\u307e\u3059\u3002\uff08\u305f\u3060\u3057\u3001AWS\u304c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u898b\u308c\u306a\u3044\u4fdd\u7ba1\u9818\u57df\u306b\u4fdd\u5b58\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u6211\u3005\u306f\u95b2\u89a7\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3067\u3059\u3002\uff09\u3001\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u7684\u306b\u306fS3\u3067\u306f\u306a\u304fEBS\u5074\u306e\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>AMI\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h4>\n<p>EC2\u3092AMI\u306b\u5207\u308a\u51fa\u3057\u3067AMI\u81ea\u4f53\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>EBS\u306e\u6697\u53f7\u5316<\/h3>\n<ul>\n<li>\u30dc\u30ea\u30e5\u30fc\u30e0\u5185\u306e\u4fdd\u5b58\u30c7\u30fc\u30bf\u3001\u53ca\u3073\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u9593\u3067\u79fb\u52d5\u3059\u308b\u30c7\u30fc\u30bf\u304c\u6697\u53f7\u5316\u3055\u308c\u308b\u3002<\/li>\n<li>AWS Key Management Service\u3068\u9023\u643a\u3057\u9375\u7ba1\u7406\u3092\u3059\u308b\u3002<\/li>\n<li>I\/O\u306f\u5168\u3066\u900f\u904e\u7684\u3067\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3082\u6697\u53f7\u5316\u3055\u308c\u308b\u3002<\/li>\n<\/ul>\n<h2>EC2\u3078\u300cEBS\u300d\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u624b\u9806<\/h2>\n<p>\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3060\u3051\u3067\u306f\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u305b\u3093\u3002\u5225\u9014\u30de\u30a6\u30f3\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>EBS\u306e\u4f5c\u6210<\/h3>\n<p>1.EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u753b\u9762\u304b\u3089<strong><span style=\"color: #ff0000;\">\u300c\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u4f5c\u6210\u300d<\/span><\/strong>\u3092\u9078\u3073\u4efb\u610f\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>2.\u4efb\u610f\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3057\u3066\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u30a2\u30bf\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<p>3.EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3057\u3066<span style=\"color: #ff0000;\"><strong>\u300c\u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u300d<\/strong><\/span>\u306b\u30dc\u30ea\u30e5\u30fc\u30e0\uff08\/dev\/sdf\u7b49\uff09\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h3>EBS\u306e\u30de\u30a6\u30f3\u30c8<\/h3>\n<p>1.ssh\u3067EC2\u30b5\u30fc\u30d0\u30fc\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<p>2.\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">file -s EBS\u3092\u30a2\u30bf\u30c3\u30c1\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/pre>\n<p>3.Linux\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">mkfs -t ext4 EBS\u30de\u30a6\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/pre>\n<p>4.\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3001UUID\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">file -s EBS\u3092\u30a2\u30bf\u30c3\u30c1\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/pre>\n<p>5.\u30de\u30a6\u30f3\u30c8\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">mkdir \u30de\u30a6\u30f3\u30c8\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/pre>\n<p>6.\u00a0 \u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">mount EBS\u306e\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u30de\u30a6\u30f3\u30c8\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/pre>\n<p>7.\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">df -h<\/pre>\n<p>8.\u4e0b\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true  \">vi \/etc\/fstab<\/pre>\n","protected":false},"excerpt":{"rendered":"EBS(Amazon Elastic Block Store) EC2\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u5916\u4ed8\u3051\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3067\u3059\u3002 \u7279\u5fb4 \u7a2e\u985e\u306b\u5fdc\u3058\u3066IOPS(\u6027\u80fd\uff09\u304c\u7570\u306a\u308a\u307e\u3059\u3002 IOPS\u3068\u306f\uff1f \u300cIO per second\u300d\u306e\u3053\u3068\u30671\u79d2 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12549"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12549"}],"version-history":[{"count":5,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12549\/revisions"}],"predecessor-version":[{"id":20105,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12549\/revisions\/20105"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12549"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}