{"id":2515,"date":"2018-05-11T00:00:57","date_gmt":"2018-05-10T15:00:57","guid":{"rendered":"https:\/\/shell-mag.com\/?p=2515"},"modified":"2018-05-10T21:53:44","modified_gmt":"2018-05-10T12:53:44","slug":"5th_linuxoperations","status":"publish","type":"post","link":"https:\/\/shell-mag.com\/5th_linuxoperations\/","title":{"rendered":"\u7b2c5\u56de\u3000\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u67d4\u8edf\u306b\u7ba1\u7406\u3059\u308b\uff08LVM\u306e\u64cd\u4f5c2\uff09"},"content":{"rendered":"<p>\u524d\u56de\u306f\u3001Linux\u306a\u3069\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u67d4\u8edf\u306b\u7ba1\u7406\u3059\u308b\u4ed5\u7d44\u307f\u300cLVM\u300d\uff08Logical Volume Manager\uff09\u306e\u5229\u70b9\u3068\u3057\u3066\u3001\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u62e1\u5f35\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u5897\u3084\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001\u6b8b\u3063\u3066\u3044\u308b\u5229\u70b9\u306e\u4e00\u3064\u3068\u3057\u3066\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u7e2e\u5c0f\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\n\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u306b\u5fc5\u8981\u4ee5\u4e0a\u306e\u5bb9\u91cf\u3092\u5272\u308a\u5f53\u3066\u3066\u3057\u307e\u3063\u3066\u3082\u3001LVM\u306a\u3089\u305d\u306e\u5bb9\u91cf\u3092\u6e1b\u3089\u3057\u3066\u6e1b\u3089\u3057\u305f\u5bb9\u91cf\u3092\u5225\u306e\u7528\u9014\u306b\u5229\u7528\u3067\u304d\u307e\u3059\uff08<strong>\u56f31<\/strong>\uff09\u3002<\/p>\n<div id=\"attachment_2516\" style=\"width: 668px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2516\" class=\" wp-image-2516\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu1-300x116.png\" alt=\"\" width=\"658\" height=\"255\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu1-300x116.png 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu1-768x298.png 768w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu1.png 830w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/a><p id=\"caption-attachment-2516\" class=\"wp-caption-text\">\u56f31\u3000\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u7e2e\u5c0f<\/p><\/div>\n<p><!--nextpage--><\/p>\n<h2>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u6e1b\u3089\u3059<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001Ubuntu Server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u6e1b\u3089\u3057\u3001\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u5bb9\u91cf\u3082\u5c0f\u3055\u304f\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u305f\u3060\u3057\u3001\u7a3c\u50cd\u4e2d\u306e\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u5207\u308a\u96e2\u305b\u306a\u3044\uff08\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3067\u304d\u306a\u3044\uff09\u5834\u5408\u3001\u305d\u306e\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3084\u305d\u306e\u4e2d\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u7e2e\u5c0f\u3067\u304d\u307e\u305b\u3093\u3002\u3088\u3063\u3066\u3001Ubuntu Server\u3092\u8d77\u52d5\u3057\u305f\u72b6\u614b\u3067\u306f\u3001\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u5c0f\u3055\u304f\u3059\u308b\u306e\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u5207\u308a\u96e2\u305b\u308b\u3088\u3046\u306bDVD-R\u3084USB\u30e1\u30e2\u30ea\u30fc\u304b\u3089\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu\u3092\u30e9\u30a4\u30d6\u3067\u8d77\u52d5\u3057\u3001\u305d\u306eUbuntu\u304b\u3089Ubuntu Server\u306e\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u64cd\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30e9\u30a4\u30d6\u8d77\u52d5\u306eUbuntu\u3092\u4f7f\u3063\u3066\u64cd\u4f5c\u3059\u308b<\/h3>\n<p><a href=\"https:\/\/www.ubuntu.com\/download\">\u3053\u3053<\/a>\u304b\u3089\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu 18.04 LTS\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3057\u3066\u3001DVD-R\u307e\u305f\u306fUSB\u30e1\u30e2\u30ea\u30fc\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002Ubuntu Server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30de\u30b7\u30f3\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3001\u305d\u306e\u30de\u30b7\u30f3\u4e0a\u3067Ubuntu 18.04 LTS\u3092\u66f8\u304d\u8fbc\u3093\u3060DVD-R\u307e\u305f\u306fUSB\u30e1\u30e2\u30ea\u30fc\u304b\u3089\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u82f1\u8a9e\u74b0\u5883\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u753b\u9762\u3092\u8868\u793a\u3057\u305f\u72b6\u614b\u306b\u3057\u307e\u3059\uff08<strong>\u56f32<\/strong>\uff09\u3002\u306a\u304a\u3001\u65e5\u672c\u8a9e\u30d5\u30a9\u30f3\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u65e5\u672c\u8a9e\u74b0\u5883\u3067\u306f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<div id=\"attachment_2517\" style=\"width: 528px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2517\" class=\" wp-image-2517\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu2-300x180.png\" alt=\"\" width=\"518\" height=\"311\" srcset=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu2-300x180.png 300w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu2-768x462.png 768w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu2-1024x615.png 1024w, https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu2.png 1278w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/a><p id=\"caption-attachment-2517\" class=\"wp-caption-text\">\u56f32\u3000Ubuntu\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u753b\u9762<\/p><\/div>\n<p>\uff3bCtrl\uff3d\u30ad\u30fc\u3068\uff3bAlt\uff3d\u30ad\u30fc\u3092\u62bc\u3057\u306a\u304c\u3089\uff3bT\uff3d\u30ad\u30fc\u3092\u62bc\u3057\u3066\u7aef\u672b\u3092\u958b\u304d\u307e\u3059\u3002\u300clsblk\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30b9\u30af\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ lsblk\r\nNAME                  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\r\nloop0                   7:0    0  1.7G  1 loop \/rofs\r\nloop1                   7:1    0 86.6M  1 loop \/snap\/core\/4486\r\nloop2                   7:2    0  140M  1 loop \/snap\/gnome-3-26-1604\/59\r\nloop3                   7:3    0  1.6M  1 loop \/snap\/gnome-calculator\/154\r\nloop4                   7:4    0 12.2M  1 loop \/snap\/gnome-characters\/69\r\nloop5                   7:5    0   21M  1 loop \/snap\/gnome-logs\/25\r\nloop6                   7:6    0  3.3M  1 loop \/snap\/gnome-system-monitor\/36\r\nsda                     8:0    0  100G  0 disk\r\n\u2523sda1                  8:1    0  487M  0 part\r\n\u2523sda2                  8:2    0    1K  0 part\r\n\u2517sda5                  8:5    0 99.5G  0 part\r\n  \u2523shmag1--vg-root   253:0    0 98.6G  0 lvm\r\n  \u2517shmag1--vg-swap_1 253:1    0  980M  0 lvm\r\nsr0                    11:0    1  1.8G  0 rom  \/cdrom<\/pre>\n<p><a href=\"https:\/\/shell-mag.com\/4th_linuxoperations\/3\/\">\u524d\u56de<\/a>\u3068\u540c\u3058\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb\u540d\uff08\/dev\/mapper\/shmag1&#8211;vg-root\uff09\u306a\u306e\u3067\u300cshmag1&#8211;vg-root\u300d\u304cUbuntu Server\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu\u304b\u3089\u6b63\u3057\u304f\u8a8d\u8b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<!--nextpage--><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u6e1b\u3089\u3059\u624b\u9806\u3068\u3057\u3066\u306f<strong>\u56f33<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002\u3044\u304d\u306a\u308a\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u7e2e\u3081\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u58ca\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div id=\"attachment_2518\" style=\"width: 504px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2518\" class=\" wp-image-2518\" src=\"https:\/\/shell-mag.com\/wp-content\/uploads\/2018\/05\/zu3-300x195.png\" alt=\"\" width=\"494\" height=\"323\" \/><\/a><p id=\"caption-attachment-2518\" class=\"wp-caption-text\">\u56f33\u3000\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u6e1b\u3089\u3059\u305f\u3081\u306e\u30d5\u30ed\u30fc<\/p><\/div>\n<h3>\u4f7f\u7528\u91cf\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\u307e\u305a\u306f\u3001\u3069\u3053\u304b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3066\u4f7f\u7528\u91cf\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u300c\/mnt\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3057\u305f\u3002\u300cmount\u300d\u30b3\u30de\u30f3\u30c9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u300c-t auto\u300d\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5185\u90e8\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u81ea\u52d5\u3067\u8a8d\u8b58\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo mount -t auto \/dev\/mapper\/shmag1--vg-root \/mnt$ df -h \/mnt\r\nFilesystem                   Size  Used Avail Use% Mounted on\r\n\/dev\/mapper\/shmag1--vg-root   97G  1.8G   91G   2% \/mnt<\/pre>\n<p>\u300cSize\u300d\u304c\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u7dcf\u5bb9\u91cf\u3001\u300cUsed\u300d\u304c\u4f7f\u7528\u91cf\u3067\u3059\u3002\u7d0497G\u30d0\u30a4\u30c8\u306e\u5bb9\u91cf\u3067\u3001\u73fe\u57281.8G\u30d0\u30a4\u30c8\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u7d50\u679c\u304b\u3089\u4f7f\u7528\u91cf\u306e\u7d0410\u500d\u300120G\u30d0\u30a4\u30c8\u307e\u3067\u7e2e\u5c0f\u3057\u307e\u3059\u3002<!--nextpage--><\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3059\u308b<\/h3>\n<p>\u3044\u3063\u305f\u3093\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3001Ubuntu Server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u30b7\u30b9\u30c6\u30e0\u3068\u5207\u308a\u96e2\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo umount \/mnt\r\n<\/pre>\n<p>\u6700\u521d\u306b\u300ce2fsck\u300d\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u6574\u5408\u6027\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u58ca\u308c\u3066\u3044\u308b\u3068\u7e2e\u5c0f\u3067\u304d\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo e2fsck -f \/dev\/mapper\/shmag1--vg-root\r\n<\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306b\u300cresize2fs\u300d\u30b3\u30de\u30f3\u30c9\u306720G\u30d0\u30a4\u30c8\u306b\u7e2e\u5c0f\u3057\u307e\u3059\u3002\u5b8c\u4e86\u307e\u3067\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo resize2fs \/dev\/mapper\/shmag1--vg-root 20G\r\n<\/pre>\n<p>\u518d\u5ea6\u30de\u30a6\u30f3\u30c8\u3057\u3066\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u300cSize\u300d\u3092\u898b\u3066\u307f\u308b\u3068\u300120G\u30d0\u30a4\u30c8\u306b\u7e2e\u5c0f\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo mount -t auto \/dev\/mapper\/shmag1--vg-root \/mnt\r\n$ df -h \/mnt\r\nFilesystem                   Size  Used Avail Use% Mounted on\r\n\/dev\/mapper\/shmag1--vg-root   20G  1.8G   17G  10% \/mnt<\/pre>\n<p><!--nextpage--><\/p>\n<p>\u3053\u3053\u3067\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu\u3092\u518d\u8d77\u52d5\u3057\u3066DVD-R\u307e\u305f\u306fUSB\u30e1\u30e2\u30ea\u30fc\u306e\u30e1\u30c7\u30a3\u30a2\u3092\u53d6\u308a\u5916\u3057\u3001Ubuntu Server\u304c\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u8d77\u52d5\u3057\u305f\u3089Ubuntu Server\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u300cdf\u300d\u30b3\u30de\u30f3\u30c9\u3067\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u300cSize\u300d\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u7e2e\u5c0f\u3057\u305f\u30b5\u30a4\u30ba\u306e20G\u30d0\u30a4\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ df -h \/\r\nFilesystem                   Size  Used Avail Use% Mounted on\r\n\/dev\/mapper\/shmag1--vg-root   20G  1.8G   17G  10% \/<\/pre>\n<h3>\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u7e2e\u5c0f\u3059\u308b<\/h3>\n<p>\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u5c0f\u3055\u304f\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u306f\u5909\u308f\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u306f\u300clvdisplay\u300d\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u4e8c\u3064\u306e\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30c7\u30d0\u30a4\u30b9\u540d\u304b\u3089\u300cLV Path\u300d\u304c\u300c\/dev\/shmag1-vg\/root\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<br \/>\n\u300cLV Size\u300d\u304c\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30b5\u30a4\u30ba\u3067\u3059\u3002\u300c98.56 GiB\u300d\u306a\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30b5\u30a4\u30ba\u304c\u7d0497G\u30d0\u30a4\u30c8\u306e\u3068\u304d\u306e\u7d04100G\u30d0\u30a4\u30c8\u306e\u307e\u307e\u3067\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo lvdisplay\r\n  --- Logical volume ---\r\n  LV Path                \/dev\/shmag1-vg\/root\r\n  LV Name                root\r\n  VG Name                shmag1-vg\r\n  LV UUID                stEKZj-5oX8-Yjg9-BAst-UG5k-cg5P-vDjbAr\r\n  LV Write Access        read\/write\r\n  LV Creation host, time shmag1, 2018-05-09 19:05:33 +0900\r\n  LV Status              available\r\n  # open                 1\r\n  LV Size                98.56 GiB\r\n\uff08\u7565\uff09<\/pre>\n<p>\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3057\u3001\u305d\u306e\u5206\u306e\u5bb9\u91cf\u3092\u30dc\u30ea\u30e5\u30fc\u30e0\u30b0\u30eb\u30fc\u30d7\u306b\u623b\u3057\u3066\u518d\u5229\u7528\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u7e2e\u5c0f\u3059\u308b\u306b\u306f\u3001\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u30b7\u30b9\u30c6\u30e0\u3068\u5207\u308a\u96e2\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Ubuntu Server\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3001\u518d\u5ea6\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu\u3067\u30e9\u30a4\u30d6\u8d77\u52d5\u3057\u307e\u3059\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u753b\u9762\u4e0a\u3067\uff3bCtrl\uff3d\u30ad\u30fc\u3068\uff3bAlt\uff3d\u30ad\u30fc\u3092\u62bc\u3057\u306a\u304c\u3089\uff3bT\uff3d\u30ad\u30fc\u3092\u62bc\u3057\u3066\u7aef\u672b\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><!--nextpage--><\/p>\n<p>\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u7e2e\u5c0f\u306b\u306f\u300clvreduce\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002\u5f15\u6570\u306b\u300cLV Path\u300d\u306b\u66f8\u304b\u308c\u3066\u3044\u305f\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30d1\u30b9\u540d\u3092\u3001\u300c-L\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u7e2e\u5c0f\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30b5\u30a4\u30ba\u540c\u305820G\u30d0\u30a4\u30c8\u306e\u300c20G\u300d\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002\u300cDo you really want to reduce shmag1-vg\/root? [y\/n]:\u300d\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300cy\u300d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true\">$ sudo lvreduce -L 20G \/dev\/shmag1-vg\/root\r\n  WARNING: Reducing active logical volume to 20.00 GiB.\r\n  THIS MAY DESTROY YOUR DATA (filesystem etc.)\r\nDo you really want to reduce shmag1-vg\/root? [y\/n]: y\r\n  Size of logical volume shmag1-vg\/root changed from 98.56 GiB (25232 extents) to 20.00 GiB (5120 extents).\r\n  Logical volume shmag1-vg\/root successfully resized.<\/pre>\n<p>\u3053\u308c\u3067\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3082\u7e2e\u5c0f\u3067\u304d\u307e\u3057\u305f\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248Ubuntu\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066DVD-R\u307e\u305f\u306fUSB\u30e1\u30e2\u30ea\u30fc\u306e\u30e1\u30c7\u30a3\u30a2\u3092\u53d6\u308a\u5916\u3057\u3001\u518d\u5ea6Ubuntu Server\u304c\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>Ubuntu Server\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066lvdisplay\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30b5\u30a4\u30ba\u304c\u5909\u308f\u3063\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u300cLV Size\u300d\u304c\u300c20.00 GiB\u300d\u306e20G\u30d0\u30a4\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u300c[sudo] taro \u306e\u30d1\u30b9\u30ef\u30fc\u30c9:\u300d\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u81ea\u5206\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:sh decode:true \">$ sudo lvdisplay\r\n\r\n  --- Logical volume ---\r\n  LV Path                \/dev\/shmag1-vg\/root\r\n  LV Name                root\r\n  VG Name                shmag1-vg\r\n  LV UUID                stEKZj-5oX8-Yjg9-BAst-UG5k-cg5P-vDjbAr\r\n  LV Write Access        read\/write\r\n  LV Creation host, time shmag1, 2018-05-09 19:05:33 +0900\r\n  LV Status              available\r\n  # open                 1\r\n  LV Size                20.00 GiB\r\n\uff08\u7565\uff09\r\n<\/pre>\n<h3>\u6700\u5f8c\u306b<\/h3>\n<p>\u4eca\u56de\u306fLVM\u306e\u5229\u70b9\u3067\u3042\u308b\u3001\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u7e2e\u5c0f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u6b21\u56de\u306f\u3001\u6b8b\u308a\u306e\u5229\u70b9\u3067\u3042\u308b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u6a5f\u80fd\u3092\u7d39\u4ecb\u3059\u308b\u4e88\u5b9a\u3067\u3057\u305f\u304c\u3001Ubuntu Server 18.04 LTS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u30022018\u5e744\u670826\u65e5\u306b\u9577\u671f\u30b5\u30dd\u30fc\u30c8\u7248\u3068\u3057\u3066Ubuntu Server 18.04 LTS\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p style=\"text-align: right;\">written by \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u30de\u30ac\u30b8\u30f3\u7de8\u96c6\u90e8\uff08\u3042\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306f\u3001Linux\u306a\u3069\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u67d4\u8edf\u306b\u7ba1\u7406\u3059\u308b\u4ed5\u7d44\u307f\u300cLVM\u300d\uff08Logical Volume Manager\uff09\u306e\u5229\u70b9\u3068\u3057\u3066\u3001\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u62e1\u5f35\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u5bb9\u91cf\u3092\u5897\u3084\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001\u6b8b\u3063\u3066\u3044\u308b\u5229\u70b9\u306e\u4e00\u3064\u3068\u3057\u3066\u8ad6\u7406\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u7e2e\u5c0f\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u306b\u5fc5\u8981\u4ee5\u4e0a\u306e\u5bb9\u91cf\u3092\u5272\u308a\u5f53\u3066\u3066\u3057\u307e\u3063\u3066\u3082\u3001LVM\u306a\u3089\u305d\u306e\u5bb9\u91cf\u3092\u6e1b\u3089\u3057\u3066\u6e1b\u3089\u3057\u305f\u5bb9\u91cf\u3092\u5225\u306e\u7528\u9014\u306b\u5229\u7528\u3067\u304d\u307e<a href=\"https:\/\/shell-mag.com\/5th_linuxoperations\/\">\uff3b\u2026\uff3d<\/a><\/p>\n","protected":false},"author":9,"featured_media":2516,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-2515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article"],"_links":{"self":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts\/2515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/comments?post=2515"}],"version-history":[{"count":12,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts\/2515\/revisions"}],"predecessor-version":[{"id":2530,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/posts\/2515\/revisions\/2530"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/media\/2516"}],"wp:attachment":[{"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/media?parent=2515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/categories?post=2515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shell-mag.com\/wp-json\/wp\/v2\/tags?post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}