Increase disk size

1. Resize partition schema

fdisk /dev/sda

p - print

d - to delete partition (don't worry, you're just deleting the table, not data)

2 - or partition number you want to delete (that's why you used pint)

n - to create new partition

p - to make said partition primary

p - to review layout

w - to write changes made

2. Reboot

3. Grow the filesystem so it shows up

xfs_growfs /

4. Bash script:

#!/bin/bash

fdisk /dev/sdc << EOF
d
2
n
p
2


n
t
1
82
t
2
83
w
EOF

xfs_growfs /

Last updated