{"id":454,"date":"2024-10-02T15:10:58","date_gmt":"2024-10-02T06:10:58","guid":{"rendered":"http:\/\/www.iwgh.run\/?p=454"},"modified":"2024-10-02T15:31:32","modified_gmt":"2024-10-02T06:31:32","slug":"linuxrhel-8-%ec%97%90%ec%84%9c%ec%9d%98-root-volume-online-%ed%99%95%ec%9e%a5","status":"publish","type":"post","link":"https:\/\/iwgh.duckdns.org\/?p=454","title":{"rendered":"Linux(RHEL 8) \uc5d0\uc11c\uc758 root volume online \ud655\uc7a5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">linux \uacc4\uc5f4\uc758 OS\uc5d0\uc11c\ub294 \ub300\ubd80\ubd84 root(\/) volume\ub97c \ube44\ub86f\ud55c \ub300\ubd80\ubd84\uc758 volume\uac00 \uc628\ub77c\uc778\uc73c\ub85c \ud655\uc7a5\uac00\ub2a5\ud558\ub2e4.<br>\ub2e4\ub9cc \ud655\uc7a5\uc2dc \uac70\uc758 \ub300\ubd80\ubd84 \ud30c\ud2f0\uc158\uc744 \uc218\ub3d9\uc73c\ub85c \uc218\uc815\ud574\uc57c\ud558\ub294 \ub9ac\uc2a4\ud06c\uac00 \uc788\ub2e4. 2T\uc774\ud558 \ubcfc\ub968\uc740 fdisk\ub97c \uc0ac\uc6a9\ud558\uace0<br>2T\uc774\uc0c1 \ubcfc\ub968\uc740 parted\ub97c \uc0ac\uc6a9\ud574\uc57c \ud55c\ub2e4.<br>\uc774 \ubd80\ubd84\uc744 \uc8fc\uc758\ud558\uba74 \uc190\uc27d\uac8c \uc628\ub77c\uc778\uc73c\ub85c \ubcfc\ub968\ud655\uc7a5\uc774 \uac00\ub2a5\ud558\ub2e4.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Harddisk\uc758 \uc6a9\ub7c9 \uc99d\uc124, Harddisk \ucd94\uac00 \ub4f1 \ubb3c\ub9ac\uc801\uc778 \uc6a9\ub7c9\uc758 \uc99d\uac00<\/li>\n\n\n\n<li>OS\uc5d0\uc11c \uc99d\uac00\ub41c \uc6a9\ub7c9\uc744 \uc778\uc2dd \ubc0f Partition \uc218\uc815, LVM \uc218\uc815<\/li>\n\n\n\n<li>filesystem \uc5d0\uc11c\uc758 \ud655\uc7a5<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"http:\/\/www.iwgh.run\/wp-content\/uploads\/2024\/10\/image-2-1024x573.png\" alt=\"\" class=\"wp-image-458\" srcset=\"https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-1024x573.png 1024w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-300x168.png 300w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-768x430.png 768w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-1000x560.png 1000w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-230x129.png 230w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-350x196.png 350w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2-480x269.png 480w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-2.png 1158w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">!! \uc77c\ubc18\uc801\uc778 \ud30c\uc77c\uc2dc\uc2a4\ud15c \uc0ac\uc6a9\uc758 \uad6c\uc131<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:14px\">\uac00\uc7a5 \ud558\ub2e8\uc5d0 \uae30\ubcf8\uc801\uc778 H\/W\uc5d0 \ud574\ub2f9\ud558\ub294 \uad6c\uc131\uc774 \uc788\ub2e4. <br>\ub514\uc2a4\ud06c \ub610\ub294 \uc2a4\ud1a0\ub9ac\uc9c0\uc758 LUN \ub610\ub294 \uc11c\ubc84\uc5d0\uc11c RAID Controller\uc744 \ud1b5\ud574 \uad6c\uc131\ub41c VD(\ub610\ub294 Logical Volume \ub4f1 \ubca4\ub354\ub9c8\ub2e4 \uc870\uae08\uc529 \uc6a9\uc5b4\uac00 \ub2e4\ub974\ub2e4.)<br>\ud30c\uc77c\uc2dc\uc2a4\ud15c \ud06c\uae30\ub97c \ud655\uc7a5\ud560\ub824\uba74 \uc81c\uacf5\ud574\uc8fc\ub294 \uc774 H\/W\uc801\uc778 \uc2a4\ud1a0\ub9ac\uc9c0\uc5d0 \uc5ec\uc720\uacf5\uac04\uc774 \uc788\uac70\ub098 \ucd94\uac00\uc801\uc778 \ud560\ub2f9\uc774 \ud544\uc694\ud558\ub2e4.<\/li>\n\n\n\n<li style=\"font-size:14px\">\uc774 \ubb3c\ub9ac\uc801\uc778 \uc2a4\ud1a0\ub9ac\uc9c0\uac00 \uc788\uc73c\uba74 \uc774\uac83\uc744 \uc9c1\uc811 \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0\ub3c4 \uc788\uc9c0\ub9cc \ub300\ubd80\ubd84 \ud30c\ud2f0\uc158\uc744 \uc124\uc815\ud558\uc5ec \uc0ac\uc6a9\ud558\uac8c \ub41c\ub2e4.  \ud30c\ud2f0\uc158 \ubd80\ubd84\uc5d0\uc11c OS \ubd80\ud305\uc744 \uc704\ud55c MBR\/GPT\uac19\uc740 boot \uc601\uc5ed\uc774 H\/W\uc5d0\uc11c \uc778\uc2dd\ud560 \uc218 \uc788\uac8c \uc124\uc815\ub41c\ub2e4. \ub098\uba38\uc9c0 \ubd80\ubd84\uc740 OS\ub098 DATA\ub97c \uc704\ud55c \uc601\uc5ed\uc73c\ub85c \ubd84\ub9ac\ud558\uc5ec \uc0ac\uc6a9\ub41c\ub2e4.<br>\ud558\ub098\uc758 \ub514\uc2a4\ud06c\ub97c \uc5ec\ub7ec \uac1c\uc758 \ub17c\ub9ac\uc801\uc778 \uc601\uc5ed\uc73c\ub85c \ub098\ub204\uc5b4 \uc4f0\ub294 \uac83\uc774 \ud30c\ud2f0\uc158\uc774\ub2e4.<\/li>\n\n\n\n<li style=\"font-size:14px\">\ub514\uc2a4\ud06c\uc5d0 \ub300\ud55c \ub17c\ub9ac\uad00\ub9ac\uc790\ub294 OS\ubcc4\ub85c \uc5ec\ub7ec\uac00\uc9c0\uac00 \uc788\ub2e4 Windows Server\uc758 \ub3d9\uc801\ub514\uc2a4\ud06c\ub098 Storage pool, \ub9ac\ub205\uc2a4\uc758 LVM(Logical Vomume Manager) \ub610\ub294 \ub17c\ub9ac\uad00\ub9ac\uc790 \uc5c6\uc774 \ud30c\ud2f0\uc158\uc744 \ubc14\ub85c \ud30c\uc77c\uc2dc\uc2a4\ud15c\uc73c\ub85c \uc0ac\uc6a9\ud558\uae30\ub3c4 \ud55c\ub2e4.<\/li>\n\n\n\n<li style=\"font-size:14px\">Filesystem\uc740 \uc704\uc5d0 \uc124\uba85\ud55c \ub514\uc2a4\ud06c\ub97c \uad00\ub9ac\ud558\ub294 H\/W, Partition, \ub17c\ub9ac\uad00\ub9ac\uc790\uc640 \ub2e4\ub974\uac8c \uc6b0\ub9ac\uac00 \uc2e4\uc81c\ub85c \uc0ac\uc6a9\ud558\ub294 File\ub97c \uad00\ub9ac\ud558\uae30 \uc704\ud55c OS \uad6c\uc131\uc694\uc18c\uc774\ub2e4. <br>\ud754\ud788 \uacc4\uce35\uc801 \uad6c\uc870\ub77c\uace0 \ub9d0\ud558\ub294 \ub514\ub809\ud1a0\ub9ac\uad6c\uc870, \uc0ad\uc81c\uc2dc \ubcf5\uad6c\ud558\ub294 \ud734\uc9c0\ud1b5(recycle bin), filesystem \ud30c\uc190\uc744 \ub9c9\uae30\uc704\ud55c journaling system, \uac1c\ubcc4\ud30c\uc77c \ucd5c\ub300\ud06c\uae30, \ucd5c\ub300 \ud30c\uc77c\uac1c\uc218, \ud30c\uc77c\uc2dc\uc2a4\ud15c \ucd5c\ub300\ud06c\uae30 \ub4f1\uc774 filesystem\uc5d0 \ub530\ub77c \uacb0\uc815\ub41c\ub2e4.<br>\ub9c8\ucc2c\uac00\uc9c0\ub85c online \uc911\uc5d0 filesystem\uc744 \uc99d\uc124\uc774 \uac00\ub2a5\ud55c\uc9c0 \uc5ec\ubd80\ub3c4 filesystem\uc758 \uc885\ub958\uc5d0 \ub530\ub77c \uacb0\uc815\ub41c\ub2e4. (\uc8fc\ub85c \uacfc\uac70 filesystem\uc778 ext2, fat, hfs \ub4f1\uc740 online\ud655\uc7a5\uc774 \ubd88\uac00\ub2a5\ud558\ub2e4.)<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">1. Harddisk\uc758 \uc6a9\ub7c9 \uc99d\uc124, Harddisk \ucd94\uac00 \ub4f1 \ubb3c\ub9ac\uc801\uc778 \uc6a9\ub7c9\uc758 \uc99d\uac00<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">1.1 \uae30\uc874 \ub514\uc2a4\ud06c \uc6a9\ub7c9\uc744 \ub298\ub9b4\uc9c0 \uc0c8\ub85c\uc6b4 \ub514\uc2a4\ud06c\ub97c \ucd94\uac00\ud560\uc9c0 \uacb0\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<br>\ub2e4\ub9cc <mark style=\"background-color:#fcb900\" class=\"has-inline-color\">root \ud30c\uc77c\uc2dc\uc2a4\ud15c\uc758 \uacbd\uc6b0 \ub300\ubd80\ubd84\uc758 \uc2dc\uc2a4\ud15c\uc5d0\uc11c \ub2e8\uc77c \ub514\uc2a4\ud06c \ub0b4\uc5d0\uc11c\ub9cc \ud560\ub2f9<\/mark>\ud560 \uc218 \uc788\uac8c \uc81c\uc57d\uc774 \uac78\ub824\uc788\ub2e4.<br>\uadf8\ub7ec\ubbc0\ub85c \uae30\uc874 \ub514\uc2a4\ud06c \uc6a9\ub7c9\uc744 \ub298\ub824\uc57c \ud55c\ub2e4.<br>\uc544\ub798 \uc608\uc2dc\ub294 VMWARE\uc5d0\uc11c VM OS\uc758 root disk \uc6a9\ub7c9\uc744 100G-> 200G\ub85c \ub298\ub824 OS(RHEL8)\uc758 root filesystem\uc744 \ub298\ub824\uc904\ub824\uace0 \ud55c\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"609\" src=\"http:\/\/www.iwgh.run\/wp-content\/uploads\/2024\/10\/image-3.png\" alt=\"\" class=\"wp-image-461\" srcset=\"https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-3.png 798w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-3-300x229.png 300w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-3-768x586.png 768w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-3-230x176.png 230w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-3-350x267.png 350w, https:\/\/iwgh.duckdns.org\/wp-content\/uploads\/2024\/10\/image-3-480x366.png 480w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">!! VMWARE\uc758 \uacbd\uc6b0 snapshot\uac00 \uc788\ub294 \uc0c1\ud0dc\uc5d0\uc11c\ub294 \uc6a9\ub7c9\ubcc0\uacbd\uc774 \ub418\uc9c0 \uc54a\uc74c. \uae30\uc874 snapshot \uc0ad\uc81c \ud6c4 \ubcc0\uacbd. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. OS\uc5d0\uc11c \uc99d\uac00\ub41c \uc6a9\ub7c9\uc744 \uc778\uc2dd \ubc0f Partition \uc218\uc815, LVM \uc218\uc815<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">!! VM\uc758 \uacbd\uc6b0 \ubcc0\uacbd \ud6c4\uc5d0 \ubc14\ub85c \uc6a9\ub7c9\uc774 \uc778\uc2dd\ub418\uc9c0 \uc54a\uc74c. \ud558\uae30 \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ubcc0\uacbd\ub41c \uc6a9\ub7c9 \uc5c5\ub370\uc774\ud2b8 \ud544\uc694.<br>\ubb3c\ub9ac\uc801\uc778 \uc7a5\ube44\uc758 \uacbd\uc6b0 \ub300\ubd80\ubd84 \ubc14\ub85c \uc778\uc2dd\ub418\ub098 \uc815\uc0c1\uc801\uc73c\ub85c \uc778\uc2dd\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0 \ub3d9\uc77c\ud55c \uacfc\uc815 \ud544\uc694. linux\uc758 \uacbd\uc6b0 \uc778\uc2dd\uc774 \uc548\ub418\ub294 \uacbd\uc6b0 \ub9ac\ubd80\ud305\uc774 \ud544\uc694 \ud560 \uc218\ub3c4 \uc788\uc74c.<br># <strong>echo 1 > \/sys\/class\/block\/<mark style=\"background-color:#fcb900\" class=\"has-inline-color\">sda<\/mark>\/device\/rescan<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>\t&#91;root@rhel88 ~]# lsblk\n\tNAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\n<mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">\tsda             8:0    0  100G  0 disk<\/mark>\n\t\u251c\u2500sda1          8:1    0  600M  0 part \/boot\/efi\n\t\u251c\u2500sda2          8:2    0    1G  0 part \/boot\n\t\u2514\u2500sda3          8:3    0 98.4G  0 part\n\t  \u251c\u2500rhel-root 253:0    0 90.5G  0 lvm  \/\n\t  \u2514\u2500rhel-swap 253:1    0  7.9G  0 lvm  &#91;SWAP]\n\tsr0            11:0    1 1024M  0 rom\n\t&#91;root@rhel88 ~]# fdisk -l\n\tDisk \/dev\/sda: 100 GiB, 107374182400 bytes, 209715200 sectors\n\tUnits: sectors of 1 * 512 = 512 bytes\n\tSector size (logical\/physical): 512 bytes \/ 512 bytes\n\tI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\tDisklabel type: gpt\n\tDisk identifier: 28E2C079-A832-428B-BE7F-2088E6AE0BD3\n\t\n\tDevice       Start       End   Sectors  Size Type\n\t\/dev\/sda1     2048   1230847   1228800  600M EFI System\n\t\/dev\/sda2  1230848   3327999   2097152    1G Linux filesystem\n\t\/dev\/sda3  3328000 209713151 206385152 98.4G Linux LVM\n\t\n\tOS\uc5d0\uc11c \ud558\uae30 \uba85\ub839\uc5b4\ub85c \uc6a9\ub7c9 \uc7ac\uc778\uc2dd \ud544\uc694.\n<mark style=\"background-color:#fcb900\" class=\"has-inline-color\">\t&#91;root@rhel88 ~]# ll \/sys\/class\/block\/sda\/device\/rescan<\/mark>\n\t--w-------. 1 root root 4096 Jul 31 17:49 \/sys\/class\/block\/sda\/device\/rescan\n\t&#91;root@rhel88 ~]# echo 1 > \/sys\/class\/block\/sda\/device\/rescan\n\t&#91;root@rhel88 ~]# lsblk\n\tNAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\n<mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">\tsda             8:0    0  200G  0 disk<\/mark>\n\t\u251c\u2500sda1          8:1    0  600M  0 part \/boot\/efi\n\t\u251c\u2500sda2          8:2    0    1G  0 part \/boot\n\t\u2514\u2500sda3          8:3    0 98.4G  0 part\n\t  \u251c\u2500rhel-root 253:0    0 90.5G  0 lvm  \/\n\t  \u2514\u2500rhel-swap 253:1    0  7.9G  0 lvm  &#91;SWAP]\n\tsr0            11:0    1 1024M  0 rom\n\t&#91;root@rhel88 ~]#\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2.1 <strong>\ubcc0\uacbd\ub41c \uc6a9\ub7c9\uc744 \ud30c\ud2f0\uc158\uc5d0 \ubc18\uc601, \uae30\uc874\uc758 root LVM\uc5d0 \ud560\ub2f9\ub418\uc5b4 \uc788\ub294 sda3\uc758 \ud30c\ud2f0\uc158 \uc815\ubcf4\ub97c \uc218\uc815\ud558\uc5ec \ub298\uc5b4\ub09c \uc6a9\ub7c9\uc73c\ub85c \uc7ac\uc124\uc815\ud55c\ub2e4. \uae30\uc874\uc758 \ud30c\ud2f0\uc158\uc744 \uc0ad\uc81c\ud558\uace0 \uc0c8\ub85c\uc6b4 \ud30c\ud2f0\uc158\uc744 \ub298\uc5b4\ub09c \ud06c\uae30 \ub9cc\ud07c \ub298\ub824\uc918\uc57c \ud55c\ub2e4.<\/strong><br>linux \ud30c\ud2f0\uc158\uc758 \uacbd\uc6b0 \ud2b9\uc815 package\ub97c \uc124\uce58\ud558\uc9c0 \uc54a\uc73c\uba74 \uc218\uc815\ub418\uc9c0 \uc54a\uc73c\ubbc0\ub85c \uc0ad\uc81c\/\uc7ac\uc0dd\uc131 \ud574\uc57c\ub41c\ub2e4.<br>fdisk\uc758 \uacbd\uc6b0 \ub9c8\uc9c0\ub9c9\uc5d0 &#8220;w&#8221; \uba85\ub839\uc744 \uc8fc\uc9c0 \uc54a\uc73c\uba74 write \ub418\uc9c0 \uc54a\uc73c\ub2c8 \ub9c8\uc9c0\ub9c9\uc5d0 \uc81c\ub300\ub85c \ud655\uc778\ud574 \ubcfc \uc218 \uc788\uc73c\ub098, parted\ub294 \uc218\uc815 \uc989\uc2dc \ubc18\uc601\ub418\ubbc0\ub85c \uc8fc\uc758\ud574\uc57c \ub41c\ub2e4.<br>\ubc18\ub4dc\uc2dc \uae30\uc874 \uc815\ubcf4\ub97c \ud655\uc778\ud558\uc5ec \uc2e4\uc218\uc2dc \ubcf5\uad6c \ud560 \uc218 \uc788\ub3c4\ub85d \ud558\ub294 \uac83\uc774 \uc88b\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>\t&#91;root@rhel88 ~]# fdisk -l\n\tGPT PMBR size mismatch (209715199 != 419430399) will be corrected by write.\n\tThe backup GPT table is not on the end of the device. This problem will be corrected by write.\n\tDisk \/dev\/sda: 200 GiB, 214748364800 bytes, 419430400 sectors\n\tUnits: sectors of 1 * 512 = 512 bytes\n\tSector size (logical\/physical): 512 bytes \/ 512 bytes\n\tI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\tDisklabel type: gpt\n\tDisk identifier: 28E2C079-A832-428B-BE7F-2088E6AE0BD3\n\t\n\tDevice       Start       End   Sectors  Size Type\n\t\/dev\/sda1     2048   1230847   1228800  600M EFI System\n\t\/dev\/sda2  1230848   3327999   2097152    1G Linux filesystem\n\t\/dev\/sda3  3328000 209713151 206385152 98.4G Linux LVM\n\t\n\t- \"\/dev\/sda3\" \ud30c\ud2f0\uc158 \uc0ac\uc774\uc988 \ubcc0\uacbd\n\t&#91;root@rhel88 ~]# fdisk \/dev\/sda\n\tCommand (m for help): p\n\tDisk \/dev\/sda: 100 GiB, 107374182400 bytes, 209715200 sectors\n\tUnits: sectors of 1 * 512 = 512 bytes\n\tSector size (logical\/physical): 512 bytes \/ 512 bytes\n\tI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\tDisklabel type: gpt\n\tDisk identifier: 28E2C079-A832-428B-BE7F-2088E6AE0BD3\n\n\tDevice       Start       End   Sectors  Size Type\n\t\/dev\/sda1     2048   1230847   1228800  600M EFI System\n\t\/dev\/sda2  1230848   3327999   2097152    1G Linux filesystem\n\t\/dev\/sda3  3328000 209713151 206385152 98.4G Linux LVM\n\n\tWelcome to fdisk (util-linux 2.32.1).\n\tChanges will remain in memory only, until you decide to write them.\n\tBe careful before using the write command.\n\t\n\tGPT PMBR size mismatch (209715199 != 419430399) will be corrected by write.\n\tThe backup GPT table is not on the end of the device. This problem will be corrected by write.\n\t\n\tCommand (m for help): d \t\t<strong>-> \uae30\uc874 \ud30c\ud2f0\uc158 \uc0ad\uc81c<\/strong>\n\tPartition number (1-3, default 3): 3\n\t\n\tPartition 3 has been deleted.\n\t\n\tCommand (m for help): n \t\t<strong>-> \ud30c\ud2f0\uc158 \uc7ac\uc0dd\uc131<\/strong>\n\tPartition number (3-128, default 3):\n\tFirst sector (3328000-419430366, default 3328000):\n\tLast sector, +sectors or +size{K,M,G,T,P} (3328000-419430366, default 419430366):    <strong>-> \ubcc0\uacbd\ub41c \uc139\ud130 \ud655\uc778<\/strong>\n\t\n\tCreated a new partition 3 of type 'Linux filesystem' and of size 198.4 GiB.\n\tPartition #3 contains a LVM2_member signature.\n\t\n\tDo you want to remove the signature? &#91;Y]es\/&#91;N]o: n\n\t\n\tCommand (m for help): w\t\t\t<strong>-> \ud30c\ud2f0\uc158<\/strong> <strong>\uc4f0\uae30<\/strong>\n\t\n\tThe partition table has been altered.\n\tSyncing disks.\n\t\n\t&#91;root@rhel88 ~]# fdisk -l\n\tDisk \/dev\/sda: 200 GiB, 214748364800 bytes, 419430400 sectors\n\tUnits: sectors of 1 * 512 = 512 bytes\n\tSector size (logical\/physical): 512 bytes \/ 512 bytes\n\tI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\tDisklabel type: gpt\n\tDisk identifier: 28E2C079-A832-428B-BE7F-2088E6AE0BD3\n\t\n\tDevice       Start       End   Sectors   Size Type\n\t\/dev\/sda1     2048   1230847   1228800   600M EFI System\n\t\/dev\/sda2  1230848   3327999   2097152     1G Linux filesystem\n\t\/dev\/sda3  3328000 419430366 416102367 198.4G Linux filesystem<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2.2 \ubcc0\uacbd\ub41c \ud30c\ud2f0\uc158 \uc6a9\ub7c9\uc744 LVM\uc5d0 \ubc18\uc601 \ubc0f root lv \ud655\uc7a5<\/strong><br># pvresize \/dev\/sda3 \uba85\ub839\uc744 \ud1b5\ud574 LVM\ub0b4\uc758 PV size \ubc18\uc601\ud558\uc5ec \ud655\uc7a5<br># lvextend -l +100%FREE \/dev\/mapper\/rhel-root \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 root LV \ub97c \ud655\uc7a5<br>(-l +100%FREE\ub294 \uc5ec\uc720\uacf5\uac04 \uc804\uccb4 \ud560\ub2f9\uc2dc, \uc77c\ubd80\uc6a9\ub7c9\ub9cc \uc99d\uc124\uc774 \ud544\uc694\ud558\uba74 -L \ub610\ub294 &#8211;size \uba85\ub839\uc5b4\ub85c +10g \ub4f1 \uc6a9\ub7c9\uc73c\ub85c \ud560\ub2f9\ud560 \uc218 \uc788\ub2e4.)<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>\t- pvresize \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ubcc0\uacbd\ub41c sda3 \uc6a9\ub7c9\uc744 lvm\uc5d0 \ubc18\uc601\n\t&#91;root@rhel88 ~]# lsblk\n\tNAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT\n\tsda             8:0    0   200G  0 disk\n\t\u251c\u2500sda1          8:1    0   600M  0 part \/boot\/efi\n\t\u251c\u2500sda2          8:2    0     1G  0 part \/boot\n\t\u2514\u2500sda3          8:3    0 198.4G  0 part\n\t  \u251c\u2500rhel-root 253:0    0  90.5G  0 lvm  \/\n\t  \u2514\u2500rhel-swap 253:1    0   7.9G  0 lvm  &#91;SWAP]\n\tsr0            11:0    1  1024M  0 rom\n\t&#91;root@rhel88 ~]# vgs\n\t  VG   #PV #LV #SN Attr   VSize  VFree\n\t  rhel   1   2   0 wz--n- 98.41g    0\n\t&#91;root@rhel88 ~]# <strong>pvresize \/dev\/sda3<\/strong>\n\t  Physical volume \"\/dev\/sda3\" changed\n\t  1 physical volume(s) resized or updated \/ 0 physical volume(s) not resized\n\t&#91;root@rhel88 ~]# vgs\n\t  VG   #PV #LV #SN Attr   VSize   VFree\n\t  rhel   1   2   0 wz--n- 198.41g 100.00g\n\n\t- lvextend\ub85c lv size \uc99d\uc124\n\t&#91;root@rhel88 ~]# lvs\n\t  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert\n\t  root rhel -wi-ao---- &lt;90.52g\n\t  swap rhel -wi-ao----   7.89g\n\t&#91;root@rhel88 ~]# <strong>lvextend -l +100%FREE \/dev\/rhel\/root<\/strong> \n\t;; (\ub0a8\uc740\uacf5\uac04 \uc804\uccb4 \ud560\ub2f9. \ub610\ub294 -L +10g \ub4f1\uc73c\ub85c \ud544\uc694 \uc6a9\ub7c9 \uc99d\uc124 \uac00\ub2a5.)\n\t  Size of logical volume rhel\/root changed from &lt;90.52 GiB (23172 extents) to &lt;190.52 GiB (48772 extents).\n\t  Logical volume rhel\/root successfully resized.\n\t&#91;root@rhel88 ~]# lvs\n\t  LV   VG   Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert\n\t  root rhel -wi-ao---- &lt;190.52g\n\t  swap rhel -wi-ao----    7.89g\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3. filesystem \uc5d0\uc11c\uc758 \ud655\uc7a5<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">filesystem\uc5d0 \ub530\ub77c \ud655\uc7a5\uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec filesystem\uc744 \ud655\uc7a5<br>xfs\uc758 \uacbd\uc6b0 xfs_growfs, ext4\uc758 \uacbd\uc6b0 resize2fs \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud655\uc7a5\ud55c\ub2e4.<br>\uc6a9\ub7c9\uc744 \uc904\uc774\ub294 \uacbd\uc6b0 \ub300\ubd80\ubd84 filesystem\uc774 \uae68\uc9c4\ub2e4. \uc6a9\ub7c9\uc744 \uc77c\ubd80\ub9cc \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0 \ud655\uc7a5 \uc804\ud6c4 fsck\ub97c \ub3cc\ub824\uc11c \uc548 \uae68\uc9c0\ub294 \uacbd\uc6b0\ub3c4 \uc788\uc73c\ub098 \uc77c\ubc18\uc801\uc73c\ub85c \uc190\uc0c1\ub418\uc5b4 backup\/restore\uac00 \ud544\uc694\ud558\ub2c8 \uc694\ud589\uc744 \ubc14\ub77c\uc9c0 \ub9d0 \uac83.<\/p>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>\t&#91;root@rhel88 ~]# df -h\n\tFilesystem             Size  Used Avail Use% Mounted on\n\tdevtmpfs               3.8G     0  3.8G   0% \/dev\n\ttmpfs                  3.8G     0  3.8G   0% \/dev\/shm\n\ttmpfs                  3.8G   59M  3.8G   2% \/run\n\ttmpfs                  3.8G     0  3.8G   0% \/sys\/fs\/cgroup\n\t\/dev\/mapper\/rhel-root   <strong>91G  <\/strong>5.5G   85G   7% \/\n\t\/dev\/sda2             1014M  259M  756M  26% \/boot\n\t\/dev\/sda1              599M  5.8M  594M   1% \/boot\/efi\n\ttmpfs                  770M   44K  770M   1% \/run\/user\/1000\n\ttmpfs                  770M     0  770M   0% \/run\/user\/0\n\t&#91;root@rhel88 ~]# xfs_growfs \/dev\/mapper\/rhel-root\n\tmeta-data=\/dev\/mapper\/rhel-root  isize=512    agcount=4, agsize=5932032 blks\n\t         =                       sectsz=512   attr=2, projid32bit=1\n\t         =                       crc=1        finobt=1, sparse=1, rmapbt=0\n\t         =                       reflink=1    bigtime=0 inobtcount=0\n\tdata     =                       bsize=4096   blocks=23728128, imaxpct=25\n\t         =                       sunit=0      swidth=0 blks\n\tnaming   =version 2              bsize=4096   ascii-ci=0, ftype=1\n\tlog      =internal log           bsize=4096   blocks=11586, version=2\n\t         =                       sectsz=512   sunit=0 blks, lazy-count=1\n\trealtime =none                   extsz=4096   blocks=0, rtextents=0\n\tdata blocks changed from 23728128 to 49942528\n\t&#91;root@rhel88 ~]# df -h\n\tFilesystem             Size  Used Avail Use% Mounted on\n\tdevtmpfs               3.8G     0  3.8G   0% \/dev\n\ttmpfs                  3.8G     0  3.8G   0% \/dev\/shm\n\ttmpfs                  3.8G   59M  3.8G   2% \/run\n\ttmpfs                  3.8G     0  3.8G   0% \/sys\/fs\/cgroup\n\t\/dev\/mapper\/rhel-root  <strong>191G  <\/strong>6.2G  185G   4% \/\n\t\/dev\/sda2             1014M  259M  756M  26% \/boot\n\t\/dev\/sda1              599M  5.8M  594M   1% \/boot\/efi\n\ttmpfs                  770M   44K  770M   1% \/run\/user\/1000\n\ttmpfs                  770M     0  770M   0% \/run\/user\/0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">!! \ud30c\uc77c\uc2dc\uc2a4\ud15c \uc885\ub958\/\ud2b9\uc131 \ucc38\uc870<br>Windows : <a href=\"https:\/\/isc9511.tistory.com\/179\">https:\/\/isc9511.tistory.com\/179<\/a><br>EXT2\/3 : <a href=\"https:\/\/isc9511.tistory.com\/180\">https:\/\/isc9511.tistory.com\/180<\/a><br>linux file system : <a href=\"https:\/\/medium.com\/naver-cloud-platform\/posix-\uc54c\uc544\ubcf4\uae30-1-linux-\ub9ac\ub205\uc2a4-\ud30c\uc77c-\uc2dc\uc2a4\ud15c\uc758-\uc885\ub958\uc640-\ud2b9\uc9d5-96a2e93e33b3\">https:\/\/medium.com\/naver-cloud-platform\/posix-\uc54c\uc544\ubcf4\uae30-1-linux-\ub9ac\ub205\uc2a4-\ud30c\uc77c-\uc2dc\uc2a4\ud15c\uc758-\uc885\ub958\uc640-\ud2b9\uc9d5-96a2e93e33b3<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux \uacc4\uc5f4\uc758 OS\uc5d0\uc11c\ub294 \ub300\ubd80\ubd84 root(\/) volume\ub97c \ube44\ub86f\ud55c \ub300\ubd80\ubd84\uc758 volume\uac00 \uc628\ub77c\uc778\uc73c\ub85c \ud655\uc7a5\uac00\ub2a5\ud558\ub2e4.\ub2e4\ub9cc \ud655\uc7a5\uc2dc \uac70\uc758 \ub300\ubd80\ubd84 \ud30c\ud2f0\uc158\uc744 \uc218\ub3d9\uc73c\ub85c \uc218\uc815\ud574\uc57c\ud558\ub294 \ub9ac\uc2a4\ud06c\uac00 \uc788\ub2e4. 2T\uc774\ud558 \ubcfc\ub968\uc740 fdisk\ub97c \uc0ac\uc6a9\ud558\uace02T\uc774\uc0c1 \ubcfc\ub968\uc740 parted\ub97c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":458,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[152,11,153,154,137,156],"class_list":["post-454","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-filesystem","tag-linux","tag-lvm","tag-resize","tag-root","tag-xfs_growfs"],"_links":{"self":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=454"}],"version-history":[{"count":6,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts\/454\/revisions\/464"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/media\/458"}],"wp:attachment":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}