본문 바로가기

* 리눅스

[명령어] growpart 명령어

반응형

growpart 명령어

growpart(cloud-utils-growpart) 패키지 설치

yum install -y cloud-utils-growpart
$ which growpart
/bin/growpart

d

$ lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0  100G  0 disk
├─sda1            8:1    0    1G  0 part /boot
└─sda2            8:2    0   39G  0 part
  ├─centos-root 253:0    0   35G  0 lvm  /
  └─centos-swap 253:1    0    4G  0 lvm  [SWAP]
sr0              11:0    1  4.5G  0 rom

d

growpart /dev/sda 2
$ growpart /dev/sda 2
CHANGED: partition=2 start=2099200 old: size=81786880 end=83886080 new: size=207615967 end=209715167
728x90
반응형