{"id":3817,"date":"2017-07-11T07:51:22","date_gmt":"2017-07-10T22:51:22","guid":{"rendered":"http:\/\/stuffy.dip.jp\/wordpress\/?p=3817"},"modified":"2017-07-11T07:51:22","modified_gmt":"2017-07-10T22:51:22","slug":"add-new-volume-in-virtualbox","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/wordpress\/?p=3817","title":{"rendered":"CentOS7 \u65b0\u898f\u30dc\u30ea\u30e5\u30fc\u30e0\u8ffd\u52a0"},"content":{"rendered":"<p>VirtualBox \u306eCentOS7 \u306bX\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u5bb9\u91cf\u304c\u8db3\u308a\u305a\u691c\u7d22\u3057\u305f\u3068\u3053\u308d\u3001[\u8a2d\u5b9a]-[\u30b9\u30c8\u30ec\u30fc\u30b8]\u304b\u3089\u65b0\u898f\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u8ffd\u52a0\u304c\u3067\u304d\u308b\u3088\u3046\u306a\u306e\u3067\u8a66\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u304c\u3001\u3057\u304b\u3057OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u300c\u6a19\u6e96\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u300d\u3001\u300cext4\u300d\u3067\u4f5c\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u62e1\u5f35\u3067\u304d\u305a\u3053\u3053\u3067\u8a70\u307f\u307e\u3057\u305f\u3002CentOS7 \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u300cxfs\u300d\u3060\u3063\u305f\u306e\u3067\u3059\u306d\u3002CentOS7\u4ee5\u524d\u306eresize2fs \u30b3\u30de\u30f3\u30c9\u304c\u901a\u3089\u305a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u30cf\u30de\u308a\u307e\u3057\u305f\u3002xfs_growfs \u30b3\u30de\u30f3\u30c9\u3092\u901a\u3059\u305f\u3081\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3082\u300cLVM\u300d\u3001\u300cxfs\u300d\u3067OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3084\u308a\u76f4\u3057\u3067\u3059\u3002\uff08\u3046\u308f\u3041\uff5e\u3093<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3832 size-large aligncenter\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-11-1-1024x740.png\" alt=\"\" width=\"660\" height=\"477\" \/><\/p>\n<p>\u6539\u3081\u3066OS\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u65b0\u898f\u30dc\u30ea\u30e5\u30fc\u30e0\u4f5c\u6210\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3818\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-06-1.png\" alt=\"\" width=\"781\" height=\"424\" \/><\/p>\n<p>[\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc: SATA] \u3092\u9078\u629e\u3059\u308b\u3068\u4e0b\u306e\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u8ffd\u52a0\u30dc\u30bf\u30f3\u304c\u73fe\u308c\u308b\u306e\u3067\u30a6\u30a3\u30b6\u30fc\u30c9\u304b\u3089[\u65b0\u898f\u8ffd\u52a0]\u3057\u3066\u3044\u304d\u307e\u3059\u3002[\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306e\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7]\u00a0\u306f\u79c1\u306e\u5834\u5408\u3001[VDI]\u00a0\u3067\u4f5c\u3063\u305f\u306e\u3067[VDI] \u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u6b21\u3078\u3002<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3820 aligncenter\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-06-7.png\" alt=\"\" width=\"370\" height=\"427\" \/><\/p>\n<p>[\u4eee\u60f3\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u30d5\u30a1\u30a4\u30eb] \u306b\u9069\u5f53\u306a\u540d\u524d\u3092\u4ed8\u3051\u3066\u5bb9\u91cf\u30928GB \u3068\u591a\u3081\u306b\u53d6\u308a\u307e\u3057\u305f\u3002[\u4f5c\u6210] \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066OS\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3819 aligncenter\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-06-2.png\" alt=\"\" width=\"370\" height=\"427\" \/><\/p>\n<pre># ll \/dev\/sd*<\/pre>\n<p>\u3068\u30b3\u30de\u30f3\u30c9\u3059\u308b\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\/dev\/sdb \u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3821\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-06-3.png\" alt=\"\" width=\"659\" height=\"486\" \/><\/p>\n<p>\u3053\u308c\u304b\u3089\u65b0\u898f\u30c7\u30a3\u30b9\u30af\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u62e1\u5f35\u3057\u3066\u5bb9\u91cf\u3092\u5897\u3084\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305a\u3001fdisk \/dev\/sdb \u304b\u3089\u3002<\/p>\n<pre># fdisk \/dev\/sdb\n\nWelcome to fdisk (util-linux 2.23.2).\n\nChanges will remain in memory only, until you decide to write them.\nBe careful before using the write command.\n\nDevice does not contain a recognized partition table\nBuilding a new DOS disklabel with disk identifier 0x31600b47.\n\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7):<\/pre>\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u3067 p \u3068\u6253\u3064\u3068\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u306f\u3044\u3001\u4f55\u3082\u3042\u308a\u307e\u305b\u3093\u306d\u3002<\/p>\n<pre>\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): p\n\nDisk \/dev\/sdb: 8589 MB, 8589934592 bytes, 16777216 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O \u30b5\u30a4\u30ba (\u6700\u5c0f \/ \u63a8\u5968): 512 \u30d0\u30a4\u30c8 \/ 512 \u30d0\u30a4\u30c8\nDisk label type: dos\n\u30c7\u30a3\u30b9\u30af\u8b58\u5225\u5b50: 0x31600b47\n\n\u30c7\u30d0\u30a4\u30b9 \u30d6\u30fc\u30c8 \u59cb\u70b9 \u7d42\u70b9 \u30d6\u30ed\u30c3\u30af Id \u30b7\u30b9\u30c6\u30e0\n\n\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7):<\/pre>\n<p>\u65b0\u3057\u304f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u30d7\u30ed\u30f3\u30d7\u30c8 n \u3068\u6253\u3061\u307e\u3059\u3002<\/p>\n<pre>\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): n\nPartition type:\np primary (0 primary, 0 extended, 4 free)\ne extended\nSelect (default p):<\/pre>\n<p>Primary \u304bextended \u304b\u805e\u304b\u308c\u308b\u306e\u3067primary \u306e p \u3067\u3059\u3002<\/p>\n<pre>Select (default p): p\n\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u756a\u53f7 (1-4, default 1): 1<\/pre>\n<p>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u756a\u53f7\u306f\u30011 \u3068\u5165\u529b\u3057\u307e\u3059\u3002\u6b21\u306b\u30bb\u30af\u30bf\u30fc\u756a\u53f7\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u958b\u59cb\u30922048 \u3001\u7d42\u4e86\u309216777215 \u3068\u3057\u307e\u3059\u3002<\/p>\n<pre>\u6700\u521d sector (2048-16777215, \u521d\u671f\u5024 2048): 2048\nLast sector, +sectors or +size{K,M,G} (2048-16777215, \u521d\u671f\u5024 16777215): 16777215\nPartition 1 of type Linux and of size 8 GiB is set\n\n\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7):<\/pre>\n<p>\u518d\u3073\u3001p \u3067\u78ba\u8a8d\u3059\u308b\u3068\/dev\/sdb1 \u304c\u4f5c\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): p\n\nDisk \/dev\/sdb: 8589 MB, 8589934592 bytes, 16777216 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O \u30b5\u30a4\u30ba (\u6700\u5c0f \/ \u63a8\u5968): 512 \u30d0\u30a4\u30c8 \/ 512 \u30d0\u30a4\u30c8\nDisk label type: dos\n\u30c7\u30a3\u30b9\u30af\u8b58\u5225\u5b50: 0x31600b47\n\n\u30c7\u30d0\u30a4\u30b9 \u30d6\u30fc\u30c8 \u59cb\u70b9 \u7d42\u70b9 \u30d6\u30ed\u30c3\u30af Id \u30b7\u30b9\u30c6\u30e0\n\/dev\/sdb1 2048 16777215 8387584 83 Linux\n\n\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7):<\/pre>\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089 t \u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\uff088e\uff09\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<pre>\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): t\nSelected partition 1\nHex code (type L to list all codes): 8e\nChanged type of partition 'Linux' to 'Linux LVM'<\/pre>\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089 w \u3067\u8a2d\u5b9a\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre>\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): w\n\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb\u306f\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\uff01\n\nioctl() \u3092\u547c\u3073\u51fa\u3057\u3066\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u8aad\u8fbc\u307f\u3057\u307e\u3059\u3002\n\u30c7\u30a3\u30b9\u30af\u3092\u540c\u671f\u3057\u3066\u3044\u307e\u3059\u3002<\/pre>\n<p>\u3053\u3053\u304b\u3089pvcreate \u30b3\u30de\u30f3\u30c9\u3067\u7269\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u4f5c\u6210\u3001vgextend \u30b3\u30de\u30f3\u30c9\u304b\u3089\u30dc\u30ea\u30e5\u30fc\u30e0\u30b0\u30eb\u30fc\u30d7\u62e1\u5f35\u3001lvextend \u30b3\u30de\u30f3\u30c9\u304b\u3089\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u62e1\u5f35\u3057\u3066\u3001<\/p>\n<p><a href=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-11-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3843 size-full\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-11-6.png\" alt=\"\" width=\"659\" height=\"486\" \/><\/a><\/p>\n<p>xfs_growfs \/dev\/cl\/root\u00a0\u3067\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u62e1\u5f35\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-11-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3845 size-full\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-11-5.png\" alt=\"\" width=\"659\" height=\"486\" \/><\/a><\/p>\n<p>df \u3067\u30eb\u30fc\u30c8\u306e\u4f7f\u7528\u7387\u3092\u898b\u308b\u3068\u300136%\u304b\u308916%\u306b\u7a7a\u304d\u5bb9\u91cf\u304c\u5897\u3048\u307e\u3057\u305f\u3002    \t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VirtualBox \u306eCentOS7 \u306bX\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u5bb9\u91cf\u304c\u8db3\u308a\u305a\u691c\u7d22\u3057\u305f\u3068\u3053\u308d\u3001[\u8a2d\u5b9a]-[\u30b9\u30c8\u30ec\u30fc\u30b8]\u304b\u3089\u65b0\u898f\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u8ffd\u52a0\u304c\u3067\u304d\u308b\u3088\u3046\u306a\u306e\u3067\u8a66\u307f\u307e\u3057\u305f\u3002 \u304c\u3001\u3057\u304b\u3057OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642 &hellip; <a href=\"https:\/\/www.stuffy.site\/wordpress\/?p=3817\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">CentOS7 \u65b0\u898f\u30dc\u30ea\u30e5\u30fc\u30e0\u8ffd\u52a0<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,39,3,5,35],"tags":[],"class_list":["post-3817","post","type-post","status-publish","format-standard","hentry","category-fdisk","category-hdd","category-linux","category-software","category-virtualbox"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3817"}],"version-history":[{"count":0,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3817\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}