오늘만살자
centos 8 에서 disk size 변경 안될때. 본문
출처 : https://qiita.com/ysd_marrrr/items/8acd4dae5150972c85c7
vagrant up 후 들어가 작업해야 함.
config.disksize.size = '240GB'
sudo fdisk -l
$ sudo fdisk /dev/sda
Command (m for help): d
Selected partition 1
Partition 1 is deleted
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1):1
First sector (2048-503316479, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-503316479, default 503316479):
Using default value 503316479
Partition 1 of type Linux and of size 240 GiB is set
Partition #1 contains a xfs signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
Command (m for help): p
Disk /dev/sda: 257.7 GB, 257698037760 bytes, 503316480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009ef88
Device Boot Start End Blocks Id System
/dev/sda1 2048 503316479 251657216 83 Linux
Command (m for help): w
The partition table has been altered!
sudo reboot
sudo xfs_growfs / -d
df -hT
Comments