Difference between revisions of "Virt-resize"

From wikieduonline
Jump to navigation Jump to search
Line 35: Line 35:
  
 
Use: <code>[[virt-filesystems]]</code> to check image after executing <code>[[virt-resize]]</code>
 
Use: <code>[[virt-filesystems]]</code> to check image after executing <code>[[virt-resize]]</code>
 +
 +
 +
== Virt-resize with execution error ==
 +
<pre>
 +
virt-resize: error: libguestfs error: guestfs_launch failed.
 +
This usually means the libguestfs appliance failed to start or crashed.
 +
Do:
 +
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
 +
and run the command again.  For further information, read:
 +
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
 +
You can also run 'libguestfs-test-tool' and post the *complete* output
 +
into a bug report or message to the libguestfs mailing list.
 +
 +
If reporting bugs, run virt-resize with debugging enabled and include the
 +
complete output:
 +
 +
  virt-resize -v -x [...]
 +
</pre>
  
  

Revision as of 14:45, 2 February 2020

This article is a Draft. Help us to complete it.


cp my_machine.qcow2 my_machine-ORIGIN.qcow2
virt-resize --expand /dev/sda4 my_machine-ORIGIN.qcow2 my_machine.qcow2
virt-resize --expand /dev/sda4 my_machine-ORIGIN.qcow2 my_machine.qcow2
[   0.0] Examining my_machine.qcow
**********

Summary of changes:

/dev/sda1: This partition will be left alone.

/dev/sda2: This partition will be left alone.

/dev/sda3: This partition will be left alone.

/dev/sda4: This partition will be resized from 99.3G to 299.3G.  The LVM PV
on /dev/sda4 will be expanded using the 'pvresize' method.

**********
[   5.2] Setting up initial partition table on my_machine.qcow2
[  17.5] Copying /dev/sda1
[  17.5] Copying /dev/sda2
[  18.0] Copying /dev/sda3
 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
[ 258.7] Expanding /dev/sda4 using the 'pvresize' method

Resize operation completed with no errors.  Before deleting the old disk,
carefully check that the resized disk boots and works correctly.

Use: virt-filesystems to check image after executing virt-resize


Virt-resize with execution error

virt-resize: error: libguestfs error: guestfs_launch failed.
This usually means the libguestfs appliance failed to start or crashed.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.

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

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


Related commands

Activities

See also

Advertising: