Hi,
I added a disk to a host (1TB)
I added a lvm thinpool on that disk intially 100G.
I added to a guest a raw disk on that thinpool. Initially the size of the disk was 32G.
Ineed more room on that raw disk.
I resized the thin pool to 498G.
I resized the disk to 282G.
With dmesg i see that the guest see the new capacity.
When i try resize2fs /dev/sdb1 it tells me :
I certainly miss something obvious but i don't see what.
Edit: a detail which can be important: my guest is dedicated to docker. The second disk (the one i need to extend) is mounted in /home/docker/disk2.
i created docker volumes in it.
I added a disk to a host (1TB)
I added a lvm thinpool on that disk intially 100G.
I added to a guest a raw disk on that thinpool. Initially the size of the disk was 32G.
Ineed more room on that raw disk.
I resized the thin pool to 498G.
I resized the disk to 282G.
With dmesg i see that the guest see the new capacity.
When i try resize2fs /dev/sdb1 it tells me :
resize2fs 1.43.4 (31-Jan-2017)
Le système de fichiers a déjà 8388347 blocs (4k). Rien à faire !
Here the result of fdisk -l /dev/sdbLe système de fichiers a déjà 8388347 blocs (4k). Rien à faire !
Disque /dev/sdb : 282 GiB, 302795194368 octets, 591396864 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : BFBD7680-147B-448F-A223-D3F9E9B86358
Périphérique Début Fin Secteurs Taille Type
/dev/sdb1 2048 67108830 67106783 32G Système de fichiers Linux
I certainly miss something obvious but i don't see what.
Edit: a detail which can be important: my guest is dedicated to docker. The second disk (the one i need to extend) is mounted in /home/docker/disk2.
i created docker volumes in it.
Last edited: