Expand Disk LXD VM

From UVOO Tech Wiki
Revision as of 01:20, 16 May 2021 by Busk (talk | contribs) (Created page with "Existing size is about 10G on Centos host called nas ``` lxc config device set nas root size=100GiB lxc shell nas ``` Add tools and expand (you can use fdisk/parted but this...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Existing size is about 10G on Centos host called nas

lxc config device set nas root size=100GiB
lxc shell nas

Add tools and expand (you can use fdisk/parted but this is easer)

lsblk
df -h

yum install e2fsprogs cloud-utils-growpart gdisk
growpart /dev/sda 2
resize2fs /dev/sda2

lsblk
df -h