From: Zdenek Kabelac Subject: Re: Kernel error at a LVM snapshot creation Date: Mon, 2 Sep 2019 16:01:20 +0200 Message-ID: References: <20190829081514.29660-1-yuyufen@huawei.com> <877e6vf45p.fsf@notabene.neil.brown.name> <07ffeca5-6b69-0602-0981-2221cfb682af@huawei.com> <8a1c4146-fdc5-138d-af2d-a77b606b59e2@gusev.co> <1cd9447e-9d84-e7f3-3b5f-c3064537e6e3@redhat.com> <24771f1a-7b0c-d63f-1df1-3349c5c0f6c6@gusev.co> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <24771f1a-7b0c-d63f-1df1-3349c5c0f6c6@gusev.co> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Dmitrij Gusev Cc: device-mapper development List-Id: dm-devel.ids Dne 02. 09. 19 v 15:58 Dmitrij Gusev napsal(a): > Hello. > > Please find answers below. > Thank you. > Dmitrij > > On 2019-09-02 11:32, Zdenek Kabelac wrote: >> Dne 02. 09. 19 v 3:04 Dmitrij Gusev napsal(a): >>> Hello. >>> >>> I get a kernel error every time I create LVM snapshot - at the creation and >>> at boot time, though the snapshot itself is working properly. >>> >>> Linux nexus 4.19.69 #2 SMP Thu Aug 29 16:33:35 CDT 2019 x86_64 Intel(R) >>> Xeon(R) E-2174G CPU @ 3.80GHz GenuineIntel GNU/Linux >> >> Hi >> >> >> This is likely not a kernel error. >> >> In which way are you creating your snapshot ? >> Seems like it's made read-only ? > > Yes, I create read-only snapshot in this case. > > cmd line: lvcreate -pr --size $size --snapshot -n $snap $lv $pv > >> >> What version of lvm2 are you using ? >> (there used to be bug when creating COW as read-only device) > > I use lvm2 format. > > LVM utility version: lvm2-2.02.154 (Slackware 14.2). > Yep - so please try to use lvm2 version >= 2.02.178 (contains fix for COW to be read-write even for read-only snapshots) Regards Zdenek