{"id":4622,"date":"2021-09-29T21:16:59","date_gmt":"2021-09-29T12:16:59","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=4622"},"modified":"2021-10-01T15:22:57","modified_gmt":"2021-10-01T06:22:57","slug":"ec2-%e3%83%9c%e3%83%aa%e3%83%a5%e3%83%bc%e3%83%a0%e3%82%b5%e3%82%a4%e3%82%ba%e6%8b%a1%e5%bc%b5%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/4622","title":{"rendered":"[EC2] \u30c7\u30a3\u30b9\u30af\u30b5\u30a4\u30ba\u62e1\u5f35\u65b9\u6cd5"},"content":{"rendered":"<p>AWS\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9 EC2 \u306b\u304a\u3044\u3066\u3001\u30c7\u30a3\u30b9\u30af\u30b5\u30a4\u30ba\u304c\u4e0d\u8db3\u3057\u305f\u3068\u304d\u306b\u5bb9\u91cf\u3092\u5897\u3084\u3059\u65b9\u6cd5\u3002<\/p>\n<h3>1. AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u3092\u5897\u3084\u3059<\/h3>\n<p>EC2\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9 &rArr; Elastic Block Store (EBS) &rArr; \u30dc\u30ea\u30e5\u30fc\u30e0 &rArr; \u30a2\u30af\u30b7\u30e7\u30f3 &rArr; \u30dc\u30ea\u30e5\u30fc\u30e0\u5909\u66f4 \u306e\u4e2d\u306e\u300e\u30b5\u30a4\u30ba\u300f\u3092\u5897\u3084\u3059\u3002\uff08\u5358\u4f4d\u306fGiB)<\/p>\n<ul>\n<li>EC2\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/li>\n<li>\u30c7\u30a3\u30b9\u30af\u306e\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3084\u30c7\u30bf\u30c3\u30c1\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/li>\n<li>\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u5909\u66f4\u304c\u77ac\u6642\u306b\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u3042\u308c\u3053\u308c\u3057\u3066\u3044\u308b\u3046\u3061\u306bAWS\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u753b\u9762\u3067\u78ba\u8a8d\u3067\u304d\u308b\u30b5\u30a4\u30ba\u304c\u5897\u3048\u3066\u3044\u307e\u3057\u305f\u3002<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>2. \u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ df -hT\r\n\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9   \u30bf\u30a4\u30d7   \u30b5\u30a4\u30ba  \u4f7f\u7528  \u6b8b\u308a \u4f7f\u7528% \u30de\u30a6\u30f3\u30c8\u4f4d\u7f6e\r\ndevtmpfs       devtmpfs   461M     0  461M    0% \/dev\r\ntmpfs          tmpfs      479M     0  479M    0% \/dev\/shm\r\ntmpfs          tmpfs      479M  436K  479M    1% \/run\r\ntmpfs          tmpfs      479M     0  479M    0% \/sys\/fs\/cgroup\r\n\/dev\/nvme0n1p1 xfs          8G  163M  7.8G   98% \/\r\ntmpfs          tmpfs       96M     0   96M    0% \/run\/user\/1000<\/pre>\n<p>\u300e\/dev\/nvme0n1p1\u300f\u304c\u300eXFS\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u300f\u306e\u30eb\u30fc\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0<\/p>\n<h3>3. \u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ lsblk\r\nNAME          MAJ:MIN RM SIZE RO TYPE MOUNTPOINT\r\nnvme0n1       259:0    0  16G  0 disk\r\n\u251c\u2500nvme0n1p1   259:1    0   8G  0 part \/\r\n\u2514\u2500nvme0n1p128 259:2    0   1M  0 part<\/pre>\n<h3>4. \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u62e1\u5f35\u3059\u308b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo growpart \/dev\/nvme0n1 1<\/pre>\n<h3>5. \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u62e1\u5f35\u3059\u308b<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ sudo xfs_growfs -d \/<\/pre>\n<p>\u203b XFS\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u3070\u3042\u3044<\/p>\n<p>\u4ee5\u4e0a\u3067\u7d42\u308f\u308a<\/p>\n<h3>6. \u516c\u5f0f\u30da\u30fc\u30b8<\/h3>\n<ul>\n<li><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AWSEC2\/latest\/UserGuide\/requesting-ebs-volume-modifications.html\">EBS \u30dc\u30ea\u30e5\u30fc\u30e0\u3078\u306e\u5909\u66f4\u306e\u30ea\u30af\u30a8\u30b9\u30c8<\/a><\/li>\n<li><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AWSEC2\/latest\/UserGuide\/monitoring-volume-modifications.html\">\u30dc\u30ea\u30e5\u30fc\u30e0\u5909\u66f4\u306e\u9032\u884c\u72b6\u6cc1\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<\/a><\/li>\n<li><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AWSEC2\/latest\/UserGuide\/recognize-expanded-volume-linux.html\">\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u5909\u66f4\u5f8c\u306e Linux \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u62e1\u5f35<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>AWS\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9 EC2 \u306b\u304a\u3044\u3066\u3001\u30c7\u30a3\u30b9\u30af\u30b5\u30a4\u30ba\u304c\u4e0d\u8db3\u3057\u305f\u3068\u304d\u306b\u5bb9\u91cf\u3092\u5897\u3084\u3059\u65b9\u6cd5\u3002 1. AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u3092\u5897\u3084\u3059 EC2\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9 &rArr; Elastic Block Stor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[55],"class_list":["post-4622","post","type-post","status-publish","format-standard","hentry","category-memo","tag-aws"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=4622"}],"version-history":[{"count":8,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4622\/revisions"}],"predecessor-version":[{"id":4690,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4622\/revisions\/4690"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=4622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=4622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=4622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}