[LINUX] Later expand the disk size of Fedora CoreOS deployed with OVA

Steps to later expand the disk size of Fedora CoreOS installed with OVA obtained from Official.

procedure

After installation for the time being, expand the size of the virtual disk.

Untitled.png

After starting, execute the following commands in order.

--Check the number of the partition you want to extend (this time for sda4) --Run growpart with the device and partition you want to extend --Reboot and reconnect --Run xfs_growfs with a partition

# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  250G  0 disk
|-sda1   8:1    0  384M  0 part /boot
|-sda2   8:2    0  127M  0 part /boot/efi
|-sda3   8:3    0    1M  0 part
`-sda4   8:4    0  7.5G  0 part /sysroot

# growpart /dev/sda 4
CHANGED: partition=4 start=1050624 old: size=15726559 end=16777183 new: size=523237343 end=524287967

# reboot now

# xfs_growfs /dev/sda4
meta-data=/dev/sda4              isize=512    agcount=14, agsize=146432 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=1
data     =                       bsize=4096   blocks=1965819, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 1965819 to 65404667

# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   250G  0 disk
|-sda1   8:1    0   384M  0 part /boot
|-sda2   8:2    0   127M  0 part /boot/efi
|-sda3   8:3    0     1M  0 part
`-sda4   8:4    0 249.5G  0 part /sysroot

point

--growpart command --Command to specify device and partition to make it extensible

    [growpart: extend a partition in a partition table to fill available space - Linux Man Pages (1)](https://www.systutorials.com/docs/linux/man/1-growpart/)

Expand partition size | Sakura Cloud Document

--Not resize2fs / dev / sda4 --Changed from CentOS 7 to xfs_growfs

What I was addicted to with LVM disk expansion on CentOS 7 (XFS) --Qiita

Recommended Posts

Later expand the disk size of Fedora CoreOS deployed with OVA
I tried to expand the size of the logical volume with LVM
Align the size of the colorbar with matplotlib
Increase the font size of the graph with matplotlib
Download the file deployed with appcfg.py
Increase the UI size of MyPaint
About the size of matplotlib points