Answer the question
In order to leave comments, you need to log in
How to expand a KVM partition?
Good afternoon. This section is 100% complete. I added 100G to the virtual machine, how can I mark it on the guest now? sudo qemu-img resize /path/to/disk +100G
Data from the guest system.
df -h
Файл.система Размер Использовано Дост Использовано% Cмонтировано в
/dev/vda1 46G 43G 240M 100% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 3,9G 4,0K 3,9G 1% /dev
tmpfs 799M 404K 799M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 3,9G 0 3,9G 0% /run/shm
none 10</spoiler>
sudo fdisk -l
Диск /dev/vda: 161.1 Гб, 161061273600 байт
255 головок, 63 секторов/треков, 19581 цилиндров, всего 314572800 секторов
Units = секторы of 1 * 512 = 512 bytes
Размер сектора (логического/физического): 512 байт / 512 байт
I/O size (minimum/optimal): 512 bytes / 512 bytes
Идентификатор диска: 0x00039db9
Устр-во Загр Начало Конец Блоки Id Система
/dev/vda1 * 2048 96667647 48332800 83 Linux
/dev/vda2 96669694 104855551 4092929 5 Расширенный
/dev/vda5 96669696 104855551 4092928 82 Linux своп / Solaris
0M 0 100M 0% /run/user
Answer the question
In order to leave comments, you need to log in
first rebuild partition table via fdisk
then resize2fs
profit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question