Score:0

Virt Block device resizing

gr flag

I am attempting to expand the size of a virtual disk on an existing image. I was successful to expand the virtual hard disk and partition thanks to this guide, but noticed my virtual disk was still essentially full.

Taking a second look, the "20GB block device" (Second image) was not resized and is stuck at that 20GB (I resized the disk from ~20G to ~50G (added 30G)). In virt-manager, there is only the one virtual disk that is present; the qcow2 file I operated on to expand the disk. I assume that even though I expanded the partition that was 20G (matching the block device in size), that something is keeping this block device from accessing that expanded space.

When I try resizing the block device, I get the following:

$ sudo virt-resize --expand /dev/ubuntu-vg/ubuntu-lv CS6250\ \(another\ copy\).qcow2 CS6250.qcow2
[   0.0] Examining CS6250 (another copy).qcow2
virt-resize: error: You cannot use --expand when there is no surplus space 
to expand into.  You need to make the target disk larger by at least 32.0K.

If reporting bugs, run virt-resize with debugging enabled and include the 
complete output:

  virt-resize -v -x [...]

Could someone enlighten me on what the 20GB block storage is, and how to get it resized accordingly?

A look at the main hard disk:

Main hard disk

A look at the 20GB Block Device:

20GB block device

Michael Hampton avatar
cz flag
You installed your system with LVM. Are you not familiar with LVM?
Snappawapa avatar
gr flag
Not as much as I should be. Also, this VM was provided for me in a class (non-sysadmin related)
Snappawapa avatar
gr flag
That was it! Just didn't know how to frame the question well, thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.