From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0DB4F2026D48 for ; Sat, 21 Nov 2020 03:11:01 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.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 E8AD3185A7BC for ; Sat, 21 Nov 2020 03:11:00 +0000 (UTC) Received: by mail-lf1-f54.google.com with SMTP id z21so16200636lfe.12 for ; Fri, 20 Nov 2020 19:10:57 -0800 (PST) MIME-Version: 1.0 From: Sreyan Chakravarty Date: Sat, 21 Nov 2020 08:40:44 +0530 Message-ID: Content-Type: multipart/alternative; boundary="0000000000003c3a6605b4954fb6" Subject: [linux-lvm] What is the use of thin snapshots if the external origin cannot be set to writable ? 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: To: LVM general discussion and development --0000000000003c3a6605b4954fb6 Content-Type: text/plain; charset="UTF-8" I am looking into thin snapshots since the older COW snapshots delay my boot enormously. My normal root fs is on a normal "non-thin" volume. So to make a snapshot I have boot into a live cd environment then set my root fs volume to read-only and then set it to inactive. Commands: sudo lvchange -pr vgfedora/fedora sudo lvchange -an vgfedora/fedora Now I create the thin snapshot using lvcreate, after that I need to restore my root LVS to its original state: sudo lvchange -ay vgfedora/fedora sudo lvchange -prw vgfedora/fedora This fails with: Command on LV vgfedora/fedora uses options that are invalid with LV parameters: lv_is_external_origin. I mean what is the point of creating a snapshot if I can't change my original volume ? Is there some sort of resolution ? -- Regards, Sreyan Chakravarty --0000000000003c3a6605b4954fb6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am looking into thin snapshots since the older COW snaps= hots delay my boot enormously.

My normal root fs is on a= normal "non-thin" volume.=C2=A0

So to m= ake a snapshot I have boot into a live cd environment then set my root fs v= olume to read-only and then set it to inactive.

Co= mmands:

=C2=A0 =C2=A0 =C2=A0 =C2=A0sudo lvchange -= pr vgfedora/fedora
=C2=A0 =C2=A0 =C2=A0 =C2=A0sudo lvchange -an v= gfedora/fedora

Now I create the thin snapshot usin= g lvcreate, after that I need to restore my root LVS to its original state:=

=C2=A0 =C2=A0 =C2=A0sudo lvchange -ay vgfedora/fe= dora

=C2=A0 =C2=A0 =C2=A0 sudo lvchange -prw vgfed= ora/fedora

This fails with:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Command on LV vgfedora/fedora = uses options that are invalid with LV parameters: lv_is_external_origin.


I mean what is the point of creating = a snapshot if I can't change my original volume ?

<= div>Is there some sort of resolution ?

-- <= br>
Regards,
Sreyan Chakravarty
--0000000000003c3a6605b4954fb6--