]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test(LVM-THIN): avoid thin pool size warning
authorHenrik Gombos <henrik99999@gmail.com>
Sun, 14 May 2023 12:22:22 +0000 (12:22 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 6 Jun 2023 13:40:41 +0000 (15:40 +0200)
Avoid the following warning by reducing thin pool size

> "Sum of all thin volume sizes exceeds the size of thin pool
> and the size of whole volume group.

test/TEST-17-LVM-THIN/create-root.sh

index f5a12fd5c9cff79724895debee9300b14c42aaf2..2547d1c751628f2f00ac107224982035ca203017 100755 (executable)
@@ -16,8 +16,8 @@ for dev in /dev/disk/by-id/ata-disk_disk[123]; do
 done
 
 lvm vgcreate dracut /dev/disk/by-id/ata-disk_disk[123]
-lvm lvcreate --ignoremonitoring -l 17 -T dracut/mythinpool
-lvm lvcreate --ignoremonitoring -V1G -T dracut/mythinpool -n root
+lvm lvcreate --ignoremonitoring -l 100%FREE -T dracut/mythinpool
+lvm lvcreate --ignoremonitoring -V100M -T dracut/mythinpool -n root
 lvm vgchange --ignoremonitoring -ay
 mkfs.ext4 /dev/dracut/root
 mkdir -p /sysroot