Différences
Ci-dessous, les différences entre deux révisions de la page.
infrastructure:virtualisation:libvirt:disk-resize [30/12/2020 19:48] – créée Stéphane Paillet | infrastructure:virtualisation:libvirt:disk-resize [30/12/2020 19:50] (Version actuelle) – Stéphane Paillet | ||
---|---|---|---|
Ligne 22: | Ligne 22: | ||
< | < | ||
# cp test.qcow2 test-orig.qcow2 | # cp test.qcow2 test-orig.qcow2 | ||
- | < | + | </code> |
Nous agrandissons la partition /dev/sda2 | Nous agrandissons la partition /dev/sda2 | ||
Ligne 53: | Ligne 53: | ||
Resize operation completed with no errors. | Resize operation completed with no errors. | ||
carefully check that the resized disk boots and works correctly. | carefully check that the resized disk boots and works correctly. | ||
+ | </ | ||
+ | |||
+ | Nous vérifions | ||
+ | < | ||
+ | # qemu-img info confmgt02.qcow2 | ||
+ | </ | ||
+ | |||
+ | Nous avons ce type de retour | ||
+ | < | ||
+ | image: confmgt02.qcow2 | ||
+ | file format: qcow2 | ||
+ | virtual size: 28G (30064771072 bytes) | ||
+ | disk size: 1.9G | ||
+ | cluster_size: | ||
+ | Format specific information: | ||
+ | compat: 1.1 | ||
+ | lazy refcounts: true | ||
+ | refcount bits: 16 | ||
+ | corrupt: false | ||
</ | </ | ||