Skip to content

Instantly share code, notes, and snippets.

@jermainee
Last active June 10, 2021 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jermainee/0b827c70601df19314dc56962dc8ddf5 to your computer and use it in GitHub Desktop.
Save jermainee/0b827c70601df19314dc56962dc8ddf5 to your computer and use it in GitHub Desktop.
Fix wrong disk size after server upgrade - runcloud.io
root@xxx:~# df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 16G 0 16G 0% /dev
tmpfs tmpfs 3.2G 7.8M 3.2G 1% /run
/dev/sda3 ext4 137G 36G 96G 28% /
tmpfs tmpfs 16G 0 16G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/sda2 ext4 976M 218M 692M 24% /boot
tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/1001
root@xxx:~# growpart /dev/sda 3
root@xxx:~# resize2fs /dev/sda3
root@xxx:~# systemctl restart runcloud-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment