From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BEFFF2026D69 for ; Tue, 25 Feb 2020 09:31:48 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 54FE4800307 for ; Tue, 25 Feb 2020 09:31:48 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 25 Feb 2020 10:31:43 +0100 From: Gionatan Danti In-Reply-To: References: Message-ID: <7c2966762598bf3ab8667bcd0b429464@assyoma.it> Content-Transfer-Encoding: 8bit Subject: Re: [linux-lvm] faster snapshot creation? Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: LVM general discussion and development Cc: Eric Toombs Il 2020-02-22 12:58 Eric Toombs ha scritto: > So, is there a sort of "dumber" way of making these snapshots, maybe by > changing the allocation algorithm or something? Hi, I think that total snapshot creation time is dominated by LVM flushing its (meta)data to the physical disks. Two things to try: - use thin lvm snapshot (see man lvmthin); - create a pv/vg/lv from a memory-backed loop device (ie: truncate --size=1G /dev/shm/test.img; losetup -f /dev/shm/test.img; pvcreate /dev/loop0 and so on...) -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it [1] email: g.danti@assyoma.it - info@assyoma.it GPG public key ID: FF5F32A8