Re: resizing qemu image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 21, 2021 at 3:23 PM Chris Adams <linux@xxxxxxxxxxx> wrote:

> And you have more space!  I do this all the time with libvirt-managed
> Linux VMs.  I haven't yet gone through th necessary steps for the more
> recent btrfs setup.

Guest:
# lsblk -o NAME,SIZE
NAME    SIZE
vda     100G
├─vda1  600M
├─vda2    1G
└─vda3 98.4G


Host:
$ sudo virsh blockresize uefivm
/var/lib/libvirt/images/f34w-uefi-defaultbtrfs.raw 200G
Block device '/var/lib/libvirt/images/f34w-uefi-defaultbtrfs.raw' is resized

Guest:
# lsblk -o NAME,SIZE
vda     200G
├─vda1  600M
├─vda2    1G
└─vda3 98.4G

(gdisk requires three changes: move the secondary GPT to the end of
the disk, then delete vda3 partition, and recreate it max size, which
is the default behavior)

# partprobe
# lsblk -o NAME,SIZE
vda      200G
├─vda1   600M
├─vda2     1G
└─vda3 198.4G
# btrfs fi resize max /
Resize device id 1 (/dev/vda3) from 98.41GiB to max


Single device btrfs resize is straightforward. But with multiple
device Btrfs, you need to specify the devid you want resized,
otherwise it defaults to devid 1.


--
Chris Murphy
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux