docs: update resize
This commit is contained in:
parent
4223757498
commit
7abc37e129
22
resize.md
22
resize.md
@ -2,7 +2,7 @@
|
|||||||
title: Resize a guest disk image
|
title: Resize a guest disk image
|
||||||
description: Resize a a guest disk image using qemu-img and virt-resize
|
description: Resize a a guest disk image using qemu-img and virt-resize
|
||||||
published: true
|
published: true
|
||||||
date: 2021-08-12T10:56:34.771Z
|
date: 2021-08-12T12:17:09.143Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-08-12T10:55:58.877Z
|
dateCreated: 2021-08-12T10:55:58.877Z
|
||||||
@ -21,7 +21,7 @@ Expanding a new disk implies creating a new blank image of the desired size and
|
|||||||
* Create the new disk phyllome_but_bigger.img of the desired size. In this case, it is 15 GiB
|
* Create the new disk phyllome_but_bigger.img of the desired size. In this case, it is 15 GiB
|
||||||
|
|
||||||
```
|
```
|
||||||
$ qemu-img create -f raw /var/lib/libvirt/images/phyllome_but_bigger.img 15G
|
$ qemu-img create -f raw /var/lib/libvirt/images/phyllome-bigger.img 15G
|
||||||
```
|
```
|
||||||
|
|
||||||
* Expand the root partition on the disk.
|
* Expand the root partition on the disk.
|
||||||
@ -39,21 +39,21 @@ $ qemu-img create -f raw /var/lib/libvirt/images/phyllome_but_bigger.img 15G
|
|||||||
|
|
||||||
Summary of changes:
|
Summary of changes:
|
||||||
|
|
||||||
/dev/sda1: This partition will be left alone.
|
/dev/vda1: This partition will be left alone.
|
||||||
|
|
||||||
/dev/sda2: This partition will be left alone.
|
/dev/vda2: This partition will be left alone.
|
||||||
|
|
||||||
/dev/sda3: This partition will be resized from 24.5G to 499.5G. The
|
/dev/vda3: This partition will be resized from 5G to 15G. The
|
||||||
filesystem ext4 on /dev/sda3 will be expanded using the ‘resize2fs’
|
filesystem ext4 on /dev/vda3 will be expanded using the ‘resize2fs’
|
||||||
method.
|
method.
|
||||||
|
|
||||||
**********
|
**********
|
||||||
[ 2.1] Setting up initial partition table on nested-hypervisor-secure-boot.img
|
[ 2.1] Setting up initial partition table on phyllome-bigger.img
|
||||||
[ 12.9] Copying /dev/sda1
|
[ 12.9] Copying /dev/vda1
|
||||||
[ 13.1] Copying /dev/sda2
|
[ 13.1] Copying /dev/vda2
|
||||||
[ 13.4] Copying /dev/sda3
|
[ 13.4] Copying /dev/vda3
|
||||||
100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
|
100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
|
||||||
[ 38.3] Expanding /dev/sda3 using the ‘resize2fs’ method
|
[ 38.3] Expanding /dev/vda3 using the ‘resize2fs’ method
|
||||||
|
|
||||||
Resize operation completed with no errors. Before deleting the old disk,
|
Resize operation completed with no errors. Before deleting the old disk,
|
||||||
carefully check that the resized disk boots and works correctly.
|
carefully check that the resized disk boots and works correctly.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user